/* Eucrasia landing — tokens are the app's own palette (src/logic/palette.ts). */
:root {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --ink: #18221e;
  --muted: #4c5a53;
  --line: #dde3dd;
  --herb: #2f6b4f;
  --herb-soft: #dcebe2;
  --saffron: #c9821f;
  --saffron-ink: #8a5510;
  --mid: #5f9e7d;
  --soft: #a9cdb8;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(24 34 30 / .06), 0 18px 40px -18px rgb(24 34 30 / .28);
  --a-food: var(--herb);
  --a-rhythm: var(--saffron);
  --a-body: var(--mid);
  --a-health: var(--soft);
  --display: "Forum", "Noto Serif Georgian", "Noto Serif Armenian", "Times New Roman", serif;
  --body: "Manrope", "Noto Sans Georgian", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111715; --surface: #1a2320; --ink: #e7ece9; --muted: #a6b3ad; --line: #2a3531;
    --herb: #6fbf93; --herb-soft: #1d3329; --saffron: #e5a54a; --saffron-ink: #e5a54a;
    --mid: #4f8e6d; --soft: #2e5443; --on-accent: #1a2320;
    --a-health: #8fb8a2;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111715; --surface: #1a2320; --ink: #e7ece9; --muted: #a6b3ad; --line: #2a3531;
  --herb: #6fbf93; --herb-soft: #1d3329; --saffron: #e5a54a; --saffron-ink: #e5a54a;
  --mid: #4f8e6d; --soft: #2e5443; --on-accent: #1a2320; --a-health: #8fb8a2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.small { font-size: 14px; color: var(--muted); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 56ch; margin: 18px 0 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--herb); margin: 0 0 18px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-mark .a { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-width .3s, opacity .3s; }
.brand-mark .a1 { stroke: var(--a-food); } .brand-mark .a2 { stroke: var(--a-rhythm); }
.brand-mark .a3 { stroke: var(--a-body); } .brand-mark .a4 { stroke: var(--a-health); }
.brand-mark .leaf { fill: var(--herb); }
.brand-mark[data-on] .a { opacity: .35; }
.brand-mark[data-on="food"] .a1, .brand-mark[data-on="rhythm"] .a2, .brand-mark[data-on="body"] .a3, .brand-mark[data-on="health"] .a4 { opacity: 1; stroke-width: 9; }
.brand-word { font-family: var(--display); font-size: 27px; letter-spacing: .04em; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.lang select { font: 600 14px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
@media (max-width: 1040px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s; }
.btn.primary { background: var(--herb); color: var(--on-accent); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { border: 1.5px solid var(--line); background: var(--surface); }
.btn.ghost:hover { border-color: var(--herb); }

/* Phone frame */
.phone { border-radius: 30px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 6px solid var(--ink); aspect-ratio: 9 / 20; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Hero — the signature: the app's mark, scaled up around the Today screen */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ring { position: relative; margin: 0; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-svg .r { fill: none; stroke-width: 30; stroke-linecap: round; transition: stroke-width .25s ease; }
.r1 { stroke: var(--a-food); } .r2 { stroke: var(--a-rhythm); } .r3 { stroke: var(--a-body); } .r4 { stroke: var(--a-health); }
.ring[data-hover="food"] .r1, .ring[data-hover="rhythm"] .r2, .ring[data-hover="body"] .r3, .ring[data-hover="health"] .r4 { stroke-width: 42; }
.hero-phone { position: absolute; left: 50%; top: 50%; width: 37%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 1; }
.ring-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .2s; }
.ring-label:hover, .ring[data-hover] .ring-label.on { transform: scale(1.06); }
.ring-label .dot { width: 12px; height: 12px; border-radius: 50%; }
.l1 { right: -2%; top: 8%; } .l1 .dot { background: var(--a-food); }
.l2 { right: -4%; bottom: 8%; } .l2 .dot { background: var(--a-rhythm); }
.l3 { left: -4%; bottom: 8%; } .l3 .dot { background: var(--a-body); }
.l4 { left: -2%; top: 8%; } .l4 .dot { background: var(--a-health); }

@media (prefers-reduced-motion: no-preference) {
  .ring-svg .r { stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw .9s cubic-bezier(.6, .1, .2, 1) forwards; }
  .ring-svg .r2 { animation-delay: .15s; } .ring-svg .r3 { animation-delay: .3s; } .ring-svg .r4 { animation-delay: .45s; }
  .hero-phone { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .ring-label { animation: fade .5s ease both; animation-delay: .9s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -44%) rotate(-3deg); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .ring { max-width: 460px; margin-top: 8px; }
}
@media (max-width: 480px) {
  .ring-label { font-size: 12px; padding: 6px 10px 6px 8px; }
  .l1, .l4 { top: 2%; } .l2, .l3 { bottom: 2%; }
  .l1, .l2 { right: 0; } .l3, .l4 { left: 0; }
}

/* Facts */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; display: flex; gap: 14px; align-items: baseline; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; color: var(--herb); }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) {
  .facts-in { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 12px; } .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Areas */
.area { padding: clamp(64px, 9vw, 120px) 0; }
.area + .area { border-top: 1px solid var(--line); }
.area-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.area-in.flip .area-copy { order: 2; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 700; font-size: 15px; }
.kicker svg { width: 34px; height: 34px; flex: none; }
.kicker path { fill: none; stroke-width: 6; stroke-linecap: round; }
#food .kicker path { stroke: var(--a-food); } #rhythm .kicker path { stroke: var(--a-rhythm); }
#body .kicker path { stroke: var(--a-body); } #health .kicker path { stroke: var(--a-health); }
.kicker.plain { color: var(--herb); }

.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin: 44px 0 0; }
.feats > div { padding-top: 14px; border-top: 2px solid var(--line); }
.area[data-area] .feats > div { border-top-color: color-mix(in oklab, var(--area) 45%, var(--line)); }
#food { --area: var(--a-food); } #rhythm { --area: var(--a-rhythm); } #body { --area: var(--a-body); } #health { --area: var(--a-health); }
.feats dt { font-weight: 800; font-size: 16px; line-height: 1.35; }
.feats dd { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

.shots { position: sticky; top: 96px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shots .phone:nth-child(2) { transform: translateY(48px); }
.shots .phone:nth-child(3) { grid-column: 1; }
.shots:has(.phone:only-child) { grid-template-columns: minmax(0, 300px); justify-content: center; }
@media (max-width: 900px) {
  .area-in { display: flex; flex-direction: column; gap: 0; }
  .area-copy { display: contents; }
  .area-copy > * { order: 0; }
  .area-in .shots { order: 1; margin-top: 32px; }
  .area-in .feats { order: 2; }
  .shots { position: static; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 24px; margin-inline: -16px; }
  .shots .phone { flex: 0 0 min(62vw, 260px); scroll-snap-align: center; transform: none !important; }
}
@media (max-width: 620px) { .feats { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; } }

.around { background: var(--surface); }

/* Gallery */
.gallery { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.fan { --cur: var(--a-food); position: relative; margin-top: clamp(24px, 4vw, 48px); outline-offset: -3px; }
.fan-arc { position: absolute; left: 50%; top: 58%; width: min(1100px, 130%); height: 260px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.fan-arc path { fill: none; stroke: var(--cur); stroke-width: 26; stroke-linecap: round; opacity: .22; vector-effect: non-scaling-stroke; transition: stroke .5s; }
.fan-stage { position: relative; height: clamp(440px, 52vw, 600px); touch-action: pan-y; }
.fan-item { --w: clamp(180px, 19vw, 248px); position: absolute; left: 50%; top: 46%; width: var(--w); aspect-ratio: 9 / 20; padding: 0; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .45s, filter .45s; }
.fan-item img { width: 100%; height: 100%; object-fit: cover; }
.fan-item.dark { border-color: #050807; }
.fan-item[aria-current="true"] { cursor: default; }
.fan-item:not([aria-current="true"]) { filter: saturate(.7); }
.fan-item:not([aria-current="true"]):hover { filter: none; }
.fan-ctrl { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; width: min(620px, 100% - 32px); margin: 8px auto 0; }
.fan-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.fan-btn:hover { border-color: var(--herb); transform: scale(1.05); }
.fan-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fan-cap { margin: 0; text-align: center; min-height: 92px; }
.fan-area { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fan-area .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cur); transition: background .5s; }
.fan-count { font-weight: 500; font-variant-numeric: tabular-nums; }
.fan-count::before { content: "·"; margin-right: 8px; }
.fan-cap b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 6px 0 4px; }
.fan-cap > span:last-child { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 620px) {
  .fan-stage { height: 430px; }
  .fan-item { --w: 172px; border-radius: 22px; }
  .fan-ctrl { gap: 10px; }
  .fan-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fan-item, .fan-arc path, .fan-area .dot { transition: none; } }

/* Install */
.install { padding: clamp(64px, 9vw, 110px) 0; background: var(--herb-soft); }
.install-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px 64px; }
.install .btn { margin-top: 28px; }
.install .small { margin-top: 18px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 18px; padding: 18px 20px 18px 66px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; font-family: var(--display); font-size: 34px; line-height: 1; color: var(--herb); }
.steps b { display: block; font-weight: 800; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .install-in { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 36px 0 48px; }
.foot p { margin: 0 0 8px; max-width: 70ch; }
