/* «Решено.» landing in the app's own language: its tokens, white cards on a light ground, lime actions, Eira in every state.
   Shape rule (the app's): cards 16-24px, buttons 14px, chips and pills fully round, the phone frame 44px. */

@font-face { font-family: "Inter"; src: url("fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* the app's tokens (prototype/styles.css) */
  --lime: #B9FF00;
  --lime-soft: #F1FFD2;
  --lime-dark: #5E8500;
  --lime-text: #3F5C00;
  --bg: #FAFAF7;
  --stage: #E9EAE4;
  --text: #171914;
  --muted: #6B6F66;
  --line: #ECECE6;
  --card: #FFFFFF;
  --soft: #F1F1EC;
  --blue: #3E63DD;
  --blue-soft: #EAF0FF;
  --amber: #B7791F;
  --amber-soft: #FFF5DD;
  --radius: 16px;
  --radius-lg: 24px;

  --font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --script: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --step-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem);

  --margin: clamp(1rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 8vw, 8rem);
  --max: 1280px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--text); }
:target { scroll-margin-top: 5.5rem; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 46ch; }
.head + .lead { margin-top: 1rem; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- brand ---------- */
.logo { font-weight: 900; letter-spacing: -.02em; font-size: 1.5rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo i { font-style: normal; color: var(--lime-dark); }
.script { font-family: var(--script); color: var(--muted); transform: rotate(-6deg); display: inline-block; font-size: 1.25rem; }

/* ---------- controls: the app's buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 14px;
  font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), filter 180ms ease, background-color 180ms ease; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--lime); color: var(--text); }
.btn.dark { background: var(--text); color: #fff; }
.btn.soft { background: var(--soft); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { filter: brightness(.95); }
  .btn.dark:hover { background: #2C3027; }
  .btn.soft:hover { background: #E6E7E0; }
}
.link { color: var(--lime-text); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em;
  transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- building blocks: the app's card, callout, badge ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--lime-soft); color: var(--lime-text); }
.badge.lime { background: var(--lime); color: var(--text); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--lime-soft); }
.callout img { width: 5.5rem; height: auto; }
.callout b { display: block; font-size: 1.125rem; letter-spacing: -0.01em; }
.callout p { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }

/* Eira as in the app: her pictures have a white ground, so she sits in a soft halo on the page and on a white tile inside coloured cards */
.eira-halo { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.eira-tile { background: #fff; border-radius: 20px; padding: .4rem; }

/* the app's desktop stage: a phone frame around a real screen */
.phone { position: relative; width: 100%; max-width: 20rem; aspect-ratio: 390 / 844; border-radius: 44px; overflow: hidden; background: var(--bg);
  box-shadow: 0 0 0 10px var(--text), 0 30px 80px rgba(23, 25, 20, .22); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- navigation ---------- */
.nav-bar { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 247, .94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: .9375rem; font-weight: 500; }
.nav-list a:not(.btn) { text-decoration: none; }
.nav-list a:not(.btn):hover { color: var(--lime-text); }
.nav .btn { min-height: 2.75rem; padding: 0 1.1rem; font-size: .9375rem; border-radius: 12px; }
@media (max-width: 56rem) { .nav-list .nav-links { display: none; } }

/* ---------- hero: the welcome screen, grown up ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--gutter); align-items: center; }
.hero h1 { font-size: var(--step-display); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 1.5rem; color: var(--text); max-width: 34ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero .script { margin-top: 2rem; margin-left: .5rem; }
.hero-art { position: relative; display: grid; justify-items: end; }
.hero-art .phone { max-width: 19rem; }
.hero-eira { position: absolute; left: 0; bottom: -2rem; width: clamp(11rem, 18vw, 15.5rem); }
.bubble { position: absolute; left: 2%; top: 8%; max-width: 15rem; padding: .9rem 1.1rem; border-radius: 20px 20px 20px 6px; background: var(--card);
  border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; line-height: 1.35; box-shadow: 0 12px 30px -18px rgba(23, 25, 20, .35); }
.bubble span { display: block; font-weight: 400; color: var(--muted); margin-top: .2rem; }
@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero-art { justify-items: center; margin-top: 3rem; padding: 0 0 2rem; }
  .hero-art .phone { max-width: 16rem; }
  .hero-eira { left: -4%; bottom: -1rem; width: 9.5rem; }
  .bubble { left: auto; right: -2%; top: -1.5rem; max-width: 12rem; font-size: .875rem; }
}

/* ---------- showcase: a real document, chosen with the app's segment control ---------- */
.showcase .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.segment { margin-top: 2rem; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--soft); }
.segment button { min-height: 2.75rem; padding: 0 1.1rem; border-radius: 12px; font-weight: 600; color: var(--muted);
  transition: background-color 240ms var(--ease-out), color 240ms ease, transform 140ms var(--ease-out); }
.segment button:active { transform: scale(.97); }
.segment button[aria-checked="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(23, 25, 20, .12); }
.answer { margin-top: 1.5rem; display: grid; gap: .6rem; justify-items: start; }
.answer-box { padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--lime-soft); font-size: 1.0625rem; font-weight: 600; }
.doc { padding: clamp(.75rem, 2vw, 1.25rem); background: var(--stage); border-radius: var(--radius-lg); }
.doc-page { position: relative; background: #fff; overflow: hidden; aspect-ratio: 900 / 1080; border-radius: 10px; }
.doc-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-page img[hidden] { display: none; }
@media (max-width: 56rem) { .showcase .wrap { grid-template-columns: 1fr; } .segment { display: grid; width: 100%; } }

/* ---------- how it works: the app's order timeline beside the real screen ---------- */
.how { background: var(--card); }
.how .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.timeline { margin-top: 2.5rem; display: grid; }
.tl { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-bottom: 2rem; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: calc(1.5rem - 1.5px); top: 3rem; bottom: 0; width: 3px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--lime); }
.tl-dot { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.tl.done .tl-dot { background: var(--lime); color: var(--text); }
.tl.now .tl-dot { background: var(--text); box-shadow: 0 0 0 8px var(--lime-soft); }
.tl.now .tl-dot::after { content: ""; width: .9rem; height: .9rem; border-radius: 50%; background: var(--lime); }
.tl-dot svg { width: 1.25rem; height: 1.25rem; }
.tl h3 { font-size: 1.25rem; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .6rem; }
.tl p { margin-top: .3rem; color: var(--muted); }
.how-art { display: grid; justify-items: center; gap: 2rem; }
.how-art .callout { max-width: 24rem; }
@media (max-width: 56rem) { .how .wrap { grid-template-columns: 1fr; } .how-art { margin-top: 1rem; } .how-art .phone { max-width: 16rem; } }

/* ---------- proof: the app's cards ---------- */
.proof-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof-grid .card { padding: 1.5rem; display: grid; align-content: start; gap: .6rem; }
.proof-grid .card h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.15; }
.proof-grid .card p { color: var(--muted); }
.proof-grid .big { grid-row: span 2; background: var(--lime); border-color: var(--lime); align-content: space-between; }
.proof-grid .big h3 { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); letter-spacing: -0.05em; line-height: .95; }
.proof-grid .big p { color: var(--text); font-size: var(--step-lead); line-height: 1.35; }
.proof-grid .eira-card { grid-column: span 2; background: var(--lime-soft); border-color: var(--lime-soft); grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem; }
.proof-grid .eira-card img { width: 7rem; }
@media (max-width: 56rem) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid .big, .proof-grid .eira-card { grid-row: auto; grid-column: auto; }
  .proof-grid .eira-card img { width: 5.5rem; }
}

/* ---------- subjects: cards with a round photo, like the app's discipline chips ---------- */
.subjects-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr)); gap: 12px; }
.subject { padding: 1.1rem; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.subject img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--soft); }
.subject h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.subject p { margin-top: .25rem; font-size: .9375rem; color: var(--muted); }
.subject .badge { margin-top: .6rem; white-space: normal; }
.also { grid-column: 1 / -1; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.also h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .45rem .9rem; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9375rem; }
.also p { margin-top: 1rem; color: var(--muted); }

