/* The Homegrown Journey: public homepage
   Implements the approved design, canvas version 22 (see the approved homepage-implementation handoff).
   Values below are retained from the current approved v22 implementation; change them only with design approval. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-semibold.woff") format("woff"); }

:root {
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;

  --canvas: #faf7ee;
  --paper: #fffaf0;
  --mount: #fffdf7;
  --ink: #342d27;
  --heading: #2b3a2c;
  --text: #4f463e;
  --text-card: #574e45;
  --muted: #6a6158;
  --sage: #52684c;
  --sage-hover: #455a40;
  --teal: #316b69;
  --teal-hover: #234f4d;
  --rule: #e3d8c5;
  --rule-strong: #d9ccb6;
  --field: #b9ad97;
  --focus: #8a4a19;

  --quill-bg: #f1ecf3;
  --quill-rule: #ddd2e4;
  --quill-eyebrow: #5f4f6d;
  --quill-heading: #2f2638;
  --quill-text: #4c4253;

  --video-bg: #f3ecdd;
  --video-poster: #789b94;
  --footer: #2f3b30;

  --tape-kraft: rgba(222, 213, 189, .78);
  --tape-lavender: rgba(207, 195, 215, .72);

  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(56px, 8vw, 96px);
}

/* Box model matches the approved design: browser default (content-box), border-box only where the source sets it. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

a { color: var(--teal); }
a:hover { color: var(--teal-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 16px; }

.page { overflow-x: hidden; overflow-x: clip; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  background: var(--sage); color: var(--mount); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--mount); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Launch variants: invitation is the default whenever data-launch is not "trial". */
html:not([data-launch="trial"]) [data-launch-only="trial"] { display: none !important; }
html[data-launch="trial"] [data-launch-only="invitation"] { display: none !important; }

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.band-paper { background: var(--paper); }
.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }

