/* fromyourdoor — landing page chrome + marketing CSS.
   Extracted from index.html's inline <style> as part of the 2026-05 redesign.
   Carousel/reveal/book.css overrides remain inline in index.html so the
   cascade contract with <style id="book-css-runtime"> is preserved. */

/* Inigo-register palette: cream, charcoal, rust. Matches the book's
   interior typography (Source Serif 4 + Inter) so the marketing page
   and the printed product feel like one design system. Light-only on
   purpose — the Inigo aesthetic is print-rooted, dark mode would feel
   jarring against the warm cream that sets the tone. */
:root {
  --bg:           #faf8f3;
  --bg-soft:      #f3eee4;
  --rule:         #d8cfbf;
  --text:         #1a1a1a;
  --text-soft:    #5a5550;
  --text-mute:    #8a857f;
  --accent:       #b0502e;
  --serif:        'Fraunces', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif-display: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 96px 0;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Skip link — keyboard users land here first. */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  z-index: 200;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* Site header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: padding 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.5,0,0.2,1);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}
/* Smart-hide on scroll-down past 200px so the header stops eating the
   mobile fold while the buyer is reading. Restores instantly on
   scroll-up. Suppressed during the carousel reveal — buyer needs the
   brand visible there. */
.site-header.is-hidden { transform: translateY(-100%); }
body.is-reading .site-header.is-hidden { transform: none; }
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.2s ease;
}
.site-header.is-scrolled .site-header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-logo {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
.site-logo:hover { color: var(--accent); text-decoration: none; }
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 0;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

.site-header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.site-header-toggle svg { display: block; }

/* Mobile nav dialog — off-canvas right panel. */
.site-mobile-nav {
  border: none;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  margin: 0 0 0 auto;
  inset: 0 0 0 auto;
  height: 100vh;
  width: min(280px, 80vw);
  box-shadow: -16px 0 32px -8px rgba(20, 16, 10, 0.12);
}
.site-mobile-nav::backdrop {
  background: rgba(20, 16, 10, 0.32);
}
.site-mobile-nav-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 12px;
}
.site-mobile-nav-inner a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
}
.site-mobile-nav-inner a:hover { color: var(--accent); text-decoration: none; }

/* Hero ---------------------------------------------------------------- */
.site-hero {
  padding: 56px 0 56px;
}
.site-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.site-hero-copy { min-width: 0; }
/* Right column wrapper: cover + chip + ETA stack vertically. The
   wrapper exists so the price-block sits under the cover image on
   desktop without needing explicit grid-row placement. On mobile it
   collapses to display:contents so each child flows independently
   into the parent flex column with its own `order:`. */
