/* PhotoStamp Pro landing page.
   Tokens come from the app: camera black, sheet graphite, shutter yellow (#FFD60A),
   Proof green (#30D158) and the Film Date orange. Share Tech Mono is the app's stamp face. */
:root {
  --ink: #0E0E10;
  --graphite: #1C1C1E;
  --card: #2C2C2E;
  --paper: #ECEDE9;
  --mute: #8E8E93;
  --mute-ink: #55565B;
  --shutter: #FFD60A;
  --film: #FF8A2A;
  --proof: #30D158;
  --text: #F5F5F7;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Menlo, monospace;
  --script: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--shutter); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--shutter); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--shutter); color: var(--ink);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-store {
  min-height: 60px; padding: 0 26px 0 22px; border-radius: 14px;
  background: var(--text); color: var(--ink); text-align: left;
}
.btn-store span { display: flex; flex-direction: column; font: 600 21px/1.05 var(--body); letter-spacing: -.01em; }
.btn-store small { font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 16px/1 var(--body); margin-right: auto; }
.brand b { font-weight: 600; color: var(--shutter); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--shutter); position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2.5px solid var(--ink);
}
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; font-size: 15px; color: #C7C7CC; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 400px) minmax(0, 1fr);
  grid-template-areas:
    "when vf where"
    ".    qr ."
    "copy copy copy";
  column-gap: clamp(20px, 3vw, 48px);
  max-width: 1360px; margin: 0 auto;
}
.giant { display: flex; flex-direction: column; gap: 14px; }
.giant-when { grid-area: when; align-items: flex-end; text-align: right; align-self: start; padding-top: 6%; }
.giant-where { grid-area: where; align-items: flex-start; align-self: end; padding-bottom: 8%; }
.giant-word {
  font: 800 clamp(52px, 6.6vw, 118px)/.86 var(--display);
  font-variation-settings: "wdth" 104;
  letter-spacing: -.035em; text-transform: uppercase;
}
.giant-where .giant-word { color: var(--shutter); }
.readout {
  font: 400 clamp(13px, 1.2vw, 16px)/1.35 var(--mono);
  color: #C7C7CC; letter-spacing: .04em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; min-height: 2.7em;
}
.readout::before { content: "● "; color: var(--destructive, #FF453A); font-size: .8em; }
.giant-where .readout::before { content: "⌖ "; color: var(--shutter); font-size: 1em; }

/* Viewfinder: a 3:4 crop like the camera preview */
.vf { grid-area: vf; position: relative; margin: 0; container-type: inline-size; border-radius: var(--radius); overflow: hidden; background: var(--graphite); aspect-ratio: 3 / 4; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.vf-photo, .vf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-photo img { object-fit: cover; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.vf.is-changing .vf-photo img { opacity: 0; transform: scale(1.03); }
.vf::after { /* corner brackets of a viewfinder */
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  --c: rgba(255,255,255,.55);
  background:
    linear-gradient(var(--c),var(--c)) top left / 22px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) top left / 2px 22px no-repeat,
    linear-gradient(var(--c),var(--c)) top right / 22px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) top right / 2px 22px no-repeat;
}
.stamp-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.vf.is-changing .stamp-layer { opacity: 0; }

/* Quick row, as in the app */
.quickrow-wrap { grid-area: qr; margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.quickrow {
  position: relative; display: flex; gap: 2px; padding: 4px; max-width: 100%;
  border-radius: 999px; background: rgba(44,44,46,.9);
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.quickrow::-webkit-scrollbar { display: none; }
.quickrow::before, .quickrow::after { content: ""; flex: 0 0 34%; }
.quickrow button {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 9px 14px;
  background: transparent; color: #AEAEB2; cursor: pointer;
  font: 600 12px/1 var(--body); letter-spacing: .08em;
  transition: background-color .25s var(--ease), color .25s;
}
.quickrow button[aria-selected="true"] { background: var(--shutter); color: var(--ink); }
.quickrow-hint { font-size: 13px; color: var(--mute); text-align: center; }

.hero-copy { grid-area: copy; max-width: 760px; margin: clamp(40px, 6vw, 72px) auto 0; text-align: center; }
.hero-copy h1 {
  font: 700 clamp(28px, 3.3vw, 46px)/1.08 var(--display);
  font-variation-settings: "wdth" 100; letter-spacing: -.02em; text-wrap: balance;
}
.lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: #C7C7CC; text-wrap: pretty; }
.cta-row { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-note { font: 400 13px/1.4 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; text-align: left; }

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "when" "vf" "where" "qr" "copy";
  }
  .giant { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 !important; }
  .giant-when { margin-bottom: 14px; text-align: left; flex-direction: row-reverse; }
  .giant-where { margin-top: 14px; }
  .giant-word { font-size: clamp(48px, 17vw, 96px); }
  .readout { font-size: 11.5px; min-height: 0; max-width: 46%; }
  .giant-when .readout { text-align: right; }
  .giant-where .readout { text-align: right; }
  .vf { width: 100%; max-width: 480px; justify-self: center; }
  .hero-copy { text-align: left; }
  .cta-row { justify-content: flex-start; }
}

/* ---------- Stamps (rendered with container units so they scale with the viewfinder) ---------- */
.st { position: absolute; color: #fff; }
.st-classic { left: 0; right: 0; bottom: 7cqw; text-align: center; text-shadow: 0 1px 3cqw rgba(0,0,0,.55); }
.st-classic .t { font: 200 21cqw/1 var(--body); letter-spacing: -.02em; }
.st-classic .d { margin-top: 1.5cqw; font: 500 4cqw/1.2 var(--body); }

.st-film { right: 6cqw; bottom: 8cqw; text-align: right; color: var(--film); text-shadow: 0 0 2.4cqw rgba(255,120,30,.75); }
.st-film .c { font: 400 4.2cqw/1.2 var(--mono); }
.st-film .d { font: 400 9.5cqw/1 var(--mono); letter-spacing: .06em; }
.st-film .t { font: 400 4.2cqw/1.3 var(--mono); opacity: .8; }

.st-moments { left: 6cqw; bottom: 8cqw; text-shadow: 0 1px 2cqw rgba(0,0,0,.6); }
.st-moments .w { font: 700 12cqw/1 var(--script); transform: rotate(-4deg); transform-origin: left; }
.st-moments .d { font: 700 6cqw/1.2 var(--script); transform: rotate(-4deg); transform-origin: left; }

.st-journal { left: 5cqw; right: 5cqw; bottom: 8cqw; display: flex; align-items: center; justify-content: space-between; padding: 3.4cqw 4.4cqw; border-radius: 1.6cqw; background: #FBFAF6; color: #1C1C1E; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.35); }
.st-journal .w { font: 700 8.5cqw/1 var(--script); }
.st-journal .d { font: 400 2.9cqw/1.4 var(--mono); text-align: right; text-transform: uppercase; letter-spacing: .06em; }

.st-panel { left: 4cqw; bottom: 5cqw; max-width: 84cqw; border-radius: 2.4cqw; background: rgba(28,28,30,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: hidden; font-family: var(--body); }
.st-report .h { display: flex; justify-content: space-between; gap: 6cqw; padding: 1.6cqw 3cqw; background: var(--shutter); color: var(--ink); font: 700 3cqw/1 var(--body); letter-spacing: .08em; }
.st-report dl { margin: 0; padding: 2.4cqw 3cqw 2.8cqw; display: grid; grid-template-columns: auto 1fr; gap: .6cqw 4cqw; font-size: 3.3cqw; line-height: 1.25; }
.st-report dt { color: #AEAEB2; }
.st-report dd { margin: 0; font-weight: 500; }
.st-report dd.m { font-family: var(--mono); }

.st-proof { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw; right: 4cqw; max-width: none; }
.st-proof .ok { flex: none; width: 8.5cqw; height: 8.5cqw; border-radius: 50%; background: var(--proof); display: grid; place-items: center; }
.st-proof .ok svg { width: 55%; height: 55%; }
.st-proof .b { flex: 1; min-width: 0; }
.st-proof .k { font: 700 4.3cqw/1.1 var(--body); letter-spacing: .02em; }
.st-proof .s { font-size: 3.2cqw; color: #D1D1D6; line-height: 1.35; }
.st-proof .t { font: 300 8cqw/1 var(--body); }

.st-gps { display: flex; gap: 3cqw; padding: 2.4cqw; right: 4cqw; max-width: none; align-items: center; }
.st-gps svg { flex: none; width: 20cqw; height: 20cqw; border-radius: 1.6cqw; }
.st-gps .p { font: 600 3.8cqw/1.2 var(--body); }
.st-gps .c, .st-gps .d { font: 400 3.1cqw/1.35 var(--mono); color: #D1D1D6; }

/* ---------- Section heads ---------- */
.band-head { max-width: 860px; }
.eyebrow { font: 400 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.band-head h2, .faq h2, .final h2 {
  font: 800 clamp(34px, 5vw, 68px)/.98 var(--display);
  font-variation-settings: "wdth" 108; letter-spacing: -.03em; text-wrap: balance;
}
.band-head h2 em { font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .1em; }
.section-lead { margin-top: 22px; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); }

/* ---------- Try it ---------- */
.try { background: var(--graphite); padding: clamp(56px, 8vw, 104px) var(--gutter); }
.try-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.try .eyebrow { color: var(--shutter); }
.try .section-lead { color: #C7C7CC; }
.try-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); border: 2px dashed #636366; text-align: center; transition: border-color .2s, background-color .2s; }
.try-box.is-over { border-color: var(--shutter); background: rgba(255,214,10,.07); }
.try-pick { cursor: pointer; min-height: 54px; padding: 0 30px; font-size: 18px; }
.try-pick:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }
.try-box > p { color: #C7C7CC; font-size: 15px; }
.try-fine a { color: var(--shutter); }
.try-list { margin-top: 14px; display: grid; gap: 6px; text-align: left; font-size: 14.5px; line-height: 1.4; color: #C7C7CC; }
.try-list b { color: var(--text); font-weight: 600; }
.quickrow-hint a { color: var(--shutter); white-space: nowrap; }
.work-text p a { color: var(--shutter); white-space: nowrap; }
@media (max-width: 860px) { .try-inner { grid-template-columns: 1fr; } }

/* ---------- Work (the Site Report header band, at page scale) ---------- */
.work { background: var(--shutter); color: var(--ink); padding: clamp(64px, 9vw, 128px) var(--gutter); }
.work > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.work .section-lead { color: #2B2A20; }
.work-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.work-card { background: var(--ink); color: var(--text); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-card img { aspect-ratio: 600 / 795; object-fit: cover; }
.work-text { padding: 22px 24px 28px; }
.work-text h3 { font: 700 24px/1.1 var(--display); font-variation-settings: "wdth" 110; }
.use-for { margin: 6px 0 12px; font: 400 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--shutter); }
.work-text p:last-child { color: #C7C7CC; font-size: 16px; }

.spec { margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.spec-title { grid-column: 1 / -1; font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--display); font-variation-settings: "wdth" 110; }
.spec-list { margin: 0; border-top: 2px solid var(--ink); }
.spec-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(14,14,16,.28); }
.spec-list dt { font: 600 17px/1.35 var(--body); }
.spec-list dd { margin: 0; color: #2B2A20; }
.spec-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec-shots img { border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.5); }
.spec-shots img:last-child { margin-top: 48px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; max-width: 480px; }
  .spec { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Life ---------- */
.life { padding: clamp(64px, 9vw, 128px) var(--gutter); background: var(--ink); }
.life > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.life .eyebrow { color: var(--film); }
.life .section-lead { color: #C7C7CC; }
.life-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.life-grid li:nth-child(even) { margin-top: 56px; }
.life-grid img { border-radius: 16px; aspect-ratio: 600 / 795; object-fit: cover; }
.life-grid h3 { margin-top: 14px; font: 700 20px/1.2 var(--display); font-variation-settings: "wdth" 110; }
.life-grid p { font: 400 13px/1.5 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) {
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-grid li:nth-child(even) { margin-top: 32px; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--paper); color: var(--ink); padding: clamp(64px, 9vw, 128px) var(--gutter); }
.pricing > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.pricing .eyebrow { color: var(--mute-ink); }
.plans { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; }
.plan { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 1px rgba(14,14,16,.08); }
.plan h3 { font: 800 34px/1 var(--display); font-variation-settings: "wdth" 115; }
.plan-sub { color: var(--mute-ink); }
.plan ul { margin: 8px 0 18px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan-pro { background: var(--ink); color: var(--text); box-shadow: none; }
.plan-pro h3 { color: var(--shutter); }
.plan-pro .plan-sub { color: #C7C7CC; }
.plan-pro li::before { color: var(--proof); }
.plan-fine { font-size: 13px; color: var(--mute); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 960px; margin: 0 auto; }
.faq-list { margin-top: 36px; border-top: 1px solid #3A3A3E; }
.faq details { border-bottom: 1px solid #3A3A3E; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 var(--mono); color: var(--shutter); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 680px; color: #C7C7CC; }

/* ---------- Final ---------- */
.final { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(72px, 10vw, 140px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; border-top: 1px solid #2C2C2E; }
.final h2 { max-width: 900px; }
.final-stamp { font: 400 clamp(20px, 3.2vw, 40px)/1 var(--mono); color: var(--film); text-shadow: 0 0 18px rgba(255,120,30,.55); letter-spacing: .08em; }

/* ---------- Footer & consent ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 14px; border-top: 1px solid #2C2C2E; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

.consent {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; padding: 18px 20px; border-radius: 18px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 14px; font-size: 15px;
}
.consent[hidden] { display: none; }
@media (min-width: 761px) { .consent { right: auto; left: 24px; bottom: 24px; max-width: 400px; font-size: 14px; } }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
