/* Texts to Paper site (landing page and guides). Tokens from the app: Common/Palette.swift and STYLE.md in the text-export repo.
   Font: Schibsted Grotesk (SIL OFL 1.1), the app's one font, subset to Latin. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --bg: #FFFFFF;
  --surface: #F3F4F6;
  --hairline: #DADDE2;
  --ink: #121417;
  --text2: #4A4F58;
  --text3: #656B76;
  --theme: #FF6A1A;
  --accent-ink: #BE4B10;
  --label: #FFE4D2;
  --on-label: #7A2E06;
  --shadow: 0 1px 2px rgb(18 20 23 / .08), 0 12px 32px rgb(18 20 23 / .10);
  --theme-shadow: 0 10px 24px rgb(120 70 50 / .22);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "Schibsted Grotesk", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.nb { white-space: nowrap; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--text2); text-decoration: none; font-size: 15px; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 0 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.hero .sub { font-size: 19px; color: var(--text2); margin: 0 0 24px; max-width: 34ch; }
.hero-art { position: relative; min-width: 0; }
.hero-art .seal { position: absolute; width: 96px; right: 4%; bottom: -18px; filter: drop-shadow(0 6px 10px rgb(120 70 50 / .3)); }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark svg { width: 20px; height: 20px; fill: currentColor; }
.btn[aria-disabled="true"] { cursor: default; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.waitlist input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 20px; border: 1.5px solid #C9CDD3; border-radius: 999px; font: inherit; color: var(--ink); background: #fff; }
.waitlist input[type=email]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist input[aria-invalid="true"] { border-color: #B42318; }
.waitlist button { border: 0; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 600; }
.waitlist button:disabled { opacity: .6; cursor: default; }
.waitlist .su-hp { position: absolute; left: -9999px; }
.waitlist .su-error { flex-basis: 100%; margin: 0; color: #B42318; font-size: 15px; }
.waitlist .su-done { flex-basis: 100%; margin: 0; font-weight: 600; }
.waitlist.is-done input, .waitlist.is-done button { display: none; }
.store-note { color: var(--text3); font-size: 15px; margin: 0; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--text2); font-size: 18px; margin: 0 0 28px; max-width: 46ch; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }

/* The app's folder card: square top left corner, a tab on top */
.folder { position: relative; margin-top: 29px; background: var(--surface); border-radius: 0 22px 22px 22px; padding: 24px 20px; }
.folder .tab { position: absolute; top: -29px; left: 0; height: 29px; padding: 0 16px; display: flex; align-items: center; background: var(--surface); border-radius: 12px 12px 0 0; font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap; }
.folder.lifted { background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.folder.lifted .tab { background: #fff; border: 1px solid var(--hairline); border-bottom: 0; top: -30px; left: -1px; }

/* Label pills, the same six the app uses */
.labels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.labels li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--label); color: var(--on-label); font-weight: 600; font-size: 16px; white-space: nowrap; }
.labels svg { width: 20px; height: 20px; flex: none; }
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.shot { margin: 0; min-width: 0; }
.shot img { border-radius: 28px; border: 1px solid var(--hairline); box-shadow: var(--shadow); width: 100%; max-width: 320px; margin: 0 auto; }
.shot figcaption { text-align: center; color: var(--text3); font-size: 14px; margin-top: 12px; }

/* Steps: done in order, so numbered */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 999px; background: var(--theme); color: var(--ink); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: var(--theme-shadow); }
.steps p { color: var(--text2); margin: 0 0 18px; }
.steps img { border-radius: 24px; border: 1px solid var(--hairline); box-shadow: var(--shadow); max-width: 260px; width: 100%; }

/* Plain facts with an icon */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.facts .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--label); color: var(--on-label); display: flex; align-items: center; justify-content: center; }
.facts .ic svg { width: 22px; height: 22px; }
.facts p { margin: 0; color: var(--text2); }
.facts strong { color: var(--ink); display: block; }

/* Who it's for: links to the guides */
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.uses a { display: block; text-decoration: none; color: var(--ink); }
.uses .folder { height: 100%; }
.uses p { margin: 0; color: var(--text2); font-size: 16px; }
.uses .more { color: var(--accent-ink); font-weight: 600; margin-top: 10px; display: inline-block; white-space: nowrap; }

/* FAQ */
.faq dl { margin: 0; display: grid; gap: 24px; max-width: 720px; }
.faq dt { font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.faq dd { margin: 0; color: var(--text2); }

.note { color: var(--text3); font-size: 14px; max-width: 60ch; }

footer { padding: 40px 20px 56px; max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--text3); font-size: 15px; }
footer a { color: var(--text2); white-space: nowrap; }

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 40px 0 72px; gap: 48px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split.flip .shot { order: -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .uses a .folder { transition: transform .2s ease, box-shadow .2s ease; }
  .uses a:hover .folder { transform: translateY(-2px); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
