/* =============================================================================
   Zanetti Creative — Site styles
   Palette & type drawn from the Bill Zanetti Service Menu (2026).
   ========================================================================== */

/* Palette drawn from the Zanetti Creative logo: ink line-work, the indigo
   tablet, and its teal spiral — on warm paper. */
:root {
  --navy:       #191c55;  /* deep indigo (dark sections; was navy) */
  --navy-2:     #232878;  /* mid indigo */
  --navy-3:     #2e3192;  /* the logo tablet indigo */
  --teal:       #2cb8a9;  /* the logo spiral teal */
  --teal-deep:  #0f7268;  /* darkened for WCAG AA text contrast on cream (~5.4:1) */
  --teal-bright:#5fd6c8;
  --cream:      #faf8f2;
  --cream-2:    #f1ede3;
  --cream-3:    #e7e1d3;
  --ink:        #16161d;  /* ink black, like the pen line */
  --ink-soft:   #3c4152;
  --muted:      #5b6070;  /* darkened for WCAG AA text contrast on cream (~5.0:1) */
  --line:       rgba(22, 22, 29, 0.13);
  --line-light: rgba(250, 248, 242, 0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(13, 27, 46, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Canvas behind the page matches the dark footer/hero so macOS rubber-band
     overscroll never flashes a white/cream strip at either end. */
  background: #191c55;
  overscroll-behavior-y: none;
  /* Never allow sideways scroll — anything that overflows is a bug, not a feature. */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  /* Indigo, not cream: Safari paints the rubber-band overscroll area with the
     BODY background, so body must match the dark header/footer. The page's
     cream lives on <main> instead. */
  background: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* ---------- Accessibility ---------- */
/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-140%);
  top: 8px; z-index: 200; background: var(--teal); color: #04231f;
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); outline: 3px solid var(--navy); outline-offset: 2px; }

/* Visible focus indicator for every interactive element (keyboard users) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
.section-dark a:focus-visible, .hero a:focus-visible, .site-header a:focus-visible,
.cta-band a:focus-visible, .page-hero a:focus-visible { outline-color: var(--teal-bright); }

/* ---------- Reusable bits ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 1.1rem;
  display: inline-block;
}
.section-dark .eyebrow { color: var(--teal-bright); }
.accent { color: var(--teal-deep); font-style: italic; }
.section-dark .accent, .hero .accent, .cta-band .accent, .page-hero .accent { color: var(--teal-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 0.95rem 1.7rem; min-height: 48px;   /* uniform height + comfortable tap target */
  font-family: var(--sans); font-weight: 500; font-size: 0.94rem;
  letter-spacing: 0.01em; text-align: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04231f; box-shadow: 0 4px 12px -8px rgba(44,184,169,.55); }
.btn-primary:hover { background: var(--teal-bright); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { padding: 1.1rem 2.1rem; min-height: 54px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
/* keep nav CTA and header buttons visually aligned */
.nav-cta { min-height: 40px; }
.arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 27, 46, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: background .4s var(--ease), border-color .4s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--cream); min-width: 0; }
/* Paper chip behind the mark: keeps the ink-drawn logo visible on the dark
   header. Toggle it in Admin → Settings → "White chip behind logo". */
.brand-mark {
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); border-radius: 9px; padding: 4px 5px; flex-shrink: 0;
}
.brand-mark.no-chip { background: transparent; padding: 0; border-radius: 0; }
.brand-mark img { max-height: 38px; width: auto; display: block; }
.brand-word { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.brand-word em { color: var(--teal); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: rgba(250,248,242,.82); font-size: 0.93rem; font-weight: 400;
  position: relative; padding: .3rem 0; transition: color .3s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--teal-bright); transition: width .4s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--cream); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.nav-cta {
  color: var(--teal-bright) !important; border: 1px solid var(--line-light);
  padding: .55rem 1.15rem !important; border-radius: 999px;
  transition: border-color .3s, background .3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--teal-bright); background: rgba(69,183,171,.12); }
