/* PodKitty — shared site styles.
 *
 * Tokens mirror the iOS app (PodKitty/DesignSystem/Theme.swift, ported from
 * the LineVision design system): ink-navy surfaces, one lavender accent,
 * near-flat elevation, monospaced numbers. The receipt-cat colors come from
 * the app icon and are used only for brand moments (paper receipt, mascot).
 */

:root {
  color-scheme: light dark;

  --accent: #5C48C6;
  --accent-pressed: #4B38A8;
  --accent-tint: #F1EEFD;
  --accent-border: #DFD9FA;
  --on-accent: #FFFFFF;

  --ink: #0A1622;
  --body: #2A3642;
  --muted: #5B6B78;
  --faint: #A9B5BF;
  --bg: #F0F4F6;
  --surface: #FFFFFF;
  --surface-2: #F2F5F7;
  --hairline: #E4E9ED;
  --border-strong: #CBD4DB;

  --positive: #0D9463; --positive-tint: #D2F6E5;
  --negative: #B93A3A; --negative-tint: #FADEDE;
  --amber: #B97E0F;    --amber-tint: #FBEFD3;
  --info: #2E6E9E;     --info-tint: #DBEAF4;

  /* The app's hero "ink" card — dark in both modes. */
  --ink-1: #14293D;
  --ink-2: #0E1D2C;
  --ink-text: #F4F8FB;
  --ink-muted: #86ABC4;
  --ink-accent: #A697EE;
  --ink-line: #28506F;

  /* Receipt-cat (app icon). */
  --paper: #FCFBF7;
  --paper-text: #3A3566;
  --paper-rule: #E6E3F8;
  --cat-ink: #2B2660;
  --cat-ear: #C7C2F5;
  --blush: #F2A9C4;
  --gold: #F2B33D;
  --icon-1: #5F58E8;
  --icon-2: #4A43CF;

  /* Category colors, same as the app. */
  --c-produce: #10AC72;
  --c-dairy: #4E8FBE;
  --c-meat: #D14C4C;
  --c-bakery: #B97E0F;
  --c-beverages: #7663DC;
  --c-household: #52616E;
  --c-personal: #B05F8C;
  --c-pharmacy: #0D9463;
  --c-pet: #8C6D4F;

  --shadow-whisper: 0 1px 2px rgba(10, 22, 34, .04);
  --shadow-float: 0 20px 44px -16px rgba(10, 22, 34, .22), 0 2px 6px rgba(10, 22, 34, .05);
  --radius: 16px;
  --radius-lg: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A697EE;
    --accent-pressed: #C4BAF6;
    --accent-tint: #1D2B4F;
    --accent-border: rgba(166, 151, 238, .35);
    --on-accent: #0A1622;

    --ink: #F4F8FB;
    --body: #DCE8F0;
    --muted: #8FAAC0;
    --faint: #5585A8;
    --bg: #0A1622;
    --surface: #0E1D2C;
    --surface-2: #14293D;
    --hairline: #1D3A55;
    --border-strong: #28506F;

    --positive: #10AC72; --positive-tint: rgba(10, 125, 84, .28);
    --negative: #D14C4C; --negative-tint: rgba(158, 43, 43, .30);
    --amber: #D89A1E;    --amber-tint: rgba(143, 98, 8, .28);
    --info: #3D82B4;     --info-tint: rgba(61, 130, 180, .22);

    --ink-1: #14293D;
    --ink-2: #0E1D2C;

    --shadow-whisper: 0 0 0 1px var(--hairline);
    --shadow-float: 0 20px 44px -16px rgba(0, 0, 0, .6), 0 0 0 1px var(--hairline);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono, .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.amt { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.icon { width: 20px; height: 20px; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-pressed); }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn .icon { width: 18px; height: 18px; }

/* Pre-launch status in place of a store badge. */
.launch-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px dashed var(--border-strong);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.launch-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 4px var(--positive-tint);
}
.launch-pill.sm { height: 36px; padding: 0 14px; font-size: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.tag-up { background: var(--negative-tint); color: var(--negative); }
.tag-down { background: var(--positive-tint); color: var(--positive); }
.tag-plus { background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-border); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--hairline); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Language picker: a <details> menu, works without JS. */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; list-style: none; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); }
.lang-menu summary .icon { width: 16px; height: 16px; }
.lang-menu summary .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-menu[open] summary .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 172px; padding: 6px;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-float);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink);
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
.lang-menu a .icon { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close, .site-header.is-open .nav-toggle .i-menu { display: none; }
.site-header.is-open .nav-toggle .i-close { display: block; }

@media (max-width: 1100px) { .header-actions .launch-pill { display: none; } }
@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--hairline); }
  .nav a:hover { background: transparent; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: 16px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink);
}
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 17.5px; color: var(--muted); }
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-whisper);
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- hero ---------- */

