/* Painted — site styles. Same palette and type as the app (dark canvas, orange accent). */
:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-high: #222226;
  --outline: #2e2e33;
  --text: #f4f1ea;
  --muted: #a3a09a;
  --cream: #ede6d8;
  --accent: #ff5a30;
  --accent-press: #e84a22;
  --radius: 20px;
  --max: 1120px;
  --gutter: 24px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

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

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

img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 8vw, 92px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 28px; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--outline); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font: italic 400 28px/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #111; font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.97); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--outline); }
.btn.ghost:hover { background: var(--surface); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--cream); }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 30ch; margin: 24px 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero .note svg { width: 16px; height: 16px; flex: none; }

.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19.5; margin-inline: auto;
  border-radius: 48px; padding: 12px; background: #050506;
  box-shadow: 0 0 0 1px #2a2a2e, 0 40px 120px -30px rgba(255, 90, 48, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #111; }
.phone video, .phone .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 32%; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 24px; z-index: 1;
  background: linear-gradient(transparent, rgba(14, 14, 16, 0.92));
  font: 400 26px/1.05 var(--serif);
}

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Style compare */
.compare-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.compare {
  position: relative; aspect-ratio: 3 / 4; max-height: 640px; width: 100%; margin-inline: auto;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--split, 50%)); transition: opacity 0.35s; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--text); translate: -1px 0;
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%;
  border-radius: 50%; background: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 24px; background-repeat: no-repeat; background-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.compare .tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: rgba(14, 14, 16, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.compare .tag.left { left: 16px; }
.compare .tag.right { right: 16px; }

.styles { display: grid; gap: 12px; }
.style-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px; text-align: left;
  background: var(--surface); color: var(--text); border: 1px solid var(--outline); border-radius: 16px;
  font: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.style-btn:hover { background: var(--surface-high); }
.style-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-high); }
.style-btn img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.style-btn strong { display: block; font-size: 17px; }
.style-btn span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 50%; background: var(--accent); color: #111; font-weight: 800;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; }
.feature .icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface-high); color: var(--cream);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Privacy band */
.privacy-band { background: var(--cream); color: #17140f; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-band .muted { color: #5b554b; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-band li { display: flex; gap: 12px; font-weight: 600; }
.privacy-band li svg { width: 22px; height: 22px; flex: none; color: var(--accent-press); }
.privacy-band a { font-weight: 800; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--muted); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { margin-bottom: 28px; }
.site-footer { border-top: 1px solid var(--outline); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 24px; transition: opacity 0.7s ease, translate 0.7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal .summary { margin-bottom: 48px; }
.legal .summary ul { margin: 12px 0 0; padding-left: 20px; }
.legal .summary li { margin: 6px 0; }
.legal h2 { font-size: 34px; margin: 48px 0 14px; }
.legal h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.legal p, .legal li { color: #d6d2ca; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal a { color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a {
  text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--outline);
}
.toc a:hover { color: var(--text); border-color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--outline); vertical-align: top; color: #d6d2ca; }
.legal th { color: var(--text); font-weight: 800; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .container, .compare-wrap, .privacy-band { grid-template-columns: 1fr; }
  .hero .copy { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions, .hero .note { justify-content: center; }
  .steps, .features { grid-template-columns: 1fr; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .privacy-band { padding: 40px 28px; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .styles { grid-template-columns: 1fr; }
  .style-btn img { width: 44px; height: 44px; }
  .card { padding: 22px; }
}
