/* Self-hosted so the page has no third-party dependency and renders the same
   offline. All three faces are SIL Open Font License 1.1 — see assets/fonts/OFL.txt.
   Each file is a variable font; one file covers every weight used here. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin.woff2") format("woff2-variations"),
       url("fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("fonts/noto-sans-hebrew.woff2") format("woff2-variations"),
       url("fonts/noto-sans-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200F, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* ADHDTime — site styles.
   Palette and type follow the app's decided identity: near-black shell, the
   escalation ramp as the only ornament, Bricolage Grotesque over Familjen Grotesk.
   The four ramp bands are the colour system: cool far from zero, hot at zero. */

:root {
  --ink:        #0E0F12;
  --surface:    #16181D;
  --surface-2:  #1C1F26;
  --hairline:   #272C34;
  --text:       #ECEDEF;
  --muted:      #9AA1AB;

  /* escalation bands — dim steel → cool → amber → hot */
  --band-1: #4C5B6B;
  --band-2: #7FA2B8;
  --band-3: #E8B04B;
  --band-4: #E4572E;

  --accent: var(--band-3);

  --display: "Bricolage Grotesque", "Noto Sans Hebrew", "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Familjen Grotesk", "Noto Sans Hebrew", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #14161A; padding: 0.6rem 1rem; z-index: 10;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { max-width: 61rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }

/* ---------- masthead ---------- */

.masthead { padding: 1.75rem 0 0; }
.masthead .wrap { display: flex; align-items: center; gap: 0.7rem; }
.mark { width: 26px; height: 26px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.masthead nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 0.9375rem; color: var(--muted); }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--text); }

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

.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem);
  max-width: 16ch;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); max-width: var(--measure); margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); }

/* ---------- the dial + ramp (the signature) ---------- */

.dial {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

.dial-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

.remaining {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.5rem, 2rem + 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 240ms ease;
}
.remaining[data-band="3"] { color: var(--band-3); }
.remaining[data-band="4"] { color: var(--band-4); }

.said {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.7rem);
  color: var(--muted);
  margin-left: auto;
  text-align: right;
  min-height: 1.6em;
  margin-block: 0;
}

@media (max-width: 40rem) {
  .dial-head { display: block; }
  .said { text-align: left; margin: 0.6rem 0 0; }
}
.said b { color: var(--text); font-weight: 500; }

.ramp { width: 100%; height: 92px; display: block; margin-top: 0.75rem; overflow: visible; }
.ramp .tick { transition: opacity 200ms ease, transform 200ms ease; transform-origin: center bottom; }
.ramp .tick[data-on="0"] { opacity: 0.5; }
.ramp .tick[data-on="1"] { opacity: 1; }
.ramp .axis { stroke: var(--hairline); }
.ramp text { font-family: var(--body); font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }

.dial-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }

.btn {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: #14161A;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.4rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.btn:hover { background: #F2C05F; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn svg { width: 17px; height: 17px; }

.hint { color: var(--muted); font-size: 0.9375rem; }

/* ---------- sections ---------- */

section + section { margin-top: clamp(4rem, 10vw, 7rem); }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); max-width: 26ch; }

.promo { display: block; width: 100%; height: auto; margin-top: 2rem; border-radius: 14px; border: 1px solid var(--hairline); background: #000; }
.promo + .hint { margin-top: 0.75rem; }

.reasons { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.reason h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.reason p { color: var(--muted); margin: 0; }

.profiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
}
.card h3 { font-size: 1.25rem; }
.card dl { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.9375rem; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-variant-numeric: tabular-nums; }
.card .note { color: var(--muted); font-size: 0.9375rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hairline); }

.bands { margin-top: 2.5rem; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.band { background: var(--surface); padding: 1.15rem 1.25rem; }
.band .rule { height: 3px; width: 2.25rem; border-radius: 2px; margin-bottom: 0.9rem; }
.band h3 { font-size: 1.0625rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.band p { color: var(--muted); font-size: 0.9375rem; margin: 0.35rem 0 0; }

blockquote.wording {
  margin: 2.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
blockquote.wording span { color: var(--muted); }

.status {
  margin-top: clamp(4rem, 10vw, 7rem);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.status h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.status p { color: var(--muted); max-width: var(--measure); }
.status p:last-child { margin-bottom: 0; }

/* ---------- documents (privacy / support) ---------- */

.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0 0; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); }
.doc .updated { color: var(--muted); font-size: 0.9375rem; margin-top: 0.75rem; }
.doc h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); margin-top: 3rem; }
.doc h3 { font-size: 1.0625rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; margin-top: 2rem; }
.doc p, .doc li { color: #C8CCD2; max-width: var(--measure); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 1.1rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--band-1); }

.callout {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-top: 2rem;
  max-width: var(--measure);
}
.callout p { margin: 0; }

.lang-switch { margin-top: 2.5rem; font-size: 0.9375rem; color: var(--muted); }

[dir="rtl"] { text-align: right; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] p, [dir="rtl"] li { font-family: "Noto Sans Hebrew", var(--body); }
[dir="rtl"] ul { padding-left: 0; padding-right: 1.1rem; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }

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

footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
footer .wrap { display: flex; gap: 0.75rem 1.5rem; flex-wrap: wrap; align-items: baseline; }
footer nav { display: flex; gap: 1.25rem; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text);
}
