/* ============================================================
   Cadenza marketing site styles
   Brand spec: marketing_website/design/palette.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;0,600;0,700;1,300;1,500;1,600&family=Cormorant+SC:wght@500;600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Brass plate */
  --c-plate-dark:    #382608;
  --c-plate-mid:     #5c4112;
  --c-plate:         #7a5821;
  --c-plate-light:   #a07c33;
  /* Relief brass */
  --c-relief-dark:   #7a5821;
  --c-relief:        #d8a849;
  --c-relief-light:  #fbe18a;
  /* Silvered chapter ring */
  --c-chapter-dark:  #b9af92;
  --c-chapter:       #d8cfb4;
  --c-chapter-light: #f3eacf;
  /* Engraving / ink */
  --c-ink:           #1a120a;
  --c-ink-soft:      #3a2808;
  /* Blued steel */
  --c-blued-deep:    #0a1020;
  --c-blued:         #1c2848;
  --c-blued-light:   #2a3a5a;
  /* Page surfaces */
  --c-ivory:         #f4ebd0;
  --c-paper:         #faf4e6;
  --c-vellum:        #ebe0c1;
  /* Accent */
  --c-oxblood:       #6b1f1f;
  --c-deep-red:      #4a1414;

  --font-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-smcaps:  'Cormorant SC', 'Cormorant Garamond', Garamond, serif;
  --font-body:    'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --feat-display: "kern" 1, "liga" 1, "dlig" 1, "calt" 1, "onum" 0, "lnum" 1;
  --feat-body:    "kern" 1, "liga" 1, "onum" 1;

  --max-w:         64rem;
  --max-w-narrow:  44rem;
}

/* -------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: var(--feat-body);
  /* paper-grain noise — subtle, baked into the page so type sits on a surface
     rather than a flat colour fill */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(122, 88, 33, 0.05) 0, transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(122, 88, 33, 0.04) 0, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1   0 0 0 0 0.07   0 0 0 0 0.04   0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  color: var(--c-ink);
  font-feature-settings: var(--feat-display);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.012em; font-weight: 500; }
h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-top: 0;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.008em;
}
h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1.2rem; font-weight: 600; }

/* eyebrow — small-caps supertitle that sits above an H1/H2 */
.eyebrow {
  font-family: var(--font-smcaps);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;          /* SC font handles the caps appearance */
  color: var(--c-relief-dark);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-indent: 0.32em;                /* compensate the trailing tracking */
}
.eyebrow::before, .eyebrow::after {
  content: ''; height: 1px; width: 2rem; background: currentColor; opacity: 0.6;
}
.section--dark .eyebrow { color: var(--c-relief); }

/* drop-cap — apply to first paragraph of major sections */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 5.2em;
  line-height: 0.78;
  padding: 0.18em 0.18em 0 0;
  color: var(--c-relief-dark);
  text-shadow: 0 1px 0 rgba(255, 244, 194, 0.4);
}
.section--dark .drop-cap::first-letter { color: var(--c-relief); text-shadow: none; }

/* inline fleuron */
.fleuron {
  display: inline-block;
  vertical-align: 0.06em;
  color: var(--c-relief-dark);
  font-size: 0.7em;
  margin: 0 0.5em;
  font-style: normal;
}
.section--dark .fleuron { color: var(--c-relief); }

p { margin: 0 0 1rem; max-width: var(--max-w-narrow); }
ul, ol { margin: 0 0 1rem; padding-inline-start: 1.5rem; max-width: var(--max-w-narrow); }
li { margin-bottom: 0.35rem; }
li > strong { font-family: var(--font-display); font-size: 1.05em; }

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

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--c-vellum);
  padding: 0.08em 0.35em;
  border-radius: 2px;
  color: var(--c-ink-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--c-vellum);
  margin: 2.5rem 0;
}

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

/* -------------------------------------------------- a11y */

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--c-ink); color: var(--c-paper);
  padding: 0.5rem 0.75rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* -------------------------------------------------- layout */

.container        { width: min(100% - 2rem, var(--max-w));        margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, var(--max-w-narrow)); margin-inline: auto; }

/* -------------------------------------------------- header */

