/* Ripple landing. Product-site style: white page, Inter, hairline grid frame, two-tone headings,
   product mock-ups on soft gradients, pastel chips. No inline styles (CSP style-src 'self');
   motion only via classes that app.js sets. Breakpoints: 1100 (laptop), 900 (tablet), 600 (phone). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; 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;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #1b1b1f;
  --ink-2: #4b4f58;
  --gray: #737a86;
  --gray-2: #9aa0aa;
  --line: #e7e8ec;
  --line-2: #dcdee3;
  --soft: #f6f7f9;
  --soft-2: #f1f2f5;
  --white: #fff;
  --blue: #2563eb;
  --danger: #d92d20;
  --ok: #12a150;
  --r: 10px;
  --r-lg: 16px;
  --frame: 1392px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 500 16px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.011em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--gray); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* two-tone headings: <b> black, the rest gray */
.duo { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; color: var(--gray-2); max-width: 22em; }
.duo b { color: var(--ink); font-weight: 500; }
.duo--sm { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.22; max-width: 26em; }
.duo--xs { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.3; max-width: 24em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--white); font: inherit; font-size: .9rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #33343a; border-color: #33343a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--line { background: var(--white); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.btn--line:hover { background: var(--soft); border-color: var(--line-2); }
.btn--sm { height: 34px; padding: 0 12px; font-size: .875rem; }
.btn--wide { width: 100%; height: 48px; font-size: 1rem; }

/* announcement + nav */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  background: #000; color: #fff; font-size: .82rem; text-decoration: none; text-align: center;
}
.announce:hover span { transform: translateX(2px); }
.announce span { transition: transform .15s; }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 36px; max-width: calc(var(--frame) + 48px); height: 64px; margin: 0 auto; padding: 0 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.logo__mark { width: 26px; height: 26px; border-radius: 8px; }
.logo--muted { font-size: 1.1rem; }
.logo--muted .logo__mark { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-2); font-size: .94rem; text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-switch { display: flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); }
.lang-switch a { padding: 4px 9px; border-radius: 7px; color: var(--gray); font-size: .75rem; font-weight: 600; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--soft-2); color: var(--ink); }
@media (max-width: 900px) {
  .nav__links, .nav__bot { display: none; }
  .nav__inner { gap: 12px; padding: 0 16px; height: 58px; }
}
@media (max-width: 380px) { .nav__right .btn--sm:last-child { padding: 0 10px; font-size: .8rem; } }

/* frame: hairlines on both sides, sections divided by hairlines */
.frame { max-width: var(--frame); margin: 0 auto; border-inline: 1px solid var(--line); }
@media (min-width: 1440px) { .frame { margin-inline: auto; } }
@media (max-width: 600px) { .frame { border-inline: 0; } }
.frame > section, .frame > ul { border-top: 1px solid var(--line); }
.frame > section:first-child { border-top: 0; }

/* hero */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) var(--pad) 0; text-align: center; overflow: hidden; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; padding: 5px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--white);
  font-size: .85rem; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.tag:hover { background: var(--soft); }