/* ---------- pricing: the app's balance screen ---------- */
.pricing { background: var(--stage); }
.price-layout { margin-top: 2.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.price-main { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--lime-soft); border-color: var(--lime-soft); display: grid; gap: 1.25rem; align-content: start; position: relative; overflow: hidden; }
.price-main .tag { font-size: var(--step-lead); margin-top: -.25rem; }
.price { font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 900; letter-spacing: -0.05em; line-height: .9; }
.price small { font-size: .3em; letter-spacing: -0.01em; font-weight: 700; margin-left: .3em; }
.price-main ul { display: grid; gap: .45rem; max-width: 30rem; }
.price-main li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; align-items: start; }
.price-main li svg { width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: var(--lime-text); }
.price-main .btn { justify-self: start; }
.price-list { display: grid; gap: 12px; }
.plan { padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; }
.plan b { font-size: 1.125rem; }
.plan span { color: var(--muted); font-size: .9375rem; grid-column: 1; }
.plan strong { grid-row: 1 / span 2; grid-column: 2; font-size: 1.75rem; letter-spacing: -0.03em; }
.plan.gift { border: 2px solid var(--lime); gap: .4rem 1rem; }
.plan.gift .badge { justify-self: start; grid-column: 1; }
.plan.gift strong { grid-row: 1 / span 3; color: var(--lime-text); font-size: 2.5rem; }
.plan.gift .btn { grid-column: 1 / -1; margin-top: .5rem; min-height: 2.75rem; }
.per-day { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; justify-self: start; margin-top: -.5rem; padding: .5rem .9rem; border-radius: 16px; background: var(--card); font-weight: 500; color: var(--muted); }
.per-day b { color: var(--text); font-weight: 800; }
@media (max-width: 56rem) {
  .price-layout { grid-template-columns: 1fr; }
  .price-main .btn { justify-self: stretch; }
  .price-list { display: contents; }
  .plan.gift { order: -1; }
}

