/* tufty.app — Candy Bento (../tasarim/tasarim-sistemi.md). The home page is the counter itself;
   features are written as pattern rows. Text on pastel is always ink, in both modes. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque.woff2) format('woff2-variations');
  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;
}
/* Latin Extended (pl, tr, cs…): only downloaded when a page uses one of these letters. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree.woff2) format('woff2-variations');
  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: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #F2EFFA;
  --surface: #FFFFFF;
  --ink: #17141F;
  --ink2: #5E5870;
  --line: #DCD5F0;
  --pill: #17141F;
  --on-pill: #F4F1FA;
  --link: #5B3FD9;
  --link-hover: #3F27A8;
  --lavender: #B8A5FF;
  --lavender-locked: #D9D3E8;
  --butter: #FFD05A;
  --bubblegum: #FF9DC9;
  --sky: #9EC4FF;
  --mint: #A3E4C4;
  --tangerine: #FF8A3D;
  --pastel-ink: #17141F;
  --pastel-ink2: #3D3550;
  --display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --surface: #1E1B28;
    --ink: #F4F1FA;
    --ink2: #B5AECA;
    --line: #2E2A3C;
    --pill: #2A2638;
    --link: #C9BAFF;
    --link-hover: #E2D9FF;
    --lavender-locked: #3A3550;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--lavender) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.5 var(--text);
  caret-color: var(--tangerine);
}
::selection { background: var(--butter); color: #17141F; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 0.94; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1; letter-spacing: -0.035em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
.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;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--pill); color: var(--on-pill); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; color: var(--on-pill); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header / footer ---------- */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 800 27px/1 var(--display); letter-spacing: -0.045em;
  color: var(--ink); text-decoration: none;
}
.wordmark .mark { width: 34px; height: 34px; display: block; }
.wordmark:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 0 14px; min-height: 44px; align-items: center; border-radius: 999px;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--tangerine); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (min-width: 720px) { .nav-link { display: inline-flex; } }

