/* Yesterday — website styles. Colours and type follow the app (Theme.swift):
   near-black background, near-white text, New York serif headings, sky-blue
   accent, and the orange DSEG date stamp from the camera. */

@font-face {
  font-family: "DSEG7";
  src: url("../fonts/DSEG7Classic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #111112;
  --surface: #1b1b1d;
  --surface-2: #252528;
  --stroke: rgba(255, 255, 255, 0.08);
  --cream: #f6f6f6;
  --dim: rgba(255, 255, 255, 0.65);
  --mute: rgba(255, 255, 255, 0.4);
  --accent: #7dbaff;
  --accent-soft: rgba(125, 186, 255, 0.16);
  --stamp: #ff6b1a;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 26px; }
em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--dim); max-width: 34em; }
.dim { color: var(--dim); }
section { padding: clamp(72px, 10vw, 128px) 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(17, 17, 18, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 15px; }
.nav-links a:hover { color: var(--cream); }
.nav .btn { padding: 9px 18px; font-size: 15px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--cream); color: #111; font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer; font-size: 17px; transition: transform 0.15s ease, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--stroke); }
.btn.accent { background: var(--accent); color: #0c1a2b; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.cta-note { color: var(--mute); font-size: 14px; }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.hero h1 { margin-bottom: 22px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero-art { position: relative; height: 560px; }
.hero-art .camera { position: absolute; width: 230px; left: 36%; top: 58%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 3; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.print {
  position: absolute; width: 210px; background: #f4f1ea; padding: 10px 10px 36px;
  border-radius: 4px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.print .photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.print .photo img { width: 100%; height: 100%; object-fit: cover; }
.print.p1 { left: 2%; top: 4%; transform: rotate(-9deg); }
.print.p2 { right: 2%; top: 0; transform: rotate(7deg); z-index: 2; }
.print.p3 { right: 2%; bottom: 0; transform: rotate(-3deg); z-index: 4; }
@media (max-width: 900px) { .hero-art { height: 480px; } .print { width: 170px; } .hero-art .camera { width: 190px; } }

/* The camera's date stamp, as printed on photos in the app */
.stamp {
  position: absolute; right: 8px; bottom: 8px;
  font-family: "DSEG7", monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--stamp); text-shadow: 0 0 6px rgba(255, 90, 10, 0.85);
  white-space: nowrap;
}

/* Proof strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 28px 0; border-block: 1px solid var(--stroke); color: var(--dim); font-size: 15px; }
.strip b { color: var(--cream); font-weight: 600; }

/* Occasions */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 38px 0 34px; }
.tab {
  border: 1px solid var(--stroke); background: var(--surface); color: var(--dim);
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent-soft); border-color: rgba(125,186,255,.5); color: var(--accent); }
.occasion { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.occasion.active { display: grid; }
.occasion .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.occasion .gallery .photo { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--surface); }
.occasion .gallery img { width: 100%; height: 100%; object-fit: cover; }
.occasion .gallery .stamp { font-size: 8px; right: 5px; bottom: 5px; }
.occasion h3 { font-size: 34px; margin-bottom: 14px; }
@media (max-width: 820px) { .occasion.active { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.step .visual { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; min-height: 260px; align-items: flex-end; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.phone {
  width: 210px; border-radius: 34px; padding: 8px; background: #000;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.phone img { border-radius: 27px; }
.qr-card { background: #fff; padding: 16px; border-radius: 18px; width: 200px; text-align: center; color: #111; font-size: 13px; font-weight: 600; }
.qr-card img { image-rendering: pixelated; margin-bottom: 8px; }
.code-pill { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: #111; color: #fff; letter-spacing: .14em; font-size: 12px; }
.reveal-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.reveal-grid .photo { position: relative; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.reveal-grid img { width: 100%; height: 100%; object-fit: cover; }
.reveal-grid .locked { display: grid; place-items: center; color: var(--mute); font-size: 18px; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--stroke); }
.center + .feature { border-top: 0; }
.feature.flip .art { order: 2; }
.feature .art { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 340px; }
.feature .art img { filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .art { order: 0; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.price-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 30px; }
.price-card h3 { margin-bottom: 6px; }
.price-card table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.price-card td { padding: 11px 0; border-top: 1px solid var(--stroke); }
.price-card td:last-child { text-align: right; font-weight: 600; }
.price-card tr:first-child td { border-top: 0; }
.free { color: var(--accent); }
.fine { color: var(--mute); font-size: 14px; margin-top: 22px; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--stroke); }
.faq details:last-child { border-bottom: 1px solid var(--stroke); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 21px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 26px; font-weight: 300; color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--dim); }

/* Closing CTA */
.closing { text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(125,186,255,.14), transparent 70%); }
.closing .cta-row { justify-content: center; }
.qr-inline { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 14px; text-align: left; }
.qr-inline img { width: 64px; height: 64px; background: #fff; padding: 5px; border-radius: 10px; image-rendering: pixelated; }
@media (max-width: 700px) { .qr-inline { display: none; } }

/* Footer */
footer { border-top: 1px solid var(--stroke); padding: 56px 0 40px; color: var(--dim); font-size: 15px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }
.legal { margin-top: 44px; color: var(--mute); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }

/* Text pages (privacy, terms, support, join) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.page h2 { font-size: 26px; margin: 44px 0 12px; }
.page p, .page li { color: var(--dim); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page strong { color: var(--cream); font-weight: 600; }
.updated { color: var(--mute); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; margin: 22px 0; }

/* Join page */
.join { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 0; text-align: center; }
.join .camera { width: 160px; margin: 0 auto 26px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.join .code { font-family: var(--sans); font-size: 34px; letter-spacing: .22em; font-weight: 700; padding: 14px 24px; border: 1px dashed rgba(255,255,255,.25); border-radius: 16px; display: inline-block; margin: 18px 0 6px; }
.join .cta-row { justify-content: center; }
.join ol { text-align: left; color: var(--dim); max-width: 420px; margin: 28px auto 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Jumping to a section shouldn't hide its heading under the sticky nav. */
section[id] { scroll-margin-top: 64px; }
body { overflow-x: hidden; }

@media (max-width: 860px) {
  /* Keep the three cameras (and the other artwork) inside the screen. */
  .feature .art { min-height: 0; gap: 6px; }
  .feature .art img { max-width: 30%; height: auto; }
  .feature .art img:only-child { max-width: 82%; }
}
@media (max-width: 560px) {
  .occasion .gallery .stamp { font-size: 6.5px; right: 4px; bottom: 4px; }
  .stamp { font-size: 9px; }
}