.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-vellum);
  padding: 0.875rem 0;
  position: relative;
  z-index: 5;
}
.site-header::after {
  content: '';
  display: block;
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-relief), transparent);
  opacity: 0.55;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--c-ink);
}
.brand-icon { width: 2.5rem; height: 2.5rem; display: block; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-smcaps);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.32em;
  line-height: 1;
  text-indent: 0.32em;          /* offset trailing tracking */
  color: var(--c-ink);
  font-feature-settings: var(--feat-display);
}
.site-nav {
  display: inline-flex; align-items: center; gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--c-ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover { color: var(--c-oxblood); border-bottom-color: var(--c-oxblood); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--c-ink); }

/* -------------------------------------------------- hero */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(40,26,4,0.94) 0%, rgba(74,52,14,0.85) 55%, rgba(122,88,33,0.72) 100%),
    var(--c-plate-mid) url('/img/hero-bg.jpg') no-repeat center / cover;
  color: var(--c-paper);
  padding: 5rem 0 5.5rem;
  border-bottom: 4px solid var(--c-relief-dark);
  overflow: hidden;
}
/* gilt-rule top + bottom — a thin brass band that hairlines the section */
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(180deg, #fbe18a 0%, #d8a849 50%, #8a6112 100%);
  box-shadow: 0 1px 0 rgba(255, 244, 194, 0.3), 0 2px 5px rgba(0,0,0,0.4);
}
.hero::after {
  content: '';
  display: block;
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-relief), transparent);
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero .eyebrow { color: var(--c-relief); }
.hero h1 {
  color: var(--c-paper);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 2px 12px rgba(0,0,0,0.25);
}
.hero h1 .line {
  display: block;
  line-height: 1.0;
}
.hero h1 .line--second {
  font-style: italic;
  color: var(--c-relief-light);
}
.hero h1 .fleuron {
  display: block;
  font-size: 1.5rem;
  margin: 0.3em 0;
  color: var(--c-relief);
  opacity: 0.85;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.hero .lede {
  font-size: clamp(1.1rem, 1.65vw, 1.32rem);
  line-height: 1.55;
  max-width: 36rem;
  color: var(--c-chapter-light);
  margin-bottom: 2.25rem;
}
.hero .cta-row { margin-top: 0.5rem; }
.hero .small {
  font-size: 0.95rem;
  color: var(--c-chapter);
  margin-top: 1.1rem;
  font-style: italic;
  letter-spacing: 0.01em;
}
.hero-logo {
  width: 100%;
  max-width: 18rem;
  height: auto;
  margin-inline: auto;
  display: block;
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5))
    drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

@media (min-width: 56rem) {
  .hero-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
  .hero-logo { max-width: 22rem; }
}

/* -------------------------------------------------- buttons */

