/* ==========================================================================
   Jaha — design system (v7) "THE FIELD JOURNAL"
   Sophisticated yet warm: warm paper surfaces as the canvas (matching the
   app's Desert Heritage palette), a refined Bitter type scale, fine
   hairlines, soft considered shadows, and generous whitespace. Terracotta
   is punctuation — a wordmark period, a rule, a button, a dashed route —
   never a wall. Navy appears once, as the footer the page closes on.
   Region-neutral by design: the only illustrative motif anywhere in chrome
   is the quest structure itself — numbered stops on a dashed route.
   Shared across all static pages and both Pages Functions
   (do not rename the classes below).

   Contrast ledger (WCAG relative luminance, verified):
     ink #16202F on paper #FFFDF8      = 16.12
     ink on sand #F6EEDF               = 14.21
     meta #6B6152 on paper             = 5.98
     meta on sand                      = 5.27
     accent-ink #B8451F on paper       = 5.28
     accent-ink on sand                = 4.66   (avoid small accent text on cream: 4.26)
     body #3C3427 on paper / sand      = 12.06 / 10.64
     paper on accent-strong #C24721    = 4.90
     cream #F2E3CC on ink navy         = 12.98
     accent #E0603A text on ink navy   = 4.61
     gold-ink / sage-ink on their tints = 5.01 / 6.60
   ========================================================================== */

