/* #EDIT (10242026): WS1 — new file. Shared styles for zerobased.org.
   Tokens mirror the app: Light theme, Graphite dark theme (#1c1c1e / #2c2c2e / #fefefe),
   SemanticPalette (pos / warn / neg / income) and category identity colors.
   The site follows the device's light/dark setting. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --s1: #ffffff;
  --s2: #ececf0;
  --line: rgba(0, 0, 0, 0.08);
  --fg: #0a0a0a;
  --fg2: rgba(10, 10, 10, 0.72);
  --fg3: rgba(10, 10, 10, 0.6);
  --track: rgba(0, 0, 0, 0.08);
  --chip: rgba(0, 0, 0, 0.06);
  --pos: #2e8b57;
  --warn: #b7791f;
  --neg: #c8374f;
  --inc: #2a86c2;
  --bar: #2a86c2;
  --c-groceries: #1f9a8b;
  --c-dining: #e0742a;
  --c-shopping: #8a5ae6;
  --c-transport: #2f6fe0;
  --phone: #0a0a0a;
  --pbg: #f2f2f7;
  --pcard: #ffffff;
  --accent: #33cc66;
  --onaccent: #0d0d0d;
  --mark: rgba(183, 121, 31, 0.18);
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --s1: #1c1c1e;
    --s2: #2c2c2e;
    --line: rgba(255, 255, 255, 0.09);
    --fg: #fefefe;
    --fg2: rgba(254, 254, 254, 0.72);
    --fg3: rgba(254, 254, 254, 0.54);
    --track: rgba(255, 255, 255, 0.1);
    --chip: rgba(255, 255, 255, 0.1);
    --pos: #4ca97a;
    --warn: #e0a33b;
    --neg: #e15b72;
    --inc: #5bb4e1;
    --bar: #5bb4e1;
    --c-groceries: #2bb3a3;
    --c-dining: #f08a3c;
    --c-shopping: #a77bf3;
    --c-transport: #4c8dff;
    --phone: #000000;
    --pbg: #1c1c1e;
    --pcard: #2c2c2e;
    --mark: rgba(224, 163, 59, 0.22);
    --shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.72;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 24px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dot-accent { background: var(--accent); }
.dot-pos { background: var(--pos); }
.dot-warn { background: var(--warn); }
.dot-ring { background: transparent; border: 2px solid var(--warn); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark rect { fill: var(--fg); }
.brand-mark .ring { fill: none; stroke: var(--bg); }
.brand-mark .pip { fill: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--fg2);
}

.nav-links a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.menu {
  display: none;
  position: relative;
}

.menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--s1);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
}

.menu-panel a:hover {
  background: var(--chip);
  opacity: 1;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(48px, 7vw, 96px);
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg2);
  max-width: 520px;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 500px;
}

.notify input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--s1);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.notify input::placeholder {
  color: var(--fg3);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--onaccent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.notify .btn-accent {
  flex: 1 0 auto;
}

.btn-accent:hover {
  filter: brightness(1.06);
  opacity: 1;
}

.btn-accent[disabled] {
  opacity: 0.6;
  cursor: default;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify-status:empty {
  display: none;
}

.notify-status {
  max-width: 500px;
  font-size: 15px;
  font-weight: 600;
}

.notify-status.ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--s1);
}

.note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg3);
}

.hero-art {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* ---------- Phone recreation (WS2 replaces with real screenshots) ---------- */

.phone {
  flex: 0 0 auto;
  width: 330px;
  height: 690px;
  max-width: 100%;
  padding: 11px;
  border-radius: 54px;
  background: var(--phone);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 30px 16px 0;
  border-radius: 44px;
  background: var(--pbg);
  overflow: hidden;
}

.ph-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ph-month { font-size: 12px; font-weight: 600; color: var(--fg3); }
.ph-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

.ph-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pcard);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
}

.ph-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
}

.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pcard);
  font-size: 12px;
  font-weight: 600;
}

.ph-chip .dot { width: 7px; height: 7px; background: var(--pos); }
.ph-big { margin-top: 6px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ph-sub { font-size: 13px; color: var(--fg2); }

.ph-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.ph-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ph-tile {
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--pcard);
}

