:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --well: #f3f3f1;
  --border: #e6e6e3;
  --ink: #1a1a1a;
  --muted: #6f6f6b;
  --yellow: #ffc800;
  --yellow-lip: #e0a500;
  --yellow-tint: #fff5d1;
  --green: #1f8a3d;
  --red: #e5484d;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --surface: #1c1c1c; --well: #262626; --border: #333333;
    --ink: #f2f2f2; --muted: #9e9e9e; --yellow-tint: #3a3112; --green: #5ccb7a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.mark { width: 34px; height: 34px; border-radius: 8px; flex: none; }
nav.site { display: flex; gap: 22px; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover { color: var(--ink); }

/* Buttons: tactile, sitting on a darker lip */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 52px; border-radius: 16px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--ink); color: var(--bg);
  transition: transform .08s, opacity .08s;
}
.btn:active { transform: scale(.97); opacity: .85; }
.btn.light { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }

/* Hero */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.soon { font-size: 14px; color: var(--muted); }

/* Phone mock */
.phone {
  justify-self: center; width: 300px; max-width: 100%; border-radius: 44px; padding: 14px;
  background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.screen { background: var(--bg); border-radius: 32px; padding: 22px 16px; min-height: 520px; display: flex; flex-direction: column; gap: 12px; }
.screen .bar { height: 46px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; padding: 0 14px; gap: 8px; color: var(--muted); font-size: 15px; }
.tile { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tile.best { background: var(--yellow-tint); border-color: var(--yellow); }
.small { font-size: 13px; color: var(--muted); }
.price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.row b { font-variant-numeric: tabular-nums; }
.save { color: var(--green); font-weight: 600; font-size: 14px; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 30px; font-size: 18px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--well); display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; }
.plan h3 { margin: 0 0 4px; font-size: 19px; }
.plan .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--bg); }

details { border-bottom: 2px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal / text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 10px 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; }
.callout { background: var(--yellow-tint); border-radius: 14px; padding: 14px 16px; margin: 18px 0; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 44px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  nav.site { display: none; }
}