/* Type */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--sage);
}
.display {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -1px; color: var(--heading);
}
.title {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; color: var(--heading);
}
.lead { margin: 0; font-size: 18px; color: var(--text-card); }
.note { margin: 0; font-size: 15px; color: var(--muted); }
.heading-block { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 8px;
  font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { border: 0; background: var(--sage); color: var(--mount); }
.btn-primary:hover { background: var(--sage-hover); color: var(--mount); }
.btn-secondary { padding: 0 24px; border: 1px solid var(--field); background: var(--paper); color: var(--ink); font-weight: 400; }
.btn-secondary:hover { border-color: #8f8470; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 28px; padding-block: 10px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: 132px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; }
.main-nav a:not(.btn) { color: #4a4239; text-decoration: none; padding: 10px 0; }
.main-nav a:not(.btn):hover { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }

/* Scrapbook mounts and tape */
.mount {
  position: relative; margin: 0; padding: 8px 8px 0;
  background: var(--mount); border: 1px solid #ebe1cf;
  box-shadow: 0 3px 0 rgba(88, 70, 48, .05), 0 12px 26px rgba(74, 58, 40, .10);
}
.mount img { display: block; width: 100%; height: auto; }
.mount figcaption {
  padding: 10px 4px 12px; font-family: var(--font-serif); font-style: italic;
  font-size: 16px; color: #5e554b;
}
.tape { position: absolute; display: block; pointer-events: none; }
.tape-kraft { background: var(--tape-kraft); }
.tape-lavender { background: var(--tape-lavender); }

.decor { position: absolute; height: auto; pointer-events: none; }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 4px; }

.hero-collage { flex: 1 1 420px; min-width: 0; position: relative; padding: 36px 8px 40px; }
.hero-collage .decor-eucalyptus { top: -34px; right: -48px; width: 62%; max-width: 330px; z-index: 0; }
.hero-collage .decor-peony { left: -46px; bottom: -36px; width: 34%; max-width: 170px; z-index: 3; }
.mount-banner {
  z-index: 1; padding: 10px 10px 12px;
  box-shadow: 0 3px 0 rgba(88, 70, 48, .06), 0 14px 30px rgba(74, 58, 40, .12);
  transform: rotate(-1.2deg);
}
.mount-banner .tape { top: -11px; left: calc(50% - 44px); width: 88px; height: 24px; transform: rotate(-3deg); }
.mount-timeline {
  z-index: 2; width: 70%; margin: -6px 0 0 9%; padding: 8px 8px 10px;
  box-shadow: 0 3px 0 rgba(88, 70, 48, .06), 0 16px 34px rgba(74, 58, 40, .14);
  transform: rotate(1.4deg);
}
.mount-timeline .tape { top: -10px; right: 18px; width: 70px; height: 22px; transform: rotate(6deg); }

/* Living Journal video */
.video-section { background: var(--video-bg); border-block: 1px solid var(--rule); }
.video-section .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px);
}
.video-section .heading-block { align-items: center; text-align: center; }
.video-holder { position: relative; width: 100%; max-width: 940px; }
.video-holder .decor-lavender { left: -96px; bottom: -40px; width: 24%; max-width: 210px; z-index: 2; }
/* Once the video starts, the sprig tucks behind the frame so it never covers the player controls. */
.video-holder.is-playing .decor-lavender { z-index: 0; }
.video-holder .decor-dahlia { right: -66px; top: -58px; width: 17%; max-width: 150px; z-index: 2; transform: rotate(14deg); }
.video-frame {
  position: relative; z-index: 1; margin: 0;
  padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) 0;
  background: var(--mount); border: 1px solid #e6dcc8;
  box-shadow: 0 4px 0 rgba(88, 70, 48, .07), 0 22px 48px rgba(74, 58, 40, .16);
  transform: rotate(-0.6deg);
}
.video-frame .tape-left { top: -12px; left: 34px; width: 96px; height: 26px; transform: rotate(-5deg); background: rgba(222, 213, 189, .8); }
.video-frame .tape-right { top: -12px; right: 34px; width: 96px; height: 26px; transform: rotate(4deg); background: rgba(207, 195, 215, .75); }
.video-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--video-poster); overflow: hidden;
}
.video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: var(--video-poster); }
.video-stage video[controls] { object-fit: contain; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid rgba(255, 253, 247, .9);
  background: rgba(255, 250, 240, .92); box-shadow: 0 8px 24px rgba(20, 40, 36, .28);
  cursor: pointer;
}
.video-play svg { width: 34px; height: 34px; }
.video-play:hover { background: #fffdf7; }
.video-play[hidden] { display: none; }
.video-label {
  position: absolute; left: max(16px, calc(24% - 70px)); bottom: 12px; margin: 0 16px 0 0; padding: 4px 10px; border-radius: 4px;
  background: rgba(32, 52, 48, .55); color: #f4efe3; font-size: 12px; letter-spacing: .3px;
}
.video-message {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  margin: 0; padding: 6px 12px; border-radius: 6px; max-width: calc(100% - 32px);
  background: rgba(255, 250, 240, .95); color: var(--ink); font-size: 14px; text-align: center;
}
.video-message:empty { display: none; }
.video-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 20px; padding: 16px 6px 20px;
  /* Keeps the caption clear of the lavender sprig (it reaches about 24% - 96px into the frame). */
  padding-left: max(6px, calc(24% - 78px));
}
.video-caption .line { font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 1.8vw, 20px); color: #4e453d; }
.video-caption .meta { font-size: 14px; color: var(--muted); }