.ph-tile span { display: block; font-size: 11px; color: var(--fg3); }
.ph-tile strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }

.ph-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--pcard);
}

.ph-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-card-head strong { font-size: 15px; font-weight: 600; }

.pace-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--fg3);
}

.pace-key i {
  width: 1.5px;
  height: 11px;
  background: var(--fg3);
}

.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 58px;
  border-radius: 29px;
  background: var(--pcard);
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg3);
}

.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tabbar .on { color: var(--fg); }

/* ---------- Budget rows and bars ---------- */

.brow { margin-top: 12px; }

.brow-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.brow-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brow-amt { color: var(--fg2); white-space: nowrap; }

.swatch {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.sw-groceries { background: var(--c-groceries); }
.sw-dining { background: var(--c-dining); }
.sw-shopping { background: var(--c-shopping); }
.sw-transport { background: var(--c-transport); }

.bar {
  position: relative;
  height: 6px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--track);
}

.bar > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bar);
}

.bar > b.warn { background: var(--warn); }
.bar > b.neg { background: var(--neg); }
.bar > b.done { background: var(--fg); opacity: 0.4; }

.bar > i {
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 12px;
  background: var(--fg);
  opacity: 0.45;
}

/* ---------- Highlights strip ---------- */

.highlights {
  border-block: 1px solid var(--line);
}

.highlights ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-size: 14px;
  color: var(--fg2);
}

.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Sections ---------- */

.section { padding-top: clamp(96px, 11vw, 160px); }
.section.first { padding-top: clamp(72px, 9vw, 128px); }
.section-head { max-width: 740px; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg3);
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg2);
}

/* ---------- Pace (interactive) ---------- */

.pace-card {
  --status: var(--pos);
  margin-top: 48px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  background: var(--s1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.pace-card[data-state="ahead"],
.pace-card[data-state="over"] {
  --status: var(--warn);
}

.pace-stats {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
  font-weight: 600;
}

.status-chip .dot { width: 9px; height: 9px; background: var(--status); }
.pace-big { font-size: 60px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.pace-sub { margin-top: -4px; font-size: 15px; color: var(--fg2); }
.pace-bar { height: 8px; margin-top: 8px; }
.pace-bar > b { background: var(--status); }
.pace-bar > i { top: -4px; width: 2px; height: 16px; border-radius: 1px; opacity: 0.5; }
.pace-left { font-size: 14px; color: var(--fg2); }

.tiles2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.tile-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg);
}

.tile-stat span { display: block; font-size: 12px; color: var(--fg3); }
.tile-stat strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; }

.pace-chart-col {
  flex: 2 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pace-chart {
  display: block;
  width: 100%;
  height: auto;
}

.slider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.slider-row label {
  min-width: 104px;
  font-size: 15px;
  font-weight: 600;
}

.slider-row input[type="range"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.slider-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg3);
}

.no-js .slider-row,
.no-js .slider-hint {
  display: none;
}

/* Chart strokes and fills (hero phone + pace card) */
.ln-budget { fill: none; stroke: var(--fg3); stroke-width: 1; stroke-dasharray: 3 4; }
.ln-prior { fill: none; stroke: var(--fg3); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: 0.6; }
.ln-pace { stroke: var(--fg3); stroke-width: 1.2; }
.ln-axis { stroke: var(--line); stroke-width: 1; }
.ln-today { stroke: var(--fg3); stroke-width: 1; }
.spend-area { fill: var(--status, var(--pos)); fill-opacity: 0.16; }
.spend-line { fill: none; stroke: var(--status, var(--pos)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spend-dot { fill: var(--status, var(--pos)); stroke: var(--pbg); stroke-width: 2; }
.pace-card .spend-line { stroke-width: 3; }
.pace-card .spend-area { fill-opacity: 0.14; }
.pace-card .spend-dot { stroke: var(--s1); stroke-width: 3; }

/* Chart key and axis live in HTML so they stay readable when the chart scales down on phones */
.chart-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--fg3);
}

.chart-key i {
  display: inline-block;
  width: 16px;
  margin-right: 7px;
  vertical-align: middle;
  border-top: 2px solid;
}

