/* Learn Prompt Engineering website.
   Same look as the app: white surfaces, one teal accent, light grey fills,
   bordered cards and list rows. Always light, like the app's default theme. */

/* The app's own fonts and weights (static cuts of the same files the app
   bundles), so text on the site renders exactly like in the app. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/jakarta-600.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/jakarta-700.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/jakarta-800.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-500.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-600.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-700.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/manrope-800.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-400.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-700.woff") format("woff"); }
/* Certificate typefaces (the app's certificate artwork only). */
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("fonts/cinzel-600.woff") format("woff"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("fonts/cinzel-700.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("fonts/cormorant-500.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/cormorant-500i.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("fonts/cormorant-600.woff") format("woff"); }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url("fonts/greatvibes-400.woff") format("woff"); }

:root {
  --bg: #ffffff;
  --surface: #f5f5f6;
  --text: #18181b;
  --text-2: #45454d;
  --muted: #66666e;
  --border: #e6e6e9;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --accent-text: #ffffff;
  --accent-soft: #e6f6f3;
  --success: #15803d;
  --success-soft: #eaf6ee;
  --danger: #c62828;
  --danger-soft: #fdeeee;
  --border-strong: #c9c9cf;
  --band: #f3f8f7;
  --paper: #f8f6f1;
  /* Prompt building blocks (Module 3). */
  --role: #0f766e;    --role-soft: #e2f3f0;
  --task: #6d3fd6;    --task-soft: #efe9fc;
  --context: #a35a00; --context-soft: #fdf0dc;
  --format: #be185d;  --format-soft: #fce8f1;

  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ui: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: 20px; /* the app's 20dp screen margin */
  --max: 1120px;
  --radius: 16px;
  color-scheme: light;
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0; line-height: 1.15; text-wrap: balance; }
/* The app's type scale, a step larger on wide screens: page headings in
   Plus Jakarta Sans 800, section headings 700, card titles in Manrope 700. */
h1 { font-weight: 800; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.018em; line-height: 1.15; }
h2 { font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.014em; line-height: 1.22; }
h3 { font-family: var(--ui); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Single-column layouts on phones: a column may shrink below its content's
   longest word or widest control, so nothing pushes the page sideways.
   (Wider layouts set their own columns further down.) */
.hero .wrap, .anatomy, .inside, .course, .cert, .faq-layout,
.verified .details, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Header: like the app bar, white with a hairline underneath. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px;
  text-decoration: none; color: var(--text);
  font: 800 17px/1.2 var(--display);
}
.brand img { width: 36px; height: 36px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 14px/1 var(--ui);
  color: var(--text-2);
  text-decoration: none;
  padding: 0 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-text); background: var(--accent); padding: 0 14px; }
.nav a.btn-primary:hover { background: var(--accent-hover); }
.nav .nav-optional { display: none; }
@media (min-width: 820px) { .nav .nav-optional { display: inline-flex; } }

