/* Photonull site, design mock r1. One stylesheet, no build step, no third-party requests.
   Tokens first; every component below uses only these. See DESIGN.md. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/schibsted-grotesk-regular.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/schibsted-grotesk-medium.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/schibsted-grotesk-bold.woff2") format("woff2"); }

:root {
  /* Colour: from the app's Theme.swift (light). One accent: the app's green. */
  --white: #ffffff;       /* page */
  --sand: #f4f4ef;        /* the app's "paper": bands, screenshot stage */
  --ink: #1b1e26;         /* text, primary button, phone frame */
  --muted: #585d68;       /* secondary text: 6.6:1 on white, 6.0:1 on sand */
  --line: #e1e1d9;        /* hairlines, card borders */
  --soft: #e9e9e2;        /* "Coming soon" fill, neutral callout */
  --accent: #2f7a5a;      /* green: ticks, step numbers, icons. 5.2:1 on white */
  --accent-ink: #22654a;  /* green text and links: 6.9:1 on white, 5.8:1 on accent-soft */
  --accent-soft: #ddefe5; /* tip callout, "clean" tags */
  --amber-soft: #fff1d6;  /* "good to know" (limits) callout */
  --amber-ink: #7a4a00;   /* its label: 6.7:1 */

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (mobile, then >= 900px in the media query at the end) */
  --step--1: 0.9375rem;  /* 15px small print, meta */
  --step-0: 1.125rem;    /* 18px body */
  --step-1: 1.3125rem;   /* 21px lead, h3 */
  --step-2: 1.75rem;     /* 28px h2 */
  --step-3: 2.375rem;    /* 38px h1 */

  /* Spacing, 4px grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 20px;              /* the app's margin */
  --section: var(--s8);        /* vertical padding of a section */
  --radius: 20px;              /* cards */
  --radius-sm: 12px;           /* callouts, small chips */
  --wide: 1120px;              /* page content */
  --measure: 680px;            /* article text, about 66 characters */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: var(--s4); }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { left: var(--s4); top: var(--s4); }

.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.eyebrow { font-size: var(--step--1); font-weight: 500; color: var(--muted); letter-spacing: 0.01em; margin-bottom: var(--s3); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); line-height: 1.5; }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head .lead { margin-top: var(--s4); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: var(--s2) var(--s3); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--sand); }
.nav .store { display: none; } /* compact store button only on wide screens */

/* ---------- App Store button ----------
   Live: Apple's official "Download on the App Store" badge, self-hosted SVG, black, 48px tall.
   The mock draws a stand-in (.badge-standin) because Apple's badge file was not downloaded; swap it, see DESIGN.md.
   Coming soon: not a link, not focusable, same footprint. */
.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 48px; width: auto; }
.badge-standin { display: inline-flex; flex-direction: column; justify-content: center; height: 48px; padding: 0 18px 0 16px; border-radius: 10px;
  background: #000; color: #fff; line-height: 1.05; text-decoration: none; border: 1px solid #a6a6a6; }
.badge-standin small { font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }
.badge-standin span { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.store-soon { display: inline-flex; align-items: center; gap: var(--s3); height: 48px; padding: 0 var(--s5) 0 var(--s4);
  border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.15; }
.store-soon svg { flex: none; color: var(--accent); }
.store-soon em { display: block; font-style: normal; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.store-note { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

/* ---------- Phone screenshot ---------- */
.phone { width: 100%; max-width: 300px; margin: 0 auto; border: 7px solid var(--ink); border-radius: 44px; overflow: hidden; background: var(--sand);
  box-shadow: 0 1px 0 rgba(27, 30, 38, 0.04), 0 24px 48px -24px rgba(27, 30, 38, 0.28); }
.phone img { width: 100%; }

/* ---------- Home: hero ---------- */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: var(--s5); max-width: 34ch; color: var(--ink); }
.hero .store { margin-top: var(--s6); }
.facts { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s2); font-size: 1rem; }
.facts li { display: flex; gap: var(--s3); align-items: flex-start; }
.tick { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.tick svg { width: 13px; height: 13px; }

/* ---------- Home: steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s8); counter-reset: step; }
.steps > li { counter-increment: step; display: grid; gap: var(--s5); }
.step-text { max-width: 36ch; }
.step-text h3::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 1rem; margin-right: var(--s3); vertical-align: 3px; letter-spacing: 0; }
.step-text p { margin-top: var(--s3); color: var(--muted); }
.steps .phone { max-width: 240px; }
@media (min-width: 900px) { .steps .phone { max-width: 280px; } }

/* ---------- Home: what a photo carries ---------- */
.carries { display: grid; gap: var(--s4); }
.carry { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--white); }
.carry h3 { font-size: var(--step-0); }
.carry .example { font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); margin-top: var(--s2); }
.carry p:last-child { margin-top: var(--s2); color: var(--muted); font-size: 1rem; }

/* ---------- Plain list with ticks, two-up on desktop ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.ticks li { display: flex; gap: var(--s3); }
.ticks strong { display: block; }
.ticks span.muted { display: block; font-size: 1rem; }

/* ---------- Price ---------- */
.plans { display: grid; gap: var(--s4); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6) var(--s5); background: var(--white); }
.plan--pro { border: 2px solid var(--ink); }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.plan .price { font-size: var(--step-1); font-weight: 700; }
.plan .price small { font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.plan ul { margin: var(--s4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.plan li { display: flex; gap: var(--s3); font-size: 1rem; }
.plan-note { margin-top: var(--s5); max-width: var(--measure); }

/* ---------- Limits ---------- */
.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s4); max-width: var(--measure); }
.limits li { padding-left: var(--s5); border-left: 3px solid var(--line); }

/* ---------- Guide cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s3); height: 100%; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.card h3 { font-size: var(--step-1); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable, one link */
.card h3 a:focus-visible { outline: none; }
.card p { color: var(--muted); font-size: 1rem; }
.card .meta { margin-top: auto; padding-top: var(--s2); display: flex; gap: var(--s2); flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 500; font-size: 0.875rem; }
.tag--pro { background: var(--accent-soft); color: var(--accent-ink); }
.more { margin-top: var(--s6); }

/* ---------- Closing call to action (home and guide) ---------- */
.cta { display: grid; gap: var(--s5); padding: var(--s6) var(--s5); border-radius: var(--radius); background: var(--sand); }
.cta-head { display: flex; gap: var(--s4); align-items: center; }
.cta-head img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.cta h2, .cta .cta-title { font-size: var(--step-2); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.cta p { max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s8); font-size: 1rem; }
.footer-grid { display: grid; gap: var(--s6); }
.footer-brand p { margin-top: var(--s3); color: var(--muted); max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.footer-small { margin-top: var(--s6); color: var(--muted); font-size: var(--step--1); }

/* ---------- Guide article ---------- */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: var(--s6); }
.crumbs a { color: var(--muted); }
.article { max-width: var(--measure); margin: 0 auto; padding-bottom: var(--s8); }
.article-head { padding: var(--s4) 0 var(--s6); }
.article-head .lead { margin-top: var(--s4); }
.byline { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--step--1); color: var(--muted); }
.prose h2 { margin: var(--s8) 0 var(--s4); scroll-margin-top: var(--s5); }
.prose h3 { margin: var(--s6) 0 var(--s3); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s2); }
.prose ol.howto { list-style: none; padding: 0; counter-reset: s; display: grid; gap: var(--s4); }
.prose ol.howto > li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: var(--s4); margin: 0; }
.prose ol.howto > li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; margin-top: -2px; }
.ui { font-weight: 700; } /* names of buttons on the phone: "Share", "Options" */