.tag span { color: var(--gray); }
.hero__title { max-width: 14em; margin: 0 auto 22px; font-size: clamp(2.6rem, 6.4vw, 4.5rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; }
.hero__lead { max-width: 34em; margin: 0 auto 30px; color: var(--gray); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.45; }
.hero__cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.showcase {
  position: relative; margin: clamp(48px, 7vw, 88px) calc(-1 * var(--pad)) 0; padding: 0 var(--pad) clamp(48px, 6vw, 80px);
  background:
    repeating-linear-gradient(90deg, rgba(99, 102, 241, .07) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #eef0ff 45%, #dfe4ff 100%);
}
.window {
  position: relative; max-width: 1080px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--soft); box-shadow: 0 30px 80px -30px rgba(40, 40, 120, .35); text-align: left; overflow: hidden;
}
.window__bar { display: flex; gap: 7px; padding: 12px 14px; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__body { display: grid; grid-template-columns: 320px 1fr; gap: 8px; margin: 0 8px 8px; }
.plan, .chatpane { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.plan { padding: 18px; }
.plan__who { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .9rem; font-weight: 600; }
.plan__who img { border-radius: 6px; }
.plan__greet { margin: 0 0 14px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.plan__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.plan__list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; }
.plan__list li em { margin-left: auto; color: var(--gray); font-style: normal; font-size: .78rem; }
.plan__list li.is-done { color: var(--gray); text-decoration: line-through; text-decoration-color: var(--gray-2); }
.plan__list li.is-now { border-color: #b2ccff; background: #f5f8ff; }
.plan__bar { height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.plan__bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2563eb, #7c5cff); }
.plan__meta { margin: 8px 0 14px; color: var(--gray); font-size: .78rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--green { background: #12b76a; } .dot--blue { background: #2e90fa; } .dot--purple { background: #875bf7; } .dot--orange { background: #f79009; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid; border-radius: 6px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.pchip--green { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.pchip--yellow { background: #fefbe8; color: #93370d; border-color: #fde272; }
.pchip--blue { background: #eff4ff; color: #1849a9; border-color: #b2ccff; }
.pchip--purple { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }
.chatpane { display: flex; flex-direction: column; min-height: 420px; overflow: hidden; }
.chatpane__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.chatpane__head img { border-radius: 50%; }
.chatpane__head small { display: block; color: var(--gray); font-size: .75rem; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 22px; flex: 1; background: linear-gradient(180deg, #fafbff, #f3f5fb); }
.msg { max-width: 78%; margin: 0; padding: 8px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.38; }
.msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.chat__buttons { display: flex; gap: 6px; max-width: 78%; }
.chat__buttons span { flex: 1; padding: 7px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--white); font-size: .82rem; text-align: center; }
.js .chat .msg, .js .chat .chat__buttons { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .chat .is-in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .window__body { grid-template-columns: 1fr; }
  .plan { order: 2; }
  .chatpane { min-height: 0; }
}
@media (max-width: 600px) {
  .showcase { margin-inline: -20px; padding-inline: 12px; }
  .window { border-radius: 14px; }
  .window__body { margin: 0 6px 6px; }
  .msg { max-width: 88%; font-size: .86rem; }
}

/* facts: hairline grid like a logo wall */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.facts li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 20px 12px; border-left: 1px solid var(--line); text-align: center; }
.facts li:first-child { border-left: 0; }
.facts b { font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; }
.facts span { color: var(--gray); font-size: .82rem; }
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(4) { border-left: 0; }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { min-height: 100px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(-n+2) { border-top: 0; }
}

/* statement */
.statement { padding: clamp(72px, 9vw, 128px) var(--pad); }
.statement .duo { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; max-width: 19em; }

/* tour: sticky tabs on the left, panels on the right */
.tour { display: grid; grid-template-columns: minmax(240px, 25%) 1fr; }
.tour__tabs { position: sticky; top: 64px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 56px 24px 56px var(--pad); }
.tour__tabs a { position: relative; padding: 6px 0; color: #b8bcc4; font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; transition: color .2s; }
.tour__tabs a:hover { color: var(--ink-2); }
.tour__tabs a.is-on { color: var(--ink); }
.tour__tabs a.is-on::before { content: ""; position: absolute; left: calc(-1 * var(--pad) + 0px); top: 6px; bottom: 6px; width: 2px; background: var(--blue); }
.tour__panels { border-left: 1px solid var(--line); }
.panel-x { border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.panel-x:first-child { border-top: 0; }
.panel-x > h3 { padding: clamp(40px, 5vw, 64px) var(--pad) clamp(32px, 4vw, 48px); }
.stagebox {
  display: grid; place-items: center; gap: 24px; min-height: 380px; padding: clamp(28px, 5vw, 64px) var(--pad);
  border-top: 1px solid var(--line); background: var(--soft);
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 27, 31, .07) 1px, transparent 0); background-size: 18px 18px;
}
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour__tabs { display: none; }
  .tour__panels { border-left: 0; }
}

/* panel mock-ups */
.card-fsrs, .doc-card, .voice-card, .mini-chat { width: min(460px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.card-fsrs__top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 22px; font-size: .82rem; }
.card-fsrs__word { margin: 0; font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; text-align: center; }
.card-fsrs__tr { margin: 4px 0 22px; color: var(--gray); text-align: center; }
.card-fsrs__btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.card-fsrs__btns span { padding: 8px 4px; border: 1px solid; border-radius: 9px; font-size: .78rem; text-align: center; }
.b-red { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.b-orange { color: #b54708; border-color: #fedf89; background: #fffaeb; }
.b-green { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.b-blue { color: #1849a9; border-color: #b2ccff; background: #eff4ff; }
.card-fsrs__next { margin: 16px 0 0; color: var(--gray); font-size: .8rem; text-align: center; }
.curve2 { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.curve2 i { width: 12px; border-radius: 4px; background: #c7d7fe; }
.curve2 i:nth-child(odd) { background: #2563eb; }
.curve2 i:nth-child(1) { height: 100%; } .curve2 i:nth-child(2) { height: 55%; } .curve2 i:nth-child(3) { height: 100%; } .curve2 i:nth-child(4) { height: 70%; }
.curve2 i:nth-child(5) { height: 100%; } .curve2 i:nth-child(6) { height: 82%; } .curve2 i:nth-child(7) { height: 100%; } .curve2 i:nth-child(8) { height: 92%; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #fafbff, #f3f5fb); }
.doc-card__label { margin: 0 0 10px; color: var(--gray); font-size: .78rem; }
.doc-card .chips-row { margin-bottom: 14px; }
.doc-card__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.doc-card__text { margin: 0 0 16px; font-size: 1rem; line-height: 1.7; }
.doc-card del { color: #b42318; text-decoration-thickness: 1.5px; }
.doc-card ins { padding: 1px 4px; border-radius: 4px; background: #ecfdf3; color: #067647; text-decoration: none; }
.doc-card mark { padding: 0 3px; border-radius: 4px; background: #fefbe8; color: inherit; box-shadow: inset 0 -2px 0 #fde272; }
.doc-card__notes { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.doc-card__notes li { display: flex; align-items: center; gap: 10px; }
.voice-card__row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.voice-card__row small { color: var(--gray); }
.voice-card__play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; flex: none; }
.wave2 { display: flex; align-items: center; gap: 3px; height: 36px; flex: 1; }
.wave2 i { flex: 1; height: 30%; border-radius: 2px; background: #2563eb; opacity: .85; animation: wave2 1.3s var(--ease) infinite alternate; }
.wave2 i:nth-child(3n) { animation-delay: -.4s; } .wave2 i:nth-child(3n+1) { animation-delay: -.8s; } .wave2 i:nth-child(4n) { animation-delay: -1.1s; }
@keyframes wave2 { to { height: 100%; } }
.voice-card__text { margin: 0 0 12px; font-size: 1.15rem; font-weight: 500; }
.voice-card__text .ok { color: var(--ok); }
.voice-card__text .bad { color: #b42318; text-decoration: underline wavy #fda29b; text-underline-offset: 4px; }
.voice-card__note { margin: 0; color: var(--gray); font-size: .86rem; }
.stagebox--board { place-items: stretch; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; }
.board__col { display: grid; align-content: start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.board__col p { display: flex; align-items: center; gap: 8px; margin: 2px 2px 4px; font-size: .86rem; font-weight: 600; }
.board__col p em { padding: 0 6px; border-radius: 5px; background: var(--soft-2); color: var(--gray); font-style: normal; font-size: .72rem; }
.tcard { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.tcard b { font-size: .88rem; font-weight: 600; }
.tcard small { color: var(--gray); font-size: .76rem; }
@media (max-width: 600px) {
  .board { grid-template-columns: 1fr; }
  .card-fsrs__btns { grid-template-columns: repeat(2, 1fr); }
  .stagebox { min-height: 0; }
}

/* two cells */
.duo-cells { display: grid; grid-template-columns: 1fr 1fr; }
.cell { display: flex; flex-direction: column; gap: 40px; padding: clamp(36px, 5vw, 56px) var(--pad); }
.cell + .cell { border-left: 1px solid var(--line); }
.askbox { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); margin: auto; padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); font-size: .92rem; }
.askbox span::after { content: "|"; margin-left: 1px; color: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.askbox i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 8px; background: var(--blue); color: #fff; font-style: normal; font-size: .85rem; flex: none; }
.rings { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; }
.rings__c { position: absolute; inset: 0; margin: auto; border: 1px solid var(--line-2); border-radius: 50%; }
.rings__c--1 { width: 100%; height: 100%; }
.rings__c--2 { width: 68%; height: 68%; }
.rings__c--3 { width: 36%; height: 36%; background: var(--white); box-shadow: var(--shadow); border-color: var(--line); }
.rings__core { position: absolute; inset: 0; display: grid; place-items: center; }
.rings__core img { width: 56px; height: 56px; border-radius: 14px; }
.rings .pchip { position: absolute; }
.rings__t1 { left: 4%; top: 24%; } .rings__t2 { right: 0; top: 12%; } .rings__t3 { left: 8%; bottom: 14%; } .rings__t4 { right: 2%; bottom: 22%; }
.js .rings__c { animation: pulse 4.5s var(--ease) infinite; }
.js .rings__c--2 { animation-delay: .4s; } .js .rings__c--3 { animation: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (max-width: 900px) {
  .duo-cells { grid-template-columns: 1fr; }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--line); }
}

/* how */
.how { padding: 0; }
.sec-head { padding: clamp(56px, 7vw, 96px) var(--pad) clamp(36px, 4vw, 56px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 32px var(--pad) 40px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps__n { display: inline-block; margin-bottom: 28px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--gray); font-size: .78rem; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--gray); font-size: .95rem; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; padding: 40px var(--pad); border-top: 1px solid var(--line); background: var(--soft); }
.langs h3 { margin-bottom: 6px; font-size: 1.15rem; }
.langs p { margin: 0; color: var(--gray); }
.langs b { color: var(--ink); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 9px; color: var(--gray); font-size: .88rem; background: transparent; }
.chip--on { border: 1px solid var(--line-2); background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) { .langs { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* apply */
.apply { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr); }
.apply__intro { padding: clamp(56px, 7vw, 96px) var(--pad); }
.kicker { margin: 0 0 14px; color: var(--gray); font-size: .9rem; }
.lead { margin: 22px 0 0; max-width: 32em; color: var(--gray); font-size: 1.02rem; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; font-size: .7rem; font-weight: 700; flex: none; }
.formcard { margin: clamp(24px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.apply { background: linear-gradient(90deg, var(--white) 0 50%, var(--soft) 50% 100%); }
@media (max-width: 900px) {
  .apply { grid-template-columns: 1fr; background: var(--white); }
  .apply__intro { padding-bottom: 0; }
  .formcard { margin: 32px 16px 48px; }
}
.form { display: grid; gap: 20px; }
.step__label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.step__label span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: .75rem; }
.step { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.step--done .step__label span { background: var(--ok); font-size: 0; }
.step--done .step__label span::before { content: "✓"; font-size: .75rem; }
.tg-login { min-height: 44px; }
.hint { margin: 0; color: var(--gray); font-size: .82rem; }
.who { margin: 0; color: var(--ink-2); font-size: .92rem; }
.who a { color: var(--blue); }
.field { display: grid; gap: 7px; }
.field > span { color: var(--ink-2); font-size: .86rem; }
select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--white); color: var(--ink); font: inherit; font-size: .95rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 92px; }
select:focus, textarea:focus { outline: none; border-color: #84adff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.counter { justify-self: end; color: var(--gray-2); font-size: .74rem; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--white); font-size: .88rem; transition: background .12s, border-color .12s, color .12s; }
.segmented label:hover span { background: var(--soft); }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .86rem; cursor: pointer; }
.consent a { color: var(--blue); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.invalid select, .invalid textarea, .invalid .segmented span { border-color: var(--danger); }
.consent.invalid { color: var(--danger); }
.error { margin: 0; padding: 10px 12px; border: 1px solid #fecdca; border-radius: var(--r); background: #fef3f2; color: #b42318; font-size: .88rem; }
.done { padding: 20px 0 6px; text-align: center; }
.done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; font-size: 1.5rem; }
.done h3 { margin-bottom: 8px; font-size: 1.4rem; letter-spacing: -.02em; }
.done p { color: var(--gray); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(240px, 25%) 1fr; }
.faq > h2 { padding: clamp(48px, 6vw, 80px) var(--pad); }
.faq__list { border-left: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { position: relative; padding: 24px 64px 24px var(--pad); list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 1.4rem; font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { background: var(--soft); }
.faq details p { margin: 0; padding: 0 64px 26px var(--pad); max-width: 46em; color: var(--gray); }
.faq details p a { color: var(--blue); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq > h2 { padding-bottom: 24px; }
  .faq__list { border-left: 0; border-top: 1px solid var(--line); }
}

/* closing cta */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 150px) var(--pad); text-align: center;
  background: repeating-linear-gradient(90deg, rgba(99, 102, 241, .06) 0 1px, transparent 1px 7px), linear-gradient(180deg, #fff, #eef0ff); }
.cta .duo { position: relative; margin: 0 auto 30px; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; max-width: 14em; }
.cta .duo b { font-weight: 600; }
.cta .hero__cta { position: relative; }
.cta__rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cta__rings span { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(99, 102, 241, .18); border-radius: 50%; transform: translate(-50%, -50%); }
.cta__rings span:nth-child(1) { width: 420px; height: 420px; }
.cta__rings span:nth-child(2) { width: 720px; height: 720px; }
.cta__rings span:nth-child(3) { width: 1040px; height: 1040px; }

/* footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--frame); margin: 0 auto; padding: 40px var(--pad) 32px; border-inline: 1px solid var(--line); }
.footer__tagline { margin: 14px 0 28px; color: var(--gray); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--gray); font-size: .85rem; }
.footer__row a { color: var(--ink-2); text-decoration: none; }
.footer__row a:hover { color: var(--ink); }
@media (max-width: 600px) { .footer__inner { border-inline: 0; } }

/* privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 22px 96px; }
.doc h1 { margin-bottom: .5em; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05; }
.doc h2 { margin: 1.8em 0 .5em; font-size: 1.3rem; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: .4em; }
.doc a { color: var(--blue); }
.nav__inner > .lang-switch { margin-left: auto; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .chat .msg, .js .chat .chat__buttons { opacity: 1; transform: none; transition: none; }
  .wave2 i, .js .rings__c, .askbox span::after { animation: none; }
  .wave2 i { height: 60%; }
}

[hidden] { display: none !important; }
@media (max-width: 600px) { .tag { font-size: .76rem; padding: 4px 10px; margin-bottom: 22px; } }