.site-hero-image-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-items: center;
  text-align: center;
}
.site-hero-image-col .site-hero-image { width: 100%; }
.site-hero-image-col .price-chip-eta { margin-top: 0; }
.site-hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-mute);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.site-hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 16ch;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
.site-hero h1 em { font-style: italic; font-weight: 400; }
.site-hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 36ch;
}
.site-hero-sub-line2 {
  display: inline-block;
  margin-top: 6px;
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 100%;
}
.price-chip strong {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price-chip-meta {
  color: var(--text-soft);
  font-style: italic;
}
.price-chip-eta {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
  min-height: 1em;
}
.price-chip-eta:empty { display: none; }
.price-chip-eta strong { font-weight: 500; font-style: normal; color: var(--text); }
.value-stack {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-btn-secondary {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-block;
}
.hero-btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

/* Trust strip: promoted above the form so signals sit on the visual
   path to the CTA. Italic removed; font upgraded to 13px with icons. */
.trust-strip {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 46ch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.trust-strip span {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.trust-strip svg {
  flex-shrink: 0;
  color: var(--text-soft);
}
@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column;
    gap: 6px;
  }
}

.site-hero-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.site-hero-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
/* Personalisation magic moment — appears under the cover after recipient
   validation passes, with a soft fade-in. Tells the buyer what their
   actual cover will say. */
.hero-personalisation {
  margin-top: 16px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-personalisation.is-shown { opacity: 1; }
.hero-personalisation strong {
  font-weight: 500;
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Postcode form (existing styling, scoped) ---------------------------- */
.postcode-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
/* v4 issue 1/5: form now stacks (label → input → error → email-group →
   submit) instead of laying postcode + submit side-by-side. flex-column
   keeps gap consistency without re-doing per-child margin maths. */
.postcode-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 12px;
  max-width: 540px;
}
.postcode-input {
  display: block;
  width: 100%;
  max-width: 320px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.postcode-input::placeholder {
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.postcode-input:focus {
  outline: none;
  border-color: var(--accent);
}
.postcode-submit {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
}
.postcode-submit:hover { background: var(--accent); }
.postcode-submit:disabled {
  background: var(--text-mute);
  cursor: default;
}
.postcode-input:disabled {
  background: var(--bg-soft);
  color: var(--text-mute);
}
.form-meta {
  font-size: 14px;
  color: var(--text-mute);
  font-style: italic;
  font-family: var(--serif);
}
.form-meta a {
  color: var(--accent);
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.form-meta a:hover { text-decoration: none; color: var(--text); }

/* Hero CTA ------------------------------------------------------------ */
.hero-cta {
  display: block;
  width: 100%;
  max-width: 360px;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-bottom: 10px;
}
.hero-cta:hover { background: var(--accent); color: var(--bg); }
.hero-cta-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

/* Section heads ------------------------------------------------------- */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 22ch;
  font-variation-settings: "opsz" 64, "SOFT" 50;
}

/* How it works -------------------------------------------------------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 16px;
}
.how-step-num {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 14px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  line-height: 1;
}
.how-step-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
}
.how-step-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Long-form prose — "What's in the book" ------------------------------ */
.prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 60ch;
}
.prose p:last-child { margin-bottom: 0; }

/* Pricing block ------------------------------------------------------- */
.pricing {
  padding: 56px 48px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  text-align: left;
}
.pricing-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pricing-fineprint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}
.pricing-detail {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 24px 0 24px;
  max-width: 56ch;
}
.pricing-trust {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.6;
}
.pricing-guarantees {
  list-style: none;
  margin: 0 0 28px;
}
.pricing-guarantees li {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-soft);
  padding: 5px 0 5px 24px;
  position: relative;
}
.pricing-guarantees li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 500;
}
.pricing-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.pricing-cta:hover { background: var(--accent); text-decoration: none; }

/* Trust band (replaces v1 reviews) ----------------------------------- */
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.trust-card {
  padding: 28px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.trust-card-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.trust-card-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.trust-card-body {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* FAQ ----------------------------------------------------------------- */
.faq-item { margin-bottom: 40px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.faq-a {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 60ch;
}

/* Site footer --------------------------------------------------------- */
.site-footer {
  padding: 64px 0 64px;
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  background: var(--bg);
}
.site-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer-brand {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
.site-footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
  max-width: 32ch;
}
.site-footer-col-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer-col ul { list-style: none; }
.site-footer-col li {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
}
.site-footer-col a {
  color: var(--text-soft);
}
.site-footer-col a:hover { color: var(--accent); text-decoration: none; }
.site-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer-social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.site-footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

/* Recipient-details modal — Step 4 checkout entry point. */
.recipient-modal {
  border: none;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 6px;
  box-shadow: 0 24px 64px -16px rgba(20, 16, 10, 0.18);
  font-family: var(--sans);
  margin: auto;
  inset: 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.recipient-modal::backdrop {
  background: rgba(20, 16, 10, 0.32);
}
.recipient-modal-inner { padding: 32px 36px 28px; }
.recipient-modal h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.recipient-modal p.lede {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.recipient-modal label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.recipient-modal input[type=text],
.recipient-modal textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px;
  background: #fff;
  color: var(--text);
  margin-bottom: 18px;
}
.recipient-modal textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}
.recipient-modal input[type=text]:focus,
.recipient-modal textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.address-autocomplete {
  position: relative;
  margin-bottom: 18px;
}
.address-autocomplete input[type=text] {
  margin-bottom: 0;
}
.address-autocomplete-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  max-height: 260px;
  overflow-y: auto;
}
.address-autocomplete-suggestion {
  padding: 9px 14px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.address-autocomplete-suggestion:hover {
  background: var(--rule-soft, #f4f4f4);
}
.address-autocomplete-empty {
  padding: 9px 14px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}
.recipient-modal-error {
  color: var(--accent);
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 16px;
  min-height: 1.4em;
}

/* Send-to radio group */
.recipient-modal-radio-group {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.recipient-modal-radio {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.recipient-modal-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.recipient-modal-radio-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.recipient-modal-radio:hover .recipient-modal-radio-tile {
  border-color: var(--text-soft);
}
.recipient-modal-radio input:checked + .recipient-modal-radio-tile {
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--text);
}
.recipient-modal-radio input:focus-visible + .recipient-modal-radio-tile {
  outline: 2px solid var(--text-soft);
  outline-offset: 2px;
}

.recipient-modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.recipient-modal-submit {
  flex: 1;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.recipient-modal-submit:hover { background: var(--accent); }
.recipient-modal-submit:disabled { opacity: 0.5; cursor: wait; }
.recipient-modal-cancel {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  padding: 14px 18px;
  min-height: 44px;
  border-radius: 4px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.recipient-modal-cancel:hover {
  color: var(--text);
  border-color: var(--rule);
  background: var(--bg-soft);
}
.recipient-modal-cancel:focus-visible {
  outline: 2px solid var(--text-soft);
  outline-offset: 2px;
}
.recipient-modal-fineprint {
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 18px;
}
.recipient-modal-stripe-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Review-your-order modal -------------------------------------------- */
.review-modal {
  border: none;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 6px;
  box-shadow: 0 24px 64px -16px rgba(20, 16, 10, 0.18);
  font-family: var(--sans);
  margin: auto;
  inset: 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.review-modal::backdrop { background: rgba(20, 16, 10, 0.32); }
.review-modal-inner { padding: 32px 36px 28px; }
.review-modal h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.review-modal-lede {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.review-line-item {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 16px;
}
.review-cover-preview {
  margin-bottom: 14px;
  max-width: 200px;
}
.review-cover-skeleton {
  width: 200px;
  height: 280px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--rule) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    var(--rule) 100%
  );
  background-size: 200% 100%;
  animation: review-cover-shimmer 1.2s ease-in-out infinite;
}
@keyframes review-cover-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.review-cover-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(20, 16, 10, 0.12);
}
.review-line-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.review-line-meta {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 4px;
}
.review-line-meta strong {
  color: var(--text);
  font-weight: 500;
  font-style: normal;
}
.review-line-message {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  line-height: 1.55;
}
.review-line-edit {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.review-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 4px;
  border-top: 1px solid var(--rule);
  margin-bottom: 22px;
}
.review-total-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.review-total-value {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.review-modal-error {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 1.4em;
}

/* Sticky continue-pill ------------------------------------------------ */
.sticky-continue {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(20, 16, 10, 0.18);
  transition: background 0.15s ease, transform 0.25s cubic-bezier(0.5,0,0.2,1), opacity 0.2s ease;
  letter-spacing: 0.01em;
  display: none;
}
.sticky-continue.is-shown { display: inline-flex; align-items: center; gap: 8px; }
.sticky-continue:hover { background: var(--accent); transform: translateY(-1px); }
/* Smart-hide while the buyer scrolls down (engaged with content); restore
   on scroll-up. Avoids burying FAQ/footer copy under the pill. */
.sticky-continue.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.sticky-continue-amount {
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 0;
  font-size: 13px;
}

/* Email-capture modal ------------------------------------------------- */
.email-capture-modal {
  border: none;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  border-radius: 6px;
  box-shadow: 0 24px 64px -16px rgba(20, 16, 10, 0.18);
  font-family: var(--sans);
  margin: auto;
  inset: 0;
}
.email-capture-modal::backdrop { background: rgba(20, 16, 10, 0.28); }
.email-capture-inner { padding: 32px 32px 26px; }
.email-capture-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.email-capture-modal h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.email-capture-lede {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.email-capture-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.email-capture-input {
  flex: 1;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.email-capture-input:focus { outline: none; border-color: var(--accent); }
.email-capture-submit {
  padding: 11px 18px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.email-capture-submit:hover { background: var(--accent); }
.email-capture-close {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.email-capture-close:hover { color: var(--text); }
.email-capture-fineprint {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* Hero photograph (legacy class — preserved for any back-compat) ----- */
.hero-figure {
  margin: 56px auto 0;
  max-width: 1280px;
  padding: 0 24px;
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
.hero-figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 12px;
}

/* Mobile -------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Mobile hero: collapse the two-column grid + the right-column wrapper
     to a single flex column. display:contents on both wrappers flattens
     all leaf elements (h1, cover, chip, ETA, sub, form, ...) into
     .site-hero-inner so a single `order:` cascade drives the visual
     sequence. Cover capped at 200px so chip + ETA + sub + form all sit
     above the iPhone SE fold (812px). */
  .site-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .site-hero-copy,
  .site-hero-image-col { display: contents; }

  .site-hero h1 { order: 1; margin-bottom: 12px; max-width: none; }
  .site-hero-sub { order: 2; margin-bottom: 16px; }
  .site-hero-image {
    order: 3;
    margin: 0 0 16px;
    padding: 14px 12px;
  }
  .site-hero-image img { max-width: 200px; }
  .price-chip { order: 4; margin-bottom: 14px; }
  .hero-cta { order: 5; max-width: none; }
  .price-chip-eta { order: 6; margin-bottom: 14px; }

  .trust-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 800px) {
  .site-nav { display: none; }
  .site-header-toggle { display: inline-flex; align-items: center; }
  .site-header-inner { padding: 14px 20px; }
  .site-header.is-scrolled .site-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-logo { font-size: 19px; }
}

@media (max-width: 640px) {
  .site-hero { padding: 32px 0 40px; }
  hr { margin: 48px 0; }
  .pricing { padding: 36px 24px; }
  .postcode-input, .postcode-submit { width: 100%; }
  .hero-buttons { flex-direction: column; }
  .hero-btn-secondary { width: 100%; text-align: center; }
  .review-modal-inner, .recipient-modal-inner { padding: 24px 22px 22px; }
  .sticky-continue {
    right: 12px;
    left: 12px;
    bottom: 12px;
    border-radius: 6px;
    justify-content: center;
  }
  .review-line-item { padding: 14px 16px; }
  /* Footer: stack the legal/trust line and the credit explicitly so they
     don't wrap on top of each other awkwardly. Gives each its own row. */
  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* -----------------------------------------------------------------------
   Change 1: Preview name input
   Sits above the postcode form; styled to pair naturally with the
   postcode input but deliberately lower-profile (smaller font-size).
   ----------------------------------------------------------------------- */
.preview-name-group {
  margin-bottom: 20px;
}
.preview-name-input {
  display: block;
  width: 100%;
  max-width: 320px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--text);
  letter-spacing: 0.01em;
}
.preview-name-input::placeholder {
  color: var(--text-mute);
  font-weight: 400;
}
.preview-name-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* v4 email gate — same input styling as preview-name-input. Consent
   microcopy beneath in muted colour; benefit-framed ("send Sarah's
   sample"), not subscription-framed. */
.preview-email-group {
  margin-top: 16px;
  margin-bottom: 16px;
}
.preview-email-input {
  display: block;
  width: 100%;
  max-width: 320px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--text);
  letter-spacing: 0.01em;
}
.preview-email-input::placeholder {
  color: var(--text-mute);
  font-weight: 400;
}
.preview-email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.preview-email-input.is-invalid {
  border-color: #c0392b;
}
/* v4 issue 4 — visible inline error message under postcode + email
   inputs. .form-error is hidden by default (`hidden` attribute) and
   surfaced on validation failure. Same red as is-invalid border. */
.form-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #c0392b;
  max-width: 320px;
  line-height: 1.4;
}
.postcode-input.is-invalid {
  border-color: #c0392b;
}
.preview-email-consent {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  max-width: 320px;
  line-height: 1.4;
}
.preview-email-consent-link {
  color: var(--text-mute);
  text-decoration: underline;
}
#preview-email-recipient-name {
  font-style: italic;
}

/* -----------------------------------------------------------------------
   Change 2: Interior page preview
   Two sample pages shown between the hero and "How it works" so visitors
   see the map quality before committing to a postcode.
   ----------------------------------------------------------------------- */
.interior-preview {
  max-width: 860px;
  margin: 0 auto 0;
  padding: 0 24px 48px;
}
.interior-preview-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}
.interior-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .interior-preview-grid { grid-template-columns: 1fr; }
}
.interior-preview-figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.interior-preview-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.interior-preview-figure figcaption {
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}

/* -----------------------------------------------------------------------
   Change 4: Founder photo in trust card
   ----------------------------------------------------------------------- */
.trust-founder-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  background: var(--rule); /* fallback colour if image is missing */
}

/* -----------------------------------------------------------------------
   Change 5: Walk jump navigation
   Numbered buttons above the book footer so buyers can jump directly
   to any walk's map page without paging through cover + intro pages.
   ----------------------------------------------------------------------- */
.book-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 14px 16px 6px;
}
.book-jump-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-jump-btn:hover {
  background: var(--bg-soft);
  border-color: var(--text-soft);
}