/* Gilded brass button — multi-layer gradient, engraved double border,
   inner top highlight, inner carved bottom shadow, ornamental end-stops.
   Hover sweeps a slow brass shine across the surface. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.025em;
  color: var(--c-ink);
  text-decoration: none;
  border: 1px solid #5a3f12;
  border-radius: 3px;
  background:
    linear-gradient(180deg,
      #fbe18a 0%,
      #e6c46a 22%,
      #d8a849 50%,
      #b8862b 78%,
      #8a6112 100%);
  background-size: 100% 220%;
  background-position: 0 100%;
  box-shadow:
    inset 0  1px 0   rgba(255, 250, 215, 0.85),   /* top highlight */
    inset 0 -1px 0   rgba(58,  40, 8,  0.55),     /* bottom carved shadow */
    inset 1px 0 0    rgba(255, 240, 180, 0.4),    /* left bevel */
    inset -1px 0 0   rgba(58,  40, 8,  0.4),      /* right bevel */
    0 1px 0          rgba(255, 244, 194, 0.4),    /* outer top lip */
    0 3px 0          #4e3710,                     /* carved base */
    0 6px 14px       rgba(26, 18, 10, 0.35),      /* cast shadow */
    0 14px 24px -8px rgba(26, 18, 10, 0.4);
  transition: background-position 0.6s ease, transform 0.12s ease,
              box-shadow 0.18s ease;
  isolation: isolate;
  overflow: hidden;
}
/* engraved inner double-border drawn on a pseudo-element */
.btn::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(58, 40, 8, 0.5);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 194, 0.25);
}
/* shine sweep across the brass on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 250, 220, 0.55) 40%,
    rgba(255, 250, 220, 0.85) 50%,
    rgba(255, 250, 220, 0.55) 60%,
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* decorative diamond end-stops flanking the label */
.btn .btn-label::before,
.btn .btn-label::after {
  display: inline-block;
  content: '\2666';                 /* black diamond ♦ */
  font-size: 0.55em;
  vertical-align: 0.45em;
  color: #5a3f12;
  margin: 0 0.6em;
  text-shadow: 0 1px 0 rgba(255, 244, 194, 0.5);
}
.btn:hover {
  background-position: 0 0;
  transform: translateY(-1px);
  box-shadow:
    inset 0  1px 0   rgba(255, 252, 230, 0.95),
    inset 0 -1px 0   rgba(58,  40, 8,  0.55),
    inset 1px 0 0    rgba(255, 240, 180, 0.5),
    inset -1px 0 0   rgba(58,  40, 8,  0.4),
    0 1px 0          rgba(255, 244, 194, 0.5),
    0 4px 0          #4e3710,
    0 9px 18px       rgba(26, 18, 10, 0.42),
    0 18px 32px -8px rgba(26, 18, 10, 0.45);
}
.btn:hover::after { left: 130%; }
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0  1px 2px rgba(58, 40, 8, 0.5),
    inset 0 -1px 0   rgba(255, 244, 194, 0.3),
    0 1px 0          #4e3710,
    0 2px 6px        rgba(26, 18, 10, 0.35);
}
.btn:focus-visible {
  outline: 2px solid var(--c-relief-light);
  outline-offset: 3px;
}

/* -------------------------------------------------- sections */

.section {
  padding: 4.5rem 0;
  position: relative;
}
.section + .section { border-top: 0; }
.section--dark {
  background:
    linear-gradient(180deg, rgba(40,26,4,0.4) 0%, transparent 30%, transparent 70%, rgba(40,26,4,0.4) 100%),
    var(--c-plate-mid);
  color: var(--c-paper);
  border-top: 1px solid #2a1d05;
  border-bottom: 1px solid #2a1d05;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 194, 0.06),
    inset 0 -1px 0 rgba(255, 244, 194, 0.06);
}
.section--dark::before, .section--dark::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 3px;
}
.section--dark::before {
  top: -2px;
  background: linear-gradient(180deg, #fbe18a, #d8a849 50%, #8a6112);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.section--dark::after {
  bottom: -2px;
  background: linear-gradient(180deg, #8a6112, #d8a849 50%, #fbe18a);
  box-shadow: 0 -1px 4px rgba(0,0,0,0.35);
}

/* Ornamental section divider: hairline rule + center fleuron.
   Usage: <hr class="divider"> OR <div class="divider"><span>❦</span></div> */
.divider {
  border: 0;
  width: min(60%, 18rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--c-ink-soft);
  padding: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.divider span,
hr.divider::after {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.25em;
  color: var(--c-relief-dark);
}
hr.divider {                              /* compatibility for plain <hr class="divider"> */
  height: auto;
  position: relative;
  padding-block: 1.25rem;
}
hr.divider::after {
  content: '❦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-ivory);
  padding: 0 0.6em;
}
.section--dark .divider,
.section--dark hr.divider::after { color: var(--c-relief); }
.section--dark hr.divider::after { background: var(--c-plate-mid); }
.section--dark h2,
.section--dark h3 { color: var(--c-relief-light); }
.section--dark a { color: var(--c-relief-light); }
.section--dark a:hover { color: var(--c-relief); }
.section--dark code { background: rgba(255,244,194,0.1); color: var(--c-relief-light); }
.section-intro {
  font-size: 1.2rem;
  max-width: var(--max-w-narrow);
  margin-bottom: 2rem;
}

/* -------------------------------------------------- template grid */

.templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0 0;
}
.template-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.25rem;
  background: var(--c-paper);
  border: 1px solid rgba(58, 40, 8, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 244, 194, 0.6) inset,
    0 1px 2px rgba(58, 40, 8, 0.06),
    0 8px 18px -10px rgba(58, 40, 8, 0.25);
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* gilt capital band along the top edge */
.template-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(180deg, #fbe18a 0%, #d8a849 55%, #8a6112 100%);
  box-shadow: 0 1px 0 rgba(255, 244, 194, 0.4);
}
.template-emoji {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.4rem 0 0.6rem;
  filter:
    drop-shadow(0 1px 0 rgba(255, 244, 194, 0.5))
    drop-shadow(0 2px 3px rgba(58, 40, 8, 0.25));
}
.template-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 244, 194, 0.7) inset,
    0 2px 4px rgba(58, 40, 8, 0.08),
    0 18px 32px -14px rgba(58, 40, 8, 0.4);
}
.template-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-style: italic;
  color: var(--c-ink);
  font-feature-settings: var(--feat-display);
}
.template-card p { margin: 0.5rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--c-ink-soft); }