.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--cream); transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Flash ---------- */
.flash { padding: .9rem 0; font-size: .92rem; }
.flash-success { background: #e4f4f1; color: #1c5c53; }
.flash-error { background: #fbe9e7; color: #8a2b20; }
.flash-info { background: var(--cream-2); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: var(--cream);
  padding: clamp(2.2rem, 4.5vw, 3.2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(69,183,171,.20), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(69,183,171,.10), transparent 40%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-frame { border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: 1.02; max-width: 15ch; margin-bottom: 1.4rem;
}
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: rgba(250,248,242,.78); max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta { display: flex; gap: 2.5rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-meta div { }
.hero-meta .n { font-family: var(--serif); font-size: 2rem; color: var(--teal-bright); }
.hero-meta .l { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(250,248,242,.6); }

/* ---------- Sections ---------- */
section { padding: clamp(2.8rem, 5.5vw, 4.5rem) 0; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-cream2 { background: var(--cream-2); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.section-dark .section-head p { color: rgba(250,248,242,.72); }

/* ---------- Feature triad ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.triad .item { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.section-dark .triad .item { border-color: var(--line-light); }
.triad .step { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 1.1rem; }
.triad h3 { font-size: 1.4rem; margin-top: .3rem; }
.triad p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.section-dark .triad p { color: rgba(250,248,242,.72); }

/* ---------- Portfolio grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-2); color: var(--cream); text-decoration: none;
  aspect-ratio: 16 / 11; display: block;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card .thumb { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: transform .8s var(--ease); }
.work-card:hover .thumb { transform: scale(1.05); }
.work-card .thumb.placeholder {
  background:
    linear-gradient(135deg, rgba(69,183,171,.22), transparent 60%),
    linear-gradient(315deg, rgba(27,58,91,.9), var(--navy));
}
.work-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,18,31,.92) 8%, rgba(9,18,31,.15) 55%, transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem;
}
.work-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-bright); margin-bottom: .5rem; }
.work-card h3 { font-size: 1.6rem; margin: 0 0 .25rem; }
.work-card .cat { font-size: .9rem; color: rgba(250,248,242,.72); }
.work-card .view { margin-top: .9rem; font-size: .85rem; color: var(--teal-bright); display: inline-flex; align-items: center; gap: .4rem; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.work-card:hover .view { opacity: 1; transform: translateY(0); }

/* ---------- Pricing / services ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.tier {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.featured { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.tier .best { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-deep); margin-bottom: .8rem; font-weight: 600; }
.tier.featured .best { color: var(--teal-bright); }
.tier h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.tier .desc { color: var(--muted); font-size: .96rem; flex-grow: 1; }
.tier.featured .desc { color: rgba(250,248,242,.75); }
.tier .price { font-family: var(--serif); font-size: 2.6rem; margin-top: 1.4rem; line-height: 1; }
.tier .price .note { display: block; font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: .5rem; }
.tier.featured .price .note { color: rgba(250,248,242,.6); }
.badge {
  align-self: flex-start; background: var(--teal); color: #04231f;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}

/* à la carte + care */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.alc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px dotted var(--line); }
.alc-row:last-child { border-bottom: 0; }
.alc-row .name { font-family: var(--serif); font-size: 1.12rem; }
.alc-row .note { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.alc-row .amt { font-family: var(--serif); color: var(--teal-deep); font-size: 1.2rem; white-space: nowrap; }

.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.care-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--cream); position: relative; }
.care-card.popular { border-color: var(--teal); box-shadow: 0 20px 50px -30px rgba(69,183,171,.6); }
.care-card .pop-tag { position: absolute; top: -12px; left: 2rem; background: var(--teal); color: #04231f; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.care-card .plan-name { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.care-card .plan-price { font-family: var(--serif); font-size: 2.6rem; margin: .4rem 0 1.2rem; }
.care-card .plan-price span { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.care-card ul { list-style: none; padding: 0; margin: 0; }
.care-card li { padding: .5rem 0 .5rem 1.5rem; position: relative; font-size: .94rem; color: var(--ink-soft); }
.care-card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- Estimate builder ---------- */
.estimate-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.opt-group { margin-bottom: 2.6rem; }
.opt-group > h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.opt-card {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem 1.3rem; margin-bottom: .9rem;
  cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.opt-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.opt-card input { margin-top: .35rem; accent-color: var(--teal-deep); width: 18px; height: 18px; }
.opt-card.selected { border-color: var(--teal); background: rgba(69,183,171,.07); }
.opt-card .oc-body { flex: 1; min-width: 0; }
.opt-card .oc-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; row-gap: .15rem; font-family: var(--serif); font-size: 1.18rem; }
.opt-card .oc-price { color: var(--teal-deep); white-space: nowrap; margin-left: auto; }
.opt-card .oc-desc { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.opt-card .qty { margin-top: .7rem; display: none; align-items: center; gap: .5rem; }
.opt-card.selected .qty.has-qty { display: flex; }
.qty input[type=number] { width: 64px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; }

.summary {
  position: sticky; top: 100px; background: var(--navy); color: var(--cream);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.summary h3 { color: var(--cream); font-size: 1.5rem; }
.summary .sum-line { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .95rem; border-bottom: 1px solid var(--line-light); }
.summary .sum-line.monthly { color: var(--teal-bright); }
.summary .sum-empty { color: rgba(250,248,242,.55); font-size: .95rem; padding: 1rem 0; }
.summary .sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.3rem 0; }
.summary .sum-total .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(250,248,242,.6); }
.summary .sum-total .val { font-family: var(--serif); font-size: 2.4rem; color: var(--teal-bright); }
.summary .fine { font-size: .78rem; color: rgba(250,248,242,.55); line-height: 1.5; margin-top: 1rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #767d8b; border-radius: 10px; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(69,183,171,.16);
}
.field textarea { resize: vertical; min-height: 140px; }
/* Themed select: remove the native control, add a custom chevron */
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; padding-right: 2.8rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317202e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px;
}
.field select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232f9e93' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field select::-ms-expand { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
/* Keep side-by-side controls aligned even when one label wraps longer:
   labels sit flush above their control, controls share a baseline. */
.field-row .field { display: flex; flex-direction: column; justify-content: flex-end; }
.field-row .field label { margin-top: auto; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background:
  linear-gradient(135deg, rgba(69,183,171,.18), transparent 55%), var(--navy-2); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-cat {
  font-size: 1.5rem; color: var(--navy); margin: 0 0 .4rem;
  padding-bottom: .6rem;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding: 1.25rem .2rem;
  font-family: var(--serif); font-size: 1.18rem; color: var(--ink); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-deep); }
.faq-item summary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
.faq-icon {
  width: 10px; height: 10px; flex-shrink: 0; margin-right: 6px;
  border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(-135deg); }
.faq-a {
  padding: 0 2rem 1.5rem .2rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; max-width: 68ch;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--cream); text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(250,248,242,.75); max-width: 44ch; margin: 0 auto 2rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 18ch; }
.page-hero p { color: rgba(250,248,242,.76); max-width: 52ch; font-size: 1.1rem; }

/* ---------- Ticket status result ---------- */
.status-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.status-open { background: #fdf0d9; color: #96631a; }
.status-progress { background: #e0eefb; color: #1f5c9e; }
.status-resolved { background: #e2f4ee; color: #1c6b56; }
.status-closed { background: var(--cream-3); color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(250,248,242,.72); padding: 3.2rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-light); }
.footer-brand .brand-word { color: var(--cream); font-size: 1.5rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer-loc { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--teal-bright); }
.footer-col h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: rgba(250,248,242,.55); font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; color: rgba(250,248,242,.8); font-size: .94rem; transition: color .3s; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-base { display: flex; justify-content: space-between; padding-top: 1.6rem; font-size: .82rem; color: rgba(250,248,242,.5); }
.footer-credit a { color: var(--teal-bright); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Motion design (all gated to no-preference) ---------- */
/* Scroll progress — a hairline of teal under the header */
#scrollProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero headline: words rise in one after another */
  .h1-stagger .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(1.5deg); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .h1-stagger.in .w { opacity: 1; transform: none; }

  /* Hero glow drifts as you scroll (JS sets --sy) */
  .hero::before { transform: translate3d(0, calc(var(--sy, 0) * -0.18px), 0); transition: transform .1s linear; }

  /* Header height eases when it shrinks (desktop only) */
  @media (min-width: 941px) {
    .header-inner { transition: height .35s var(--ease); }
    .site-header.shrunk .header-inner { height: 60px; }
    .site-header.shrunk .brand-mark img { max-height: 30px; }
    .brand-mark img { transition: max-height .35s var(--ease); }
  }

  /* Cards ease their tilt in and out */
  .case-card, .work-card, .tier, .problem-card { transition: transform .35s var(--ease), box-shadow .5s var(--ease), border-color .4s; will-change: transform; }

  /* Final CTA: a slow aurora sheen + the button breathes */
  .cta-band { position: relative; overflow: hidden; }
  .cta-band::before {
    content: ""; position: absolute; inset: -40%;
    background:
      radial-gradient(circle at 30% 60%, rgba(44,184,169,.14), transparent 45%),
      radial-gradient(circle at 70% 30%, rgba(46,49,146,.5), transparent 50%);
    animation: aurora 16s ease-in-out infinite alternate;
    pointer-events: none;
  }
  .cta-band .wrap { position: relative; }
  @keyframes aurora {
    0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
    100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
  }
  .cta-band .btn-primary { animation: breath 5.5s ease-in-out infinite; }
  .cta-band .btn-primary:hover { animation-play-state: paused; }
  @keyframes breath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
  }

  /* Founder photo settles from a gentle zoom */
  .founder-media img { transition: transform 1.2s var(--ease); }
  .reveal:not(.in) .founder-media img, .founder-media .reveal:not(.in) img { transform: scale(1.05); }

  /* Steps rail: the number chips pop with their card */
  .srail-item .num { transition: transform .5s var(--ease) .25s, opacity .5s var(--ease) .25s; }
  .srail-item.reveal:not(.in) .num { transform: scale(.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #scrollProgress { display: none; }
}

/* ---------- Capacity chip (truthful scarcity — hidden when unset) ---------- */
.capacity-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--teal-deep); background: rgba(69,183,171,.1);
  border: 1px solid rgba(69,183,171,.35); border-radius: 999px;
  padding: .45rem 1rem; margin-bottom: 1.4rem;
}
.capacity-chip.on-dark { color: var(--teal-bright); background: rgba(69,183,171,.12); }
.capacity-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero .capacity-chip { margin-bottom: 1.6rem; }
.cta-band .capacity-chip { margin-bottom: 1.2rem; }
.hero-fine { font-size: .84rem; color: rgba(250,248,242,.55); margin-top: 1.5rem; }

/* ---------- Quote strip / testimonial cards ---------- */
.quote-strip { padding: clamp(2rem, 4vw, 3rem) 0; }
.quote-card {
  margin: 0; padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.8rem, 5vw, 3.5rem);
  background: var(--cream-2); border-left: 3px solid var(--teal);
  border-radius: 4px var(--radius-lg) var(--radius-lg) 4px;
}
.quote-card p {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45; font-style: italic; color: var(--ink); margin-bottom: .9rem;
}
.quote-card footer { font-size: .92rem; color: var(--muted); letter-spacing: .02em; }
.quote-mini { margin: 2.4rem auto 0; max-width: 56ch; }
.quote-mini p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(250,248,242,.85); margin-bottom: .4rem; }
.quote-mini footer { font-size: .84rem; color: rgba(250,248,242,.55); }
.aside-quote { margin-top: 1.4rem; }
.aside-quote p { color: var(--ink); }
.aside-quote footer { color: var(--muted); }

/* ---------- Case study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.case-grid.light .case-card { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.case-grid.light .case-card h3 { color: var(--ink); }
.case-grid.light .case-card p { color: var(--muted); }
.case-card {
  position: relative; display: block; padding: 2.4rem;
  background: var(--navy-2); border: 1px solid var(--line-light);
  border-radius: var(--radius-lg); color: var(--cream);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  overflow: hidden;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.case-card .case-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-bright); display: block; margin-bottom: .8rem; }
.case-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.25; max-width: 22ch; }
.case-card p { color: rgba(250,248,242,.65); font-size: .95rem; margin: .6rem 0 0; }
.case-card .view { margin-top: 1.4rem; display: inline-flex; font-size: .88rem; color: var(--teal-bright); }
.case-card .case-stat {
  float: right; margin-left: 1.5rem; text-align: right;
  font-family: var(--serif); font-size: 2.6rem; color: var(--teal-bright); line-height: 1;
}
.case-card .case-stat small { display: block; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(250,248,242,.55); margin-top: .4rem; }
.case-grid.light .case-card .case-stat { color: var(--teal-deep); }
.case-grid.light .case-card .case-stat small { color: var(--muted); }
.case-hero-img {
  aspect-ratio: 16 / 8; border-radius: var(--radius-lg);
  background-size: cover; background-position: center top;
  box-shadow: var(--shadow);
}

/* ---------- Founder block ---------- */
.founder-block { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center; }
.founder-media img { border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.founder-fallback {
  aspect-ratio: 4/5; border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(135deg, rgba(44,184,169,.16), transparent 55%), var(--navy-2);
  display: flex; align-items: center; justify-content: center; color: var(--teal-bright);
}
.founder-hero { position: relative; }
.founder-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Steps rail ---------- */
.steps-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; counter-reset: step; }
.srail-item { position: relative; padding: 1.4rem 1.2rem 1.2rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.srail-item .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--teal-bright);
  font-family: var(--serif); font-style: italic; font-size: .95rem; margin-bottom: .7rem;
}
.srail-item h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.srail-item p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Guarantee ---------- */
.guarantee { display: grid; gap: 1.1rem; }
.g-item { padding: 1.2rem 1.4rem; background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; }
.g-item h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.g-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Tier extras ---------- */
.anchor-tier { background: transparent; border-style: dashed; }
.anchor-tier .price { color: var(--ink-soft); }
.home-tiers { grid-template-columns: repeat(2, 1fr); }
.plan-included {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(69,183,171,.1); border-radius: 999px;
  display: inline-block; padding: .3rem .8rem; margin-bottom: 1rem;
}

/* ---------- Estimate extras ---------- */
.oc-pop {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  color: #04231f; background: var(--teal); border-radius: 999px; padding: .18rem .55rem;
  vertical-align: middle; margin-left: .45rem; white-space: nowrap;
}
.oc-included-note { display: none; font-size: .84rem; color: var(--teal-deep); font-weight: 500; margin-top: .3rem; }
.opt-card.is-included { cursor: default; }
.opt-card.is-included:hover { transform: none; border-color: var(--line); }
/* Included add-ons keep their normal price visible — the caption below it
   ("Already included … no charge") does the explaining, and the totals
   never count included items. */
.opt-card.is-included .oc-included-note { display: block; }
.sum-schedule { margin: -.4rem 0 1rem; }
.sum-line.future { color: rgba(250,248,242,.65); font-size: .88rem; }
.sum-line.credit { color: var(--teal-bright); }
.trust-list { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.trust-list li {
  position: relative; padding: .32rem 0 .32rem 1.5rem;
  font-size: .82rem; color: rgba(250,248,242,.7); line-height: 1.5;
}
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .62rem; width: 12px; height: 7px;
  border-left: 2px solid var(--teal-bright); border-bottom: 2px solid var(--teal-bright);
  transform: rotate(-45deg);
}

/* ---------- Promo bar (real offers only — server hides expired codes) ---------- */
.promo-bar {
  background: var(--navy-3); color: var(--cream);
  font-size: .88rem; position: relative; z-index: 101;
  border-bottom: 1px solid rgba(250,248,242,.18);
}
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.promo-text strong { font-weight: 600; }
.promo-code {
  background: rgba(250,248,242,.14); border: 1px dashed rgba(250,248,242,.5);
  color: var(--cream); font-family: monospace; font-size: .84rem; letter-spacing: .08em;
  padding: .14rem .55rem; border-radius: 6px; cursor: copy;
}
.promo-code:hover { background: rgba(250,248,242,.24); }
.promo-count { font-variant-numeric: tabular-nums; color: var(--teal-bright); font-weight: 600; }
.promo-cta { color: var(--teal-bright); font-weight: 600; white-space: nowrap; }
.promo-cta:hover { text-decoration: underline; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; padding: .7rem 5vw calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(25, 28, 85, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-light);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 940px) { .sticky-cta { display: block; } body.has-sticky-cta { padding-bottom: 84px; } }

/* ---------- Exit-intent offer (one per session, easy to dismiss) ---------- */
.exit-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vw;
  background: rgba(22, 22, 29, .55);
}
.exit-modal.open { display: flex; }
.exit-card {
  position: relative; background: var(--cream); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; padding: 2.6rem 2.4rem 2.2rem; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(22,22,29,.5);
  border-top: 4px solid var(--teal);
}
.exit-card h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.exit-card p { color: var(--muted); font-size: .98rem; }
.exit-card .promo-code { background: var(--cream-2); border-color: var(--teal-deep); color: var(--teal-deep); font-size: 1rem; padding: .3rem .8rem; }
.exit-close {
  position: absolute; top: .8rem; right: .9rem; background: none; border: 0;
  font-size: 1.5rem; line-height: 1; color: var(--muted); padding: .3rem; cursor: pointer;
}
.exit-close:hover { color: var(--ink); }

/* ---------- Contact chooser (email / phone options) ---------- */
.chooser-modal {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; padding: 5vw;
  background: rgba(22, 22, 29, .55);
}
.chooser-modal.open { display: flex; }
.chooser-card {
  position: relative; background: var(--cream); border-radius: var(--radius-lg);
  max-width: 380px; width: 100%; padding: 2.2rem 1.8rem 1.6rem;
  box-shadow: 0 40px 90px -30px rgba(22,22,29,.5); border-top: 4px solid var(--teal);
}
.chooser-value {
  display: block; text-align: center; font-family: var(--serif);
  font-size: 1.25rem; color: var(--ink); margin-bottom: 1.2rem;
  overflow-wrap: anywhere;
}
.chooser-opts { display: grid; gap: .6rem; }
.chooser-opt {
  display: block; width: 100%; text-align: center;
  padding: .85rem 1rem; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  color: var(--navy); background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .25s, background .25s;
}
.chooser-opt:hover { border-color: var(--teal); background: rgba(44,184,169,.08); }
.chooser-opt:first-child { background: var(--teal); border-color: var(--teal); color: #04231f; font-weight: 600; }
.chooser-opt:first-child:hover { background: var(--teal-bright); }
@media (max-width: 620px) {
  .chooser-modal { align-items: flex-end; padding: 0; }
  .chooser-card { max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Funnel sections ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.problem-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; border-top: 3px solid var(--navy-3);
}
.problem-card h3 { font-size: 1.25rem; }
.problem-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.stack { max-width: 720px; margin: 0 auto; }
.stack-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.05rem .2rem; border-bottom: 1px dotted var(--line);
}
.stack-row .what { font-family: var(--serif); font-size: 1.15rem; }
.stack-row .what small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.stack-row .worth { font-family: var(--serif); color: var(--teal-deep); white-space: nowrap; }
.stack-total { display: flex; justify-content: space-between; padding: 1.2rem .2rem 0; font-family: var(--serif); font-size: 1.3rem; }
.stack-total .worth { color: var(--navy-3); }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .you { background: rgba(44,184,169,.08); border-left: 1px solid rgba(44,184,169,.3); border-right: 1px solid rgba(44,184,169,.3); }
.compare .yes { color: var(--teal-deep); font-weight: 600; }
.compare .no { color: #b3543f; }
.compare .meh { color: var(--muted); }
/* On phones the table becomes stacked cards — no squishing, no side-scroll */
@media (max-width: 680px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; overflow: hidden; background: var(--cream); }
  .compare td { text-align: left; border-bottom: 1px dotted var(--line); padding: .6rem .95rem; }
  .compare td:last-child { border-bottom: 0; }
  .compare td:first-child { font-family: var(--serif); font-size: 1.08rem; background: var(--cream-2); border-bottom: 1px solid var(--line); }
  .compare td:not(:first-child)::before {
    content: attr(data-label); display: block;
    font-weight: 600; color: var(--muted); font-size: .72rem;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: .1rem;
  }
  .compare td.you { border-left: 0; border-right: 0; }
}

.ps-note {
  max-width: 60ch; margin: 2.8rem auto 0; font-size: .95rem;
  color: rgba(250,248,242,.75); font-style: italic;
}
/* Beats the generic `.cta-band p` margin rule, which was zeroing the gap
   above the P.S. line. */
.cta-band p.ps-note { margin: 3rem auto 0; }
.ps-note strong { color: var(--teal-bright); }

/* ---------- Booking embed ---------- */
.booking-embed { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.booking-embed .booking-head { padding: 2rem 2.2rem 1rem; }
.booking-embed iframe { width: 100%; height: 640px; border: 0; display: block; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  :root { --header-h: 58px; }
  .brand-word { font-size: 1.12rem; }
  .brand-mark img { max-height: 28px; }
  .brand-mark { padding: 3px 4px; border-radius: 7px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--navy); padding: 1rem 6vw 2rem; border-bottom: 1px solid var(--line-light);
    transform: translateY(-120%); transition: transform .45s var(--ease); height: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line-light); font-size: 1.05rem; }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle { display: block; }
  .triad, .work-grid, .tier-grid, .care-grid, .two-col, .split, .estimate-layout, .footer-grid, .field-row,
  .case-grid, .founder-block, .home-tiers, .problem-grid { grid-template-columns: 1fr; }
  .steps-rail { grid-template-columns: repeat(2, 1fr); }
  .estimate-layout { gap: 2rem; }
  .summary { position: static; }
  .footer-grid { gap: 2rem; }
  .footer-base { flex-direction: column; gap: .5rem; }
  .founder-block { gap: 2rem; }
  .founder-media { max-width: 320px; }
  .booking-embed iframe { height: 560px; }
}
@media (max-width: 620px) {
  .steps-rail { grid-template-columns: 1fr; }
  .case-card .case-stat { float: none; display: block; margin: 0 0 1rem; text-align: left; }
  /* Estimate cards: price drops to its own line under the tier name.
     white-space must relax here — the payment-plan cards carry phrases in
     this slot, and nowrap text stretches the whole column off-screen. */
  .opt-card .oc-price { margin-left: 0; width: 100%; font-size: 1.02rem; white-space: normal; }
  .opt-card { padding: 1rem 1.05rem; }
  /* Rows with a right-hand amount wrap instead of overflowing */
  .alc-row, .stack-row { flex-wrap: wrap; }
  .stack-row .worth, .alc-row .amt { white-space: normal; }
}
@media (max-width: 620px) {
  .hero-meta { gap: 1.6rem; }
  .care-grid { gap: 2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