.answer { padding: var(--s5); border-radius: var(--radius); background: var(--sand); margin: 0 0 var(--s6); }
.answer .label { font-size: var(--step--1); font-weight: 700; margin-bottom: var(--s2); }
.answer p { font-size: var(--step-0); }

.callout { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--radius-sm); margin: var(--s5) 0; font-size: 1.0625rem; line-height: 1.55; }
.callout svg { width: 22px; height: 22px; margin-top: 2px; }
.callout .label { display: block; font-weight: 700; }
.prose .callout p, .prose .answer p { margin: 0; }
.answer .label { margin-bottom: var(--s2) !important; }
.callout--tip { background: var(--accent-soft); }
.callout--tip svg, .callout--tip .label { color: var(--accent-ink); }
.callout--limit { background: var(--amber-soft); }
.callout--limit svg, .callout--limit .label { color: var(--amber-ink); }
.callout--note { background: var(--white); border: 1px solid var(--line); }
.callout--note svg { color: var(--muted); }

.figure { margin: var(--s6) 0; padding: var(--s6) var(--s4) var(--s4); background: var(--sand); border-radius: var(--radius); }
.figure .phone { max-width: 260px; }
.figure figcaption { margin-top: var(--s4); font-size: var(--step--1); color: var(--muted); text-align: center; }

.compare { width: 100%; min-width: 320px; border-collapse: collapse; margin: var(--s5) 0 var(--s4); font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.compare tbody th { font-weight: 500; }
.compare .yes { color: var(--accent-ink); font-weight: 700; }
.compare .no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

.article .cta { margin-top: var(--s8); }
.related { margin-top: var(--s8); }
.related h2 { font-size: var(--step-1); margin-bottom: var(--s4); }

/* ---------- Component sheet only ---------- */
.spec { display: grid; gap: var(--s5); }
.spec-row { padding: var(--s5); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.spec-row > .label { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--s4); display: block; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.875rem; }
.swatch div { height: 56px; }
.swatch p { padding: var(--s2) var(--s3); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .carries { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .ticks { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
}
@media (min-width: 900px) {
  :root {
    --step-0: 1.1875rem;  /* 19px */
    --step-1: 1.4375rem;  /* 23px */
    --step-2: 2.25rem;    /* 36px */
    --step-3: 3.75rem;    /* 60px */
    --section: var(--s9);
  }
  .nav .store { display: inline-flex; margin-left: var(--s3); }
  .nav .store .store-soon { height: 40px; font-size: 0.9375rem; padding: 0 var(--s4) 0 var(--s3); }
  .nav .store .store-soon em { display: none; }
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s8); }
  .hero .phone { max-width: 340px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .steps > li { grid-template-rows: auto 1fr; }
  .carries { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: var(--s7); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .article-head { padding-top: var(--s5); }
  .related .cards { grid-template-columns: 1fr 1fr; }
  .article .cta { grid-template-columns: 1fr; padding: var(--s6); } /* narrow column: stack, keep the title on one line */
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta, .related { display: none; } body { font-size: 12pt; } }

/* Mock only: marks a fact the writer or qa fills in. Not part of the design. */
mark.todo { background: var(--amber-soft); color: var(--amber-ink); padding: 0 4px; border-radius: 4px; }
