/* IndiKey landing page. Same ink system as the app (docs/12-design-system.md). Light only. */
:root {
  --paper: #F6F7FB;
  --surface: #FBFBFE;
  --card: #FFFFFF;
  --ink: #1E2050;
  --pencil: #5B5F86;
  --faint: #D9DCEB;
  --soft-line: #E6E8F2;
  --indigo: #4F46E5;
  --indigo-press: #3F37C9;
  --indigo-soft: #E4E2FF;
  --indigo-ink: #231C80;
  --highlight: #FFE873;
  --tip: #FFFBE0;
  --ok: #0E7C66;
  --r-a: 24px 8px 26px 10px / 10px 26px 8px 24px;
  --r-b: 12px 18px 10px 20px / 20px 10px 18px 12px;
  --r-c: 30px 12px 28px 14px / 14px 30px 12px 28px;
  --hand: "Shantell Sans", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Kannada", "Chalkboard SE", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Kannada", "Noto Sans Bengali", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --measure: 34em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--soft-line) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
@media (min-width: 900px) { body { font-size: 17.5px; } }
img { max-width: 100%; }
a { color: var(--indigo-ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border: 2px solid var(--ink); }
.skip:focus { left: 12px; z-index: 10; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- The IndiKey lockup ----------
   Mark and wordmark together, sized by the text around them, so it works in the hero, a heading, a button or a sentence.
   The bubble's body spans baseline to just over cap height, and its tail drops below the baseline like a descender.
   The negative margins trim the mark's built-in padding. The image's layout box is shrunk (margin-top) and shifted down
   (top) so it never makes a line taller. */
.lockup { white-space: nowrap; font-family: var(--hand); font-weight: 800; letter-spacing: -0.01em; }
.lockup img {
  display: inline; width: 1.25em; height: 1.25em; max-width: none;
  margin: -0.6em -0.05em 0 -0.2em; vertical-align: baseline; position: relative; top: 0.26em;
}

h1, h2, h3 { font-family: var(--hand); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
h2 { font-weight: 800; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; margin-bottom: 12px; }
h3 { font-weight: 700; font-size: 1.1em; line-height: 1.25; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 32em; margin: 18px 0 22px; }
.section-lead { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; max-width: var(--measure); color: var(--ink); }
.fine { font-size: 0.86em; color: var(--pencil); }
mark { background: linear-gradient(176deg, transparent 50%, var(--highlight) 50%, var(--highlight) 92%, transparent 92%); color: inherit; padding: 0 2px; }

section { padding: clamp(48px, 7vw, 96px) var(--gutter); max-width: 1200px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--indigo); color: #fff; text-decoration: none;
  font: 700 17px/1 var(--body); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .08s;
}
.btn:hover { background: var(--indigo-press); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-quiet {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font: 700 17px/1 var(--body); color: var(--indigo-ink); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--indigo);
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  background: rgba(246, 247, 251, .88); backdrop-filter: blur(8px);
}
.brand { text-decoration: none; color: var(--ink); font: 800 24px/1 var(--hand); padding: 6px 0; }
@media (max-width: 359px) { .brand { font-size: 23px; } .top .btn-small { padding: 0 14px; } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 36px; align-items: center; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 0.9fr; gap: 48px; min-height: min(calc(100svh - 70px), 860px); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.actions .more { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hero .fine { margin-top: 14px; }
.hellos { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hellos li {
  font: 600 16px/1.2 var(--hand); padding: 6px 12px; background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--r-b); filter: url(#ink);
}
.hellos li:nth-child(2) { border-radius: var(--r-a); }
.hellos li:nth-child(4) { border-radius: var(--r-c); }

/* Phone */
/* The phone keeps its proportions and fits the screen height, so the whole hero fits on a laptop. */
.phone-wrap { margin: 0; justify-self: center; width: min(320px, 86vw, calc((100svh - 160px) * 0.47)); min-width: 260px; }
.phone {
  aspect-ratio: 9 / 18.6; border-radius: 44px; border: 10px solid #2A2B45; background: #2A2B45;
  box-shadow: 10px 12px 0 var(--indigo-soft), 10px 12px 0 2px var(--ink);
}
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #EEF0F6; display: flex; flex-direction: column; }
.statusbar { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font: 600 13px/1 var(--body); }
.mic-dot { width: 8px; height: 8px; border-radius: 50%; background: #1DB954; opacity: 0; transition: opacity .2s; }
.screen.listening .mic-dot { opacity: 1; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--faint); font-size: 15px; line-height: 1.2; }
.chat-head small { display: block; color: var(--pencil); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #C9CEE6; display: grid; place-items: center; font-weight: 700; }
.msgs { flex: 1; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.msg { max-width: 84%; padding: 7px 11px; border-radius: 14px; font-size: 14px; line-height: 1.35; background: var(--card); align-self: flex-start; }
.msg .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--indigo-ink); }
.msg.out { align-self: flex-end; background: var(--indigo-soft); animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.composer { padding: 6px 8px 8px; }
.box { min-height: 40px; max-height: 172px; overflow: hidden; background: var(--card); border: 1px solid var(--faint); border-radius: 20px; padding: 9px 14px; font-size: 14px; line-height: 1.4; }
.box .ph { color: #8A8FB0; }
.box .fresh {
  display: block; text-decoration: underline 2px var(--indigo); text-underline-offset: 3px;
  animation: inkdown .6s ease-out both;
}
.box .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--indigo); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.kbd { background: #E3E5EE; padding: 7px 3px 18px; display: flex; flex-direction: column; gap: 6px; }
.kbd div { display: flex; justify-content: center; gap: 4px; }
.kbd i { font-style: normal; width: 8.4%; height: 30px; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 #B9BED3; display: grid; place-items: center; font-size: 13px; color: #3A3D5C; }
.kbd i.w { width: 13%; background: #CDD1E0; font-size: 11px; }
.kbd i.sp { width: 48%; }

/* The bubble, over the chat, just above the keyboard */
.ik { position: absolute; right: 10px; bottom: 214px; display: flex; align-items: center; gap: 7px; z-index: 3; }
.chip {
  font: 700 14px/1 var(--hand); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-b);
  padding: 7px 9px; box-shadow: 1.5px 2px 0 var(--ink); min-width: 34px; text-align: center; transition: transform .2s;
}
.chip.flip { animation: flip .4s ease; }
.bubble {
  position: relative; width: 54px; height: 54px; border-radius: 27px; background: var(--indigo); border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center;
  transition: width .32s cubic-bezier(.3, 1.35, .5, 1);
}
.bubble .mark { width: 38px; height: 38px; }
.bubble .wave, .bubble .timer, .bubble .check, .bubble .cancel, .bubble .outline, .bubble .typing-label { display: none; }
.bubble .cancel { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; place-items: center; margin-right: 10px; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.bubble .wave { gap: 3px; align-items: center; height: 26px; }
.bubble .wave i { width: 3.5px; border-radius: 2px; background: #fff; height: 6px; transition: height .09s; }
.bubble .timer { color: #fff; font: 600 13px/1 var(--body); margin-left: 8px; }
.bubble .check { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); place-items: center; margin-left: auto; font-weight: 700; color: var(--ink); transition: transform .12s, background .12s; }
.screen.pressing .bubble .check { transform: scale(.84); background: var(--indigo-soft); }
.bubble .typing-label { color: #fff; font: 600 14px/1 var(--body); align-items: center; gap: 7px; }
.bubble .typing-label .dots { display: inline-flex; gap: 3px; }
.bubble .typing-label .dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: rise 1s ease-in-out infinite; }
.bubble .typing-label .dots i:nth-child(2) { animation-delay: .15s; }
.bubble .typing-label .dots i:nth-child(3) { animation-delay: .3s; }
.bubble .outline { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); }
.screen.listening .bubble { width: 196px; justify-content: flex-start; padding: 0 6px; border-color: transparent; }
.screen.listening .bubble .cancel { display: grid; }
.screen.listening .bubble .wave i:nth-child(n+9) { display: none; }
.screen.listening .bubble .timer { margin-left: auto; margin-right: 8px; }
.screen.listening .bubble .check { margin-left: 0; flex: none; }
.screen.listening .bubble .mark { display: none; }
.screen.listening .bubble .wave { display: flex; }
.screen.listening .bubble .timer { display: block; }
.screen.listening .bubble .check { display: grid; }
.screen.listening .bubble .outline { display: block; }
.screen.typing .bubble { width: 196px; justify-content: center; border-color: transparent; }
.screen.typing .bubble .mark { display: none; }
.screen.typing .bubble .typing-label { display: inline-flex; }
.screen.typing .bubble .outline { display: block; }

.phone-wrap figcaption { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; text-align: center; font: 600 17px/1.3 var(--hand); }
.replay { font: 700 16px/1 var(--body); color: var(--indigo-ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; min-height: 44px; }

/* ---------- Tour film ----------
   The browser's own player in an ink frame. The smaller radius keeps the player's controls clear of the corners. */
.film { padding-top: clamp(24px, 4vw, 48px); }
.film-frame {
  margin-top: 26px; overflow: hidden;
  background: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-b);
  box-shadow: 6px 6px 0 var(--ink);
}
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }
@media (max-width: 600px) { .film-frame { margin-top: 18px; box-shadow: 4px 4px 0 var(--ink); } }

/* ---------- Try it ---------- */
.try h2, .try .section-lead { text-align: left; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 18px; }
.tabs button, .styles button {
  font: 600 19px/1.15 var(--body); color: var(--ink); background: var(--card); cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--r-b); padding: 10px 16px; min-height: 52px;
  display: inline-flex; align-items: baseline; gap: 8px; transition: background .15s, transform .08s;
}
.tabs button small { font-size: 13px; color: var(--pencil); font-weight: 400; }
.tabs button[aria-selected="true"] { background: var(--indigo-soft); border-color: var(--indigo-ink); box-shadow: 3px 3px 0 var(--ink); }
.styles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.styles button { border-radius: 999px; align-items: center; font-size: 17px; }
.styles button b { font: 700 16px/1 var(--hand); min-width: 26px; text-align: center; }
.styles button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (max-width: 600px) {
  .tabs { gap: 8px; margin: 22px 0 14px; }
  .tabs button { font-size: 17px; padding: 8px 12px; min-height: 48px; }
  .styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .styles button {
    flex-direction: column; justify-content: center; gap: 4px; text-align: center;
    border-radius: var(--r-b); font-size: 15px; line-height: 1.2; padding: 10px 6px;
  }
}
.result {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-a);
  padding: clamp(20px, 4vw, 40px); box-shadow: 6px 6px 0 var(--indigo-soft), 6px 6px 0 2px var(--ink);
  max-width: 980px;
}
.sample { display: none; }
.sample.on { display: block; }
.said { font: 600 15px/1.3 var(--hand); color: var(--pencil); margin-bottom: 10px; }
.written { font-size: clamp(19px, 2vw, 26px); line-height: 1.5; margin-bottom: 18px; min-height: 3em; }
.written.inking { animation: inkin .55s ease-out both; }
.result .note { font-size: 0.86em; color: var(--pencil); margin: 0; }

/* ---------- Switch ---------- */
.switch { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .switch { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lines li {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-b); padding: 14px 18px;
  font-size: 17px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px;
  transition: opacity .45s ease, transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.lines li:nth-child(even) { border-radius: var(--r-c); margin-left: clamp(0px, 4vw, 40px); }
.lines.ready li { opacity: 0; transform: translateY(14px); }
.lines.ready li.in { opacity: 1; transform: none; }
.tag { align-self: flex-start; font: 700 13px/1 var(--body); color: var(--indigo-ink); background: var(--indigo-soft); padding: 6px 9px; border-radius: 8px; }

/* ---------- Movie ---------- */
/* Three fixed lines (four on narrow screens) so the heading never changes height as the words rotate. Each pair's
   width change is animated by app.js, and every line is sized to fit the longest pair. */
.movie { text-align: center; }
.movie .big { font: 800 clamp(34px, 6vw, 72px)/1.1 var(--hand); margin: 0 auto 22px; }
.big-line { display: block; white-space: nowrap; }
.narrow-break { display: none; }
@media (max-width: 560px) {
  .movie .big { font-size: clamp(34px, 11.5vw, 64px); }
  .narrow-break { display: inline; }
}
.swap { display: inline-block; position: relative; transition: width .42s cubic-bezier(.4, 0, .2, 1); }
.formal { display: inline-block; position: relative; }
.swap-native { font-family: "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Bengali", "Noto Sans Malayalam", "Noto Sans Gujarati", "Noto Sans Gurmukhi", "Noto Sans Oriya", var(--hand); font-weight: 600; color: var(--pencil); }
.movie mark {
  display: inline-block; padding: 0 0.09em;
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
}
.big-visual.marked mark { background-size: 100% 100%; transition: background-size .4s cubic-bezier(.5, 0, .3, 1); }

/* The pen strike sits on the word itself, not the animated slot. app.js redraws the path to the word's width in pixels,
   so it fits any script. */
.strike { position: absolute; left: -0.07em; bottom: 0.3em; height: 0.56em; width: calc(100% + 0.14em); overflow: visible; pointer-events: none; }
.strike path {
  fill: none; stroke: var(--ink); stroke-width: 0.075em; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0;
}
.big-visual.struck .strike path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .36s cubic-bezier(.55, .05, .35, 1); }

/* One calm change: the old pair lifts away, the new word is written in, struck, then highlighted. */
.big-visual.leaving .swap { animation: lift-away .3s ease-in forwards; }
.formal.writing { animation: write-in .52s cubic-bezier(.4, 0, .3, 1); }
.swap-en.arriving { animation: arrive .34s ease-out; }
.movie .section-lead { margin: 0 auto; }

/* ---------- Where + steps ---------- */
.where { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .where { grid-template-columns: 1fr 1fr; gap: 64px; } }
.apps { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.apps li { font: 600 16px/1 var(--body); padding: 10px 14px; border: 1.5px dashed var(--ink); border-radius: var(--r-b); background: var(--card); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 16px 74px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-a); }
.steps li:nth-child(2) { border-radius: var(--r-c); }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--indigo); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font: 800 20px/1 var(--hand);
}
.steps p { margin: 0; color: var(--ink); font-size: 0.95em; }

/* ---------- Things ---------- */
.grid { display: grid; gap: 18px; margin-top: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.grid article { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-a); padding: 22px 22px 20px; }
.grid article p { margin-bottom: 0; font-size: 0.95em; }
.grid .t-flip { background: var(--indigo-soft); border-radius: var(--r-c); }
.grid .t-copy, .grid .t-streak { border-radius: var(--r-b); }
.grid .t-writing, .grid .t-offline { border-radius: var(--r-c); }
.grid .t-langs { background: var(--tip); border-style: dashed; }
.grid .t-correct { border-radius: var(--r-b); }
.correct-demo { margin: 14px 0 0; font: 600 18px/1.5 var(--hand); }
.correct-demo s { color: var(--pencil); text-decoration-thickness: 2px; }
@media (min-width: 760px) {
  .t-names { grid-column: span 4; }
  .t-flip { grid-column: span 2; }
  .t-phrases, .t-writing, .t-streak, .t-fix { grid-column: span 3; }
  .t-offline, .t-history, .t-copy { grid-column: span 2; }
  .t-langs, .t-correct { grid-column: span 6; }
}
.wordchips, .langs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wordchips li, .langs li { font: 600 16px/1 var(--body); padding: 9px 12px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-b); }
.wordchips li::after { content: "  ✕"; color: var(--pencil); font-size: 13px; }
.langs li { font-size: 17px; }
.flipdemo { display: flex; gap: 8px; margin-top: 14px; }
.flipdemo > span { font: 700 18px/1 var(--hand); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-b); padding: 8px 10px; box-shadow: 1.5px 2px 0 var(--ink); }
.flipdemo > span:first-child { background: var(--ink); color: #fff; }

/* Writing styles, the app's own preview sentence run through its rules (core/Styling.kt) */
.wstyles { margin: 14px 0 0; display: flex; flex-direction: column; }
.wstyles div { padding: 10px 0; border-top: 1.5px dashed var(--faint); }
.wstyles div:first-child { border-top: 0; padding-top: 2px; }
.wstyles dt { font: 700 15px/1.2 var(--hand); color: var(--indigo-ink); margin-bottom: 3px; }
.wstyles dd { margin: 0; font-size: 17px; line-height: 1.45; }

.phrase-demo { margin: 14px 0 0; }
.phrase-demo .say { display: inline-block; font: 600 17px/1 var(--hand); padding: 10px 14px; background: var(--tip); border: 1.5px solid var(--ink); border-radius: var(--r-b); }

/* A few weeks of the Home heat map, drawn, with no numbers */
.heat { display: grid; grid-template-rows: repeat(7, 15px); grid-auto-flow: column; grid-auto-columns: 15px; gap: 4px; margin-top: 16px; }
.heat i { border-radius: 3px; background: #ECEEF5; }
.heat .l1 { background: #D6D2FD; } .heat .l2 { background: #ABA5F7; } .heat .l3 { background: #7C73EE; } .heat .l4 { background: var(--indigo); }
.heat .now { box-shadow: 0 0 0 2px var(--ink); }

.fixdemo { margin-top: 14px; padding: 14px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-c); }
.fixdemo p { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.fixbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--indigo); color: #fff; font: 700 15px/1 var(--body); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 40px; }
@media (min-width: 960px) { .trust { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.engine { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-a); padding: clamp(22px, 3.5vw, 36px); }
.engine h2 { font-size: clamp(24px, 2.6vw, 30px); }
.facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); border: 1.5px solid var(--ink); }

/* ---------- Get ---------- */
.get { text-align: left; }
.get > * { max-width: 900px; }
.get-steps .fine { margin: 0; }
.get-steps { list-style: none; counter-reset: g; padding: 0; margin: 22px 0 16px; display: flex; flex-direction: column; gap: 16px; }
.get-steps li { counter-increment: g; position: relative; padding-left: 58px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.get-steps li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 20px/1 var(--hand); }

/* ---------- Translate ---------- */
.translate { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .translate { grid-template-columns: 1fr 1fr; gap: 64px; } }
.translate .langs li { display: inline-flex; align-items: baseline; gap: 7px; }
.translate .langs small { font: 400 13px/1 var(--body); color: var(--pencil); }
.translate .fine { margin-top: 16px; }
.tr-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-c);
  padding: clamp(20px, 3.5vw, 34px); box-shadow: 6px 6px 0 var(--indigo-soft), 6px 6px 0 2px var(--ink);
}
.tr-from { color: var(--pencil); font-size: 18px; line-height: 1.45; margin-bottom: 18px; }
.tr-to-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-chip { font: 700 15px/1 var(--hand); color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-b); padding: 6px 8px; box-shadow: 1.5px 2px 0 var(--ink); }
.tr-card .written { font-size: clamp(21px, 2.6vw, 28px); margin: 0; min-height: 0; }

/* ---------- Voice note ---------- */
.voice { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .voice { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } .voice .vn { order: -1; } }
.vn { margin: 0; width: min(440px, 100%); justify-self: center; background: #EEF0F6; border: 2px solid var(--ink); border-radius: var(--r-a); overflow: hidden; }
.vn-chat { padding: 22px 18px 26px; }
.vmsg { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 9px 14px 9px 10px; max-width: 100%; }
.vplay { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-ink); flex: none; }
.vbars { display: inline-flex; align-items: center; gap: 3px; height: 24px; }
.vbars i { width: 3px; border-radius: 2px; background: #8A8FB0; height: 10px; }
.vbars i:nth-child(3n) { height: 18px; } .vbars i:nth-child(4n) { height: 22px; } .vbars i:nth-child(5n) { height: 7px; } .vbars i:nth-child(7n) { height: 15px; }
.vlen { font: 600 13px/1 var(--body); color: var(--pencil); }
.vn-sheet { background: var(--card); border-top: 2px solid var(--ink); border-radius: 22px 22px 0 0; padding: 18px 18px 20px; }
.vn-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.vn-head b { font: 700 21px/1.2 var(--hand); }
.vn-head span { font: 600 14px/1 var(--body); color: var(--pencil); }
.vn-text { border: 2px solid var(--ink); border-radius: var(--r-b); padding: 12px 14px; font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.vn-styles { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.vn-styles span { flex: 1; text-align: center; font: 600 12.5px/1.2 var(--body); padding: 9px 4px; border-left: 1.5px solid var(--ink); }
.vn-styles span:first-child { border-left: 0; }
.vn-styles .on { background: var(--indigo-soft); color: var(--indigo-ink); }
.vn-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.vn-share { font: 700 15px/1 var(--body); color: var(--indigo-ink); }
.vn-copy { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--indigo); color: #fff; font: 700 15px/1 var(--body); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.vn-steps { list-style: none; counter-reset: v; padding: 0; margin: 20px 0 14px; display: flex; flex-direction: column; gap: 12px; }
.vn-steps li { counter-increment: v; position: relative; padding-left: 48px; min-height: 34px; padding-top: 2px; }
.vn-steps li::before { content: counter(v); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 17px/1 var(--hand); }

/* ---------- Gestures ---------- */
.g-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 26px 34px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.g-list li { display: flex; gap: 16px; align-items: flex-start; }
.g-ic { width: 64px; height: 64px; flex: none; overflow: visible; }
.g-list h3 { font-size: 1.05em; margin-bottom: 4px; }
.g-list p { margin: 0; font-size: 0.95em; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 26px 56px; margin-top: 26px; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.qa { padding-top: 18px; border-top: 2px solid var(--faint); }
.qa h3 { font-size: 1.12em; margin-bottom: 8px; }
.qa p { margin: 0; font-size: 0.95em; max-width: var(--measure); }

/* ---------- Footer ---------- */
.foot { max-width: 1240px; margin: 0 auto; padding: 36px var(--gutter) 56px; border-top: 2px dashed var(--faint); }
.foot p { margin: 0 0 6px; }
.foot-brand { font: 800 26px/1.2 var(--hand); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.lost-mark { width: 120px; height: 120px; margin-bottom: 10px; filter: url(#ink); }
.lost h1 { font-size: clamp(40px, 8vw, 80px); margin-bottom: 10px; }

/* ---------- Motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes inkdown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes inkin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes lift-away { to { opacity: 0; transform: translateY(-0.16em); } }
@keyframes write-in { from { clip-path: inset(-0.4em 100% -0.4em -0.2em); } to { clip-path: inset(-0.4em -0.2em -0.4em -0.2em); } }
@keyframes rise { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