/* How it works */
.how .wrap { display: flex; flex-direction: column; gap: 40px; }
.heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.heading-row .heading-block { flex: 1 1 420px; min-width: 0; }
.heading-row .art-can { flex: 0 0 auto; width: 150px; height: auto; margin-bottom: -18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border-radius: 14px; background: var(--canvas); border: 1px solid var(--rule);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; font-family: var(--font-serif); font-size: 20px;
}
.step-1 .step-number { background: #dce5d1; color: #263522; }
.step-2 .step-number { background: #d4e9e5; color: #1f4846; }
.step-3 .step-number { background: #f2d8c9; color: #6b3220; }
.step h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 23px; color: var(--heading); }
.step p { margin: 0; font-size: 16px; color: var(--text-card); }

/* What's inside */
.inside { display: flex; flex-direction: column; gap: 44px; }
.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 28px; align-items: start; padding: 8px 4px 4px;
}
.shots .mount .tape { top: -10px; left: calc(50% - 36px); width: 72px; height: 22px; }
.shot-1 { transform: rotate(-1deg); }
.shot-1 .tape { transform: rotate(-4deg); }
.shot-2 { transform: rotate(1.2deg); }
.shot-2 .tape { transform: rotate(3deg); }
.shot-3 { transform: rotate(-0.6deg); }
.shot-3 .tape { transform: rotate(-2deg); }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong);
}
.feature { display: flex; gap: 18px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule-strong); }
.feature svg { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 3px; }
.feature div { display: flex; flex-direction: column; gap: 6px; }
.feature h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--heading); }
.feature p { margin: 0; font-size: 16px; color: var(--text-card); }

/* Meet Quill (approved two-column layout; Quill stays 290 px wide) */
.quill { background: var(--quill-bg); border-block: 1px solid var(--quill-rule); }
.quill .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.quill-art { flex: 0 0 290px; min-width: 0; display: flex; justify-content: center; }
.quill-art img { display: block; width: 100%; max-width: 290px; height: auto; }
.quill-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.quill .eyebrow { color: var(--quill-eyebrow); }
.quill .title { color: var(--quill-heading); }
.quill-text > p { margin: 0; font-size: 18px; color: var(--quill-text); }
.mount-quill { max-width: 470px; margin-top: 4px; border-color: var(--quill-rule); transform: rotate(-0.8deg); }
.mount-quill .tape { top: -10px; left: 26px; width: 72px; height: 22px; transform: rotate(-5deg); background: rgba(222, 213, 189, .8); }
.mount-quill figcaption { color: #5c4f68; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--quill-text); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* Beliefs */
.beliefs { display: flex; flex-direction: column; gap: 36px; }
.beliefs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.beliefs-head h2 {
  flex: 1 1 480px; min-width: 0; max-width: 760px; margin: 0;
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.2; color: var(--heading);
}
.beliefs-head img { flex: 0 0 auto; width: 170px; height: auto; }
.belief-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.belief { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--sage); }
.belief:nth-child(2) { border-top-color: var(--teal); }
.belief:nth-child(3) { border-top-color: #a55339; }
.belief h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--heading); }
.belief p { margin: 0; font-size: 16px; color: var(--text-card); }

