/* InstaCam: the same plastic, paper and light as the app. */
:root {
  /* The app's Mint body, deepened for the page so white text reads at WCAG AA; the bright mint stays on the phone. */
  --body: #0b7a5e;
  --mint: #17ad86;
  --glow: #4fd3ae;
  --deep: #075a45;
  --panel: #10292a;
  --panel-2: #163536;
  --shutter: #ff7857;
  --paper: #fcfbf8;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.95);
  --ink-faint: rgba(255, 255, 255, 0.9);
  --page: linear-gradient(180deg, var(--body) 0%, var(--body) 60%, var(--deep) 100%);
  --focus: var(--paper);
  --outline: rgba(252, 251, 248, 0.85);
  --line: rgba(255, 255, 255, 0.16);
  --doc-bg: var(--panel);
  --doc-ink: rgba(255, 255, 255, 0.86);
  --doc-line: rgba(255, 255, 255, 0.1);
  --doc-shadow: inset 0 1.5px 0 rgba(0, 0, 0, 0.45), 0 30px 60px rgba(6, 50, 39, 0.35);
  --callout-bg: var(--panel-2);
  --callout-line: rgba(255, 255, 255, 0.08);
  --accent: var(--shutter);
  --glow-strong: rgba(79, 211, 174, 0.55);
  --glow-soft: rgba(23, 173, 134, 0.25);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.55 var(--text);
  background: var(--page);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--paper); color: var(--panel); padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Light pages ---------- */

/* Dark ink on a light page; the camera's mint stays on the phone and in the glow behind it. Every text colour here
   is at least 4.5:1 on its background. */
html[data-bg="white"], html[data-bg="grey"] {
  --ink: #10292a;
  --ink-soft: #2e4644;
  --ink-faint: #4a5f5d;
  --focus: #10292a;
  --outline: #10292a;
  --line: rgba(16, 41, 42, 0.14);
  --doc-ink: #26403e;
  --doc-line: rgba(16, 41, 42, 0.12);
  --doc-shadow: 0 1px 2px rgba(16, 41, 42, 0.06), 0 18px 40px rgba(16, 41, 42, 0.08);
  --callout-bg: #e6f5ef;
  --callout-line: rgba(11, 122, 94, 0.18);
  --accent: #0b7a5e;
  --glow-strong: rgba(23, 173, 134, 0.42);
  --glow-soft: rgba(23, 173, 134, 0.14);
}
html[data-bg="white"] {
  --page: #ffffff;
  --doc-bg: #f6f7f5;
}
html[data-bg="grey"] {
  --page: #eeefec;
  --doc-bg: #ffffff;
}
html[data-bg="white"] .wordmark, html[data-bg="grey"] .wordmark { color: #0b7a5e; }
html[data-bg="white"] .phone, html[data-bg="grey"] .phone {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #050506,
    0 40px 80px rgba(16, 41, 42, 0.22),
    0 12px 24px rgba(16, 41, 42, 0.14);
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  font-family: var(--round); font-weight: 900; line-height: 0.82; letter-spacing: -0.055em;
  transform: rotate(-4deg); text-decoration: none; color: var(--ink);
}
.wordmark .insta { font-size: 30px; }
.wordmark .cam { font-size: 21px; display: inline-flex; align-items: center; gap: 4px; letter-spacing: -0.045em; }
.wordmark .cam::before {
  content: ""; width: 6.5px; height: 6.5px; border-radius: 50%; background: currentColor; transform: translateY(2px);
}

/* ---------- Top bar ---------- */

.top {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.top nav { display: flex; gap: 18px; font: 600 15px/1 var(--round); }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--panel); color: var(--paper);
  font: 800 13px/1 var(--round); letter-spacing: 0.12em; text-transform: uppercase;
}

h1 {
  margin: 0; font-family: var(--round); font-weight: 900;
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0; max-width: 34em; color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px); line-height: 1.5; text-wrap: pretty;
}

.steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.steps li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--panel); color: var(--paper); font: 700 15px/1 var(--round);
}
.steps .n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--shutter); color: var(--panel); font-weight: 900; font-size: 13px;
}

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }

/* Plain words, not a badge: Apple's official badge goes here, unmodified, once the app can be downloaded. */
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-radius: 999px;
  border: 2px dashed var(--outline); color: var(--ink); font: 800 17px/1.2 var(--round);
}
.store-soon svg { width: 20px; height: 20px; flex: none; }

.store-note { margin: 0; color: var(--ink-soft); font: 600 15px/1.4 var(--round); }
.store-note strong { color: var(--ink); }

.private { margin: 26px 0 0; color: var(--ink-faint); font-size: 15px; }
/* Inline, so the icon stays with the first word however the line wraps. */
.private svg { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; opacity: 0.9; }

/* ---------- Phone ---------- */

.stage { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }

/* The mint light the camera's own body glows with, behind the phone. */
.stage::before {
  content: ""; position: absolute; inset: 4% -6% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-strong), var(--glow-soft) 55%, transparent);
  filter: blur(8px); z-index: 0;
}

.demo-toggle {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--panel); color: var(--paper); font: 700 14px/1 var(--round);
}
.demo-toggle svg { width: 14px; height: 14px; }

.phone {
  --w: min(360px, 78vw);
  position: relative; z-index: 1; width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(145deg, #2a2d33, #0e0f12 45%, #1d1f24);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #050506,
    0 40px 80px rgba(6, 50, 39, 0.45),
    0 12px 24px rgba(0, 0, 0, 0.25);
}
/* Side buttons */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #121317, #34373e);
}
.phone::before { left: -3px; top: 20%; height: 12%; box-shadow: 0 calc(var(--w) * 0.34) 0 0 #1c1e22; }
.phone::after { right: -3px; top: 27%; height: 16%; background: linear-gradient(270deg, #121317, #34373e); }

.screen {
  /* The recording's own shape, so nothing of it is cropped. */
  position: relative; width: 100%; aspect-ratio: 720 / 1564; overflow: hidden;
  border-radius: calc(var(--w) * 0.141);
  background: var(--mint);
}
.screen video, .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */

.trademarks { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-faint); }

footer {
  max-width: 1120px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Document pages ---------- */

.doc-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }

.doc {
  max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px);
  background: var(--doc-bg); border-radius: 22px; color: var(--ink);
  box-shadow: var(--doc-shadow);
}
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .meta { margin: 8px 0 26px; color: var(--ink-faint); font-size: 15px; }
.doc h2 { margin: 34px 0 8px; font: 800 21px/1.25 var(--round); letter-spacing: -0.01em; }
.doc h3 { margin: 22px 0 6px; font: 800 17px/1.3 var(--round); }
.doc p, .doc li { color: var(--doc-ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); text-underline-offset: 2px; }
.doc .callout {
  margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--callout-bg);
  border: 1px solid var(--callout-line);
}
.placeholder {
  display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1.5px dashed var(--accent);
  color: var(--accent); font-weight: 700;
}

details { border-top: 1px solid var(--doc-line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--doc-line); }
summary { cursor: pointer; font: 800 17px/1.35 var(--round); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 2px; }

/* ---------- Small screens ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 24px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .steps, .store { justify-content: center; }
  .top nav { display: none; }
}

@media (max-width: 420px) {
  .top { padding-top: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
