/* ============================================================
   Peyton Nelson — UGC
   Built on the ESSE brand system (same palette + type as
   the ESSE IRL retreat page). Edit colors in :root below.
   ============================================================ */

/* --- ESSE fonts, self-hosted from the brand asset pack --- */
@font-face {
  font-family: 'Code Pro';
  src: url('fonts/CodePro-Light.otf') format('opentype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Code Pro';
  src: url('fonts/CodePro-Regular.otf') format('opentype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Code Pro';
  src: url('fonts/CodePro-Bold.otf') format('opentype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Sigher';
  src: url('fonts/Sigher.otf') format('opentype');
  font-weight: 400; font-display: swap;
}

:root {
  /* --- ESSE PALETTE --- */
  --ink:    #1A1A16;   /* near-black, primary text        */
  --soil:   #44312B;   /* warm dark brown, dark sections   */
  --wood:   #73645F;   /* mid brown                        */
  --stone:  #94857B;   /* muted grey-brown, secondary text */
  --linen:  #E9D9CC;   /* warm tan, accent panels          */
  --paper:  #F3EFEC;   /* off-white page background        */
  --white:  #FFFFFF;

  /* --- ESSE TYPE --- */
  --display: 'Code Pro', 'Archivo', 'Poppins', sans-serif;
  --body:    'Poppins', system-ui, -apple-system, sans-serif;
  --serif:   'Lora', Georgia, serif;
  --script:  'Sigher', 'Caveat', cursive;

  --maxw: 1080px;
  --pad-y: clamp(56px, 9vh, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 7.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); letter-spacing: 0; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.script {
  font-family: var(--script);
  display: block;
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: .95;
  letter-spacing: 0;
  color: var(--soil);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
  margin: 0 0 1.2rem;
}

.lead { font-size: 1.1rem; line-height: 1.65; }
.muted { color: var(--stone); font-size: .9rem; }

p { margin: 0 0 1.1em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 17px 36px;
  border-radius: 2px;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--soil); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,239,236,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148,133,123,.22);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

/* Single email link in the nav (no menu — this is a one-page site) */
.nav-cta {
  font-family: var(--display);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 11px 22px;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-links a:hover { color: var(--stone); }

.burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 800px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(148,133,123,.22);
    padding: 6px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; width: 100%; border-bottom: 1px solid rgba(148,133,123,.18); }
}

/* ---------- Sections ---------- */

section { padding: var(--pad-y) 0; scroll-margin-top: 70px; }
section.tight { padding: calc(var(--pad-y) * .55) 0; }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }

.linen-bg { background: var(--linen); }
.soil-bg  { background: var(--soil); color: var(--linen); }
.soil-bg h2, .soil-bg h3 { color: var(--paper); }
.soil-bg .eyebrow { color: var(--linen); opacity: .7; }

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 10vh, 110px) 0 var(--pad-y); }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero p { max-width: 48ch; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 40px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(148,133,123,.3);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}
@media (max-width: 760px) {
  .stat-row { gap: 16px; justify-content: space-between; }
  .stat b { font-size: 1.55rem; }
  .stat span { font-size: .56rem; letter-spacing: .14em; }
}

/* ---------- Cards / grids ---------- */

.card {
  background: var(--white);
  border: 1px solid rgba(148,133,123,.25);
  border-radius: 3px;
  padding: 34px 30px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.linen-bg .card { background: rgba(255,255,255,.55); border-color: rgba(68,49,43,.16); }
.soil-bg .card { background: rgba(233,217,204,.07); border-color: rgba(233,217,204,.2); color: var(--linen); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Portfolio tiles (9:16) ---------- */

.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 880px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }

.reel {
  aspect-ratio: 9 / 16;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--linen), var(--paper) 75%);
  border: 1px solid rgba(148,133,123,.3);
  display: flex; align-items: flex-end; padding: 16px;
  position: relative;
}
.reel span {
  font-family: var(--display);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--soil);
}
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Two-column contrast list (for / not for) ---------- */

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .contrast { grid-template-columns: 1fr; } }