.site-foot { margin-top: 96px; padding: 40px 0 56px; border-top: 1.5px dashed var(--line); }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.foot-small { font-size: 14px; color: var(--ink2); display: grid; gap: 4px; }
@media (min-width: 720px) { .foot-small { text-align: right; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--pill); color: var(--on-pill);
  font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.btn:hover { color: var(--on-pill); background: #2E2840; }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.light:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink2); }
@media (prefers-color-scheme: dark) { .btn:hover { background: #3A3550; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
  padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.72);
  font: 700 13px/1 var(--text); color: var(--pastel-ink); white-space: nowrap;
}

/* ---------- home: the counter is the page ---------- */
.home { display: grid; gap: 22px; padding-top: 4px; }
.home .pattern { margin-top: 28px; }
.home > * { min-width: 0; }
.intro { display: grid; gap: 14px; }
.intro .lede { font-size: 18px; color: var(--ink2); max-width: 34ch; }
.intro .lede strong { color: var(--ink); font-weight: 700; }
@media (min-width: 960px) {
  .home {
    grid-template-columns: minmax(0, 1fr) 480px;
    column-gap: clamp(48px, 7vw, 112px); row-gap: 72px; padding-top: 40px;
  }
  .intro { grid-column: 1; grid-row: 1; align-self: end; gap: 22px; }
  .intro .lede { font-size: 21px; }
  .counter { grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: 20px; z-index: 5; }
  .count-card { min-height: clamp(280px, 40vh, 380px); }
  .digits { font-size: 210px; }
  .voice, .pattern, .plans, .fasten { grid-column: 1; }
}

.counter { display: grid; gap: 10px; }
.count-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 4px;
  width: 100%; min-height: clamp(330px, 50svh, 440px);
  padding: 16px 16px 18px; border: 0; border-radius: 36px;
  background: var(--lavender); color: var(--pastel-ink);
  text-align: left; cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition: transform 140ms var(--ease-out), background-color 240ms;
}
.count-card:active { transform: scale(0.97); }
.count-card.is-locked { background: var(--lavender-locked); cursor: default; }
.count-card.is-locked:active { transform: none; }
@media (prefers-color-scheme: dark) {
  .count-card.is-locked { color: #F4F1FA; }
  .count-card.is-locked .chip { background: rgba(255, 255, 255, 0.14); color: #F4F1FA; }
  .count-card.is-locked .strip i.on { background: #F4F1FA; }
}
.count-top { display: flex; justify-content: space-between; gap: 8px; }
.digits {
  position: relative; align-self: center; height: 0.86em; overflow: hidden;
  font: 800 clamp(150px, 44vw, 196px)/0.86 var(--display); letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; margin-top: 10px;
}
.digits span { display: block; }
.digits .roll { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .digits .in-up { animation: in-up 180ms var(--ease-out) both; }
  .digits .out-up { animation: out-up 180ms var(--ease-out) both; }
  .digits .in-down { animation: in-down 180ms var(--ease-out) both; }
  .digits .out-down { animation: out-down 180ms var(--ease-out) both; }
}
@keyframes in-up { from { transform: translateY(70%); opacity: 0; } }
@keyframes out-up { to { transform: translateY(-70%); opacity: 0; } }
@keyframes in-down { from { transform: translateY(-70%); opacity: 0; } }
@keyframes out-down { to { transform: translateY(70%); opacity: 0; } }
.count-foot { display: grid; gap: 10px; padding-right: 92px; }
.count-sub { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.strip i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); transition: background-color 200ms; }
.strip i.on { background: #17141F; }
.hint { font-size: 14px; font-weight: 600; color: var(--pastel-ink2); }
.count-card.is-locked .hint, .count-card.is-locked .count-sub { color: inherit; }
.mascot { position: absolute; right: 10px; bottom: 10px; width: 84px; height: 84px; pointer-events: none; }
.mascot img { display: block; width: 100%; height: 100%; }
.mascot .yay { display: none; }
.count-card.is-goal .mascot .normal { display: none; }
.count-card.is-goal .mascot .yay { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .mascot.hop { animation: hop 320ms var(--ease-out); }
  @keyframes hop {
    30% { transform: translateY(-12px) rotate(-6deg); }
    65% { transform: translateY(0) rotate(4deg); }
  }
}
.snip { position: absolute; width: 14px; height: 5px; border-radius: 999px; pointer-events: none; }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini {
  border-radius: 26px; padding: 14px 14px 14px 16px; color: var(--pastel-ink);
  display: grid; gap: 6px; align-content: start; min-height: 112px;
}
.mini.stitch { background: var(--butter); }
.mini.repeat { background: var(--bubblegum); }
.mini-label { font: 700 12px/16px var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pastel-ink2); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini-num { font: 800 40px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plus {
  width: 48px; height: 48px; border-radius: 999px; border: 0; background: #17141F; color: #F4F1FA;
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: transform 140ms var(--ease-out);
}
.plus:active { transform: scale(0.9); }
.plus svg { width: 22px; height: 22px; }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.caps i { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); transition: background-color 200ms; }
.caps i.on { background: #17141F; }
.control {
  background: var(--pill); border-radius: 999px; padding: 8px; display: flex; gap: 8px; align-items: center;
  min-height: 68px;
}
.ctl {
  border: 0; cursor: pointer; display: grid; place-items: center; border-radius: 999px;
  min-width: 52px; height: 52px; color: #F4F1FA; background: rgba(255, 255, 255, 0.1);
  transition: transform 140ms var(--ease-out), background-color 160ms;
}
.ctl:active { transform: scale(0.94); }
.ctl svg { width: 22px; height: 22px; }
.ctl.undo { flex: 1; background: #F4F1FA; color: #17141F; display: flex; gap: 8px; font: 700 16px/1 var(--text); }
.ctl.undo[disabled] { opacity: 0.55; cursor: default; }
.ctl[aria-pressed='true'] { background: var(--butter); color: #17141F; }

.goal {
  display: none; position: fixed; z-index: 20; left: 8px; right: 8px; bottom: 8px;
  max-height: calc(100svh - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 32px; padding: 12px 20px 20px;
  box-shadow: 0 -6px 30px -10px rgba(23, 20, 31, 0.28), 0 28px 56px -28px rgba(23, 20, 31, 0.6);
}
@media (min-width: 960px) {
  /* Desktop: rise over the reading column, never over the counter it celebrates. */
  .goal { right: auto; width: 480px; left: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); bottom: 16px; }
}
.goal.is-open { display: grid; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .goal.is-open { animation: sheet 460ms var(--ease-out) both; }
  @keyframes sheet { from { transform: translateY(105%); } }
}
.grabber { justify-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 6px; }
.goal h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
@media (max-width: 959px) {
  .goal { padding: 10px 16px 16px; gap: 8px; }
  .goal h2 { font-size: 21px; }
  .goal-actions { margin-top: 0; }
}
.goal p { color: var(--ink2); }
.goal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-weight: 700; font-size: 15px; padding: 6px 4px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--tangerine); }

/* Pattern rows: features written like a pattern, checked off as you count. */
.pattern { display: grid; gap: 18px; }
.pattern-head { display: grid; gap: 8px; }
.pattern-head p { color: var(--ink2); max-width: 46ch; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row {
  display: grid; grid-template-columns: 76px 1fr; gap: 2px 14px; padding: 16px 16px 16px 0;
  border-top: 1.5px dashed var(--line); position: relative;
  transition: background-color 220ms;
}
.row:last-child { border-bottom: 1.5px dashed var(--line); }
.row-n {
  grid-row: span 2; display: flex; align-items: baseline; gap: 8px;
  font: 800 17px/1.3 var(--display); letter-spacing: -0.02em; white-space: nowrap; padding-left: 2px;
}
.row-n::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px; flex: none; transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px var(--line); transition: background-color 200ms, box-shadow 200ms;
}
.row h2, .row h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.row h3 .count { font: 600 15px/1 var(--text); color: var(--ink2); letter-spacing: 0; white-space: nowrap; }
.row p { color: var(--ink2); max-width: 54ch; }
.row.is-done .row-n::before { background: var(--tangerine); box-shadow: none; }
.row.is-current { background: var(--surface); border-radius: 20px; border-top-color: transparent; padding-left: 12px; }
.row.is-current + .row { border-top-color: transparent; }
.row.is-current .row-n::before { box-shadow: inset 0 0 0 2px var(--tangerine); }
@media (max-width: 420px) { .row { grid-template-columns: 64px 1fr; } }

/* Voice row counter: a mint panel that shows what you say and what Tufty counts. Pastel field, so
   the text is always pastel ink; the "Listening…" pill copies the app's. */
.pro-tag {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px;
  background: #17141F; color: #F4F1FA; font: 800 12px/1 var(--text); letter-spacing: 0.04em;
}
.voice-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 0 8px 0 12px; border-radius: 999px; background: var(--mint); color: var(--pastel-ink);
  font: 700 15px/1.2 var(--text); text-decoration: none; transition: transform 140ms var(--ease-out);
}
.voice-chip svg { width: 18px; height: 18px; flex: none; }
.voice-chip:hover { transform: translateY(-1px); color: var(--pastel-ink); }
.voice-chip:active { transform: scale(0.97); }
.home .voice { margin-top: 12px; }
.voice { display: grid; gap: 18px; scroll-margin-top: 16px; }
.voice-head { display: grid; gap: 10px; justify-items: start; }
.voice-head p { color: var(--ink2); max-width: 50ch; }
.voice-demo {
  position: relative; display: grid; gap: 16px; max-width: 640px; overflow: hidden;
  padding: 18px 18px 22px; border-radius: 36px; background: var(--mint); color: var(--pastel-ink);
}
@media (min-width: 720px) { .voice-demo { padding: 24px 28px 28px; } }
.listening {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 16px 0 7px; border-radius: 999px; background: #17141F; color: #F4F1FA; font: 700 15px/1 var(--text);
}
.listening .mic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--mint); color: #17141F; }
.listening .mic svg { width: 17px; height: 17px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--mint); }
.voice-mascot { position: absolute; right: 14px; top: 10px; width: 64px; height: 64px; pointer-events: none; }
@media (min-width: 720px) { .voice-mascot { width: 84px; height: 84px; right: 22px; top: 14px; } }
.voice-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content 24px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.voice-lines li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.voice-lines q {
  justify-self: start; padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: #FFFFFF; color: #17141F;
  font: 800 21px/1.1 var(--display); letter-spacing: -0.02em; white-space: nowrap;
}
.voice-lines .arrow { position: relative; height: 2px; background: #3D3550; color: #3D3550; }
.voice-lines .arrow::after {
  content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
  border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg);
}
.voice-lines .does {
  justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: #17141F; font: 700 15px/1.25 var(--text);
}
.voice-lines li:not(:last-child) .does { background: #17141F; color: #F4F1FA; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .voice-lines { grid-template-columns: max-content 16px minmax(0, 1fr); gap: 10px 8px; }
  .voice-lines q { font-size: 18px; padding: 9px 13px; }
  .voice-lines .does { font-size: 14px; padding: 4px 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .voice-demo.will-play .voice-lines q, .voice-demo.will-play .voice-lines .arrow, .voice-demo.will-play .voice-lines .does { opacity: 0; }
  .voice-demo.is-on .voice-lines q { animation: said 420ms var(--ease-out) forwards; }
  .voice-demo.is-on .voice-lines .arrow { animation: fade 240ms ease-out forwards; }
  .voice-demo.is-on .voice-lines .does { animation: counted 360ms var(--ease-out) forwards; }
  .voice-lines li:nth-child(1) q { animation-delay: 150ms; } .voice-lines li:nth-child(1) .arrow { animation-delay: 500ms; } .voice-lines li:nth-child(1) .does { animation-delay: 650ms; }
  .voice-lines li:nth-child(2) q { animation-delay: 1050ms; } .voice-lines li:nth-child(2) .arrow { animation-delay: 1400ms; } .voice-lines li:nth-child(2) .does { animation-delay: 1550ms; }
  .voice-lines li:nth-child(3) q { animation-delay: 1950ms; } .voice-lines li:nth-child(3) .arrow { animation-delay: 2300ms; } .voice-lines li:nth-child(3) .does { animation-delay: 2450ms; }
  .voice-lines li:nth-child(4) q { animation-delay: 2850ms; } .voice-lines li:nth-child(4) .arrow { animation-delay: 3200ms; } .voice-lines li:nth-child(4) .does { animation-delay: 3350ms; }
  .voice-demo.is-live .wave i { animation: wave 1.1s ease-in-out infinite; }
  .wave i:nth-child(2) { animation-delay: 150ms; } .wave i:nth-child(3) { animation-delay: 300ms; } .wave i:nth-child(4) { animation-delay: 450ms; }
}
@keyframes said { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes counted { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 50% { height: 16px; } }
.voice-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 640px; }
.voice-points li { position: relative; padding-left: 26px; color: var(--ink2); }
.voice-points li strong { color: var(--ink); }
.voice-points li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 10px; height: 10px; border-radius: 999px; background: var(--mint); }

/* Free and Pro, side by side on one sheet. */
.plans { display: grid; gap: 18px; }
.plans-head p { color: var(--ink2); margin-top: 10px; max-width: 56ch; }
.pro-sheet {
  background: var(--lavender); color: var(--pastel-ink); border-radius: 32px; padding: 24px;
  display: grid; gap: 12px; max-width: 640px;
}
.pro-sheet p, .pro-sheet li { color: var(--pastel-ink); }
.pro-sheet a { color: #2E1C8C; }
.pro-sheet ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pro-sheet li { position: relative; padding-left: 26px; }
.pro-sheet li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: #17141F; }

/* Fasten off: the close, in a committed butter field. */
.fasten {
  background: var(--butter); color: var(--pastel-ink); border-radius: 36px;
  padding: 28px 20px 24px; display: grid; gap: 18px; scroll-margin-top: 16px;
}
@media (min-width: 720px) { .fasten { padding: 40px; } }
.fasten p { color: var(--pastel-ink2); }
.fasten h2 { color: var(--pastel-ink); }
.fasten a:not(.btn) { color: #2E1C8C; }

/* ---------- documents (how it works, privacy, terms, support, cancel) ---------- */
.page-head { padding: 32px 0 12px; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head .wrap > * { max-width: 820px; }
.page-head p { font-size: 20px; color: var(--ink2); max-width: 44ch; }
.doc > * { max-width: 70ch; }
.doc > * + * { margin-top: 14px; }
.doc > .wide { max-width: 1000px; }
.doc h2 { margin-top: 52px; font-size: clamp(26px, 3.4vw, 34px); }
.doc h3 { margin-top: 28px; font-size: 20px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--tangerine); font-weight: 800; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 20px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1.5px dashed var(--line); }
.doc th { font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.updated { font-size: 15px; color: var(--ink2); }
.summary { background: var(--lavender); color: var(--pastel-ink); border-radius: 30px; padding: 22px 24px; }
.summary h2 { margin: 0 0 8px; font-size: 28px; }
.summary ul { margin: 0; }
.summary li::marker { color: #17141F; }

.draft {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 22px; padding: 16px 20px; background: var(--butter); color: var(--pastel-ink);
  font-weight: 600; font-size: 15px;
}
.draft svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.draft b { font-weight: 800; }

.doc .rows { margin-top: 8px; }
.doc .rows .row { padding-left: 0; }
.doc .rows .row h2 { margin-top: 0; font-size: 19px; line-height: 1.3; }
.doc .rows .row p { margin-top: 0; }
.doc .rows .row-n::before { background: var(--tangerine); box-shadow: none; }

.stores-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .stores-grid { grid-template-columns: repeat(2, 1fr); } }
.store-card { border-radius: 30px; padding: 24px; display: grid; gap: 12px; align-content: start; color: var(--pastel-ink); }
.store-card.lavender { background: var(--lavender); }
.store-card.butter { background: var(--butter); }
.store-card.mint { background: var(--mint); }
.store-card h2 { font-size: 24px; line-height: 1.2; }
.store-card ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.store-card li::marker { color: #17141F; font-weight: 800; }
.store-card a:not(.btn) { color: #2E1C8C; }
.store-card .btn { justify-self: start; background: #17141F; color: #F4F1FA; }

.faq { display: grid; gap: 0; }
.faq details { border-top: 1.5px dashed var(--line); }
.faq details:last-child { border-bottom: 1.5px dashed var(--line); }
.faq summary {
  cursor: pointer; font: 700 19px/1.35 var(--display); letter-spacing: -0.015em; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5870' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 20px; color: var(--ink2); max-width: 62ch; }

.mail-card { background: var(--lavender); color: var(--pastel-ink); border-radius: 32px; padding: 26px 24px; display: grid; gap: 10px; }
.mail-card p { color: var(--pastel-ink2); }
.mail {
  font: 800 clamp(28px, 6vw, 44px)/1.05 var(--display); letter-spacing: -0.04em; color: #17141F;
  text-decoration: none; overflow-wrap: anywhere;
}
.mail:hover { color: #17141F; text-decoration: underline; text-decoration-color: #17141F; }

.notfound { padding: 48px 0 8px; }
.notfound .wrap { display: grid; justify-items: start; gap: 18px; }
.notfound-mascot { width: 132px; height: 132px; }

/* Mascot fills (tasarim-sistemi.md "Maskot"): white on lavender so the colors never stack. */
.stores-grid { margin: 28px 0 8px; }
.muted { color: var(--ink2); }

/* Store badges (official artwork, written by scripts/build.mjs). Both are sized by their visible art:
   the same height, centred on one line, each with ¼-height clear space (the margin), so the gap between
   them is the same in every language. Google's PNGs are trimmed of transparent padding. */
:root { --badge-h: 48px; }
@media (max-width: 400px) { :root { --badge-h: 44px; } }
.badges { display: flex; flex-wrap: wrap; align-items: center; margin: calc(var(--badge-h) / -4 + 4px) calc(var(--badge-h) / -4); }
.badge { display: block; margin: calc(var(--badge-h) / 4); border-radius: calc(var(--badge-h) / 5); line-height: 0; }
.badge img { display: block; height: var(--badge-h); width: auto; }
.badge:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.hero-badges { margin-top: 12px; }
.foot-badges { margin-bottom: 8px; }
.tm { font-size: 12px; line-height: 1.45; color: var(--ink2); max-width: 60ch; }
@media (min-width: 720px) { .foot-badges { justify-content: flex-end; } .tm { margin-left: auto; } }

/* Languages (scripts/build.mjs): a small menu in the nav, the full list in the footer. */
.head-actions { position: relative; }
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  justify-content: center; padding: 0 10px; border-radius: 999px; cursor: pointer;
  color: var(--ink); font: 700 14px/1 var(--text);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--surface); }
.lang-menu > summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.lang-menu > summary svg { width: 18px; height: 18px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px;
  box-shadow: 0 12px 32px rgba(23, 20, 31, 0.14); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, calc(100vw - 32px)); gap: 2px;
}
.lang-menu a, .foot-langs a { color: var(--ink); text-decoration: none; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current], .foot-langs a[aria-current] { color: var(--link); font-weight: 800; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-langs a { display: inline-flex; min-height: 32px; align-items: center; }
.foot-langs a:hover { text-decoration: underline; }
@media (min-width: 720px) { .foot-langs { grid-column: 1 / -1; } }

/* Language chip (assets/lang.js): one other language, offered once, tiny. In the top bar from 720px;
   on phones a small chip in the bottom-left corner, so it never pushes the hero down. */
.lang-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 2px 0 10px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 700 13px/1 var(--text); white-space: nowrap;
}
.lang-chip a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; min-height: 32px; }
.lang-chip a:hover { text-decoration: underline; }
.lang-chip svg { width: 14px; height: 14px; flex: none; }
.lang-chip button {
  width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2);
  font: 600 17px/1 var(--text); cursor: pointer;
}
.lang-chip button:hover { background: var(--bg); color: var(--ink); }
.lang-chip a:focus-visible, .lang-chip button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 999px; }
@media (max-width: 719px) {
  .lang-chip {
    position: fixed; z-index: 15; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 4px 14px rgba(23, 20, 31, 0.14);
  }
}
/* Long words (de, fi, nl) wrap instead of pushing the page wider. */
h1, h2, h3, .lede, .row h3, .chip, .mini-label, .btn { overflow-wrap: anywhere; hyphens: auto; }

/* Cookie choice (consent.js; only when launch.config.json has a gaMeasurementId). A small card, not
   a wall: the page stays usable. Accept and Decline look the same (equal weight, GDPR / KVKK). */
.consent {
  position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px)); display: grid; gap: 12px; padding: 18px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 24px;
  box-shadow: 0 10px 30px rgba(23, 20, 31, 0.16);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 15px; line-height: 1.45; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .btn { width: 100%; }
@media (max-width: 719px) {
  .consent { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 16px; }
  /* The language chip sits in the same corner; it comes back once the choice is made. */
  body:has(.consent:not([hidden])) .lang-chip { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in 240ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
}
.foot-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); font: 600 15px/1.2 var(--text); text-decoration: underline; text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px; cursor: pointer;
}
.foot-btn:hover { color: var(--link-hover); }
.foot-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }

/* Guides (articles/): breadcrumb, article call to action, index list, related links. 16 Nov 2026. */
.crumbs { padding-top: 18px; font-size: 15px; color: var(--ink2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--ink2); }
.crumbs a { color: var(--link); }
.crumbs [aria-current] { color: var(--ink2); }
.article .page-head h1 { max-width: 22ch; }
.article-cta {
  margin-top: 48px; background: var(--lavender); color: var(--pastel-ink); border-radius: 32px; padding: 24px;
  display: grid; gap: 12px; max-width: 640px;
}
.doc .article-cta h2 { margin-top: 0; font-size: clamp(22px, 3vw, 28px); color: var(--pastel-ink); }
.article-cta p { color: var(--pastel-ink); }
.guide-list { list-style: none; padding-left: 0 !important; display: grid; gap: 14px; }
.guide-list li { background: var(--surface); border-radius: 24px; padding: 20px 22px; display: grid; gap: 6px; }
.guide-list li + li { margin-top: 0; }
.guide-list strong { font-family: var(--display); font-size: 20px; }
.doc .related { margin-top: 40px; }
.doc .related h2 { margin-top: 0; font-size: 22px; }
.doc .related ul { margin-top: 10px; }
.doc aside.note { background: var(--surface); border-radius: 20px; padding: 16px 18px; }

/* Google Play badge before approval (launch.config.json playLive false): links to the download
   section; a small note sits under the unchanged artwork, so both badges keep one line on phones. */
.badge.soon { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; text-decoration: none; }
.soon-note { font: 700 12px/1.2 var(--text); color: var(--ink2); white-space: nowrap; }
.fasten .soon-note, .article-cta .soon-note, .app-sheet .soon-note { color: var(--pastel-ink2); }

/* Web row counter (pages/row-counter.html, assets/row-counter.js). 16 Nov 2026. The home card,
   full size: card + side column on desktop, stacked on phones. */
.home .tool-link { text-align: center; font-size: 15px; color: var(--ink2); padding: 0 8px; }
.page-head .tool-link { font-size: 17px; }
.cta-tool { font-size: 15px; }
.article-cta .cta-tool a { color: #2E1C8C; }
.tool { display: grid; gap: 18px; padding-top: 14px; }
.tool-intro { display: grid; gap: 10px; }
.tool-intro h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 0.98; max-width: 18ch; }
.tool-intro .lede { font-size: 18px; color: var(--ink2); max-width: 52ch; }
.tool-counter { display: grid; gap: 10px; }
.tool-counter .count-card { min-height: clamp(270px, 42svh, 400px); }
.tool-counter .digits { --d: clamp(150px, 44vw, 196px); }
.tool-side { display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) {
  .tool { padding-top: 24px; gap: 26px; }
  .tool-intro .lede { font-size: 20px; }
  .tool-counter { grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: stretch; }
  .tool-counter .count-card { min-height: 460px; }
  .tool-counter .digits { --d: 250px; }
}
/* Long counts shrink so four or five digits still fit the card. */
.tool-counter .digits { font-size: var(--d); }
.tool-counter .digits[data-len='3'] { font-size: calc(var(--d) * 0.74); }
.tool-counter .digits[data-len='4'] { font-size: calc(var(--d) * 0.56); }
.tool-counter .digits[data-len='5'] { font-size: calc(var(--d) * 0.45); }
.tool-counter .count-sub { min-height: 1.5em; }
.bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); overflow: hidden; }
.bar i { display: block; height: 100%; background: #17141F; transform: scaleX(0); transform-origin: left center; transition: transform 220ms var(--ease-out); }
.bar.is-off { visibility: hidden; }
@media (prefers-color-scheme: dark) { .count-card.is-locked .bar i { background: #F4F1FA; } }

.tool-counter .minis { grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 899px) { .tool-counter .minis { grid-template-columns: 1fr 1fr; } }
.tool-counter .mini { min-height: 0; padding: 14px 14px 14px 18px; }
.mini.target { background: var(--bubblegum); }
.mini-btns { display: flex; gap: 8px; }
.plus.soft { background: rgba(255, 255, 255, 0.72); color: #17141F; }
.plus[disabled] { opacity: 0.4; cursor: default; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-weight: 600; font-size: 15px; color: var(--pastel-ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: #17141F; flex: none; }
.target-input {
  width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.72); color: #17141F; font: 800 30px/1 var(--display); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.target-input::-webkit-outer-spin-button, .target-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.target-input::placeholder { color: #5A4F70; font: 700 18px/1 var(--text); letter-spacing: 0; }
.target-input:focus-visible { outline: 3px solid #17141F; outline-offset: 2px; }
.clear {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 999px; background: #17141F; color: #F4F1FA;
  display: grid; place-items: center; cursor: pointer;
}
.clear svg { width: 20px; height: 20px; transform: rotate(45deg); }
.clear[hidden] { display: none; }
.mini-note { font-size: 14px; font-weight: 600; color: var(--pastel-ink2); min-height: 1.5em; }
.tool-counter .control { gap: 6px; }
.ctl[disabled] { opacity: 0.45; cursor: default; }
.ctl.undo[disabled] { opacity: 0.55; }
.tool-keys, .tool-saved { font-size: 14px; color: var(--ink2); padding: 0 6px; }
.tool-keys kbd {
  display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 7px; text-align: center;
  background: var(--surface); box-shadow: inset 0 -2px 0 var(--line); color: var(--ink); font: 700 13px/1.5 var(--text);
}
@media (hover: none) and (pointer: coarse) { .tool-keys { display: none; } }

.tool-guide { margin-top: 40px; }
.tool-guide > h2:first-child { margin-top: 0; }
.tool-guide [id] { scroll-margin-top: 16px; }
.app-sheet {
  margin-top: 56px; background: var(--lavender); color: var(--pastel-ink); border-radius: 32px; padding: 24px;
  display: grid; gap: 12px; max-width: 680px;
}
.doc .app-sheet h2 { margin-top: 0; font-size: clamp(24px, 3.2vw, 32px); color: var(--pastel-ink); }
.app-sheet p, .app-sheet li { color: var(--pastel-ink); }
.app-sheet ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc .app-sheet li + li { margin-top: 0; }
.app-sheet li { position: relative; padding-left: 22px; }
.app-sheet li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: #17141F; }
.app-sheet .badges { margin-top: 2px; }
.tool-more { margin-top: 28px; font-weight: 700; }
/* Japanese has no spaces: break headings at phrase boundaries where the browser can (Chrome 119+). */
:lang(ja) h1, :lang(ja) h2 { word-break: auto-phrase; }
