/* Releasy website. Palette and rules: docs/BRAND.md. Layout follows the references in site/design-refs/. */

:root {
  --accent: #1C549E;          /* Release Blue: links, icons, focus */
  --accent-fill: #1C549E;     /* filled buttons keep this in dark mode too, so white text stays readable */
  --accent-press: #164580;
  --tint: #E8EFF8;            /* Blue Tint */
  --ink: #1D1D1F;
  --quiet: #6E6E73;
  --canvas: #FFFFFF;
  --parchment: #F5F5F7;
  --graphite: #272729;
  --graphite-quiet: #A1A1A6;
  --hairline: #E0E0E5;
  --signed: #248A3D;
  --pen: #1F3563;             /* signature ink in the document illustration */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --radius-small: 12px;
  --nav-height: 60px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6FA4EC;
    --accent-press: #1A4A8A;
    --tint: #16243A;
    --ink: #F5F5F7;
    --quiet: #A1A1A6;
    --canvas: #161618;
    --parchment: #0F0F11;
    --graphite: #1E1E21;
    --hairline: #2C2C2E;
    --signed: #30D158;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  background: var(--parchment);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
.i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent-fill); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* Navigation: frosted, like a UINavigationBar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--parchment) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; color: var(--quiet); border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (max-width: 639px) { .nav-links .wide-only { display: none; } }