.contrast ul { list-style: none; margin: 0; padding: 0; }
.contrast li { padding: 13px 0; border-bottom: 1px solid rgba(148,133,123,.25); }
.contrast li:last-child { border-bottom: 0; }

/* ---------- Steps ---------- */

.step { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(148,133,123,.25); }
.step:last-child { border-bottom: 0; }
.step b {
  font-family: var(--display);
  font-size: .72rem; letter-spacing: .2em;
  color: var(--stone); font-weight: 400;
  min-width: 34px; padding-top: 6px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }

/* ---------- Rate tables ---------- */

.rate-card {
  background: var(--white);
  border: 1px solid rgba(148,133,123,.28);
  border-radius: 3px;
  padding: 6px 26px;
  margin-bottom: 42px;
}

.rate-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(148,133,123,.2);
}
.rate-row:last-child { border-bottom: 0; }

.rate-row .label { color: var(--ink); font-weight: 400; }
.rate-row .label small { display: block; color: var(--stone); font-size: .84rem; line-height: 1.5; }
/* NOTE: prices use Poppins, not Code Pro. The Code Pro file in the ESSE
   asset pack is a demo cut with no $ % + glyphs — it renders a watermark
   instead. Same reason .email-link and .footer below use Poppins (@ and ©). */
.rate-row .price {
  font-family: var(--body);
  font-size: 1.45rem; font-weight: 500; color: var(--ink);
  white-space: nowrap; letter-spacing: -0.02em;
}
.rate-row .price.sm { font-size: .95rem; letter-spacing: .04em; }

/* Wordy prices ("plus 30% per 30 days") starve the label on a phone.
   Drop them onto their own line instead of squeezing both. */
@media (max-width: 620px) {
  /* :has() keeps this to the wordy rows only — numeric prices like
     $300 must stay on the same line as their label. */
  .rate-row:has(.price.sm) { flex-wrap: wrap; }
  .rate-row:has(.price.sm) .label { flex: 1 1 100%; }
  .rate-row .price.sm {
    flex: 1 1 100%;
    text-align: left;
    margin-top: 4px;
    font-size: .88rem;
    color: var(--soil);
    white-space: normal;
  }
}

/* ---------- Minimal hero (creator page, no video) ----------
   Deliberately short: the test package price should be visible
   almost immediately. Do not pad this out. */
.hero-lite {
  text-align: center;
  padding: clamp(38px, 6vh, 64px) 0 clamp(26px, 4vh, 40px);
}
.hero-lite h1 { margin-bottom: 0; }

/* ---------- Hero with phone video (UGC draft page) ---------- */

.hero-video { padding: clamp(40px, 6vh, 76px) 0 clamp(30px, 4vh, 50px); }

.hero-video-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.phone-wrap { width: 100%; }

/* Stacked: heading first, then the phone.
   NOTE: this block must stay AFTER the .phone-wrap base rule above —
   same specificity, so source order decides which width wins. */
@media (max-width: 860px) {
  .hero-video-grid { grid-template-columns: 1fr; gap: 34px; justify-items: center; }
  .hero-video-copy { text-align: center; }
  .hero-video-copy .btn-row { justify-content: center; }
  .phone-wrap { width: min(300px, 78vw); }
}

.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  background: var(--ink);
  border: 9px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(26,26,22,.22), 0 2px 6px rgba(26,26,22,.14);
}
/* dynamic-island detail */
.phone::before {
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 16px;
  background: var(--ink);
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
}

.phone-screen {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 30px;
  opacity: 0;
  transition: opacity .4s ease;
}
.phone-screen.ready { opacity: 1; }

/* Must come first: the class sets display:flex, which would otherwise
   beat the browser's built-in [hidden] rule and show it anyway. */
