/* B&W Camera landing page.
   Palette: selenium-toned silver paper, fixer ink, and the app's safelight orange,
   used only where something is active or printed on the film rebate. */
:root {
  color-scheme: light;
  --silver: #D9DCDF;
  --gelatin: #F1F2F3;
  --ink: #101113;
  --graphite: #4E5258;
  --tray: #23262A;
  --safelight: #FF6B3D;
  --rule: rgba(16, 17, 19, 0.16);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--silver);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 900; }
:focus-visible { outline: 3px solid var(--safelight); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Mono labels styled like film edge print */
.edge {
  margin: 0;
  font: 600 0.72rem/1.4 var(--mono);
  font-stretch: 87.5%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 8px; }

/* ---------- Store buttons ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 18px;
  background: var(--ink); color: #fff;
  border-radius: 12px; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.store-btn span { display: flex; flex-direction: column; font: 700 1.2rem/1.05 var(--body); }
.store-btn small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; }
.store-btn:hover { background: #000; transform: translateY(-1px); }
.store-btn--small { padding: 8px 16px; font-weight: 700; font-size: 0.95rem; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 112px);
}
.hero h1 {
  margin: 14px 0 22px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7.6vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.lede { max-width: 34ch; margin: 0 0 30px; font-size: 1.15rem; color: var(--graphite); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { margin: 0; font: 400 0.75rem var(--mono); letter-spacing: 0.06em; color: var(--graphite); }

/* The print: photo on a black film border, edge print on the rebate below */
.lab { margin: 0; }
.frame {
  position: relative;
  background: #000;
  padding: clamp(6px, 1vw, 12px);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 30px 60px -30px rgba(16, 17, 19, 0.55);
}
.frame canvas, .frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; touch-action: pan-y; cursor: pointer; -webkit-touch-callout: none; user-select: none; }
.hold {
  position: absolute; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px);
  padding: 8px 14px;
  font: 600 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
}
.hold[aria-pressed="true"] { background: var(--safelight); border-color: var(--safelight); color: var(--ink); }
.edge--frame {
  display: flex; gap: 10px;
  padding: 9px 16px;
  background: var(--tray); color: var(--safelight);
  border-radius: 0 0 4px 4px;
}

.controls { display: grid; gap: 16px; margin-top: 22px; }
.controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.controls legend { padding: 0; margin-bottom: 8px; font: 600 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px;
  font: 500 0.9rem var(--body);
  color: var(--ink); background: var(--gelatin);
  border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pro { margin-left: 5px; font: 600 0.58rem var(--mono); letter-spacing: 0.08em; vertical-align: 1px; opacity: 0.6; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(16, 17, 19, 0.25);
  background: var(--c); cursor: pointer;
}
.swatch--none { background: linear-gradient(135deg, transparent 46%, var(--ink) 46% 54%, transparent 54%), var(--gelatin); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--silver), 0 0 0 5px var(--safelight); }
.swatch:disabled { opacity: 0.3; cursor: not-allowed; }

.roll { display: flex; gap: 8px; }
.roll button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
.roll img { width: 72px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; filter: grayscale(1); }
.roll button[aria-checked="true"] { border-color: var(--ink); }

.lab figcaption { min-height: 3.2em; margin-top: 14px; color: var(--graphite); font-size: 0.98rem; }

/* ---------- Content sections ---------- */
.why, .hand, .tablet, .spec, .pricing, .faq, .last { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.why, .tablet, .spec, .pricing, .faq { border-top: 1px solid var(--rule); }

.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.why h2, .hand h2, .tablet h2, .spec h2, .pricing h2, .faq h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.why p { margin: 0; max-width: 56ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

.hand h2 { max-width: 14ch; margin-bottom: clamp(28px, 4vw, 48px); }
.phones {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.phones img { border-radius: clamp(18px, 2.6vw, 34px); border: 5px solid var(--ink); background: #000; }
.phones p { margin: 14px 0 0; font-size: 0.95rem; color: var(--graphite); }
.phones b { color: var(--ink); }

.tablet { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.tablet-copy { position: sticky; top: 24px; }
.tablet h2 { margin: 12px 0 20px; }
.tablet-copy > p:last-child { margin: 0; max-width: 44ch; color: var(--graphite); }
.tablets {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(12px, 1.8vw, 24px);
  margin: 0; padding: 0; list-style: none;
}
.tablets .tablet-main { grid-row: span 2; }
.tablets img { border: clamp(5px, 0.7vw, 9px) solid var(--ink); border-radius: clamp(16px, 2vw, 28px); background: #000; }
.tablets li:not(.tablet-main) { align-self: start; }

.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.spec dl { margin: 0; }
.spec dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dl > div:first-child { padding-top: 0; }
.spec dt { font: 600 0.72rem/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.spec dd { margin: 0; }
.tag { display: inline-block; margin-left: 4px; padding: 1px 7px; font: 600 0.6rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; vertical-align: 2px; }
.tag--pro { background: var(--ink); color: #fff; border-color: var(--ink); }

.pricing h2 { max-width: 22ch; margin-bottom: clamp(28px, 4vw, 48px); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; }
.plan { padding: clamp(22px, 3vw, 34px); background: var(--gelatin); border-radius: 8px; }
.plan h3 { font: 600 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.price { margin: 10px 0 0; font: 900 clamp(3rem, 5vw, 4.2rem)/1 var(--display); }
.price span { font-size: 0.4em; font-weight: 700; }
.alt { margin: 6px 0 0; font-size: 0.92rem; color: var(--graphite); }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; }
.plan li { padding: 8px 0; border-top: 1px solid var(--rule); }
.plan--pro { background: var(--tray); color: #fff; }
.plan--pro h3 { color: var(--safelight); }
.plan--pro .alt { color: rgba(255, 255, 255, 0.7); }
.plan--pro li { border-top-color: rgba(255, 255, 255, 0.14); }
.fine { margin: 18px 0 0; font-size: 0.85rem; color: var(--graphite); }

.faq h2 { margin-bottom: 24px; }
.faq details { max-width: 820px; border-bottom: 1px solid var(--rule); }
.faq summary { padding: 18px 2rem 18px 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 1.5rem var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; max-width: 64ch; color: var(--graphite); }

.last { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.last h2 { font-family: var(--display); font-size: clamp(4rem, 14vw, 12rem); line-height: 0.8; text-transform: uppercase; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--graphite);
}
.foot p { margin: 0; }
.linkish { padding: 0; font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* ---------- Consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  max-width: 620px; margin: 0 auto; padding: 16px 18px;
  background: var(--tray); color: #fff; border-radius: 10px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; font-size: 0.92rem; }
.consent div { display: flex; gap: 8px; }
.btn-plain, .btn-solid { padding: 9px 14px; font: 700 0.9rem var(--body); border-radius: 8px; cursor: pointer; }
.btn-plain { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-solid { color: var(--ink); background: var(--safelight); border: 1px solid var(--safelight); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .why, .tablet, .spec { grid-template-columns: minmax(0, 1fr); }
  .tablet-copy { position: static; }
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  }
  .phones li { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .spec dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .swatch { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