.hero { padding: 48px 0 88px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 48px; align-items: center; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em;
  font-weight: 700; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--accent); }
:lang(ko) .hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.12; letter-spacing: -.035em; }
.hero .lede { margin-top: 22px; max-width: 32em; font-size: clamp(17px, 1.7vw, 19.5px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .stage { margin-inline: auto; }
}

/* Hero stage: a fixed 540×640 composition, zoomed down on small screens. */
.stage { position: relative; width: 540px; height: 640px; }
@media (max-width: 580px) { .stage { zoom: .72; } }
@media (max-width: 480px) { .stage { zoom: .64; } }
@media (max-width: 400px) { .stage { zoom: .6; } }
@media (max-width: 370px) { .stage { zoom: .55; } }

/* Paper receipt with the icon's cat ears and torn edge. */
.paper {
  position: absolute; left: 0; top: 92px; z-index: 1; width: 226px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 22px 26px rgba(30, 26, 82, .20)) drop-shadow(0 2px 3px rgba(30, 26, 82, .08));
}
.paper-ears { width: 100%; margin-bottom: -2px; }
.paper-body {
  background: var(--paper); color: var(--paper-text);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px 34px;
  font-family: var(--mono); font-size: 11px; line-height: 1.55;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}
.paper-face { width: 104px; margin: 0 auto 8px; }
.paper-store { text-align: center; font-weight: 700; letter-spacing: .06em; color: var(--cat-ink); }
.paper-meta { text-align: center; font-size: 10px; opacity: .7; }
.paper-lines { margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed var(--paper-rule); }
.paper-lines li, .paper-total { display: flex; justify-content: space-between; gap: 10px; }
.paper-lines li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-total {
  margin-top: 8px; padding-top: 8px; border-top: 1.5px dashed var(--paper-rule);
  font-weight: 700; color: var(--cat-ink);
}
.paper-total .amt { background: var(--gold); color: #3a2a00; padding: 0 6px; border-radius: 6px; }

/* Phone mock of the app's transaction detail screen. */
.phone {
  position: absolute; right: 0; top: 0; z-index: 2;
  width: 296px; height: 600px; padding: 10px;
  border-radius: 52px; background: #0A1622;
  box-shadow: 0 0 0 1.5px #2A3E52, 0 40px 70px -28px rgba(10, 22, 34, .45);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 42px; background: var(--bg);
  display: flex; flex-direction: column;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 4px 26px 0 30px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ph-island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; }
.ph-sys { display: flex; gap: 4px; align-items: center; }
.ph-sys i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.ph-sys b { display: block; width: 20px; height: 10px; margin-left: 4px; border-radius: 3px; border: 1.3px solid currentColor; position: relative; }
.ph-sys b::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.ph-nav { padding: 2px 16px 6px; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.ph-head { margin: 0 12px; padding: 10px 14px 12px; }
.ph-merchant { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ph-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.badge {
  padding: 1px 5px; border-radius: 5px;
  font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em;
}
.badge-rcpt { background: var(--accent-tint); color: var(--accent); }
.ph-total { margin-top: 6px; font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.ph-total small { margin-left: 6px; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ph-eyebrow { padding: 10px 18px 5px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ph-items { margin: 0 12px; padding: 2px 0; }
.ph-items li {
  display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 9px; align-items: center;
  padding: 5px 12px; border-bottom: 1px solid var(--hairline); line-height: 1.35;
}
.ph-items li:last-child { border-bottom: 0; }
.ph-items .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ph-items b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-items small { display: block; font-size: 9.5px; color: var(--muted); }
.ph-items .amt { font-size: 11.5px; font-weight: 500; color: var(--ink); text-align: right; }
.ph-items .tag { font-size: 8.5px; padding: 0 4px; border-radius: 4px; display: block; margin-top: 2px; }
.ph-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 66px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 10px 10px 0;
  background: var(--surface); border-top: 1px solid var(--hairline);
  color: var(--faint);
}
.ph-tabs span { display: flex; justify-content: center; }
.ph-tabs .icon { width: 19px; height: 19px; }
.ph-tabs .on { color: var(--accent); }
.ph-tabs .scan {
  width: 40px; height: 40px; margin-top: -4px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 12px -2px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Floating callouts on the stage. */
.float {
  position: absolute; z-index: 3;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-float);
}
.float-toast {
  left: 44px; top: 30px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: #0E1D2C; color: #F4F8FB; box-shadow: 0 14px 30px -10px rgba(10, 22, 34, .5);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.float-toast .tick {
  width: 20px; height: 20px; border-radius: 50%; background: #10AC72; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.float-toast .tick .icon { width: 12px; height: 12px; }
.float-price { left: 20px; bottom: 0; width: 220px; padding: 14px 16px 12px; }
.float-price .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.float-price b { font-size: 13px; color: var(--ink); }
.float-price .amt { font-size: 15px; font-weight: 600; color: var(--ink); }
.float-price svg { margin-top: 8px; width: 100%; height: 44px; }
.float-price .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------- why: card statement vs line items ---------- */

.compare { display: grid; grid-template-columns: 1fr 56px 1.25fr; align-items: stretch; gap: 0; }
.compare-card { padding: 28px; }
.compare-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stmt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--surface-2);
}
.stmt-row b { display: block; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.stmt-row small { font-size: 12.5px; color: var(--muted); }
.stmt-row .amt { font-size: 15px; font-weight: 600; color: var(--ink); }
.compare-label.is-accent { color: var(--accent); }
.compare-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.compare-note strong { color: var(--ink); font-weight: 600; }
.compare-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.compare-arrow .icon { width: 26px; height: 26px; }
.stack-bar { display: flex; gap: 3px; height: 14px; margin-top: 20px; }
.stack-bar span { border-radius: 4px; background: var(--c); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 18px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.legend .amt { margin-left: auto; font-size: 13.5px; color: var(--ink); }

@media (max-width: 820px) {
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { height: 52px; }
  .compare-arrow .icon { transform: rotate(90deg); }
}
@media (max-width: 420px) { .legend { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
}
.step-icon .icon { width: 22px; height: 22px; }
.step h3 { margin-top: 22px; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features (bento) ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat { display: flex; flex-direction: column; padding: 28px; min-width: 0; }
.feat.span-2 { grid-column: span 2; }
.feat.span-3 { grid-column: span 3; }
.feat.span-4 { grid-column: span 4; }
.feat-head { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.feat-head .icon { width: 20px; height: 20px; }
.feat-head .eyebrow { font-size: 11.5px; }
.feat-head .tag { margin-left: auto; }
.feat h3 { margin-top: 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.feat h3 + p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.feat .viz { margin-top: auto; padding-top: 24px; }
.feat .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.pw { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: end; }
.pw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pw-top b { color: var(--ink); font-size: 15px; }
.pw-top .amt { font-size: 22px; font-weight: 600; color: var(--ink); }
.pw svg { width: 100%; height: auto; margin-top: 10px; }
.pw .axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

.meter { position: relative; height: 10px; border-radius: 999px; background: var(--hairline); margin-top: 14px; }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
.meter > i { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .5; }
.budget-num { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.budget-num small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.budget-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.budget-foot .ok { color: var(--positive); font-weight: 600; }

.range { position: relative; height: 44px; margin-top: 8px; }
.range-track { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 999px; background: var(--hairline); }
.range-band { position: absolute; top: 18px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.range-med { position: absolute; top: 12px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink); opacity: .55; }
.range-you {
  position: absolute; top: 14px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--positive); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--positive);
}
.range-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.range-read { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.range-read strong { color: var(--positive); font-weight: 600; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.pk { align-self: flex-start; background: var(--surface-2); color: var(--body); border-bottom-left-radius: 6px; }
.bubble.pk .amt { color: var(--ink); font-weight: 600; }

.upcoming li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.upcoming li:last-child { border-bottom: 0; }
.cal-day {
  width: 40px; height: 42px; border-radius: 10px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.cal-day small { font-family: var(--mono); font-size: 9px; font-weight: 600; color: var(--negative); letter-spacing: .06em; }
.cal-day b { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.upcoming strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.upcoming span { font-size: 12.5px; color: var(--muted); }
.upcoming .amt { font-size: 14px; color: var(--ink); }

.connect { display: flex; flex-wrap: wrap; gap: 10px; }
.connect div {
  flex: 1 1 200px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 12px; background: var(--surface-2);
}
.connect .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.connect strong { display: block; font-size: 14px; color: var(--ink); }
.connect span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.devices { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat.span-2, .feat.span-3 { grid-column: span 1; }
  .feat.span-4 { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .feat.span-2, .feat.span-3, .feat.span-4 { grid-column: auto; }
  .pw { grid-template-columns: 1fr; gap: 28px; }
  .feat { padding: 24px; }
}

/* ---------- shared ledgers ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; }
.checks .icon { width: 20px; height: 20px; color: var(--positive); margin-top: 2px; }
.group-card { padding: 24px; }
.group-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.group-top strong { display: block; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.group-top span { font-size: 13px; color: var(--muted); }
.avatars { display: flex; }
.avatars i {
  width: 32px; height: 32px; margin-left: -8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
  border: 2px solid var(--surface);
}
.share-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink); }
.share-list li:last-child { border-bottom: 0; }
.share-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.share-list .state { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch.on { background: var(--positive); }
.switch.on::after { left: 19px; }
.group-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.group-note .icon { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- privacy (ink band) ---------- */

.ink-band {
  position: relative; overflow: hidden;
  padding: 64px; border-radius: 28px;
  background: linear-gradient(180deg, var(--ink-1), var(--ink-2));
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-line) 60%, transparent);
}
.ink-band .eyebrow { color: var(--ink-accent); }
.ink-band .h2 { color: var(--ink-text); max-width: 16em; }
.ink-band .intro { margin-top: 16px; max-width: 36em; font-size: 17px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.promise { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid color-mix(in srgb, var(--ink-line) 70%, transparent); }
.promise .icon { width: 24px; height: 24px; color: var(--ink-accent); }
.promise h3 { margin-top: 14px; font-size: 17.5px; letter-spacing: -.01em; color: var(--ink-text); }
.promise p { margin-top: 6px; font-size: 14.5px; }
.ink-band .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; color: var(--ink-accent); font-weight: 600; font-size: 15px; }
.ink-band .more:hover { color: #C4BAF6; }
.ink-band .more .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .ink-band { padding: 40px 24px; border-radius: 22px; }
  .promises { grid-template-columns: 1fr; }
}

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; }
.plan.featured { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-float); }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.plan-desc { margin-top: 6px; font-size: 14.5px; color: var(--muted); min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.price .amt { font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.price span { font-size: 15px; color: var(--muted); }
.price-alt { margin-top: 4px; font-size: 13.5px; color: var(--muted); min-height: 1.6em; }
.price-alt strong { color: var(--positive); font-weight: 600; }
.plan ul { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.plan li .amt { color: var(--ink); font-weight: 600; }
.plan .fine { margin-top: auto; padding-top: 24px; font-size: 12.5px; color: var(--muted); }
.plans-note { max-width: 900px; margin: 20px auto 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px; } .plan-desc { min-height: 0; } }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-child { border-top: 1px solid var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 24px; font-size: 15.5px; color: var(--muted); max-width: 44em; }
.faq .answer a { color: var(--accent); font-weight: 500; }

/* ---------- closing CTA ---------- */

.cta-card { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding: 48px 56px; border-radius: 28px; }
.cta-card img { width: 200px; height: auto; }
.cta-card .h2 { margin-top: 0; }
.cta-card p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.cta-card .hero-cta { margin-top: 26px; }
@media (max-width: 760px) {
  .cta-card { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; text-align: center; }
  .cta-card img { width: 150px; margin-inline: auto; }
  .cta-card .hero-cta { justify-content: center; }
}

/* ---------- footer ---------- */

.site-footer { padding: 64px 0 48px; border-top: 1px solid var(--hairline); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 22em; color: var(--muted); }
.footer-grid h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { margin-top: 14px; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- legal pages ---------- */

.doc-hero { padding: 56px 0 8px; }
.doc-hero h1 { margin-top: 12px; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.doc-hero .meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 40px 0 104px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-top: 12px; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.prose { max-width: 700px; line-height: 1.75; }
.prose .summary { padding: 22px 24px; font-size: 15.5px; }
.prose .summary strong { color: var(--ink); }
.prose h2 { margin: 44px 0 10px; font-size: 21px; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 90px; }
.prose p, .prose li { font-size: 15.5px; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 8px 0; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
}

/* ---------- 404 ---------- */

.lost { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 64px 0; text-align: center; }
.lost img { width: 150px; margin: 0 auto; }
.lost .code { margin-top: 28px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.lost h1 { margin-top: 10px; font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.lost p { margin-top: 12px; color: var(--muted); }
.lost .hero-cta { justify-content: center; }
