/* PosyCam site. Colours and display face come from the app's "Quiet viewfinder" tokens
   (camera-app-2/design/prototype/tokens.json). Every value below references these tokens. */

:root {
  --bg: #101513;
  --surface: #1B231E;
  --raised: #29332C;
  --ink: #F3F5F0;
  --muted: #B9C4BB;
  --accent: #E8ED9B;
  --on-accent: #182214;
  --matte: #080B09;
  --scrim: #101513ED;

  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Five sizes do all the visible work. */
  --s-1: clamp(72px, 16vw, 280px);
  --s-2: clamp(44px, 6.4vw, 108px);
  --s-3: clamp(22px, 2.2vw, 32px);
  --s-4: 18px;
  --s-5: 14px;

  --m: clamp(16px, 2.5vw, 32px);
  --gap: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--s-4)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; /* taste-skill-ignore: visually-hidden helper, not a rule */
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: var(--m); top: -100px; background: var(--accent); color: var(--on-accent); padding: 12px 16px; z-index: 50; }
.skip:focus { top: var(--m); }

.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }

/* Buttons: square corners, one fill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--on-accent);
  font: 700 var(--s-4)/1 var(--text); text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.97); }
.link {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link:hover { text-decoration-color: currentColor; color: var(--accent); }

/* ---------- Hero: card over a dim room ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: var(--m); overflow: clip; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: brightness(0.62); transform-origin: 72% 40%; }
.hero__card {
  position: relative; z-index: 1;
  width: min(100%, 60vw, 940px); min-height: 66svh; margin-left: 6vw;
  background: var(--surface); padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 28px;
}
.hero__title { font-size: var(--s-2); max-width: 11ch; }
.hero__facts { font: 700 var(--s-3)/1.12 var(--display); letter-spacing: -0.015em; }
.hero__facts span { display: block; }
.hero__lede { max-width: 38ch; }
.hero__foot { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.hero__foot > :last-child { justify-self: end; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--s-4)/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; }

/* ---------- Showcase: one frame, three choices ---------- */
.showcase { position: relative; margin-top: var(--gap); }
.showcase__markers { position: absolute; inset: 0; pointer-events: none; }
.showcase__markers span { position: absolute; left: 0; width: 1px; height: 1px; } /* taste-skill-ignore: invisible scroll markers */
.showcase__markers span:nth-child(1) { top: 0; }
.showcase__markers span:nth-child(2) { top: 33%; }
.showcase__markers span:nth-child(3) { top: 66%; }
.stage {
  padding: 0 var(--m);
  display: grid; justify-items: center; gap: 24px;
}
.stage__title { display: contents; }
.stage__half { font-size: var(--s-2); text-align: center; }
.viewfinder {
  --r: 0.8;
  width: min(66vw, calc(36svh * var(--r))); aspect-ratio: var(--r);
  background: var(--matte); overflow: hidden; position: relative;
}
.viewfinder img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms ease, filter 400ms ease; }
.viewfinder img.is-swapping { opacity: 0; }
.viewfinder[data-style="film"] img { filter: sepia(0.22) saturate(1.2) contrast(1.06) brightness(1.03) hue-rotate(-8deg); }
.viewfinder[data-style="mono"] img { filter: grayscale(1) contrast(1.18) brightness(1.02); }