.phone-placeholder[hidden] { display: none; }

.phone-placeholder {
  position: absolute; inset: 0;
  border-radius: 30px;
  background: linear-gradient(165deg, var(--linen), var(--paper) 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.phone-placeholder .ph-title {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soil);
}
.phone-placeholder .ph-sub {
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Play button over the poster frame */
.phone-play {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Sits low on purpose: the poster is a close-up, and a centred
     button lands square on his face. */
  justify-content: flex-end;
  padding-bottom: 11%;
  gap: 14px;
  background: linear-gradient(180deg, rgba(26,26,22,.04) 45%, rgba(26,26,22,.52));
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: opacity .3s ease;
  padding: 0;
}
.phone-play.gone { opacity: 0; pointer-events: none; }

.phone-play .play-tri {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(243,239,236,.94);
  position: relative;
  transition: transform .2s ease;
  box-shadow: 0 6px 20px rgba(26,26,22,.3);
}
.phone-play .play-tri::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 17px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.phone-play:hover .play-tri { transform: scale(1.07); }
.phone-play:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }

.phone-play .play-label {
  /* Poppins, not Code Pro — the demo font has no "4" glyph. */
  font-family: var(--body);
  font-weight: 500;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(26,26,22,.5);
}

/* Landscape phones: don't let the frame eat the screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-video-grid { grid-template-columns: 1fr minmax(180px, 220px); justify-items: stretch; }
  .hero-video-copy { text-align: left; }
  .hero-video-copy .btn-row { justify-content: flex-start; }
  .phone-wrap { width: 100%; max-width: 220px; }
}

/* ---------- Interactive package builder ---------- */

.builder-hint {
  font-family: var(--display);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
  margin: 0 0 40px;
}

.rate-row.pick {
  cursor: pointer;
  padding-left: 34px;
  position: relative;
  transition: background .18s ease, padding .18s ease;
  border-radius: 2px;
}
/* the tick box */
.rate-row.pick::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(148,133,123,.6);
  border-radius: 2px;
  transition: background .18s ease, border-color .18s ease;
}
.rate-row.pick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 27px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: rotate(-45deg) scale(0);
  transition: transform .18s ease;
}
.rate-row.pick:hover { background: rgba(233,217,204,.35); }
.rate-row.pick:hover::before { border-color: var(--soil); }
.rate-row.pick:focus-visible { outline: 2px solid var(--soil); outline-offset: 2px; }

.rate-row.pick.on { background: rgba(233,217,204,.5); }
.rate-row.pick.on::before { background: var(--soil); border-color: var(--soil); }
.rate-row.pick.on::after { transform: rotate(-45deg) scale(1); }

/* ---------- Sticky running total ---------- */

.summary {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(105%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 30px rgba(26,26,22,.18);
}
.summary.show { transform: translateY(0); }

.summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.summary-text b {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}
.summary-text span {
  font-family: var(--display);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.summary-text { min-width: 0; }
.summary-text span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.summary .btn { background: var(--paper); color: var(--ink); padding: 14px 26px; white-space: nowrap; }
.summary .btn:hover { background: var(--linen); }
.summary-clear {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--stone);
  font-family: var(--display);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 4px;
}
.summary-clear:hover { color: var(--paper); }

@media (max-width: 560px) {
  .summary-inner { gap: 12px; flex-wrap: nowrap; }
  .summary-text b { font-size: 1.2rem; }
  .summary .btn { padding: 13px 15px; font-size: .6rem; letter-spacing: .1em; }
  .summary-actions { gap: 8px; }
}
@media (max-width: 480px) {
  .summary-clear { font-size: .58rem; letter-spacing: .12em; }
}

/* ---------- Quote sheet ---------- */

.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet[hidden] { display: none; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(26,26,22,.55); backdrop-filter: blur(3px); }

.sheet-panel {
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  padding: 34px 30px 28px;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(26,26,22,.35);
}
.sheet-panel h3 { margin-bottom: 18px; }

.sheet-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--stone);
  padding: 6px 10px;
}
.sheet-x:hover { color: var(--ink); }

