/* ---------------------------------------------------------------------------
   arc.benbasha.com — "graphite & signal", the web identity of Arc: Interval
   Timer (com.benbasha.arc).

   Tokens are copied verbatim from the app's dark theme (src/theme/tokens.ts,
   SPEC-DESIGN.md §3): near-black graphite ground #111316, work orange-red
   #FF5A36, rest mint #2ED3A6, prep blue #5B8DEF, gold #F5C542. Type is the
   app's own pairing (SPEC-DESIGN §4): Space Grotesk for display + numbers,
   Inter for body, Heebo for the Hebrew legal column.

   DARK ONLY — deliberately, and unlike the mayim site. Arc's north star is "a
   near-black slate ground with two high-chroma signal colours"; a light
   variant would be a different product's identity, and the screenshots are all
   dark. There is no prefers-color-scheme block.

   THE ONE RULE CARRIED OVER FROM THE APP: text on a work/rest flood is
   `--phase-ink` graphite, never `--ink` white. White on mint is 1.7:1.
--------------------------------------------------------------------------- */

:root {
  --bg: #111316;
  --surface: #1B1E23;
  --surface-alt: #262A31;
  --ink: #F2F4F6;
  --ink-soft: #A7ADB6;
  --ink-faint: #6B7280;

  /* Signal. `work` doubles as the site accent — it is the app's primary CTA. */
  --work: #FF5A36;
  --rest: #2ED3A6;
  --prep: #5B8DEF;
  --done: #F5C542;

  /* Text on top of a signal flood. Graphite, never white. */
  --phase-ink: #111316;

  --line: #2C3138;
  --work-soft: #33170F;
  --rest-soft: #0F2C25;

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 18px 48px rgba(0, 0, 0, 0.6);

  --display: 'Space Grotesk', 'Heebo', system-ui, -apple-system, sans-serif;
  --body: 'Inter', 'Heebo', system-ui, -apple-system, sans-serif;
  --hebrew: 'Heebo', system-ui, -apple-system, sans-serif;

  --radius-card: 20px;
  --content: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

/* The timer never jitters — neither do numbers on the site (SPEC-DESIGN §4). */
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------- brand ---------------------------------
   The mark is the app icon's own geometry (scripts/icon/generate.mjs): twelve
   arcs alternating work/rest, arc #2 lit. Not a generic stopwatch.
-------------------------------------------------------------------------- */

.mark {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
}

.mark path {
  fill: none;
  stroke-width: 12;
  stroke-linecap: butt;
}

.mark .w { stroke: #7E3425; }
.mark .r { stroke: #1E6B58; }
.mark .lit { stroke: var(--work); }

.mark-lg {
  width: 76px;
  height: 76px;
  margin-inline: auto;
  filter: drop-shadow(0 0 32px rgba(255, 90, 54, 0.35));
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.header-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--work); }

/* ----------------------------- store badges ------------------------------
   Arc is on NEITHER store yet. Both badges are inert placeholders carrying a
   data-todo; index.html's STORE_URLS script activates them once filled.
-------------------------------------------------------------------------- */

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  height: 54px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid transparent;
}

.store-badge svg { width: 24px; height: 24px; flex: none; }

.store-badge .badge-copy { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .badge-copy small { font-size: 11px; font-weight: 500; opacity: 0.75; }
.store-badge .badge-copy strong { font-size: 17px; font-weight: 600; }

.store-badge.soon {
  pointer-events: none;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border-color: var(--line);
}

.store-badge.soon::after {
  content: 'Coming soon';
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  background: var(--work);
  color: var(--phase-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 10px;
  white-space: nowrap;
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
}

/* Work-red bloom top-left, mint bloom bottom-right: the app's two signals,
   at 8% — the ground stays graphite, it just is not flat. */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 780px;
  background:
    radial-gradient(48% 52% at 22% 34%, rgba(255, 90, 54, 0.20), transparent 70%),
    radial-gradient(42% 48% at 82% 68%, rgba(46, 211, 166, 0.13), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-copy > * {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.35s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-kicker::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--work);
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  margin: 18px 0 16px;
  text-wrap: balance;
}

/* The app's own lozenge, straight off the store screenshots: work flood +
   graphite ink. */
.hero h1 mark {
  background: var(--work);
  color: var(--phase-ink);
  border-radius: 8px;
  padding: 0.02em 0.14em 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 0 26px;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 18px 0 0;
}

/* Trust chips — the same "No ads / No account" pair the screenshots use. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rest);
  background: var(--rest-soft);
  border: 1px solid color-mix(in srgb, var(--rest) 26%, transparent);
  border-radius: 999px;
  padding: 5px 14px;
}

.chips li::before {
  content: '';
  width: 11px;
  height: 6px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -2px);
}

/* --------------------------- phone frame + shots ------------------------- */

.hero-shot {
  justify-self: center;
  opacity: 0;
  animation: rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 46px;
  padding: 9px;
  background: #050608;
  border: 1px solid #23262B;
  box-shadow: var(--shadow-lift), 0 0 72px rgba(255, 90, 54, 0.18);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

/* -------------------------------- features ------------------------------- */

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
  text-align: center;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 40em;
  font-size: 18px;
  text-align: center;
}

.features { padding: 34px 0 64px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #3A4048;
  box-shadow: var(--shadow-lift);
}

.feature .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--work-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature .icon svg { width: 26px; height: 26px; stroke: var(--work); fill: none; }

/* Two of the six cards carry the rest-mint signal instead, so the grid reads
   as the app's two-colour language rather than one accent repeated. */
.feature.rest .icon { background: var(--rest-soft); }
.feature.rest .icon svg { stroke: var(--rest); }

.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.feature .platform {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------------------------------- gallery -------------------------------- */

.gallery { padding: 20px 0 70px; }

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 24px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-alt) transparent;
}

.gallery-strip figure {
  margin: 0;
  scroll-snap-align: center;
}

.gallery-strip img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ------------------------------- free/iap -------------------------------- */

.pricing { padding: 6px 0 74px; }

.pricing .wrap { max-width: 820px; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 34px 36px;
  text-align: center;
}

.price-card h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 10px; }

.price-card .price-lead {
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 36em;
}

.price-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: start;
}