/* -------------------------------------------------- permissions table */

.permissions {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 1rem;
  background: rgba(0,0,0,0.18);
  border-top: 2px solid var(--c-relief-dark);
  border-bottom: 2px solid var(--c-relief-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 194, 0.08),
    inset 0 -1px 0 rgba(255, 244, 194, 0.08);
}
.permissions th, .permissions td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(216,207,180,0.14);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.permissions thead th {
  font-family: var(--font-smcaps);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--c-relief-light);
  border-bottom: 1px solid var(--c-relief-dark);
  box-shadow: 0 1px 0 rgba(255, 244, 194, 0.18);
  padding-block: 1rem;
}
.permissions tbody tr:last-child td { border-bottom: 0; }
.permissions code {
  background: rgba(216,168,73,0.16);
  color: var(--c-relief-light);
  font-size: 0.85em;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.permissions td:first-child { width: 38%; }

/* -------------------------------------------------- cannots list */

.cannots {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  gap: 1.1rem;
  max-width: var(--max-w-narrow);
}
.cannots li {
  position: relative;
  padding: 0.1rem 0 0.1rem 2.5rem;
  font-size: 1.12rem;
  line-height: 1.55;
}
/* obelus (dagger) — the period mark for sworn impossibility */
.cannots li::before {
  content: '†';
  position: absolute; left: 0; top: -0.05em;
  color: var(--c-oxblood);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.section--dark .cannots li::before {
  color: var(--c-relief);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

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

.faq { margin: 0; max-width: var(--max-w-narrow); }
.faq dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--c-ink);
  margin: 2rem 0 0.4rem;
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 1.5rem;
}
.faq dt::before {
  content: '§';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--c-relief-dark);
  font-style: normal;
  font-weight: 500;
  font-size: 1.05em;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0 0 0 1.5rem; }
.section--dark .faq dt { color: var(--c-paper); }
.section--dark .faq dt::before { color: var(--c-relief); }

/* -------------------------------------------------- use-case list */

.use-cases {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  gap: 0.5rem;
}
.use-cases li {
  position: relative;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: var(--c-paper);
  border: 1px solid rgba(58, 40, 8, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 244, 194, 0.55) inset,
    0 4px 12px -8px rgba(58, 40, 8, 0.2);
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
}
/* hanging fleuron in the margin */
.use-cases li::before {
  content: '❦';
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  font-family: var(--font-display);
  color: var(--c-relief-dark);
  font-size: 1.2rem;
  line-height: 1;
}
.use-cases strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--c-ink);
}

/* -------------------------------------------------- app screenshots */

/* Wrapper for a row of phone screenshots: gilt-edged paper cards on
   a darker plate band so the bright app colours pop. */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem;
  margin: 2rem 0 1.5rem;
  align-items: end;
}
.screens.screens--inline { margin-top: 1.25rem; }