.sheet-body {
  background: var(--white);
  border: 1px solid rgba(148,133,123,.3);
  border-radius: 3px;
  padding: 18px 16px;
  font-family: var(--body);
  font-size: .82rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 20px;
  max-height: 40vh;
  overflow-y: auto;
  color: var(--ink);
}

.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1 1 auto; text-align: center; }

.sheet-note { font-size: .8rem; color: var(--stone); margin: 18px 0 0; }
.sheet-note a { color: var(--soil); }

/* ---------- Accordion ---------- */

.accordion .acc-head {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  user-select: none;
}
.accordion .acc-head:focus-visible { outline: 2px solid var(--soil); outline-offset: 4px; }
.accordion .acc-icon {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--stone);
  line-height: 1;
}
.accordion .acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin-top .3s ease;
}
/* Overshoot the real content height so nothing clips at narrow widths.
   max-height is only here to make the open/close transition animate. */
.accordion.open .acc-body { max-height: 900px; margin-top: 18px; }

.rate-head { border-bottom-color: rgba(68,49,43,.4); }
.rate-head .label, .rate-head .price {
  font-family: var(--display);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone);
}

/* Featured package */

.feature {
  background: var(--soil);
  color: var(--linen);
  border-radius: 3px;
  padding: 46px 32px;
  text-align: center;
  margin-bottom: 26px;
}
.feature h2 { color: var(--paper); margin-bottom: 6px; }
.feature .eyebrow { color: var(--linen); opacity: .65; }

.feature-inner {
  background: rgba(233,217,204,.09);
  border: 1px solid rgba(233,217,204,.22);
  border-radius: 3px;
  padding: 30px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 34px; flex-wrap: wrap; text-align: left;
  margin-top: 26px;
}
.feature-inner .deliverables { font-size: 1.08rem; color: var(--paper); }
.feature-inner .deliverables small { display: block; color: var(--linen); opacity: .7; font-size: .86rem; margin-top: 6px; }
.feature-price {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(2.5rem, 9.5vw, 3.4rem);
  color: var(--paper); line-height: 1; letter-spacing: -0.02em;
}
.feature p { color: var(--linen); }
.feature .btn-row { justify-content: center; }
.feature .btn { background: var(--paper); color: var(--ink); }
.feature .btn:hover { background: var(--linen); }
.feature .btn-outline { background: transparent; color: var(--linen); border-color: rgba(233,217,204,.5); }
.feature .btn-outline:hover { background: var(--linen); color: var(--soil); }

/* ---------- Pull quote ---------- */

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.4;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--ink);
}
.soil-bg .pull { color: var(--paper); }

/* ---------- Contact ---------- */