@font-face {
  font-family: "Bitter";
  src: url("/fonts/Bitter.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand tokens */
  --paper: #FFFDF8;        /* light surface — the canvas */
  --sand: #F6EEDF;         /* warm secondary surface */
  --cream: #F2E3CC;        /* tint surface / type on navy */
  --ink: #16202F;          /* headings, warm navy — and the footer */
  --meta: #6B6152;         /* secondary text on light */
  --accent: #E0603A;       /* terracotta — the single accent, used sparingly */
  --sage: #4E7C6A;         /* heat-safe / positive cue */
  --gold: #B37F17;         /* AI badge hue */
  --outline: #D9CBB2;      /* hairlines on light */
  --outline-soft: #EADFC9; /* dividers */

  /* Derived — AA-safe text/fill variants. */
  --accent-strong: #C24721;   /* button fill under paper text (4.9:1) */
  --accent-strong-hover: #A83F1D;
  --accent-ink: #B8451F;      /* accent as small text on light */
  --gold-ink: #8A6110;
  --sage-ink: #355C4E;

  /* Journal geometry */
  --body-color: #3C3427;              /* long-form reading text on light */
  --shadow: 0 1px 2px rgba(22, 32, 47, 0.04), 0 10px 28px rgba(22, 32, 47, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 32, 47, 0.05), 0 18px 44px rgba(22, 32, 47, 0.11);
  --hairline: 1px;                    /* rule weight */
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(20px, 4vw, 48px);   /* page-edge padding */
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(224, 96, 58, 0.2); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On the navy footer the accent outline disappears — go paper. */
.site-footer :focus-visible,
.install-cta :focus-visible {
  outline-color: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { color: var(--ink); }

/* ---- Motion vocabulary -------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll-driven reveals where supported; static everywhere else. */
@supports (animation-timeline: view()) {
  .step, .example-card, .trust-item, .quest-card, .stop {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 5% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1; display: block; }

section { padding: clamp(64px, 9vw, 112px) 0; }

/* Small-caps kicker with a short terracotta rule — section furniture. */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-strong);
  flex-shrink: 0;
}

.section-title {
  color: var(--ink);
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   Shell (markup contract unchanged; .frame and .field are plain
   full-width columns — the composition lives in whitespace, not a mat.)
     <body class="framed"> <div class="frame">
       <header class="site-nav">…</header>
       <div class="field"> <main>…</main> <footer class="site-footer"> </div>
     </div> </body>
   ========================================================================== */

body.framed { background: var(--paper); }

.frame {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* ---- Nav ---------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 15px var(--gutter);
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline) solid var(--outline);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.site-nav .brand img { width: 24px; height: 24px; display: block; }

.site-nav .brand .wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-nav .brand .wordmark .dot { color: var(--accent-ink); }

.site-nav .tabs {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 30px);
  flex: 1;
  min-width: 0;
}

.site-nav .tabs a {
  color: var(--meta);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.15s ease;
}

.site-nav .tabs a:hover,
.site-nav .tabs a:focus-visible {
  color: var(--ink);
}

.site-nav .tabs a.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.site-nav .account-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: var(--hairline) solid var(--outline);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav .account-link:hover,
.site-nav .account-link:focus-visible,
.site-nav .account-link.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

@media (max-width: 560px) {
  .site-nav {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .brand, .site-nav .tabs, .site-nav .account-link { flex-shrink: 0; }
  /* Let the row overflow-scroll instead of crushing the tabs box. */
  .site-nav .tabs { flex: 0 0 auto; min-width: auto; gap: 14px; }
  .site-nav .tabs a { letter-spacing: 0.1em; }
  .site-nav .brand img { width: 21px; height: 21px; }
  .site-nav .brand .wordmark { font-size: 19px; }
  .site-nav .account-link { padding: 6px 13px; }
}

/* ---- Footer (the one navy moment — every page closes on ink) ------------ */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
}

.site-footer .wrap {
  display: flex;
  gap: 14px 30px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 44px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent); }

.site-footer .copyright {
  margin-left: auto;
  font-weight: 400;
  color: rgba(242, 227, 204, 0.72);
}

@media (max-width: 520px) {
  .site-footer .copyright { margin-left: 0; width: 100%; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: var(--hairline) solid transparent;
  cursor: pointer;
  line-height: 1.35;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--accent-strong);
  color: var(--paper);
  border-color: var(--accent-strong);
  box-shadow: 0 2px 6px rgba(194, 71, 33, 0.18), 0 10px 24px rgba(194, 71, 33, 0.16);
}

.btn-primary:hover {
  background: var(--accent-strong-hover);
  border-color: var(--accent-strong-hover);
  box-shadow: 0 3px 8px rgba(194, 71, 33, 0.2), 0 14px 30px rgba(194, 71, 33, 0.2);
}

.btn-primary:active { box-shadow: 0 1px 4px rgba(194, 71, 33, 0.18); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ---- Chips (the filter vocabulary, set quietly) --------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  border: var(--hairline) solid var(--outline);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---- Origin badges (soft tints, small caps — the trust marks) ------------ */
.badge-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.badge-origin .glyph { font-size: 11px; line-height: 1; }

.badge-ai        { background: #FBF3E1; color: var(--gold-ink); }
.badge-curated   { background: #EAF2EE; color: var(--sage-ink); }
.badge-community { background: #FBE9E2; color: var(--accent-ink); }

/* ---- Cards (a well-made object: hairline, soft shadow) -------------------- */
.card {
  background: var(--paper);
  border: var(--hairline) solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body { padding: 20px 22px 22px; }

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  border-bottom: var(--hairline) solid var(--outline-soft);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 12px;
}

.card .chip-row { margin-top: 4px; }

/* ---- Utility -------------------------------------------------------------- */
.meta { color: var(--meta); }
.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;
}

/* ---- Content pages (privacy / terms / support / community-guidelines) ----- */
.doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 28px 110px;
}

.doc .back {
  color: var(--meta);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.doc .back:hover { color: var(--accent-ink); }

.doc h1 {
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
}

.doc .upd {
  color: var(--meta);
  font-size: 13px;
  margin-bottom: 48px;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 46px 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  margin: 22px 0 8px;
  color: var(--ink);
}

.doc p, .doc li {
  color: var(--body-color);
  margin-bottom: 12px;
}

.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent-ink); }
.doc a:hover { text-decoration: none; }

/* Buttons keep their own label colors inside .doc prose (beats `.doc a`). */
.doc a.btn-primary { color: var(--paper); }
.doc a.btn-secondary { color: var(--ink); }
.doc a.btn-secondary:hover { color: var(--paper); }

.doc hr {
  border: 0;
  border-top: var(--hairline) solid var(--outline);
  margin: 52px 0;
}

.doc .note {
  border: var(--hairline) solid var(--outline);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: var(--sand);
  font-size: 14.5px;
  color: var(--body-color);
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc .lead {
  border-left: 3px solid var(--accent);
  padding: 16px 22px;
  background: var(--sand);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc .safety {
  border: var(--hairline) solid var(--outline);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin: 28px 0;
  border-radius: var(--radius-sm);
}

.doc .card {
  padding: 22px 24px;
  margin: 28px 0;
}

.doc .card p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Landing page — the journal
   Rhythm: PAPER hero / PAPER how (hairline rules) / SAND examples band /
   PAPER trust ledger / NAVY footer.
   ========================================================================== */

/* ---- Hero: warm paper, a composed spread -------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
  border-bottom: var(--hairline) solid var(--outline-soft);
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 116px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 26px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .eyebrow .compass { width: 22px; height: 22px; margin: 0; }

.hero .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-left: -0.04em; /* optically flush left */
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
}

.hero .wordmark .dot { color: var(--accent-strong); }

.hero .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: clamp(18px, 2.6vw, 28px);
  max-width: 20ch;
  text-wrap: balance;
  color: var(--ink);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both;
}

.hero .subline {
  color: var(--meta);
  margin-top: 18px;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.65;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
}

.hero .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--meta);
  padding: 9px 16px;
  border-radius: 999px;
  border: var(--hairline) solid var(--outline);
  background: var(--paper);
}

