:root {
  color-scheme: light;
  --paper: oklch(92.5% 0.006 75);
  --paper-raised: oklch(96.5% 0.006 75);
  --paper-deep: oklch(87% 0.009 75);
  --ink: oklch(22% 0.018 55);
  --ink-soft: oklch(40% 0.014 60);
  --muted: oklch(55% 0.012 65);
  --line: oklch(78% 0.01 70);
  --accent: oklch(60% 0.17 44);
  --accent-dark: oklch(47% 0.145 42);
  --olive: oklch(58% 0.082 132);
  --espresso: oklch(25% 0.038 50);
  --cream: oklch(94% 0.022 78);
  --shadow: 0 18px 50px oklch(30% 0.02 55 / 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --measure: 42rem;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, oklch(96% 0.02 75), transparent 30rem),
    var(--paper);
  font-size: 1rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid oklch(68% 0.15 45 / 0.45);
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: calc(var(--measure) + 2rem);
  min-width: 0;
  margin-inline: auto;
  padding: max(2rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  margin-bottom: clamp(3rem, 10vw, 6rem);
}

.wordmark {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-dot { color: var(--accent); }

.quiet-link {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-underline-offset: 0.25em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.6rem, 10vw, 5.3rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.65rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; }

p { margin: 0; text-wrap: pretty; }

.lede {
  max-width: 33rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 3vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--espresso);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-muted {
  border-color: var(--line);
  background: var(--paper-deep);
  color: var(--muted);
  cursor: not-allowed;
}

@media (hover: hover) {
  .button:not(.button-muted):hover { transform: translateY(-2px); }
  .button:not(.button-muted):active { transform: translateY(0); }
  .button-secondary:hover { background: var(--paper-raised); }
}

.studio-hero { padding-bottom: clamp(4rem, 12vw, 7rem); }

.product-list {
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.product-row img {
  width: 4.5rem;
  border-radius: 22%;
  box-shadow: 0 7px 18px oklch(30% 0.02 55 / 0.13);
}

.product-row p { margin-top: 0.35rem; color: var(--muted); }
.product-arrow { color: var(--accent-dark); font-size: 1.4rem; }

.app-heading {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.app-heading > div,
.screen > *,
.footer > * { min-width: 0; }

.app-icon {
  width: 5rem;
  border-radius: 22%;
  box-shadow: 0 10px 28px oklch(30% 0.02 55 / 0.16);
}

.app-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.app-title-row h1 { font-size: clamp(2rem, 8vw, 3.7rem); }

.status {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border: 1px solid oklch(76% 0.05 130);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: oklch(90% 0.04 130);
  color: oklch(41% 0.07 132);
  font-size: 0.75rem;
  font-weight: 700;
}

.app-subtitle {
  max-width: 31rem;
  margin-top: 0.55rem;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.hero-media img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }

.section {
  padding-top: clamp(4.5rem, 13vw, 7rem);
}

.section-copy { margin-top: 1rem; color: var(--ink-soft); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-block: 1px solid var(--line);
}

.feature {
  padding: 1.5rem 1.25rem 1.5rem 0;
}

.feature + .feature {
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.feature-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.feature p { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
}

.screen img { width: 100%; height: auto; }
.screen figcaption { padding: 0.8rem; color: var(--ink-soft); font-size: 0.8rem; }

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
}

summary {
  min-height: 3.5rem;
  padding: 1rem 3rem 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.3rem;
  transform: translateY(-50%);
}
details[open] summary::after { content: "−"; }
details p { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }

.support-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 7vw, 3rem);
  background: var(--espresso);
  color: var(--cream);
}

.support-panel p { color: oklch(82% 0.02 72); }
.support-panel .button { width: fit-content; border-color: var(--accent); background: var(--accent); color: var(--cream); }

.prose { max-width: 65ch; }
.prose h1 { font-size: clamp(2.35rem, 8vw, 4.5rem); }
.prose h2 { margin-top: 3rem; font-size: 1.55rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.meta { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(5rem, 15vw, 9rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer a { overflow-wrap: anywhere; }

@media (max-width: 39rem) {
  .app-heading { grid-template-columns: 4.25rem 1fr; }
  .app-icon { width: 4.25rem; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature { padding: 1.25rem 0; }
  .feature + .feature { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .screens { grid-template-columns: 1fr; gap: 1rem; }
  .screen { display: grid; grid-template-columns: minmax(8rem, 42%) minmax(0, 1fr); align-items: center; }
  .product-row { grid-template-columns: 4rem minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: oklch(19% 0.013 65);
    --paper-raised: oklch(23% 0.014 65);
    --paper-deep: oklch(27% 0.013 65);
    --ink: oklch(92% 0.018 75);
    --ink-soft: oklch(79% 0.016 72);
    --muted: oklch(63% 0.012 70);
    --line: oklch(34% 0.016 65);
    --accent: oklch(66% 0.14 44);
    --accent-dark: oklch(75% 0.11 45);
    --espresso: oklch(14% 0.018 55);
    --cream: oklch(92% 0.018 75);
    --shadow: none;
  }
  body { background: var(--paper); }
  .hero-media { border-color: var(--line); }
}