.coach { background: var(--surface); padding: 14px 18px; width: min(100%, 420px); font: 600 16px/1.35 var(--text); }
.coach b { color: var(--accent); font-weight: 700; margin-right: 8px; }
.controls { width: min(100%, 420px); display: grid; gap: 18px; }
.controls__group { display: grid; gap: 8px; }
.controls__label { font: 600 var(--s-5)/1.2 var(--text); color: var(--muted); transition: color var(--t-hover) ease; }
.controls__group.is-live .controls__label { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 40px; padding: 0 14px; border: 0; cursor: pointer;
  background: var(--raised); color: var(--ink); font: 600 15px/1 var(--text);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip:hover { background: #34403A; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.stage__note { color: var(--muted); font-size: var(--s-5); max-width: 40ch; }

@media (min-width: 960px) {
  .showcase { height: 300vh; }
  .stage {
    position: sticky; top: 0; height: 100svh;
    grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto;
    align-items: center; column-gap: clamp(24px, 3vw, 56px); row-gap: 0;
    padding-top: 2svh; padding-bottom: 2svh;
  }
  .stage__half--top { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; }
  .stage__half--bottom { grid-column: 1 / -1; grid-row: 3; margin-top: -0.3em; position: relative; z-index: 2; }
  .viewfinder { grid-column: 2; grid-row: 2; width: min(30vw, calc(52svh * var(--r))); }
  .stage__left { grid-column: 1; grid-row: 2; justify-self: end; display: grid; gap: 16px; }
  .stage__right { grid-column: 3; grid-row: 2; justify-self: start; align-self: center; }
  .stage__half--bottom { color: var(--ink); }
}

/* ---------- Techniques: line-up at one size ---------- */
.lineup { margin-top: var(--gap); padding: 0 var(--m); }
.lineup__intro { font: 700 var(--s-3)/1.15 var(--display); letter-spacing: -0.015em; color: var(--muted); max-width: 30ch; }
.lineup table { width: 100%; border-collapse: collapse; font: 500 var(--s-3)/1.5 var(--display); letter-spacing: -0.01em; }
.lineup th, .lineup td { padding: 0; text-align: left; vertical-align: baseline; font-weight: 500; }
.lineup tbody th[scope="rowgroup"] {
  color: var(--accent); padding: 72px 0 20px;
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.lineup td.t-name { width: 28%; }
.lineup td.t-what { width: 54%; color: var(--muted); padding-right: 24px; }
.lineup td.t-frame { width: 8%; font-variant-numeric: tabular-nums; }
.lineup td.t-tier { text-align: right; }
.lineup td.t-tier.pro { color: var(--accent); }
.lineup tr.row td { padding-block: 0.12em; }

@media (max-width: 760px) {
  .lineup table, .lineup tbody, .lineup tr, .lineup td, .lineup th { display: block; width: auto !important; }
  .lineup thead { display: none; }
  .lineup tbody th[scope="rowgroup"] { padding: 48px 0 12px; }
  .lineup tr.row { display: grid; grid-template-columns: 1fr auto auto; column-gap: 12px; margin-bottom: 18px; }
  .lineup td.t-name { grid-column: 1 / -1; font-size: var(--s-3); }
  .lineup td.t-what { grid-column: 1; font: 400 var(--s-5)/1.4 var(--text); padding-right: 0; }
  .lineup td.t-frame, .lineup td.t-tier { font: 600 var(--s-5)/1.4 var(--text); }
}

/* ---------- How it works: one verb at a time ---------- */
.verbs { margin-top: var(--gap); }
.verb-panel { position: relative; height: 100svh; overflow: clip; }
.verb-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.verb-panel { display: grid; place-items: center; }
.verb-panel__word {
  position: relative; z-index: 1; margin-bottom: 12svh;
  font-size: var(--s-1); text-align: center; color: var(--ink);
}
.verb-panel__text {
  position: absolute; left: var(--m); bottom: var(--m); z-index: 2;
  max-width: 34ch; background: var(--scrim); padding: 18px 20px;
}
.verb-panel__credit { position: absolute; right: var(--m); bottom: var(--m); z-index: 2; font-size: var(--s-5); color: var(--muted); }
.verb-panel__credit a { color: inherit; }
@media (max-width: 760px) {
  .verb-panel__text { right: var(--m); max-width: none; bottom: calc(var(--m) + 28px); }
  .verb-panel__credit { left: var(--m); right: auto; bottom: 12px; }
}

/* ---------- Privacy promises: title pinned in its column, portraits pass beside it ---------- */
.promises { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.promises__title { grid-column: 1 / 7; align-self: start; position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.promises__title h2 { font-size: var(--s-1); line-height: 0.85; color: var(--ink); }
.promises__list { grid-column: 8 / 13; display: grid; gap: 22svh; padding: 18svh 0; }
.promise { width: 82%; }
.promise:nth-child(even) { margin-left: 18%; }
.promise img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.promise h3 { font: 700 var(--s-3)/1.2 var(--display); letter-spacing: -0.015em; margin-top: 20px; }
.promise p.role { font-size: var(--s-5); color: var(--muted); margin-top: 4px; }
.promise p.what { max-width: 34ch; margin-top: 10px; }
@media (max-width: 860px) {
  .promises__title { grid-column: 1 / -1; position: static; height: auto; }
  .promises__title h2 { font-size: var(--s-1); }
  .promises__list { grid-column: 1 / -1; gap: 72px; padding: 48px 0 0; }
  .promise { width: 80%; }
  .promise:nth-child(even) { margin-left: auto; }
}

/* ---------- Pricing: the ticket ---------- */
.pricing { margin-top: var(--gap); background: var(--surface); padding: clamp(96px, 10vw, 160px) var(--m); display: grid; justify-items: center; gap: 56px; }
.pricing__head { width: min(100%, 64vw); display: grid; gap: 20px; }
.pricing__head h2 { font-size: var(--s-2); }
.pricing__head p { max-width: 60ch; }
.ticket {
  --notch: 28px;
  position: relative; width: min(100%, 64vw); aspect-ratio: 2.3 / 1;
  display: grid; grid-template-columns: 6fr 4fr;
  background: var(--accent); color: var(--on-accent);
}
.ticket__main { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ticket__main h3 { font-size: var(--s-2); }
.ticket__main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font-size: var(--s-4); font-weight: 600; }
.ticket__stub { padding: 40px 28px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; text-align: center; }
.ticket__price { font-size: var(--s-2); font-variant-numeric: tabular-nums; }
.ticket__once { font-weight: 600; margin-bottom: 20px; }
.ticket .btn { background: var(--bg); color: var(--accent); width: 100%; min-height: 56px; }
.ticket .btn:hover { background: var(--on-accent); }
.ticket__notch { position: absolute; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--surface); left: 60%; transform: translateX(-50%); }
.ticket__notch--top { top: calc(var(--notch) / -2); }
.ticket__notch--bottom { bottom: calc(var(--notch) / -2); }
.ticket__perf { position: absolute; left: 60%; top: 26px; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; }
.ticket__perf i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
@media (max-width: 860px) {
  .pricing__head { width: 100%; }
  .ticket { --stub-h: 260px; width: 100%; aspect-ratio: auto; grid-template-columns: 1fr; }
  .ticket__stub { height: var(--stub-h); padding: 64px 28px 28px; justify-content: flex-start; }
  .ticket__main { padding: 40px 28px 32px; }
  .ticket__main h3 { font-size: var(--s-2); }
  .ticket__main ul { grid-template-columns: 1fr; }
  .ticket__price { font-size: var(--s-2); }
  .ticket__once { margin-bottom: 16px; }
  .ticket__notch { top: auto; bottom: var(--stub-h); transform: translateY(50%); }
  .ticket__notch--top { left: calc(var(--notch) / -2); }
  .ticket__notch--bottom { left: auto; right: calc(var(--notch) / -2); }
  .ticket__perf { top: auto; bottom: var(--stub-h); left: 26px; right: 26px; flex-direction: row; transform: translateY(50%); }
}

/* ---------- Questions: index and one answer ---------- */
.faq { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq__list { grid-column: 1 / 6; display: grid; gap: 18px; align-content: start; }
.faq__heading { font: 400 var(--s-4)/1.4 var(--text); color: var(--muted); }
.faq__q {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 var(--s-4)/1.4 var(--text); color: var(--muted);
  transition: color var(--t-hover) ease;
}
.faq__q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.faq__q:hover { color: var(--ink); }
.faq__q[aria-expanded="true"] { color: var(--ink); }
.faq__q[aria-expanded="true"]::before { background: var(--accent); transform: translateY(-2px) scale(1.25); }
.faq__a { padding: 10px 0 6px 22px; font-size: var(--s-4); line-height: 1.45; max-width: 60ch; }
.faq__pane { display: none; }
@media (min-width: 900px) {
  html.js .faq__a { display: none; }
  html.js .faq__pane {
    display: block; grid-column: 7 / 13; position: sticky; top: 120px; align-self: start;
    font: 400 var(--s-3)/1.3 var(--text); max-width: 30ch;
    transition: opacity 150ms ease;
  }
  html.js .faq__pane.is-swapping { opacity: 0; }
}
@media (max-width: 899px) {
  .faq__list { grid-column: 1 / -1; }
  html.js .faq__a[hidden] { display: none; }
}

/* ---------- Footer: name first ---------- */
.foot { margin-top: var(--gap); background: var(--surface); padding: clamp(56px, 6vw, 96px) var(--m) var(--m); min-height: 90svh; display: flex; flex-direction: column; }
.foot__name { font-size: var(--s-1); line-height: 0.8; white-space: nowrap; }
.foot__row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.foot__places { grid-column: 1 / 6; display: grid; gap: 8px; font: 700 var(--s-3)/1.2 var(--display); letter-spacing: -0.015em; }
.foot__places a { color: var(--accent); text-decoration: none; transition: color var(--t-hover) ease; }
.foot__places a:hover { color: var(--ink); }
.foot__cols { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: var(--s-4); }
.foot__cols h3 { font: 600 var(--s-5)/1.4 var(--text); color: var(--muted); margin-bottom: 8px; }
.foot__cols li { margin-bottom: 6px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--accent); }
.foot__legal { margin-top: auto; padding-top: 96px; display: flex; justify-content: space-between; gap: 24px; font-size: var(--s-5); color: var(--muted); }
.foot__legal p { max-width: 80ch; }
.foot__legal a { color: inherit; }
@media (max-width: 760px) {
  .foot__name { font-size: var(--s-1); }
  .foot__places { grid-column: 1 / -1; font-size: var(--s-3); }
  .foot__cols { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; }
}

/* ---------- Hero on a phone ---------- */
@media (max-width: 760px) {
  .hero { align-items: center; padding: 16px; }
  .hero__card { width: 100%; margin-left: 0; min-height: 70svh; }
  .hero__title { font-size: var(--s-2); }
  .hero__facts { font-size: var(--s-3); }
  .hero__foot { grid-template-columns: 1fr; justify-items: start; }
  .hero__foot > :last-child { justify-self: start; }
  .hero__foot .btn { width: 100%; }
}

/* ---------- Document pages (privacy, support) ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--m); }
.bar nav { display: flex; gap: 20px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
.doc { padding: clamp(48px, 8vw, 120px) var(--m) var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.doc__head { grid-column: 1 / -1; margin-bottom: clamp(48px, 6vw, 96px); }
.doc__head h1 { font-size: var(--s-2); }
.doc__head p { margin-top: 20px; color: var(--muted); }
.doc__summary { grid-column: 1 / 6; align-self: start; position: sticky; top: 24px; background: var(--surface); padding: 28px; display: grid; gap: 14px; }
.doc__summary h2 { font: 700 var(--s-3)/1.15 var(--display); letter-spacing: -0.015em; }
.doc__summary li { padding-left: 20px; position: relative; }
.doc__summary li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.doc__body { grid-column: 7 / 13; max-width: 68ch; }
.doc__body h2 { font: 700 var(--s-3)/1.2 var(--display); letter-spacing: -0.015em; margin: 56px 0 14px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font: 700 var(--s-4)/1.4 var(--text); margin: 28px 0 8px; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body table { margin-bottom: 14px; }
.doc__body ul { list-style: disc; padding-left: 22px; }
.doc__body ol { list-style: decimal; padding-left: 22px; }
.doc__body li { margin-bottom: 6px; }
.doc__body a { color: var(--accent); }
.doc__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc__body th, .doc__body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--raised); }
.doc__body th { color: var(--muted); font-weight: 600; }
.doc__foot { padding: 32px var(--m); background: var(--surface); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--s-5); color: var(--muted); }
.doc__foot a { color: inherit; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__summary, .doc__body { grid-column: 1 / -1; }
  .doc__summary { position: static; margin-bottom: 56px; }
}

/* ---------- Motion ---------- */
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.hero__photo { animation: drift 26s var(--ease-soft) infinite alternate; }

html.js [data-reveal] > :not([aria-hidden="true"]) {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].in > :not([aria-hidden="true"]) { opacity: 1; transform: none; }
html.js [data-reveal="mask"] > img { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-out); }
html.js [data-reveal="mask"].in > img { clip-path: inset(0 0 0 0); }
html.js .lineup tr.row { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
html.js .lineup tbody.in tr.row { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo { animation: none; }
  html.js [data-reveal] > :not([aria-hidden="true"]), html.js .lineup tr.row { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js [data-reveal="mask"] > img { clip-path: none !important; }
  .viewfinder img, .faq__pane { transition: none !important; }
  .btn, .chip, .faq__q::before { transition: none; }
}