.chart-key .k-pace { border-top-width: 1.5px; border-color: var(--fg3); }
.chart-key .k-spend { border-top-width: 3px; border-color: var(--status); }
.chart-budget { margin-left: auto; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  font-size: 13px;
  color: var(--fg3);
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
  margin-top: 36px;
}

.legend > div {
  display: flex;
  gap: 12px;
}

.legend .dot { width: 10px; height: 10px; margin-top: 6px; }
.legend strong { display: block; font-size: 16px; font-weight: 600; }
.legend p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--fg2); }

/* ---------- Budgeting styles ---------- */

.two-up {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}

.card {
  flex: 1 1 440px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card-copy { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--fg2); }

.panel {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel .brow { margin-top: 0; }
.panel .brow-top { align-items: center; font-size: 14px; }
.panel .brow-name { gap: 8px; font-weight: 500; }
.panel .swatch { width: 9px; height: 9px; }
.panel .bar { height: 7px; margin-top: 8px; }
.panel .bar > i { height: 13px; }

.panel-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.panel-total span { color: var(--fg2); }
.panel-total strong { font-weight: 600; }
.muted { color: var(--fg3); font-weight: 400; }

@media (max-width: 520px) {
  .panel .muted { display: none; }
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg2);
}

/* ---------- Feature tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.tile {
  padding: 24px;
  border-radius: 24px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.tile-copy { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--fg2); }

.tile-ui {
  height: 212px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.ui-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg3);
}

.txn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.txn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.txn-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  opacity: 0.9;
}

.txn-name { font-weight: 500; }
.txn-cat { font-size: 12px; color: var(--fg3); }
.amt-in { color: var(--inc); font-weight: 600; }
.bg-groceries { background: var(--c-groceries); }
.bg-dining { background: var(--c-dining); }
.bg-income { background: var(--inc); }

.tile-ui.rule {
  justify-content: center;
  gap: 16px;
  padding: 18px;
}

.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rule-key {
  flex: 0 0 44px;
  padding-top: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg3);
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--s2);
  font-size: 13px;
}

.rule-sep {
  height: 1px;
  background: var(--line);
}

.up {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.up-date {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--s2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.up-date small { font-size: 9px; font-weight: 700; color: var(--fg3); }
.up-date b { margin-top: 2px; font-size: 15px; font-weight: 700; }
.up-main { flex: 1 1 auto; min-width: 0; }
.up-main span { display: block; font-size: 12px; color: var(--fg3); }

.tile-ui.flow {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tile-ui.flow svg {
  display: block;
  width: 100%;
  height: auto;
}

.tile-ui.nw {
  justify-content: space-between;
  padding: 16px;
}

.nw-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.nw-label { font-size: 12px; color: var(--fg3); }
.nw-big { margin-top: 2px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.nw-delta { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--pos); }
.nw-spark { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nw-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nw-tiles div {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--s1);
}

.nw-tiles span { display: block; font-size: 11px; color: var(--fg3); }
.nw-tiles strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; }

.tile-ui.chat {
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.me {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--s2);
}

.bubble.ai {
  align-self: flex-start;
  border-radius: 18px 18px 18px 6px;
  background: var(--s1);
  color: var(--fg2);
}

.bubble.ai strong { color: var(--fg); font-weight: 600; }

/* ---------- Make it yours ---------- */

.band {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--s1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band-copy { flex: 1 1 360px; min-width: 0; }
.band h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.band p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--fg2); }

.band-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.themes { display: flex; gap: 8px; }

.themes span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.accents { display: flex; gap: 6px; }

.accents span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.seg span { padding: 6px 12px; border-radius: 999px; }
.seg .on { background: var(--s2); }
.seg .off { color: var(--fg3); }

/* ---------- Demo band ---------- */

