:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e2e6ef;
  --fg: #141a2b;
  --muted: #5b647a;
  --accent: #3158e0;
  --accent-fg: #ffffff;
  --accent-soft: #e6ecff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #131a2e;
    --border: #232c45;
    --fg: #e8ecf6;
    --muted: #a0a9bf;
    --accent: #7c9bff;
    --accent-fg: #0b1020;
    --accent-soft: #1b2650;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); }

h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 48px 0 16px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }

.shot { margin: 0; }
.shot img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(20, 26, 43, 0.12); }
.shot.phone { max-width: 300px; justify-self: center; }
.shot.phone img { border-radius: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card h2 { margin: 0 0 8px; font-size: 20px; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.split h2 { margin-top: 0; }
.honest { margin-top: 24px; margin-bottom: 56px; }
.honest p { color: var(--muted); max-width: 760px; }

.prose { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.prose h2 { margin-top: 36px; }
.prose code { background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }

footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer p { margin: 0; }

/* Pricing: the yearly/monthly switch is CSS-only (radio inputs + :checked). */
.pricing { padding-top: 40px; padding-bottom: 56px; }
.bill-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 8px 0 24px; border-radius: 12px; background: var(--accent-soft); }
.bill-toggle label { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
#bill-year:checked ~ .bill-toggle label[for="bill-year"],
#bill-month:checked ~ .bill-toggle label[for="bill-month"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(20, 26, 43, 0.15); }
#bill-year:focus-visible ~ .bill-toggle label[for="bill-year"],
#bill-month:focus-visible ~ .bill-toggle label[for="bill-month"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.tiers .monthly { display: none; }
#bill-month:checked ~ .tiers .monthly { display: block; }
#bill-month:checked ~ .tiers .yearly { display: none; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.tier h2 { margin: 0; font-size: 20px; }
.tier.popular { border: 2px solid var(--accent); padding: 19px; box-shadow: 0 8px 28px rgba(49, 88, 224, 0.15); }
.badge { display: inline-block; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tier .trial { color: var(--accent); font-weight: 600; }
.tier .storage { font-size: 26px; font-weight: 700; color: var(--fg); margin: 0 0 12px; }
.tier .price { margin: 0; color: var(--fg); }
.tier .price strong { font-size: 22px; }
.tier ul { margin: 16px 0; padding-left: 20px; color: var(--muted); flex: 1; }
.tier li { margin: 4px 0; }
.tier .tier-cta { margin: 0; }
.tier .btn { display: block; text-align: center; }
.addon { margin-top: 16px; }
.addon h2 { margin: 0 0 8px; font-size: 20px; }
.pricing-notes { margin-top: 24px; max-width: 760px; }
.pricing-notes p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 36px; }
}
