/* PDFriend site. One stylesheet for every page.
   The look comes from the app: the scarlet brand red, white paper, the mascot,
   and the yellow highlighter from the annotate tool. */

:root {
  --bg: #f6f4f2;
  --bg-2: #efebe8;
  --paper: #ffffff;
  --ink: #1b1518;
  --ink-2: #3a3236;
  --muted: #6b6165;
  --line: #e6e0dc;
  --line-2: #d8d0cb;
  --red: #d91b0d;
  --red-2: #ff3b2a;
  --red-deep: #9e1107;
  --red-soft: #fde6e3;
  --blue: #1266cc;
  --blue-soft: #e3eeff;
  --green: #1c8a4e;
  --green-soft: #e1f4e8;
  --amber: #f0a000;
  --amber-soft: #fff1cf;
  --violet: #6a3fd6;
  --violet-soft: #ece5ff;
  --hl: #ffe45c;
  --hl-ink: #1b1518;
  --phone: #121014;
  --shadow-1: 0 1px 2px rgb(40 20 20 / 6%), 0 4px 14px rgb(40 20 20 / 6%);
  --shadow-2: 0 2px 6px rgb(40 20 20 / 8%), 0 24px 60px -18px rgb(80 20 10 / 28%);
  --shadow-red: 0 18px 40px -14px rgb(217 27 13 / 55%);
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141114;
    --bg-2: #1b171a;
    --paper: #211c20;
    --ink: #f6f0ef;
    --ink-2: #ddd3d2;
    --muted: #a99ea1;
    --line: #342d31;
    --line-2: #463d42;
    --red: #ff4536;
    --red-2: #ff6a5c;
    --red-deep: #c01d10;
    --red-soft: #3a1714;
    --blue: #6aa6ff;
    --blue-soft: #16243a;
    --green: #5fd394;
    --green-soft: #13291d;
    --amber: #ffc24a;
    --amber-soft: #33270d;
    --violet: #b39cff;
    --violet-soft: #251d3d;
    --hl: #c99a06;
    --hl-ink: #fff;
    --phone: #050405;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 30%);
    --shadow-2: 0 2px 6px rgb(0 0 0 / 40%), 0 24px 60px -18px rgb(0 0 0 / 70%);
    --shadow-red: 0 18px 40px -14px rgb(255 69 54 / 45%);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--hl); color: var(--hl-ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 780px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-2); }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 13px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}
.display { font-size: clamp(34px, 5vw, 58px); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.red { color: var(--red); }

/* The highlighter mark from the annotate tool. */
.hl {
  background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 90%, transparent 90%);
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; justify-items: center; }
.section-head .lede { margin-inline: inherit; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  font: 700 16px/1.1 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-play { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-1); padding-inline: 20px 24px; }
.btn-play:hover { color: var(--bg); box-shadow: var(--shadow-2); }
.btn-play span { display: grid; text-align: left; font-size: 18px; letter-spacing: -0.01em; }
.btn-play small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.btn-play .play-glyph { width: 24px; height: 24px; fill: var(--red-2); }

.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { color: #fff; background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 22px/1 var(--display);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgb(217 27 13 / 30%); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover { background: var(--paper); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--paper); color: var(--red); box-shadow: var(--shadow-1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-red);
  white-space: nowrap;
}
.nav-cta:hover { color: #fff; background: var(--red-deep); }
.nav-cta .play-glyph { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-block: 10px 6px; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .nav nav { order: 3; width: 100%; margin: 6px -8px 0; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 12px; font-size: 14px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 100px); overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 120%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--red) 22%, transparent), transparent 70%),
    radial-gradient(closest-side at 70% 70%, color-mix(in srgb, var(--hl) 35%, transparent), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.025em; }
/* Keep "the friendly way." on one line where the column is wide enough. */
.hero h1 .hl { display: inline-block; margin-top: 0.12em; font-size: 0.66em; }
@media (min-width: 700px) { .hero h1 .hl { white-space: nowrap; } }
.hero h1 .arrow { color: var(--red); display: inline-block; }
.hero .lede { max-width: 52ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-items: start; }
}