/* ---------- faq: the app's details ---------- */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-side { position: sticky; top: 6.5rem; display: grid; gap: 1.5rem; }
.faq-side img { width: 9rem; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 180ms ease; }
.faq details[open] { border-color: var(--lime); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.5rem; gap: 1rem; align-items: center; min-height: 4rem;
  padding: .9rem 1.25rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--soft); position: relative; transition: background-color 180ms ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 2px; margin: -1px 0 0 -.35rem; background: currentColor;
  transition: transform 240ms var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--lime); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }
@media (max-width: 56rem) { .faq .wrap { grid-template-columns: 1fr; } .faq-side { position: static; grid-template-columns: 1fr auto; align-items: end; } .faq-side img { width: 6rem; } }

/* ---------- final call: the app's «Готово!» ---------- */
.final { padding-bottom: var(--section); }
.final .card { padding: clamp(1.5rem, 4vw, 3rem); background: var(--lime); border-color: var(--lime); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.final img { width: clamp(10rem, 22vw, 17rem); padding: .75rem; }
.final h2 { font-size: var(--step-head); }
.final p { margin-top: .75rem; font-size: var(--step-lead); }
.final .btn { margin-top: 1.75rem; }
@media (max-width: 56rem) { .final .card { grid-template-columns: 1fr; justify-items: start; } .final img { width: 11rem; } .final .btn { width: 100%; } }

/* ---------- footer ---------- */
.footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 2rem; }
.foot .logo { font-size: 1.75rem; }
.foot .tagline { margin-top: .6rem; color: var(--muted); }
.foot ul { display: grid; gap: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lime-text); }
.foot p { color: var(--muted); }
.credits { margin-top: 2.5rem; font-size: .8125rem; color: var(--muted); max-width: 80ch; }
.copy { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
@media (max-width: 56rem) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child, .foot > :last-child { grid-column: 1 / -1; } }

/* ---------- motion: content stays visible without JavaScript ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .js .hero-eira { opacity: 0; transform: translateY(28px) rotate(-4deg); animation: wave-in 1100ms var(--ease-out) 450ms forwards; }
  .js .bubble { opacity: 0; transform: scale(.85); transform-origin: 0 100%; animation: pop 600ms var(--ease-out) 1100ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .doc-page img.is-swapped { animation: swap 520ms var(--ease-out); }
  .float { animation: float 6s var(--ease-soft) 1.6s infinite alternate; }
  .tl.now .tl-dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wave-in { to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px var(--lime-soft); } }