.demo {
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 32px;
  background: var(--s1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.demo-copy { flex: 1 1 400px; min-width: 0; }
.demo h2 { font-size: clamp(32px, 3.6vw, 48px); }

.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checks svg { flex: 0 0 auto; }

.demo-art {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.demo-screen {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 320px;
  padding: 16px;
  border-radius: 30px;
  background: var(--pbg);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.demo-pin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--pcard);
  font-size: 13px;
}

.demo-pin { gap: 12px; }
.demo-pin span { color: var(--fg2); }
.demo-pin strong { font-weight: 600; white-space: nowrap; }

.demo-blur {
  margin-top: 16px;
  padding: 4px 6px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  filter: blur(5px);
  opacity: 0.75;
}

.demo-blur .ln { width: 40%; height: 14px; border-radius: 6px; background: var(--fg3); }
.demo-blur .ln.big { width: 55%; height: 30px; border-radius: 8px; background: var(--fg2); }
.demo-blur .bar { height: 8px; margin-top: 0; }

.demo-actions {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

.demo-actions .primary { background: var(--accent); color: var(--onaccent); }
.demo-actions .secondary { background: var(--pcard); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Security ---------- */

.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature {
  padding: 24px;
  border-radius: 22px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--fg2); }

/* ---------- FAQ (home) ---------- */

.faq {
  padding-block: clamp(96px, 11vw, 160px) clamp(96px, 11vw, 140px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 36px 64px;
  margin-top: 44px;
}

.faq-grid h3 { font-size: 18px; font-weight: 600; }
.faq-grid p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--fg2); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-block: 56px 40px;
}

.foot-id {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.foot-id .brand { font-size: 18px; }
.foot-id p { color: var(--fg2); }

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  font-size: 14px;
}

.foot-cols div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-cols strong { font-weight: 600; }
.foot-cols a { color: var(--fg2); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg3);
}

/* ---------- Support page ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(48px, 7vw, 88px);
}

.page-head-copy { flex: 1 1 480px; min-width: 0; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.page-head .section-lede { max-width: 560px; }

.contact-card {
  flex: 0 1 400px;
  min-width: 0;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.contact-email {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-card p { font-size: 15px; line-height: 1.55; color: var(--fg2); }

.tasks { padding-top: 56px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.task {
  padding: 26px;
  border-radius: 22px;
  background: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task h2 {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.task p { font-size: 15px; line-height: 1.6; color: var(--fg2); }

.bang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warn);
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 800;
  vertical-align: -3px;
}

.faq-head { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }

.faq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
}

.topic-nav {
  flex: 0 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}

.topic-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--fg2);
}

.topic-nav a:hover {
  background: var(--s1);
  opacity: 1;
}

@media (max-width: 640px) {
  .topic-nav { display: none; }
}

.faq-groups {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.faq-group h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg3);
}

.qa-list {
  padding: 0 24px;
  border-radius: 22px;
  background: var(--s1);
}

.qa + .qa {
  border-top: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary svg {
  flex: 0 0 auto;
  color: var(--fg3);
  transition: transform 0.15s ease;
}

.qa[open] summary svg {
  transform: rotate(180deg);
}

.qa p {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
}

.qa p a {
  color: var(--fg);
  text-decoration: underline;
}

.cta-section {
  padding-block: clamp(72px, 9vw, 112px) clamp(80px, 9vw, 120px);
}

.cta-band {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--s1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band div { flex: 1 1 380px; min-width: 0; }
.cta-band h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
.cta-band p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--fg2); }

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(48px, 7vw, 88px) clamp(80px, 9vw, 120px);
}

.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }

.meta {
  margin-top: 16px;
  font-size: 15px;
  color: var(--fg3);
}

.legal-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  margin-top: 48px;
}

.toc {
  flex: 0 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--fg2);
}

.toc-title {
  padding: 0 12px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg3);
}

.toc a {
  padding: 8px 12px;
  border-radius: 10px;
}

.toc a:hover {
  background: var(--s1);
  opacity: 1;
}

.prose {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg2);
}

.prose section { margin-top: 40px; }

.prose h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.prose p + p { margin-top: 12px; }

.prose ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.summary-card {
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--s1);
}

.summary-card h2 { margin-bottom: 14px; font-size: 18px; }

.summary-card ul {
  padding: 0;
  list-style: none;
  gap: 10px;
}

.summary-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-card svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--fg);
}

mark {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--mark);
  color: inherit;
}

/* ---------- Simple pages (thanks, 404) ---------- */

.simple {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding-block: clamp(72px, 10vw, 140px);
}

.simple h1 { font-size: clamp(40px, 5vw, 64px); }
.simple p { font-size: 18px; color: var(--fg2); max-width: 520px; }
.simple .btn-accent { margin-top: 10px; }