/* The stage: photos fly into the phone, PDF pages come out. */
.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.06;
  margin-inline: auto;
}
.phone {
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: var(--phone);
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 8%),
    0 50px 80px -30px rgb(60 10 5 / 45%),
    0 20px 40px -20px rgb(0 0 0 / 35%);
}
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 1080 / 2424; object-fit: cover; background: #f4f4f5; }
.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 14px;
  height: 14px;
  translate: -50% 0;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 3px #1b1b1f;
}
.stage .phone {
  position: absolute;
  left: 30%;
  top: 0;
  width: 46%;
  rotate: 4deg;
  z-index: 2;
}
.fly {
  position: absolute;
  z-index: 3;
  width: 30%;
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-2);
  background: #fff;
  --x0: 0%;
  --y0: 0%;
  --r0: -8deg;
  left: var(--x0);
  top: var(--y0);
  rotate: var(--r0);
}
.fly img { border-radius: 6px; aspect-ratio: 300 / 337; object-fit: cover; }
.fly-1 { --x0: 0%; --y0: 6%; --r0: -10deg; }
.fly-2 { --x0: 4%; --y0: 38%; --r0: 7deg; }
.fly-3 { --x0: -2%; --y0: 66%; --r0: -4deg; }
.fly-tag {
  position: absolute;
  left: -6px;
  top: -14px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.02em;
}

.pdf-out {
  position: absolute;
  z-index: 4;
  right: 0;
  width: 27%;
  aspect-ratio: 210 / 297;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-2);
  padding: 12% 12% 0;
  display: grid;
  align-content: start;
  gap: 7%;
  --y: 14%;
  --r: 8deg;
  top: var(--y);
  rotate: var(--r);
}
.pdf-out::before {
  content: "PDF";
  justify-self: start;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font: 700 clamp(10px, 1.4vw, 14px)/1 var(--display);
  letter-spacing: 0.04em;
}
.pdf-out i { display: block; height: 5px; border-radius: 3px; background: #e7e1de; }
.pdf-out i:nth-child(2) { width: 80%; }
.pdf-out i:nth-child(4) { width: 60%; }
.pdf-out b {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd6d0, #fff0c2);
}
.pdf-out-2 { --y: 46%; --r: -6deg; right: 4%; }

.stage-mascot {
  position: absolute;
  z-index: 5;
  left: 14%;
  bottom: -2%;
  width: 34%;
  filter: drop-shadow(0 16px 20px rgb(60 10 5 / 25%));
}
.sticker {
  position: absolute;
  z-index: 6;
  right: 6%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hl);
  color: #1b1518;
  font: 700 clamp(13px, 1.7vw, 18px)/1.05 var(--display);
  text-align: center;
  rotate: -12deg;
  box-shadow: var(--shadow-2);
}
.sticker span { display: block; font-size: 1.5em; color: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .fly { animation: fly 7.5s cubic-bezier(0.55, 0, 0.35, 1) infinite both; }
  .fly-2 { animation-delay: 0.5s; }
  .fly-3 { animation-delay: 1s; }
  .pdf-out { animation: pop-out 7.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both; animation-delay: 1.7s; }
  .pdf-out-2 { animation-delay: 2.1s; }
  .stage-mascot { animation: bob 3.2s ease-in-out infinite; }
  .sticker { animation: wobble 6s ease-in-out infinite; }
}

@keyframes fly {
  0% { left: var(--x0); top: var(--y0); rotate: var(--r0); scale: 0.9; opacity: 0; }
  8% { opacity: 1; scale: 1; }
  38% { left: var(--x0); top: var(--y0); rotate: var(--r0); scale: 1; opacity: 1; }
  62% { left: 38%; top: 34%; rotate: 0deg; scale: 0.3; opacity: 0; }
  100% { left: 38%; top: 34%; rotate: 0deg; scale: 0.3; opacity: 0; }
}
@keyframes pop-out {
  0%, 30% { right: 26%; top: 30%; rotate: 0deg; scale: 0.3; opacity: 0; }
  46% { opacity: 1; }
  58%, 88% { right: 0; top: var(--y); rotate: var(--r); scale: 1; opacity: 1; }
  100% { right: 0; top: var(--y); rotate: var(--r); scale: 1; opacity: 0; }
}
@keyframes bob { 50% { translate: 0 -8px; rotate: -2deg; } }
@keyframes wobble { 50% { rotate: -4deg; scale: 1.04; } }

/* ---------- Ticker ---------- */