/* Phones: the other links fold into a menu next to "Get the app". */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 6;
  min-width: 232px; padding: 6px;
  display: grid; background: var(--bg);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 32px -12px rgba(16, 24, 40, .22);
}
.nav .menu-panel a { min-height: 46px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
@media (min-width: 820px) { .menu { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Buttons: the app's filled teal and outlined white buttons. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: 700 15px/1 var(--ui);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* On phones, buttons span the width like the app's buttons. */
@media (max-width: 479px) { .hero .actions .btn, .not-found .actions .btn { flex: 1 1 100%; } }

.btn-large { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-light { background: #ffffff; color: var(--accent); }
.btn-light:hover { background: #e6f6f3; }

/* Sections: rhythm comes from tinted bands, not hairlines. */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.band-soft { background: var(--band); }
.band-paper { background: var(--paper); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-top: 14px; max-width: 600px; }
.section-head { margin-bottom: 36px; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 104px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); letter-spacing: -0.024em; line-height: 1.08; max-width: 13ch; }
/* A text cursor after the headline: the moment before you send a prompt. */
.caret {
  display: inline-block; width: .075em; height: .82em; margin-left: .08em;
  vertical-align: -0.04em; border-radius: 2px; background: var(--accent);
  animation: caret 1.1s steps(1, end) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero .lead { font-size: 18px; margin-top: 20px; }
.hero .actions { margin-top: 32px; }
.facts {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font: 600 14px/1.4 var(--ui); color: var(--muted);
}
.facts li { display: flex; align-items: center; }
.facts li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--border-strong); margin: 0 14px;
}
.facts strong { color: var(--text); font-weight: 800; margin-right: 5px; font-family: var(--display); }
@media (max-width: 559px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .facts li { display: block; }
  .facts li + li::before { display: none; }
  .facts strong { white-space: nowrap; }
}
.hero-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* The phone on a dotted teal stage, with one real moment from the app. */
.stage { position: relative; display: grid; place-items: center; padding: 28px 0; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(500px, 108%); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 56px;
  background-color: var(--accent-soft);
  background-image: radial-gradient(rgba(15, 118, 110, .16) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
.stage .device { position: relative; max-width: 340px; }
@media (max-width: 480px) { .stage .device { max-width: 300px; } }
.float-card {
  position: absolute; left: max(0px, calc(50% - 270px)); bottom: 88px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 16px 32px -12px rgba(16, 24, 40, .22);
}
.float-card strong { display: block; font: 700 14px/1.3 var(--ui); color: var(--text); }
.float-card small { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 400px) {
  .float-card { left: 0; bottom: 56px; gap: 10px; padding: 10px 14px 10px 10px; }
  .float-card strong { font-size: 13px; }
  .float-card small { font-size: 12px; white-space: nowrap; }
}
.float-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
}
.float-icon svg { width: 18px; height: 18px; }

/* Phone frame: an Android handset around each app screenshot, at the size
   of a real phone mockup: status bar with the time and punch-hole camera,
   the screenshot, then the gesture bar. */
.device {
  --bezel: 11px;
  --radius: 48px;
  --status: 30px;
  --nav: 20px;
  position: relative;
  width: 100%;
  padding: var(--bezel);
  border-radius: var(--radius);
  background: #1c1d21;
  box-shadow:
    inset 0 0 0 1px #3a3b41,
    inset 0 0 0 3px #111214,
    0 2px 4px rgba(16, 24, 40, .06),
    0 32px 64px -24px rgba(16, 24, 40, .34);
}
/* Power and volume keys. */
.device::before, .device::after {
  content: ""; position: absolute; right: -3px; width: 3px;
  border-radius: 0 2px 2px 0; background: #2b2c31;
}
.device::before { top: 18%; height: 9%; }
.device::after { top: 30%; height: 15%; }
.device-screen {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) - var(--bezel));
  padding: var(--status) 0 var(--nav);
  background: #ffffff linear-gradient(#1c1d21, #1c1d21) no-repeat;
  background-size: 34% 4px;
  background-position: 50% calc(100% - (var(--nav) - 4px) / 2);
}
/* Punch-hole camera. */
.device-screen::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--status) / 2);
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: #0e0f11; box-shadow: 0 0 0 2px #1c1d21;
}
/* Clock in the status bar. */
.device-screen::after {
  content: "9:41"; position: absolute; left: 9%; top: 0;
  font: 700 13px/var(--status) var(--ui); color: #18181b;
}
.device-screen img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.device-dark .device-screen { background-color: #000000; background-image: linear-gradient(#d4d4d8, #d4d4d8); }
.device-dark .device-screen::before { box-shadow: 0 0 0 2px #26272b; }
.device-dark .device-screen::after { color: #f4f4f5; }

/* Prompt anatomy: the clear prompt, marked up the way Module 3 teaches it. */
.anatomy { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .anatomy { grid-template-columns: .82fr 1.18fr; gap: 64px; } }
.legend { margin: 32px 0 0; display: grid; gap: 18px 24px; }
@media (min-width: 560px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend dt { display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--ui); }
.legend dd { margin: 4px 0 0 22px; color: var(--text-2); font-size: 15px; }
.swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.swatch.role { background: var(--role); }
.swatch.task { background: var(--task); }
.swatch.context { background: var(--context); }
.swatch.format { background: var(--format); }

.editor {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -24px rgba(16, 24, 40, .18);
}
.editor-block { padding: 22px 24px; }
.editor-block.weak { background: var(--surface); border-bottom: 1px solid var(--border); }
.editor-label { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--ui); }
.editor-label svg { width: 16px; height: 16px; }
.weak .editor-label { color: var(--danger); }
.strong .editor-label { color: var(--success); }
.editor pre {
  margin: 14px 0 0; white-space: pre-wrap; word-break: break-word;
  font: 400 14.5px/1.95 var(--mono); color: var(--text);
  font-variant-ligatures: none;
}
.weak pre { color: var(--text-2); }
.editor-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hl {
  color: var(--text); padding: 3px 4px; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl b {
  display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 999px;
  font: 700 11px/18px var(--ui); color: #ffffff; vertical-align: 1px;
}
.hl.role { background: var(--role-soft); } .hl.role b { background: var(--role); }
.hl.task { background: var(--task-soft); } .hl.task b { background: var(--task); }
.hl.context { background: var(--context-soft); } .hl.context b { background: var(--context); }
.hl.format { background: var(--format-soft); } .hl.format b { background: var(--format); }

/* Inside the app: plain rows beside the lesson screen. */
.inside { display: grid; gap: 48px; }
@media (min-width: 900px) { .inside { grid-template-columns: 1fr 340px; gap: 80px; align-items: start; } }
.inside h2 { margin-bottom: 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) and (max-width: 899px) { .feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.feature-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 2px 18px;
  padding: 22px 0; border-top: 1px solid var(--border);
}
.feature-list svg {
  grid-row: span 2; width: 44px; height: 44px; padding: 11px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.feature-list h3 { align-self: end; }
.feature-list p { color: var(--text-2); font-size: 15px; max-width: 52ch; }
.inside-phone { display: none; }
@media (min-width: 900px) { .inside-phone { display: block; position: sticky; top: 104px; } }

/* Course map: one connected path, ending at the certificate. */
.course { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .course { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .course-intro { position: sticky; top: 104px; }
}
.how { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: how; display: grid; gap: 18px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 2px 14px; }
.how li::before {
  content: counter(how); grid-row: span 2;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font: 800 13px/1 var(--display);
}
.how h3 { font-size: 16px; line-height: 28px; }
.how p { color: var(--text-2); font-size: 15px; }

.path {
  list-style: none; margin: 0; padding: 10px 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
}
.path > li { position: relative; }
.path > li::before {
  content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.path > li:first-child::before { top: 32px; }
.path > li:last-child::before { bottom: calc(100% - 32px); }
.path summary, .path-row {
  display: grid; grid-template-columns: 40px 1fr 16px; gap: 0 16px; align-items: center;
  padding: 12px 0; min-height: 64px;
}
.path summary { list-style: none; cursor: pointer; }
.path summary::-webkit-details-marker { display: none; }
.path summary::after {
  content: ""; grid-column: 3; grid-row: 1 / span 2;
  width: 8px; height: 8px; margin: -4px 0 0 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease-out;
}
.path details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.path .node {
  position: relative; z-index: 1; grid-row: 1 / span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font: 800 15px/1 var(--display); box-shadow: 0 0 0 5px var(--bg);
}
.path-title { font: 700 16px/1.35 var(--ui); color: var(--text); transition: color .15s ease-out; }
.path summary:hover .path-title { color: var(--accent); }
.path-time { grid-column: 2; font: 600 13px/1.5 var(--ui); color: var(--muted); }
.path details p { padding: 0 8px 18px 56px; color: var(--text-2); font-size: 15px; }
@media (min-width: 640px) {
  .path summary { grid-template-columns: 40px 1fr auto 16px; }
  .path-row { grid-template-columns: 40px 1fr auto; }
  .path-time { grid-column: 3; grid-row: 1; white-space: nowrap; }
  .path summary::after { grid-column: 4; grid-row: 1; }
  .path .node { grid-row: 1; }
}
.path-end .node { background: var(--accent); color: #ffffff; }
.path-end .node svg { width: 20px; height: 20px; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 270px; gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 32px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
/* On wide screens the strip runs off the right edge of the window, so it
   reads as "more this way" instead of a hard cut at the column. */
@media (min-width: 1180px) {
  .shots { margin-right: calc((100% - 100vw) / 2); padding-right: calc((100vw - 100%) / 2); }
}
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots .device { --bezel: 10px; --radius: 42px; --status: 26px; --nav: 18px; }
@media (max-width: 480px) { .shots { grid-auto-columns: 240px; } }
.shots figcaption { margin-top: 16px; font: 600 14px/1.4 var(--ui); color: var(--text-2); text-align: center; }

/* Certificate block */
.cert { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .cert { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.cert-art { margin: 0; }
.cert-art img {
  border-radius: 8px; width: 100%;
  box-shadow: 0 1px 2px rgba(60, 44, 10, .08), 0 28px 48px -24px rgba(60, 44, 10, .35);
}
.cert-art figcaption { margin-top: 14px; font: 600 13px/1.4 var(--ui); color: var(--muted); }
.try { margin-top: 12px; font-size: 14px; color: var(--muted); }
.try a { font-family: var(--mono); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; color: var(--success); margin-top: 3px; }

/* Verify form */
.verify-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.verify-form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  font: 600 16px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px;
}
.verify-form input::placeholder { color: var(--muted); text-transform: none; font-family: var(--body); font-weight: 400; }
.verify-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
/* On small phones a full ID (19 characters) needs the whole width. */
@media (max-width: 479px) {
  .verify-form { flex-direction: column; }
  .verify-form input { flex: none; width: 100%; }
  .verify-form .btn { width: 100%; }
}

.result { margin-top: 24px; max-width: 560px; border-radius: var(--radius); padding: 22px; }
.result[hidden] { display: none; }
.result.ok { background: var(--success-soft); }
.result.bad { background: var(--danger-soft); }
.result.wait { background: var(--surface); color: var(--muted); }
.result .status { font: 700 18px/1.3 var(--ui); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.result.ok .status { color: var(--success); }
.result.bad .status { color: var(--danger); }
.result .status svg { width: 22px; height: 22px; }
.result p + dl { margin-top: 14px; }
.result dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.result dt { color: var(--muted); font-size: 15px; }
.result dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.result .holder { font: 800 24px/1.25 var(--display); margin-bottom: 14px; overflow-wrap: anywhere; }

/* The verified certificate, drawn like the app's artwork. Fixed paper
   colours, like a printed certificate. */
.verified { margin-top: 24px; max-width: 920px; }
.verified[hidden] { display: none; }
.verified .result { margin-top: 0; max-width: none; }
.certificate-view { margin: 20px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fcfaf4; }
.certificate-svg { display: block; width: 100%; height: auto; }
.certificate-svg text { font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.certificate-view figcaption { padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: 14px; }
.verified .details { margin-top: 20px; display: grid; gap: 20px; }
@media (min-width: 720px) { .verified .details { grid-template-columns: 1fr auto; align-items: start; } }
.verified dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.verified dt { color: var(--muted); font-size: 15px; }
.verified dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.verified dd.mono { font: 400 15px/1.6 var(--mono); }
.verified .actions { align-content: start; }
@media (max-width: 479px) {
  .verified .actions .btn { flex: 1 1 100%; }
  .verified dl { grid-template-columns: 1fr; gap: 2px; }
  .verified dd + dt { margin-top: 10px; }
}
.save-note { margin-top: 10px; color: var(--muted); font-size: 14px; min-height: 1.4em; }

/* Printing the verify page prints just the certificate, on one A4 page. */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #ffffff; }
  body * { visibility: hidden; }
  .certificate-view, .certificate-view * { visibility: visible; }
  .certificate-view { position: fixed; inset: 0; margin: 0; border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
  .certificate-view figcaption { display: none; }
  .certificate-svg { width: 100vw; height: 100vh; }
}

/* FAQ */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-intro { position: sticky; top: 104px; }
}
.faq-intro p { margin-top: 14px; color: var(--text-2); }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 700 17px/1.4 var(--ui); transition: color .15s ease-out;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--text-2); max-width: 68ch; }

/* Closing call to action, with the app's mascot. */
.closing { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: center;
  padding: 36px 28px; border-radius: 28px;
  background-color: var(--accent); color: #ffffff;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
@media (min-width: 720px) { .cta-panel { grid-template-columns: 1fr auto; padding: 56px; } }
.cta-panel h2 { color: #ffffff; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; }
.cta-panel p { margin: 12px 0 28px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.cta-panel .btn { white-space: nowrap; }
@media (max-width: 479px) {
  .cta-panel { padding: 28px 20px; border-radius: 24px; }
  .cta-panel .btn { width: 100%; padding: 0 16px; }
}
.mascot { width: 104px; height: 104px; order: -1; }
@media (min-width: 720px) { .mascot { width: 176px; height: 176px; order: 0; margin: -24px 0; } }

/* Long-form pages (privacy) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .updated { color: var(--muted); margin-top: 8px; }
.doc .intro { margin-top: 24px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc a { overflow-wrap: anywhere; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc code { font: 400 14px/1.5 var(--mono); background: var(--surface); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc p { font: 700 15px/1 var(--ui); color: var(--text); }
.toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2 220px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }

/* Verify page */
.page-head { padding: 48px 0 24px; }
.page-head .lead { margin-top: 10px; }
.verify-page { padding-top: 0; }
.help { margin-top: 40px; color: var(--muted); font-size: 15px; max-width: 560px; }

/* Footer: brand on the left, then three short link columns. */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 28px 32px; }
@media (min-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { min-height: 0; font-size: 16px; }
.footer-brand .brand img { width: 32px; height: 32px; }
.footer-brand p { margin-top: 10px; max-width: 34ch; }
.footer-brand .footer-copy { margin-top: 16px; font-size: 13px; }
.footer-head { font: 700 12px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text-2); text-decoration: none; font: 600 14px/1.4 var(--ui);
}
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--accent); }

/* Privacy, in short (home page). */
.privacy-short { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .privacy-short { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.privacy-short .actions { margin-top: 24px; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .privacy-points { grid-template-columns: 1fr 1fr; } }
.privacy-points li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px;
  padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
}
.privacy-points svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.privacy-points h3 { font-size: 16px; }
.privacy-points p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }

/* Privacy page: the short version above the full text. */
.glance { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); }
.glance-head { font: 700 15px/1.3 var(--ui); color: var(--accent); }
.glance ul { margin: 10px 0 0; padding-left: 20px; }
.glance li { color: var(--text); }
.glance li + li { margin-top: 6px; }

.center { text-align: center; }
.not-found { padding: 96px 0; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .actions { justify-content: center; margin-top: 24px; }
