:root {
  --bg: #fffaf2;
  --bg-alt: #fff3e0;
  --surface: #ffffff;
  --text: #2a1d0e;
  --muted: #7a6650;
  --accent: #ff9500;
  --accent-deep: #e07800;
  --accent-ink: #b35c00;
  --sun: #ffd60a;
  --line: rgba(42, 29, 14, 0.1);
  --shadow: 0 24px 60px -24px rgba(120, 70, 0, 0.35);
  --radius: 28px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110a;
    --bg-alt: #1f1710;
    --surface: #261c12;
    --text: #fbf1e3;
    --muted: #bfa98f;
    --accent-ink: #ffb347;
    --line: rgba(255, 240, 220, 0.12);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: 0.18em; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #ffa620, var(--accent-deep));
  color: #fff; text-decoration: none;
  font: 700 17px var(--display);
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(224, 120, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(224, 120, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.button.small { font-size: 15px; padding: 9px 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.35), rgba(255, 149, 0, 0.16) 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font: 700 13px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; }
.hero h1 span { background: linear-gradient(100deg, var(--accent-deep), var(--accent) 45%, #f5b800); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 30em; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta .note { color: var(--muted); font-size: 15px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.scroll-hint svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Device frames */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 1206 / 2622; margin-inline: auto;
  padding: 10px; border-radius: 52px; background: #111;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3a3c;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; }
.hero-visual { position: relative; }
.hero-visual .phone { transform: rotate(3deg); }
.floating { position: absolute; width: 132px; aspect-ratio: 1; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.floating img { width: 100%; height: 100%; object-fit: cover; }
.floating.one { left: 0; top: 14%; transform: rotate(-8deg); border: 7px solid #fff; }
.floating.two { right: -4px; bottom: 12%; transform: rotate(7deg); border: 7px solid var(--accent); }

/* Widget strip */
.strip { padding: 28px 0 8px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.strip li { aspect-ratio: 1; border-radius: 22%; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(120, 70, 0, 0.5); border: 6px solid var(--frame, transparent); }
.strip li img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { padding: 56px 0 24px; scroll-margin-top: 64px; }
.section-title { text-align: center; max-width: 22em; margin: 0 auto 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-visual { order: 2; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.feature p { color: var(--muted); font-size: 19px; max-width: 26em; margin: 14px 0 26px; }
.feature .phone { width: min(280px, 70vw); }
.feature-visual { display: flex; justify-content: center; }
.feature-visual.pair { gap: 0; }
.feature-visual.pair .phone { width: min(230px, 42vw); border-radius: 40px; padding: 8px; }
.feature-visual.pair .phone img { border-radius: 33px; }
.feature-visual.pair .phone:first-child { transform: rotate(-4deg) translateX(14px); z-index: 1; }
.feature-visual.pair .phone:last-child { transform: rotate(4deg) translate(-14px, 28px); }
.free-card {
  width: min(380px, 100%); border-radius: var(--radius); padding: 36px;
  background: linear-gradient(140deg, #ffd60a, #ff9500 60%, #f07400); color: #3b2100;
  box-shadow: var(--shadow);
}
.free-card .price { font: 800 84px/1 var(--display); letter-spacing: -0.04em; }
.free-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.free-card li { display: flex; gap: 10px; align-items: baseline; }
.free-card li::before { content: "✓"; font-weight: 800; }

/* iPad */
.everywhere { background: var(--bg-alt); padding: 72px 0; margin-top: 32px; border-block: 1px solid var(--line); }
.tablet { width: min(760px, 100%); margin: 36px auto 0; padding: 12px; border-radius: 30px; background: #111; box-shadow: var(--shadow), inset 0 0 0 2px #3a3a3c; }
.tablet img { border-radius: 19px; aspect-ratio: 1668 / 1180; object-fit: cover; object-position: top; width: 100%; }

/* Final CTA + footer */
.final { text-align: center; padding: 84px 0; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-bottom: 26px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer strong { color: var(--text); font-family: var(--display); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.credit { width: 100%; font-size: 13px; opacity: 0.8; margin: 0; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { width: min(760px, 100% - 48px); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 6px; }
.legal .app-name { font: 700 14px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 44px 0 10px; scroll-margin-top: 84px; letter-spacing: -0.01em; line-height: 1.25; }
.legal h2.toc-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal ol.toc { list-style: decimal; padding: 20px 20px 20px 44px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: 15px; }
.legal ol.toc li { padding: 3px 0; text-transform: capitalize; }
.legal ol.toc a { text-decoration: none; text-transform: none; }
.legal ol.toc a:hover { text-decoration: underline; }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }
.legal address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; display: inline-block; }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero p.lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .scroll-hint { display: none; }
  .feature { text-align: center; padding: 40px 0; }
  .feature p { margin-inline: auto; }
  .feature:nth-of-type(even) .feature-visual { order: 0; }
  .strip ul { grid-template-columns: repeat(3, 1fr); }
  .site-header nav { display: none; }
  .floating { width: 96px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
  .button { transition: none; }
}