.price-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 24px;
}

.price-col.premium { border-color: color-mix(in srgb, var(--work) 34%, transparent); }

.price-col .tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rest);
}

.price-col.premium .tag { color: var(--work); }

.price-col h4 { font-size: 17px; margin: 10px 0 4px; }

.price-col .price {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.price-col .price small {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.price-col ul { margin: 8px 0 0; padding: 0; list-style: none; }

.price-col li {
  position: relative;
  padding-inline-start: 24px;
  margin: 9px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.price-col li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 13px;
  height: 7px;
  border-inline-start: 2px solid var(--rest);
  border-bottom: 2px solid var(--rest);
  transform: rotate(-45deg);
}

.price-col.premium li::before { border-color: var(--work); }

.price-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* -------------------------------- support -------------------------------- */

.support { padding: 6px 0 74px; }

.support .wrap { max-width: 820px; }

.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 34px 34px;
}

.support-card h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }

.support-card > p { color: var(--ink-soft); margin: 0 0 22px; max-width: 44em; }

.support-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--work);
  color: var(--phase-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 22px;
  margin-bottom: 26px;
}

.support-mail svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

.faq { display: grid; gap: 14px; }

.faq h3 { font-size: 16px; margin-bottom: 5px; }

.faq p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.faq a { color: var(--work); }

/* ------------------------------- final cta ------------------------------- */

.final-cta {
  text-align: center;
  padding: 6px 0 92px;
}

.final-cta .mark-lg { margin-bottom: 26px; }

.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 0 auto 24px;
  max-width: 15em;
}

.final-cta .store-badges { justify-content: center; }

/* --------------------------------- footer -------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 42px 0 50px;
}

.site-footer .wrap { display: grid; gap: 10px; }

.site-footer a { color: var(--ink); text-decoration-color: var(--line); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}

.footer-brand .mark { width: 30px; height: 30px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 500;
}

/* ------------------------------ legal pages ------------------------------
   English is primary and LTR. The Hebrew column is a separate <article> with
   its own lang/dir, so RTL can never leak into the English one.
-------------------------------------------------------------------------- */

.legal-main { padding: 40px 0 80px; }
.legal-main .wrap { max-width: 780px; }

.legal-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
  font-size: 15px;
  font-weight: 500;
  background: var(--surface);
}

.legal-toggle a {
  padding: 8px 22px;
  text-decoration: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.legal-toggle a.active { background: var(--work); color: var(--phase-ink); font-weight: 600; }

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 40px 44px;
}

/* The Hebrew column swaps the whole face — Space Grotesk has no Hebrew
   glyphs (src/theme/fonts.ts), so a Latin display font here would silently
   fall back to whatever the OS picks. */
.legal-doc[lang='he'],
.legal-doc[lang='he'] h1,
.legal-doc[lang='he'] h2,
.legal-doc[lang='he'] h3 {
  font-family: var(--hebrew);
}

.legal-doc h1 { font-size: 34px; margin-bottom: 4px; }

.legal-doc .effective {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 24px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc strong { color: var(--ink); }
.legal-doc ul { padding-inline-start: 22px; }
.legal-doc li { margin: 6px 0; }

.legal-doc a {
  color: var(--work);
  text-decoration-color: color-mix(in srgb, var(--work) 55%, transparent);
  text-decoration-thickness: 2px;
}

.callout {
  background: var(--work-soft);
  border: 1px solid color-mix(in srgb, var(--work) 30%, transparent);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px 0 4px;
}

.callout, .callout strong { color: var(--ink); }

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 900px) {
  .hero { padding: 44px 0 52px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-nav .opt { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .gallery-strip { grid-auto-columns: minmax(200px, 74vw); padding-inline: 24px; }
  .legal-doc { padding: 26px 22px 32px; }
  .price-card, .support-card { padding: 26px 22px 30px; }
  .header-nav { gap: 14px; font-size: 14px; }
  .store-badge { height: 50px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-shot { animation: none; opacity: 1; }
  .feature { transition: none; }
}