.screen {
  margin: 0;
  padding: 0;
  position: relative;
  background: linear-gradient(180deg, #1a120a 0%, #2a1d05 100%);
  border: 1px solid var(--c-relief-dark);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 194, 0.18),
    0 1px 0 rgba(255, 244, 194, 0.25),
    0 3px 0 #3a2808,
    0 14px 28px -10px rgba(26, 18, 10, 0.55),
    0 26px 50px -16px rgba(26, 18, 10, 0.45);
  padding: 0.4rem 0.4rem 0.65rem;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.screen::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: linear-gradient(180deg, #fbe18a 0%, #d8a849 60%, #8a6112 100%);
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}
.screen:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 194, 0.22),
    0 1px 0 rgba(255, 244, 194, 0.28),
    0 3px 0 #3a2808,
    0 20px 36px -10px rgba(26, 18, 10, 0.6),
    0 32px 60px -16px rgba(26, 18, 10, 0.5);
}
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.screen figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--c-chapter);
  text-align: center;
  padding: 0.7rem 0.5rem 0.15rem;
  max-width: none;
}
.section--dark .screen figcaption { color: var(--c-chapter-light); }

/* Side-by-side layout: a phone screenshot to one side of a short note. */
.screen-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  align-items: center;
  max-width: none;
}
.screen-aside .screen { max-width: 18rem; margin-inline: auto; }
.screen-aside .screen-aside-text > :last-child { margin-bottom: 0; }
.screen-aside .screen-aside-text > p { max-width: none; }

@media (min-width: 44rem) {
  .screen-aside {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 2.5rem;
  }
  .screen-aside.screen-aside--left {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
  .screen-aside .screen { max-width: none; margin-inline: 0; }
}

/* Five-figure lifecycle row: tighter columns + smaller gap so READY → intro
   → loop WALK → loop RUN → outro reads as one continuous filmstrip. */
.screens.screens--lifecycle {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.screens.screens--lifecycle .screen { padding: 0.3rem 0.3rem 0.5rem; }
.screens.screens--lifecycle .screen figcaption {
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.55rem 0.3rem 0.1rem;
  min-height: 3.4em;
}

@media (max-width: 56rem) {
  .screens.screens--lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (max-width: 36rem) {
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .screens.screens--lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -------------------------------------------------- footer */

.site-footer {
  background: var(--c-plate-dark);
  color: var(--c-chapter);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--c-oxblood);
}
.site-footer a { color: var(--c-relief-light); }
.site-footer .attribution {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-chapter-dark);
  margin-bottom: 1rem;
  max-width: 44rem;
}
.footer-links {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* -------------------------------------------------- prose page (privacy/terms/support) */

.page-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-vellum);
  padding: 2.5rem 0 1.5rem;
}
.page-header h1 { margin-bottom: 0.25rem; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.page-header .updated {
  font-style: italic;
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.prose { padding: 3rem 0; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p, .prose li { max-width: var(--max-w-narrow); }

/* -------------------------------------------------- contact form */

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
  max-width: var(--max-w-narrow);
}
.contact-form .field { display: grid; gap: 0.35rem; }
.contact-form label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink);
}
.contact-form .hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  color: var(--c-ink-soft);
  font-size: 0.9rem;
}
.contact-form .req { color: var(--c-oxblood); font-weight: 700; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-ink-soft);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}
.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--c-relief);
  outline-offset: 1px;
  border-color: var(--c-ink);
}
.contact-form .field--error input,
.contact-form .field--error textarea {
  border-color: var(--c-oxblood);
  background: #fcf3f3;
}
.contact-form .field-error {
  color: var(--c-oxblood);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0.1rem 0 0;
}
.contact-form button[type="submit"] {
  justify-self: start;
  cursor: pointer;
  font: inherit;
}
.contact-form .field-help {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--c-ink-soft);
  margin: 0;
  max-width: 36rem;
}
/* honeypot: hide from real users, keep accessible-only from bots */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  background: var(--c-paper);
  border: 1px solid var(--c-relief);
  border-left: 4px solid var(--c-relief);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.form-success strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.4rem;
}
.form-success p { margin: 0; }

.form-error {
  background: #fcf3f3;
  border: 1px solid var(--c-oxblood);
  border-left: 4px solid var(--c-oxblood);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--c-deep-red);
}

/* -------------------------------------------------- small screens */

@media (max-width: 36rem) {
  .header-row { gap: 0.75rem; }
  .site-nav { gap: 1rem; font-size: 1rem; }
  .brand-name { font-size: 1.5rem; }
  .brand-icon { width: 2rem; height: 2rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3rem 0; }
  .permissions td:first-child { width: auto; }
  .permissions { display: block; overflow-x: auto; }
}
