/* ==========================================================
   Sharing the Moment: landing page ("Airmail" layout, "Golden Hour" palette)
   Design source: .stitch/DESIGN.md + .stitch/designs/airmail-cobalt.png
   ========================================================== */
:root {
  /* "Golden Hour": warm, not beige */
  --bg: #FFF7F4;           /* blush white page */
  --white: #FFFFFF;
  --ink: #2A1424;          /* aubergine: headings, dark bands */
  --text: #3A2333;
  --muted: #6E5262;
  --line: #F3E1DC;
  --accent: #C8431F;       /* terracotta: the only CTA color */
  --accent-deep: #A9361A;
  --accent-tint: #FFE3D8;
  --accent-light: #FFB38A; /* peach: accents on aubergine */
  --imessage: #0A84FF;     /* outgoing bubbles only */
  --airmail: #E4572E;      /* airmail stripe (with plum) */
  --plum: #8A3B6E;         /* airmail stripe, postmarks */
  --stamp: #F2A93B;        /* marigold stamps */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42, 20, 36, .05), 0 8px 24px rgba(42, 20, 36, .06);
  --shadow-card: 0 2px 6px rgba(42, 20, 36, .08), 0 24px 48px -8px rgba(42, 20, 36, .22);
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --container: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.nowrap { white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border-radius: 999px; padding: 0 22px; height: 46px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(200, 67, 31, .45); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1.06rem; }
.btn-sm { height: 42px; padding: 0 18px; font-size: .94rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.2; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 32px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 87, 46, .14), rgba(228, 87, 46, 0)); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-grid > *, .story-grid > *, .keepsake > *, .steps > * { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.4rem); margin: 22px 0 22px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.qr-card {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.qr-card img { width: 56px; height: 56px; padding: 5px; background: #fff; border-radius: 8px; }
.qr-card strong { display: block; font-size: .92rem; color: var(--ink); }
.qr-card span { font-size: .8rem; color: var(--muted); }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { color: var(--accent); }

/* Phone + postcard */
.hero-visual { position: relative; min-height: 620px; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 590px; border-radius: 46px; background: var(--white);
  border: 10px solid var(--ink); box-shadow: var(--shadow-card); padding: 34px 14px 14px; display: flex; flex-direction: column;
  transform: translateX(-70px);
}
.phone-notch { position: absolute; top: 9px; left: 50%; width: 96px; height: 24px; border-radius: 20px; background: var(--ink); transform: translateX(-50%); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.chat-head .avatar svg { width: 18px; height: 18px; }
.chat-head strong { display: block; font-size: .86rem; color: var(--ink); line-height: 1.2; }
.chat-head span { font-size: .72rem; color: var(--muted); }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 2px; }
.chat-time { align-self: center; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bubble { max-width: 86%; font-size: .84rem; line-height: 1.4; padding: 9px 13px; border-radius: 18px; }
.bubble.sent { align-self: flex-end; background: var(--imessage); color: #fff; border-bottom-right-radius: 6px; }
.bubble.received { align-self: flex-start; background: #F6E9E6; color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.photo { padding: 4px 4px 9px; }
.bubble.photo img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 7px; }
.bubble.photo span { display: block; padding: 0 8px; }
.chat-input { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .78rem; color: #B49AA8; }

.postcard {
  position: relative; background: var(--white); border-radius: 6px; padding: 10px; margin: 0;
  box-shadow: var(--shadow-card);
}
.postcard::before { /* airmail border */
  content: ""; position: absolute; inset: 0; border-radius: 6px; padding: 6px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--airmail) 0 12px, #fff 12px 18px, var(--plum) 18px 30px, #fff 30px 36px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.postcard-photo { margin: 6px; border-radius: 3px; overflow: hidden; aspect-ratio: 3 / 2; }
.postcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.postcard-caption { font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink); padding: 2px 10px 4px; line-height: 1.2; }
.hero-card { position: absolute; width: 300px; right: -24px; bottom: -28px; transform: rotate(4deg); }

/* Stamp: marigold with a perforated (scalloped) edge */
.stamp {
  --size: 60px; width: var(--size); height: calc(var(--size) * 1.2); display: grid; place-items: center; flex: none;
  background: var(--stamp); color: var(--ink); padding: 4px; border: 4px dotted #fff; background-clip: border-box;
  box-shadow: 0 0 0 1px rgba(42, 20, 36, .06);
}
.stamp > span { width: 100%; height: 100%; border: 1.5px solid rgba(42, 20, 36, .55); display: grid; place-items: center; font: 400 1.6rem/1 var(--font-display); }
.stamp-sm { --size: 48px; position: absolute; top: 24px; right: 24px; }
.stamp-sm > span { font: 600 .7rem/1 var(--font-body); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-top: 14px; }
.section-head > p, .section-head.split > p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.center > p { margin-top: 18px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > p { max-width: 24em; }
.eyebrow, .section-head > .eyebrow, .price-card > .eyebrow, .section-head .eyebrow { display: inline-block; margin: 0; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.step-num { font: 400 2.6rem/1 var(--font-display); color: var(--accent); }
.step-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.step-icon .icon { width: 22px; height: 22px; }
.step p { color: var(--muted); margin-top: 10px; }

/* Keepsake: front & back */
.keepsake { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.keepsake figcaption { position: absolute; left: 0; top: -34px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keepsake-front { transform: rotate(-2deg); }
.keepsake-back { transform: rotate(1.5deg); }
.postcard-back { aspect-ratio: 3 / 2; padding: 30px; }
.back-grid { height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.back-note { font-family: var(--font-hand); font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.25; color: var(--ink); border-right: 1px solid var(--line); padding-right: 22px; }
.back-note span { display: block; margin-top: 10px; color: var(--accent); }
.back-address { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.back-address p { margin-top: auto; align-self: stretch; font-size: .9rem; line-height: 1.9; color: var(--ink); border-bottom: 1px solid var(--line); }
.postmark {
  position: absolute; top: 14px; right: 50px; width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--plum);
  color: var(--plum); display: grid; place-items: center; text-align: center; font-size: .58rem; font-weight: 700; letter-spacing: .08em; line-height: 1.3;
  transform: rotate(-14deg); opacity: .8;
}

/* Story */
.story { background: var(--ink); color: #EBD9E2; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 70%; }
.story .eyebrow-light { color: var(--accent-light); }
.story blockquote { margin: 18px 0 0; }
.story blockquote p { font: italic 400 clamp(2rem, 3.6vw, 3rem)/1.15 var(--font-display); color: #fff; }
.story blockquote footer { margin-top: 26px; font-weight: 500; color: var(--accent-light); }
.story blockquote footer::before { content: ""; display: inline-block; width: 28px; height: 1.5px; background: currentColor; vertical-align: middle; margin-right: 12px; }

/* Pricing */
.price-card {
  max-width: 760px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 28px; padding: 64px 48px 48px; box-shadow: var(--shadow-card);
}
.price-card h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 14px 0 18px; }
.price-card > p { color: var(--muted); font-size: 1.1rem; max-width: 30em; margin: 0 auto 32px; }
.checks { list-style: none; padding: 26px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .9rem; font-weight: 500; color: var(--text); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: background .2s; }
.faq details[open] { background: var(--white); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Closing */
.closing { position: relative; background: var(--ink); color: #EBD9E2; text-align: center; }
.airmail-stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--airmail) 0 14px, #fff 14px 20px, var(--plum) 20px 34px, #fff 34px 40px); }
.closing-inner { padding: 112px 24px; }
.closing h2 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.4rem); max-width: 14em; margin: 0 auto; }
.closing h2 em { color: var(--accent-light); }
.closing p { font-size: 1.12rem; margin: 22px 0 38px; }

/* Footer */
.site-footer { background: var(--white); padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.footer-meta { text-align: right; font-size: .92rem; }
.footer-meta a { font-weight: 600; text-decoration: none; }
.fine { color: var(--muted); font-size: .8rem; margin-top: 8px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .keepsake-front.reveal.in { transform: rotate(-2deg); }
.js .keepsake-back.reveal.in { transform: rotate(1.5deg); }
.js .hero .msg { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .5s ease, transform .5s ease; }
.js .hero .msg.in { opacity: 1; transform: none; }
.js .hero-card { opacity: 0; transform: translate(-60px, 30px) rotate(-6deg) scale(.85); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .hero-card.in { opacity: 1; transform: rotate(4deg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .msg, .js .hero-card { opacity: 1; transform: none; transition: none; }
  .js .hero-card { transform: rotate(4deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-photo { aspect-ratio: 16 / 10; }
  .keepsake { grid-template-columns: 1fr; gap: 72px; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .header-inner { gap: 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-name { font-size: 1rem; }
  .site-header .btn-sm { flex: none; }
  .btn-sm { padding: 0 14px; }
  .btn-sm span { display: none; }
  .btn-sm::after { content: "Text us"; }
  .hero { padding: 40px 0 72px; }
  .lede { font-size: 1.06rem; }
  .btn-lg { height: auto; min-height: 56px; padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.25; font-size: 1rem; }
  .cta-row .btn-lg { width: 100%; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3rem); overflow-wrap: break-word; }
  .qr-card { display: none; }
  .trust { flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 0; padding-bottom: 150px; }
  .phone { width: min(262px, 76vw); height: 530px; transform: translateX(-24px); }
  .hero-card { width: 230px; right: -4px; bottom: 0; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px; }
  .step-top { margin-bottom: 18px; }
  .postcard-back { aspect-ratio: auto; padding: 22px; }
  .keepsake-front, .js .keepsake-front.reveal.in { transform: rotate(-1deg); }
  .keepsake-back, .js .keepsake-back.reveal.in { transform: rotate(1deg); }
  .back-grid { grid-template-columns: 1fr; gap: 18px; }
  .back-note { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .back-address { min-height: 150px; }
  .price-card { padding: 44px 22px 32px; border-radius: 22px; }
  .price-card .btn-lg { width: 100%; }
  .closing-inner { padding: 80px 16px; }
  .closing .btn-lg { width: 100%; }
  .footer-meta { text-align: left; }
}
@media (max-width: 360px) {
  .brand-name { font-size: .93rem; }
  .site-header .btn-sm { padding: 0 12px; }
  .site-header .btn-sm .icon { display: none; }
}