/* Closing quote: a taped keepsake card */
.keepsake-quote {
  position: relative; align-self: center; width: 100%; max-width: 760px; box-sizing: border-box;
  margin: 28px 0 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 56px) clamp(24px, 3vw, 32px);
  background: var(--mount); border: 1px solid #ebe1cf; text-align: center;
  box-shadow: 0 3px 0 rgba(88, 70, 48, .05), 0 14px 30px rgba(74, 58, 40, .10);
  transform: rotate(-0.5deg);
}
.keepsake-quote .tape { top: -12px; left: calc(50% - 50px); width: 100px; height: 24px; background: rgba(207, 195, 215, .75); transform: rotate(-3deg); }
.keepsake-quote blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2.3vw, 27px); line-height: 1.5; color: #3d4a3a;
}
.keepsake-quote figcaption { margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.keepsake-quote cite { font-style: normal; }

/* Pricing and invitation */
.pricing-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.keepsake-panel {
  flex: 1 1 380px; min-width: 0; min-height: 440px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
  padding: 36px 36px 200px; border-radius: 16px; border: 1px solid var(--rule);
  /* Approved softened floral treatment: the cream wash keeps text readable. Do not weaken it. */
  background:
    linear-gradient(to bottom, rgba(251, 245, 232, .94) 0%, rgba(251, 245, 232, .88) 50%, rgba(251, 245, 232, .62) 100%),
    url("../img/keepsake-paper-640.webp") left bottom / cover no-repeat,
    #fbf5e8;
  background:
    linear-gradient(to bottom, rgba(251, 245, 232, .94) 0%, rgba(251, 245, 232, .88) 50%, rgba(251, 245, 232, .62) 100%),
    image-set(url("../img/keepsake-paper-640.webp") 1x, url("../img/keepsake-paper-1122.webp") 2x) left bottom / cover no-repeat,
    #fbf5e8;
}
.keepsake-panel > p:not(.eyebrow) { margin: 0; font-size: 18px; color: var(--text); }
.keepsake-panel > p.small { font-size: 16px; color: #5d544b; }

.card-panel {
  flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column;
  border-radius: 16px; background: var(--canvas); border: 1px solid var(--rule);
  box-shadow: 0 3px 0 rgba(88, 70, 48, .06), 0 14px 32px rgba(74, 58, 40, .08);
}

.request-form { gap: 18px; padding: 32px; }
.request-form h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: var(--heading); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  border-radius: 8px; border: 1px solid var(--field); background: var(--mount);
  font: inherit; font-size: 16px; color: var(--ink);
}
.field input { min-height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #a23b2a; box-shadow: 0 0 0 1px #a23b2a; }
.field-error { margin: 0; font-size: 14px; color: #a23b2a; }
.field-error:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--sage); }
.form-notice {
  margin: 0; padding: 10px 14px; border-radius: 8px;
  background: #ede7f0; border: 1px solid var(--quill-rule); color: #3e3447; font-size: 14px;
}
.form-status { margin: 0; font-size: 15px; color: var(--heading); }
.form-status:empty { display: none; }
.privacy-line { margin: 0; font-size: 14px; color: var(--muted); }

.plan-card { gap: 20px; padding: 36px; }
.plan-name { margin: 0; font-size: 15px; font-weight: 600; color: var(--sage); }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-family: var(--font-serif); font-size: 56px; line-height: 1; color: var(--heading); }
.price .per { font-size: 17px; color: var(--muted); }
.plan-includes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink); }
.plan-includes li { display: flex; gap: 10px; }
.plan-includes svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; }

/* Full-width closing band. Saturation lowered and top edge faded so it sits quietly with the rest of the page. */
.harvest-band { width: 100%; }
.harvest-band img {
  display: block; width: 100%; height: auto; margin-bottom: -2px;
  filter: saturate(.55);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}

/* Footer */
.site-footer { background: var(--footer); color: #e9e3d4; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { margin: 0; font-family: var(--font-serif); font-size: 22px; color: var(--paper); }
.footer-brand .tagline { margin: 0; max-width: 380px; font-size: 15px; color: #cfc8b6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.footer-nav a { color: #e9e3d4; padding: 10px 0; }
.footer-nav a:hover { color: #ffffff; }
.site-footer a:focus-visible { outline-color: #e9c18a; }
.copyright { margin: 0; padding-top: 20px; border-top: 1px solid #4a574a; font-size: 13px; color: #bdb6a4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Local integration: requested Contact controls and an optional accessible video description. */
.contact-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-block:20px;font-size:14px;overflow-wrap:anywhere}.contact-line a{color:inherit}.contact-line .btn{white-space:nowrap}.contact-line [role="status"]{flex-basis:100%}.video-transcript{margin-top:18px;font-size:14px;line-height:1.6;color:var(--text)}.video-transcript summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline}.video-transcript ol{padding-left:24px}.video-transcript li{margin-block:8px}