.soon-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(194, 71, 33, 0.4);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 71, 33, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(194, 71, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 71, 33, 0); }
}

/* ---- Hero itinerary card ---------------------------------------------------
   The product's universal shape as a refined object: a paper card, fine
   hairline, soft shadow — an itinerary set like a page from the app.
   Names stay redacted — Jaha never invents a place, so the chrome
   doesn't either. */
.hero-ticket {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  background: var(--paper);
  border: var(--hairline) solid var(--outline);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-lift);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.34s both;
}

@media (max-width: 900px) {
  .hero-ticket { justify-self: start; }
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: var(--hairline) dashed var(--outline);
}

.ticket-stops {
  list-style: none;
  margin: 6px 0 2px;
  padding: 0;
  position: relative;
}

.ticket-stops::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: 26px;
  border-left: 1.5px dashed var(--accent-strong);
}

.ticket-stops li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
}

.tdot {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sand);
  border: var(--hairline) solid var(--outline);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-stops li:first-child .tdot {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--paper);
}

.tbars {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tbar { height: 10px; border-radius: 5px; background: var(--cream); }
.tbar.sub { height: 6px; background: var(--sand); }

.ticket-stops li:nth-child(1) .tbar.main { width: 82%; }
.ticket-stops li:nth-child(1) .tbar.sub { width: 52%; }
.ticket-stops li:nth-child(2) .tbar.main { width: 66%; }
.ticket-stops li:nth-child(2) .tbar.sub { width: 44%; }
.ticket-stops li:nth-child(3) .tbar.main { width: 74%; }
.ticket-stops li:nth-child(3) .tbar.sub { width: 58%; }

.ticket-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 15px;
  border-top: var(--hairline) solid var(--outline-soft);
  color: var(--meta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-foot img { width: 16px; height: 16px; opacity: 0.85; }

/* ---- How it works: paper, fine editorial rules --------------------------- */
.how { background: var(--paper); }

.how h2.section-title {
  margin-bottom: clamp(44px, 6vw, 72px);
  max-width: 20ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
}

.step {
  border-top: var(--hairline) solid var(--outline);
  padding-top: 22px;
}

.step .num {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: var(--accent-ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step .num::before { content: "Step "; }

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--ink);
}

.step p {
  color: var(--meta);
  font-size: 15px;
  margin-bottom: 18px;
}

.step .step-trail {
  width: 180px;
  height: 36px;
  margin-top: 4px;
}

/* ---- Live examples: warm sand band --------------------------------------- */
.examples {
  background: var(--sand);
  border-top: var(--hairline) solid var(--outline-soft);
  border-bottom: var(--hairline) solid var(--outline-soft);
}

.examples .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.examples h2.section-title { margin-bottom: 10px; }

.examples .section-sub {
  color: var(--meta);
  max-width: 60ch;
  font-size: 16px;
}

.examples .section-link {
  display: inline-block;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 6px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.examples .section-link:hover,
.examples .section-link:focus-visible {
  color: var(--accent-strong-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

@media (max-width: 720px) {
  .example-grid { grid-template-columns: 1fr; }
}

.example-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
}

.example-card .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.example-card:hover .card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.example-card:hover .card-media img { transform: scale(1.025); }

.example-card .badge-origin { margin-bottom: 6px; }

/* ---- Trust / origin: paper, a finely ruled ledger ------------------------- */
.trust { background: var(--paper); }

.trust h2.section-title { margin-bottom: clamp(40px, 5vw, 64px); max-width: 22ch; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border: var(--hairline) solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 800px) {
  .trust-grid { grid-template-columns: 1fr; }
}

.trust-item {
  background: none;
  border: 0;
  border-left: var(--hairline) solid var(--outline-soft);
  border-radius: 0;
  padding: 28px 30px 30px;
}

.trust-item:first-child { border-left: 0; }

@media (max-width: 800px) {
  .trust-item { border-left: 0; border-top: var(--hairline) solid var(--outline-soft); }
  .trust-item:first-child { border-top: 0; }
}

.trust-item .badge-origin { margin-bottom: 14px; }

.trust-item p {
  color: var(--body-color);
  font-size: 15px;
}

.trust .coda {
  color: var(--meta);
  font-family: var(--font-display);
  font-size: 17px;
  margin-top: 26px;
}