/* The band is rotated, so its corners pass the page edge. The wrapper cuts them. */
.ticker-clip { overflow: clip; padding-block: 12px; }
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  padding-block: 16px;
  rotate: -1.2deg;
  margin-inline: -2%;
  box-shadow: var(--shadow-2);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  font: 600 clamp(18px, 2.2vw, 24px)/1 var(--display);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticker-track li { display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.ticker-track li::after { content: "✦"; color: var(--red-2); font-size: 0.8em; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 36s linear infinite; }
}
@keyframes ticker { to { translate: -50% 0; } }

/* ---------- How it works ---------- */

.how { counter-reset: how; }
.how-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px 26px 0;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.how-card::before {
  counter-increment: how;
  content: counter(how);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font: 700 22px/1 var(--display);
  box-shadow: var(--shadow-red);
}
.how-card h3 { font-size: 26px; }
.how-card p { color: var(--ink-2); }
.how-shot {
  margin: 10px auto -30%;
  width: 78%;
  border-radius: 30px 30px 0 0;
  padding: 8px 8px 0;
  background: var(--phone);
}
.how-shot img { border-radius: 24px 24px 0 0; aspect-ratio: 1080 / 2424; object-fit: cover; }

/* ---------- Tools ---------- */

.tool {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.tool h3 { font-size: 21px; }
.tool p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
}
.tool-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon.t-blue { background: var(--blue-soft); color: var(--blue); }
.tool-icon.t-green { background: var(--green-soft); color: var(--green); }
.tool-icon.t-amber { background: var(--amber-soft); color: var(--amber); }
.tool-icon.t-violet { background: var(--violet-soft); color: var(--violet); }
.tool a { font-weight: 700; font-size: 15px; text-decoration: none; }
.tool a::after { content: " →"; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.feature-copy h3 { font-size: clamp(30px, 4vw, 46px); }
.feature-copy p { color: var(--ink-2); }
.feature-visual { position: relative; display: grid; place-items: center; }
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 40px;
  background: var(--red-soft);
  rotate: -3deg;
  z-index: -1;
}
.feature-visual.v-blue::before { background: var(--blue-soft); rotate: 3deg; }
.feature-visual.v-amber::before { background: var(--amber-soft); }
.feature-visual.v-green::before { background: var(--green-soft); rotate: 3deg; }
.feature-visual .phone { width: min(300px, 70%); }
.feature-visual .mascot-peek {
  position: absolute;
  width: 30%;
  max-width: 150px;
  right: 2%;
  bottom: 4%;
  filter: drop-shadow(0 12px 16px rgb(60 10 5 / 22%));
}
.feature.flip .feature-visual { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-visual { order: 0; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c8a4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 600 14px/1.2 var(--body);
  color: var(--ink-2);
}
.pills li.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Privacy panel ---------- */

.privacy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(255 120 90 / 50%), transparent 60%),
    linear-gradient(150deg, #e3261a, #a8120a 70%, #7d0d06);
  overflow: hidden;
  box-shadow: var(--shadow-red);
}
.privacy h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.privacy .eyebrow { color: #ffd9d3; }
.privacy p { color: #ffe9e5; }
.privacy .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.privacy .fact {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 20%);
  font-size: 15.5px;
  line-height: 1.45;
}
.privacy .fact strong { display: block; font: 600 19px/1.2 var(--display); margin-bottom: 4px; color: #fff; }
.privacy a { color: #fff; }
.privacy-art { position: relative; display: grid; place-items: center; }
.privacy-art img { width: min(320px, 90%); filter: drop-shadow(0 30px 30px rgb(0 0 0 / 30%)); }
.privacy-art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  box-shadow: 0 0 0 28px rgb(255 255 255 / 6%), 0 0 0 56px rgb(255 255 255 / 4%);
}
@media (max-width: 860px) {
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .privacy-art { order: -1; }
  .privacy-art img { width: min(220px, 60%); }
}
@media (max-width: 520px) { .privacy .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards and guide cards ---------- */

.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.card h2, .card h3 { font-size: 22px; margin-bottom: 8px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }
.guide-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.guide-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-2); }
.guide-card .kw {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.02em;
}
.guide-card h3 { font-size: 22px; }
.guide-card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.guide-card .more { font-weight: 700; color: var(--red); font-size: 15px; }
.guide-card .more::after { content: " →"; transition: margin 0.2s ease; }
.guide-card:hover .more::after { margin-left: 4px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font: 600 19px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font: 700 20px/1 var(--body);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq-body { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Finale ---------- */

.finale {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 24px;
  border-radius: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.finale::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 18%, transparent), transparent);
  z-index: 0;
}
.finale > * { position: relative; }
.finale img { width: 180px; filter: drop-shadow(0 18px 22px rgb(60 10 5 / 25%)); }
.finale h2 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- Long form pages ---------- */

.page-head { padding-block: clamp(36px, 5vw, 64px) 8px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.page-head h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

.answer {
  position: relative;
  margin-top: 28px;
  padding: 24px 26px 24px 28px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 8px;
}
.answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: var(--red);
}
.answer p { font-size: 18.5px; line-height: 1.6; color: var(--ink); }

.toc {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px dashed var(--line-2);
  font-size: 15.5px;
}
.toc strong { font: 600 16px/1.2 var(--display); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

.prose { padding-block: 12px clamp(56px, 8vw, 96px); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 56px; scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose code {
  font: 0.88em var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.prose kbd {
  font: 600 0.86em var(--body);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 1px 7px;
  white-space: nowrap;
}

.steps { list-style: none; counter-reset: step; padding: 0 !important; display: grid; gap: 14px; }
.steps .step {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 72px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 !important;
}
.steps .step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: 700 18px/1 var(--display);
}
.steps .step h3 { font-size: 19px; margin: 2px 0 6px; }
.steps .step p { font-size: 16px; }

.note {
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--ink);
}
.note p { color: var(--ink); }
.note strong { font-weight: 800; }
.note.tip { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }

.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 480px; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { font: 600 15px/1.3 var(--display); background: var(--bg-2); color: var(--ink); }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.figure { margin: 28px 0; display: grid; justify-items: center; gap: 10px; }
.figure .phone { width: min(280px, 72%); }
.figure figcaption { font-size: 14px; color: var(--muted); text-align: center; }

/* The app card at the end of a guide. */
.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 48px !important;
  padding: 24px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--bg);
}
.app-card img { width: 88px; border-radius: 22px; }
.app-card h2 { color: var(--bg); font-size: 26px; margin: 0 0 6px !important; }
.app-card p { color: color-mix(in srgb, var(--bg) 78%, transparent) !important; font-size: 16px; margin-bottom: 14px !important; }
.app-card .btn-play { background: var(--red); color: #fff; }
.app-card .btn-play .play-glyph { fill: #fff; }
@media (max-width: 520px) { .app-card { grid-template-columns: minmax(0, 1fr); } }

.related { margin-top: 56px !important; }
.related h2 { margin-top: 0 !important; margin-bottom: 18px; font-size: 26px !important; }

/* ---------- Support / contact ---------- */

.contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.contact img { width: 120px; }
.contact .email {
  display: inline-block;
  margin-top: 6px;
  font: 600 clamp(20px, 3vw, 28px)/1.2 var(--display);
  color: var(--red);
  overflow-wrap: anywhere;
}
@media (max-width: 560px) { .contact { grid-template-columns: minmax(0, 1fr); justify-items: start; } .contact img { width: 90px; } }

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-about { display: grid; gap: 16px; justify-items: start; max-width: 34ch; }
.footer-about p { color: var(--muted); }
.footer-heading { font: 700 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */

.lost { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.lost img { width: 200px; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); }

/* ---------- Motion ---------- */

/* Pure CSS reveal. A browser without scroll-driven animations, a crawler and a
   reader with reduced motion all see the element at rest. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
/* The start frame stays readable, so a still capture never shows an empty section. */
@keyframes reveal { from { opacity: 0.4; translate: 0 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.more-row { margin-top: 32px; }

/* A two-column table of labels and values. It wraps instead of scrolling. */
.table-scroll.kv table { min-width: 0; }
.table-scroll.kv th { width: 34%; }
.prose .contact h2 { margin-top: 0; }

/* Guides index: one section for each group. */
.guide-group + .guide-group { padding-top: 0; }
.guide-group h2 { margin: 0 0 18px; font-size: 26px; text-wrap: balance; }
@media (min-width: 901px) { .guide-group .guide-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
