/* Palette from app/lib/theme.dart. */
@font-face { font-family: Geist; src: url(/fonts/Geist.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: GeistMono; src: url(/fonts/GeistMono.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --canvas: #111113; --sidebar: #0D0E10; --panel: #18191B; --raised: #212225;
  --border: #2E3035; --border-strong: #484C54;
  --ink: #EDEEF0; --dim: #B0B4BA; --faint: #7D828A;
  --mint: #86EAD4; --mint-ink: #082C25;
  --claude: #F5D08A; --codex: #D6C8F4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: Geist, system-ui, sans-serif; --mono: GeistMono, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans);
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60rem 40rem at 50% -10rem, rgba(134, 234, 212, 0.10), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 650; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { color: var(--dim); margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--mint); }
.accent { color: var(--mint); }
.dim { color: var(--faint); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 1rem var(--sans); padding: 0.85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--mint); color: var(--mint-ink); cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.button.small { padding: 0.5em 1.1em; font-size: 0.9rem; }
.button.wide { width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(17, 17, 19, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid rgba(46, 48, 53, 0.6);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.95rem; color: var(--dim); }
.nav nav a:hover { color: var(--ink); }

main > section { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 2rem); }

.hero { text-align: center; padding-top: clamp(4rem, 12vw, 9rem) !important; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 38rem; margin: 1.8rem auto 0; }
.actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero .browser { margin-top: clamp(3rem, 7vw, 5rem); }

.browser {
  margin: 0; border-radius: 16px; overflow: hidden; background: var(--sidebar);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #FFB4BF; opacity: 0.85; }
.chrome i:nth-child(2) { background: var(--claude); }
.chrome i:nth-child(3) { background: #9ED9B5; }
.chrome span { margin: 0 auto; transform: translateX(-20px); font: 0.8rem var(--mono); color: var(--faint); background: var(--panel); border-radius: 7px; padding: 3px 3rem; }
video { display: block; width: 100%; height: auto; background: var(--canvas); }
.browser video { aspect-ratio: 1280 / 800; }

.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.provider { padding: 2rem; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); }
.provider h3 { margin: 1.1rem 0 0.5rem; }
.chip { display: inline-block; font: 600 0.85rem var(--mono); padding: 0.3em 0.8em; border-radius: 999px; }
.claude { box-shadow: inset 0 1px 0 rgba(245, 208, 138, 0.25); }
.claude .chip { color: var(--claude); background: rgba(245, 208, 138, 0.12); }
.codex { box-shadow: inset 0 1px 0 rgba(214, 200, 244, 0.25); }
.codex .chip { color: var(--codex); background: rgba(214, 200, 244, 0.12); }
.caption { grid-column: 1 / -1; text-align: center; font-size: 1.2rem; color: var(--ink); margin-top: 1.5rem; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .copy { order: 2; }
.copy p { margin-top: 1.2rem; font-size: 1.15rem; }

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.pair { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; }
.pair .copy { max-width: 26rem; flex: 1; }
.phone {
  margin: 0; width: min(290px, 72vw); padding: 9px; border-radius: 44px; background: #050506;
  border: 1.5px solid var(--border-strong); box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}
.phone video { border-radius: 36px; aspect-ratio: 390 / 844; object-fit: cover; }

.grid-section h2 { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.grid article { padding: 1.6rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--border); }
.grid p { margin-top: 0.6rem; font-size: 1rem; }

.pricing { text-align: center; }
.plan {
  max-width: 440px; margin: 3rem auto 0; padding: 2.4rem; text-align: left; border-radius: 26px;
  background: linear-gradient(180deg, var(--raised), var(--panel)); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 100px rgba(134, 234, 212, 0.08);
}
.price { color: var(--ink); margin-top: 1rem; font-size: 1.1rem; }
.price span { font-size: 3.6rem; font-weight: 650; letter-spacing: -0.04em; }
.tax { font-size: 0.85rem; color: var(--faint); }
.plan ul { list-style: none; padding: 0; margin: 1.6rem 0; }
.plan li { padding: 0.45rem 0 0.45rem 1.8rem; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.byo { font-size: 0.95rem; margin-bottom: 1.6rem; }
.faq { max-width: 640px; margin: 3rem auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.7rem; }

.anywhere { text-align: center; }
.anywhere > p { margin-top: 1.4rem; font-size: 1.2rem; }

footer {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 2.5rem clamp(1.2rem, 4vw, 2rem) 3rem; border-top: 1px solid var(--border);
}
footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; font-size: 0.85rem; color: var(--faint); }
footer nav a:hover { color: var(--ink); }

.film { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: hidden; }
.film::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.film .close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1rem; cursor: pointer; }

/* Reveal on scroll: rise and fade in, like the film. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { gap: 1rem; }
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .providers, .grid { grid-template-columns: 1fr; }
  .chrome span { display: none; }
  .phones { grid-template-columns: 1fr; gap: 5rem; }
  footer nav { margin-left: 0; }
}