.contact-box { background: var(--soil); color: var(--linen); border-radius: 3px; padding: 68px 32px; text-align: center; }
.contact-box h2 { color: var(--paper); }
.contact-box p { color: var(--linen); opacity: .85; max-width: 48ch; margin: 0 auto 1em; }
.contact-box .btn { background: var(--paper); color: var(--ink); }
.contact-box .btn:hover { background: var(--linen); }
.contact-box .btn-row { justify-content: center; }
.email-link {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.05rem, 3.8vw, 1.55rem);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(233,217,204,.4);
  padding-bottom: 5px;
  letter-spacing: .02em;
}
.email-link:hover { border-bottom-color: var(--linen); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(148,133,123,.28);
  /* extra bottom space so the sticky total bar never covers these links */
  padding: 34px 24px 120px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .74rem;
  font-family: var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   APPLE DESIGN PASS
   Applied from the apple-design reference (Apple's WWDC design
   talks, translated for the web). Section numbers below refer
   to that document. These rules come last on purpose so they
   override the equivalents above — delete this whole block to
   revert the page to how it was.
   ============================================================ */

/* --- §1 Response: feedback on press, not on release ---------
   :active fires the instant a finger goes down, so the row
   acknowledges the touch before the tap even completes. */
.rate-row.pick:active { background: rgba(233,217,204,.62); transition-duration: 60ms; }
.btn:active { transform: scale(.975); transition-duration: 60ms; }
.nav-cta:active { transform: scale(.975); }
.summary-clear:active { opacity: .6; }
.sheet-x:active { transform: scale(.9); }

/* --- §15 Typography: tracking is size-specific --------------
   Large text reads too loose as it grows, so display sizes get
   negative tracking and body copy stays near zero. */
body { font-optical-sizing: auto; }
h1 { letter-spacing: -0.028em; }
h2 { letter-spacing: -0.018em; }
h3 { letter-spacing: 0; }
.feature-price { letter-spacing: -0.03em; }

/* --- §12 Materials: floating chrome is a translucent layer --
   The total bar sits over content, so it reads as a thick
   material (strong blur, deep shadow, bright top edge catching
   the light) rather than a solid slab. */
.summary {
  background: rgba(26,26,22,.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(243,239,236,.14);
  box-shadow: 0 -12px 44px rgba(26,26,22,.26);
}
/* §12 Vibrancy: flat grey loses legibility over a translucent
   surface — lift the contrast and weight slightly instead. */
.summary-text span { color: rgba(233,217,204,.82); font-weight: 500; }

/* §12 Scroll edge effect: a soft fade where content passes
   under floating chrome, instead of a hard 1px divider. */
.nav { border-bottom: 0; }
.nav::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
  background: linear-gradient(rgba(26,26,22,.07), rgba(26,26,22,0));
  pointer-events: none;
}

/* --- §7 + §12 The quote panel materialises -----------------
   It is anchored to the button that opened it (bottom of the
   screen), and arrives as a real surface — blur and scale
   moving together — rather than a flat opacity fade. It leaves
   along the same path it entered on. */
.sheet-backdrop {
  opacity: 0;
  transition: opacity .26s cubic-bezier(.32,.72,0,1);
}
.sheet-panel {
  opacity: 0;
  transform: translateY(16px) scale(.96);
  filter: blur(8px);
  transform-origin: bottom center;
  transition: opacity .26s cubic-bezier(.32,.72,0,1),
              transform .26s cubic-bezier(.32,.72,0,1),
              filter .26s cubic-bezier(.32,.72,0,1);
}
.sheet.in .sheet-backdrop { opacity: 1; }
.sheet.in .sheet-panel { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* --- §14 Reduced motion ------------------------------------
   Not "no feedback" — a gentler, non-vestibular equivalent.
   Movement is replaced with a cross-fade; nothing slides. */
@media (prefers-reduced-motion: reduce) {
  .summary {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .summary.show { transform: none; opacity: 1; visibility: visible; }
  .sheet-panel {
    transform: none;
    filter: none;
    transition: opacity .2s ease;
  }
  .sheet.in .sheet-panel { transform: none; }
  .btn:hover, .btn:active, .nav-cta:active { transform: none; }
  .rate-row.pick { transition: background .12s ease; }
}

/* --- §14 Reduced transparency ------------------------------
   Frostier and solid: raise the opacity, drop the blur. */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .summary { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet-backdrop { background: rgba(26,26,22,.8); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --- §14 Increased contrast --------------------------------
   Near-solid backgrounds with defined, contrasting borders. */
@media (prefers-contrast: more) {
  .nav { background: var(--paper); border-bottom: 1px solid var(--ink); }
  .nav::after { display: none; }
  .summary { background: var(--ink); border-top-color: rgba(243,239,236,.5); }
  .summary-text span { color: var(--paper); }
  .rate-card, .card, .sheet-panel { border: 1px solid var(--ink); }
  .muted, .rate-row .label small { color: var(--soil); }
}