/* Pill buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--accent-fill); color: #fff;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill:hover { background: var(--accent-press); text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill.secondary { background: var(--tint); color: var(--accent); }
.pill.secondary:hover { background: color-mix(in srgb, var(--tint) 80%, var(--accent) 20%); }

/* Type */
.eyebrow { font-size: 19px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.display {
  font-size: clamp(44px, 5.4vw + 8px, 84px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
}
.headline {
  font-size: clamp(36px, 3.8vw + 10px, 64px);
  line-height: 1.04; letter-spacing: -0.032em; font-weight: 700;
}
.lede {
  font-size: clamp(19px, 0.9vw + 13px, 26px);
  line-height: 1.38; letter-spacing: -0.016em; color: var(--quiet);
}

/* iPhone frame around a real screenshot. Sized by --w; everything inside scales with it (1em = 1% of the width). */
.phone {
  --w: 320px;
  position: relative; flex: none;
  width: var(--w); font-size: calc(var(--w) / 100);
  padding: 3.3em; border-radius: 15.6em;
  background: #0B0B0C;
  box-shadow:
    0 0 0 0.55em #D4D4D9,
    0 0 0 0.8em #A9A9AE,
    0 5em 9em -3em rgba(29, 29, 31, 0.32);
}
.phone::before {
  content: ""; position: absolute; z-index: 1;
  top: 5.9em; left: 50%; width: 28.6em; height: 8.4em; margin-left: -14.3em;
  border-radius: 5em; background: #000;
}
.phone img { width: 100%; height: auto; border-radius: 12.4em; background: #fff; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero .lede { margin-top: 28px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.availability { margin-top: 18px; font-size: 15px; color: var(--quiet); }
.hero-device { display: flex; justify-content: center; perspective: 2200px; }
.hero-device .phone { --w: clamp(260px, 26vw, 340px); transform: rotateY(-14deg) rotateX(4deg) rotateZ(1.5deg); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; }
}
@media (max-width: 959px) {
  .hero { padding-bottom: 0; }
  .hero-device { height: clamp(380px, 95vw, 560px); align-items: flex-start; overflow: hidden; padding-top: 12px; }
  .hero-device .phone { --w: min(300px, 78vw); transform: none; }
}
@media (max-width: 559px) {
  .cta .pill { width: 100%; }
}

/* Sections */
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section.canvas { background: var(--canvas); }
.section-head { max-width: 46em; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { margin-top: 16px; }

/* How it works: four staggered phones, no cards */
.steps { display: grid; gap: 48px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { --w: min(42vw, 260px); }
.step-number {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-top: 32px;
  border-radius: 50%; background: var(--accent-fill); color: #fff;
  font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 14px; font-size: clamp(17px, 0.6vw + 13px, 21px); font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 6px; font-size: 15px; color: var(--quiet); max-width: 17em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .step:nth-child(1) { margin-top: 16px; }
  .step:nth-child(2) { margin-top: 44px; }
  .step:nth-child(4) { margin-top: 40px; }
  .step .phone { --w: min(19vw, 248px); }
}

/* Studio photo: full bleed, with a frosted caption on wide screens */
.studio { position: relative; margin: 0; background: var(--canvas); }
.studio img { width: 100%; height: clamp(300px, 52vw, 760px); object-fit: cover; object-position: 50% 12%; }
.studio figcaption { padding: 32px 0 8px; }
.studio figcaption p { margin-top: 12px; color: var(--quiet); font-size: 19px; max-width: 28em; }
@media (min-width: 900px) {
  .studio figcaption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 3vw, 48px); padding: 0; pointer-events: none; }
  .studio .caption-card {
    pointer-events: auto; max-width: 480px; padding: 30px 32px; border-radius: var(--radius);
    background: color-mix(in srgb, var(--canvas) 74%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
  }
  .studio .caption-card .headline { font-size: 40px; }
  .studio figcaption p { font-size: 17px; color: var(--ink); }
}

/* Features: asymmetric bento on Parchment, white tiles, no shadows */
.bento { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; overflow: hidden; background: var(--canvas); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px); }
.tile .icon { width: 44px; height: 44px; color: var(--accent); }
.tile h3 { margin-top: 22px; font-size: clamp(22px, 1vw + 16px, 30px); line-height: 1.12; letter-spacing: -0.026em; font-weight: 700; }
.tile p { margin-top: 10px; font-size: clamp(17px, 0.3vw + 15px, 19px); color: var(--quiet); max-width: 24em; }
.tile-lock { display: grid; gap: 24px; padding-bottom: 0; }
.tile-lock .lock-device { height: 350px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.tile-lock .phone { --w: 250px; margin-top: 4px; box-shadow: 0 0 0 0.55em #D4D4D9, 0 0 0 0.8em #A9A9AE; }
.tile-doc { display: flex; flex-direction: column; }
.tile-doc .paper { flex: 1; display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lock, .tile-doc { grid-column: 1 / -1; }
  .tile-lock { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; padding-right: 0; }
  .tile-lock .lock-device { height: 360px; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .tile-lock { grid-column: 1 / 3; grid-row: 1; }
  .tile-doc { grid-column: 3; grid-row: 1 / 4; }
}

/* The one-page release, drawn in HTML. Paper stays light in dark mode. */
.paper {
  margin-top: 32px; padding: 26px 24px 20px;
  background: #fff; color: #1D1D1F;
  border: 1px solid #DCDCE1; border-radius: 6px;
  font-size: 11px; line-height: 1.4; letter-spacing: 0;
}
.paper-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid #DCDCE1; }
.paper-parties { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 16px; margin-top: 16px; }
.paper dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
.paper dt { color: #6E6E73; }
.paper dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.paper-photo { width: 84px; height: 112px; object-fit: cover; border-radius: 3px; }
.paper-text { margin-top: 18px; display: grid; gap: 7px; }
.paper-text span { display: block; height: 5px; border-radius: 3px; background: #E6E6EB; }
.paper-text span:nth-child(3n) { width: 92%; }
.paper-text span:nth-child(4n) { width: 76%; }
.paper-text .gap { height: 6px; background: none; }
.paper-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; padding-top: 24px; }
.paper-signs svg { width: 100%; height: 38px; color: var(--pen); }
.paper-signs .rule { border-top: 1px solid #C7C7CC; padding-top: 5px; }
.paper-signs .role { display: block; color: #6E6E73; }
.paper-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid #ECECF0; color: #6E6E73; font-size: 10px; }
.paper-foot code { font-family: var(--mono); color: #1D1D1F; }

/* Pricing: three plans of different weight, the recommended one outlined */
.plans { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.plan { padding: 28px; border-radius: var(--radius); }
.plan.featured { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--canvas); }
.plan .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.plan h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.price { margin-top: 6px; font-size: clamp(36px, 2vw + 24px, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--quiet); }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--quiet); }
.checks svg { width: 20px; height: 20px; margin-top: 3px; flex: none; color: var(--accent); stroke-width: 2.2; }
.fine { margin-top: 40px; font-size: 13px; color: var(--quiet); max-width: 60em; }
@media (min-width: 880px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
  .plan:not(.featured) { padding-top: 56px; }
}

/* Privacy: the page's one dark band */
.dark-band { background: var(--graphite); color: #F5F5F7; }
.dark-band .wrap { display: grid; gap: 40px; align-items: center; }
.dark-band .lede { color: var(--graphite-quiet); margin-top: 18px; max-width: 30em; }
.dark-band a { color: #6FA4EC; }
.dark-band .more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; font-size: 19px; }
.label-card { background: #fff; color: #1D1D1F; border-radius: var(--radius); padding: 28px; max-width: 340px; text-align: center; }
.label-card svg { width: 48px; height: 48px; margin: 0 auto; color: #1D1D1F; }
.label-card strong { display: block; margin-top: 14px; font-size: 19px; letter-spacing: -0.02em; }
.label-card span { display: block; margin-top: 6px; font-size: 15px; color: #6E6E73; }
@media (min-width: 880px) { .dark-band .wrap { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (prefers-color-scheme: dark) { .label-card { background: #2C2C2E; color: #F5F5F7; } .label-card svg { color: #F5F5F7; } .label-card span { color: #A1A1A6; } }

/* FAQ: an inset grouped list of disclosure rows */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--nav-height) + 32px); }
}
.list { background: var(--canvas); border-radius: var(--radius); overflow: hidden; }
.list details + details { border-top: 1px solid var(--hairline); }
.list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600; letter-spacing: -0.016em;
}
.list summary::-webkit-details-marker { display: none; }
.list summary:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.list summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-small); }
.list summary svg { width: 14px; height: 14px; flex: none; color: var(--quiet); transition: transform 0.3s var(--ease); }
.list details[open] summary svg { transform: rotate(90deg); }
.list details p { padding: 0 20px 20px; color: var(--quiet); max-width: 40em; }
.list details p + p { padding-top: 0; margin-top: -8px; }

/* Document pages: support, privacy */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 8vw, 120px); }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc .lede { margin-top: 20px; }
.doc h2 { margin: 56px 0 16px; font-size: clamp(24px, 1vw + 18px, 30px); letter-spacing: -0.024em; line-height: 1.15; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li + li { margin-top: 8px; }
.doc .meta { margin-top: 16px; font-size: 15px; color: var(--quiet); }
.doc .contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.doc .contact span { font-size: 15px; color: var(--quiet); }
.doc .list { margin-top: 8px; }
.doc .list details p { color: var(--ink); }
.callout { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--tint); }
.callout strong { display: block; margin-bottom: 4px; }

/* Footer */
.footer { padding: 40px 0 max(48px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--quiet); }
.footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand { font-size: 17px; }
.footer .brand img { width: 24px; height: 24px; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); font-size: 15px; }
.footer nav a:hover { color: var(--ink); }
.footer p { max-width: 60em; }

/* Entrance and scroll reveal. Content is visible without JavaScript; motion is skipped when reduced. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero .reveal:nth-child(2) { transition-delay: 0.06s; }
  .js .hero .reveal:nth-child(3) { transition-delay: 0.12s; }
  .js .hero .reveal:nth-child(4) { transition-delay: 0.18s; }
  .js .hero-device.reveal { transition-delay: 0.16s; transform: translateY(40px); }
  .js .hero-device.reveal.is-visible { transform: none; }
  .js .step.reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .step.reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .step.reveal:nth-child(4) { transition-delay: 0.24s; }
}
