/* ==========================================================================
   NESTWORK STUDIO
   1. Tokens          2. Base        3. Buttons      4. Nav
   5. Hero            6. Sections    7. Work rack    8. Demo mini-sites
   9. Cards/Process  10. Pricing    11. About/FAQ   12. CTA/Footer
  13. Motion         14. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root{
  /* Colour — two colours only: warm paper + denim blue */
  --paper:        #FBF9F6;
  --paper-deep:   #F5F1EB;
  --card:         #FFFFFF;
  --ink:          #141A21;
  --muted:        #5F6B76;
  --primary:      #2E5BD8;
  --primary-soft: #6F9BF2;
  --primary-ink:  #1B3E9E;
  --border:       #EAE4DC;
  --border-soft:  #F0EBE4;

  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);

  /* Shadows — blue-tinted, never grey */
  --sh-sm: 0 1px 2px rgba(20,26,33,.04), 0 2px 8px rgba(46,91,216,.05);
  --sh-md: 0 2px 4px rgba(20,26,33,.04), 0 12px 28px rgba(46,91,216,.10);
  --sh-lg: 0 4px 10px rgba(20,26,33,.05), 0 24px 48px rgba(46,91,216,.14);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Spacing — spacious scale */
  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-5: 48px;  --s-6: 64px;  --s-7: 96px;  --s-8: 128px;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .2s var(--ease);
}

/* ------------------------------------------------------------------ 2. BASE */
*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: 92px; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }

h1, h2, h3{
  font-family: var(--display);
  /* SOFT is why this typeface was chosen — softness dialled into the letterforms */
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 600;
}

p{ margin: 0; }

a{ color: inherit; }

:focus-visible{
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: -9999px; top: 12px;
  background: var(--card); color: var(--ink);
  padding: 12px 20px; border-radius: var(--r-sm);
  z-index: 200; box-shadow: var(--sh-md);
}
.skip-link:focus{ left: 16px; }

.wrap{ width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow{ max-width: 760px; }

.eyebrow{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-2);
}

/* --------------------------------------------------------------- 3. BUTTONS */
.btn{
  --lift: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), border-color var(--t);
}

.btn--primary{
  background-image: var(--grad);
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn--primary:hover{ transform: translateY(var(--lift)); box-shadow: var(--sh-lg); }

.btn--ghost{
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover{ transform: translateY(var(--lift)); box-shadow: var(--sh-md); border-color: var(--primary-soft); }

.btn:active{ transform: translateY(-1px); }

.btn--sm{ min-height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn--lg{ min-height: 56px; padding: 0 34px; font-size: 17px; }

/* ------------------------------------------------------------------- 4. NAV */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,246,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t);
}
.nav.is-stuck{ border-bottom-color: var(--border); background: rgba(251,249,246,.9); }

.nav__inner{
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 72px;
}
.nav__inner .btn{ flex: none; margin-left: auto; }
.nav__links + .btn{ margin-left: 0; }

.logo{
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 17px; letter-spacing: -.015em;
  white-space: nowrap;
  transition: transform var(--t);
}
.logo:hover{ transform: translateY(-1px); }
.logo__mark{ width: 26px; height: 26px; color: var(--primary); flex: none; }
.logo__light{ font-weight: 400; color: var(--muted); }

.nav__toggle{ display: none; }
.mobile-cta{ display: none; }

.nav__links{ display: flex; gap: 4px; margin-left: auto; }
.nav__links a{
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px; font-weight: 500;
  transition: color var(--t), background-color var(--t), transform var(--t);
}
.nav__links a:hover{ color: var(--ink); background: var(--paper-deep); transform: translateY(-1px); }

/* ------------------------------------------------------------------ 5. HERO */
.hero{ position: relative; padding: var(--s-8) 0 var(--s-7); overflow: hidden; }

.hero__glow{
  position: absolute; top: -340px; left: 50%; transform: translateX(-50%);
  width: 980px; height: 760px;
  background: radial-gradient(ellipse at center, rgba(111,155,242,.34) 0%, rgba(46,91,216,.10) 42%, transparent 70%);
  pointer-events: none;
}

.hero__inner{ position: relative; text-align: center; }

.hero__title{
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
  font-weight: 600;
  max-width: 15ch;
  margin: 0 auto var(--s-3);
}
.hero__title em{
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub{
  max-width: 56ch; margin: 0 auto var(--s-5);
  font-size: 18.5px; color: var(--muted);
}

.hero__actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sits under the two CTAs — quiet, but tappable on a phone. */
.hero__call{
  margin: var(--s-3) 0 0;
  font-size: 15px; color: var(--muted);
}
/* Underline via text-decoration, not a border — a border detaches from the text
   as soon as the link gets vertical padding for a bigger tap target. */
.hero__call a{
  color: var(--ink); font-weight: 600;
  text-decoration-color: rgba(46,91,216,.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.hero__call a:hover{ color: var(--primary); text-decoration-color: var(--primary); }

.hero__facts{
  display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap;
  list-style: none; margin: var(--s-6) 0 0; padding: 0;
  font-size: 14.5px; color: var(--muted);
}
.hero__facts strong{ color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------- 6. SECTIONS */
.section{ padding: var(--s-8) 0; }
.section--slim{ padding: var(--s-6) 0; }
.section--tint{ background: var(--paper-deep); }
.section--work{ padding-top: var(--s-6); }

/* Services + Process sit back to back — tightened so the pair reads as one beat */
.section--compact{ padding: var(--s-6) 0; }
.section--compact .sechead{ margin-bottom: var(--s-4); }
.section--compact .card,
.section--compact .step{ padding: var(--s-3); }
.section--compact .card__icon{ margin-bottom: var(--s-2); }
.section--compact .step__num{ margin-bottom: var(--s-2); }

.sechead{ max-width: 640px; margin: 0 auto var(--s-6); text-align: center; }
.sechead__title{ font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: var(--s-2); }
.sechead__sub{ color: var(--muted); font-size: 17.5px; }

/* ------------------------------------------------------------- 7. WORK RACK */
.rack{ display: flex; flex-direction: column; gap: var(--s-8); }

.case{
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: var(--s-6);
  align-items: center;
}
.case--flip .case__frame{ order: 2; }
/* The flipped case puts the frame in the narrow column. That is fine for a hand-built
   mockup, but a live desktop site needs >=1080px in the iframe, and from 388px that
   forces a 3x zoom that shrinks it to a third size. Even out the split so the frame
   gets ~560px. Only Demo 2 is flipped, and below 1000px .case collapses to one column,
   so this is scoped to that row on desktop. */
.case--flip{ grid-template-columns: 1fr 1.15fr; }

.case__frame{ position: relative; }

.browser{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.case__frame:hover .browser{ transform: translateY(-3px); box-shadow: var(--sh-lg); }

.browser__bar{
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--border);
}
.browser__dot{ width: 10px; height: 10px; border-radius: 50%; background: #D9D2C8; flex: none; }
.browser__url{
  margin-left: 10px; padding: 4px 14px;
  background: var(--card);
  border-radius: 999px;
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border-soft);
}

.frame-viewport{
  height: 560px;
  overflow-y: auto;
  /* Without this, hitting the bottom of a demo yanks the whole page */
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.frame-viewport::-webkit-scrollbar{ width: 8px; }
.frame-viewport::-webkit-scrollbar-thumb{ background: #DED7CD; border-radius: 99px; }

.demo-shot{ width: 100%; } /* for real screenshots later */

/* A live demo runs in a real iframe rather than the hand-built .demo markup.
   Sized at 200% and scaled by half, so the embedded site sees a viewport twice
   the frame's box — wide enough to trigger its desktop layout, while the height
   stays a plausible screen. Sizing the iframe to the demo's FULL page height
   instead would break it: vh units inside an iframe resolve against the iframe's
   own height, so a 6000px-tall iframe turns a 78vh hero into a 4700px hero.
   The demo scrolls inside itself; the wrapper clips rather than double-scrolls. */
.frame-viewport--live{ overflow: hidden; }

/* Vaughn's desktop layout needs ~1080px. At the standard 2x the frame only gives the
   iframe ~776px, so it renders its mobile layout and the map, schematic and reviews
   photo all drop out. 3x clears the breakpoint; it renders smaller, but it renders
   the design. Kessler is unaffected. */
.demo-live.demo-live--wide{ width: 240%; height: 240%; transform: scale(.41667); }


.demo-live{
  display: block;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(.5);
  transform-origin: 0 0;
}

.frame-hint{
  position: absolute; right: 18px; bottom: 18px;
  padding: 7px 14px;
  background: rgba(20,26,33,.78);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity var(--t);
}
.frame-hint.is-gone{ opacity: 0; }

.frame-expand{ display: none; }

.case__note h3{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: var(--s-2);
}
.case__note p{ color: var(--muted); }

.case__meta{
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.case__meta li{
  padding: 6px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}

/* ------------------------------------------------------- 8. DEMO MINI-SITES */
/* Self-contained styling for the placeholder sites inside each frame.
   Everything here is namespaced under .demo so it never leaks out. */
.demo{
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  --d-ink: #1B1B1B;
  --d-accent: #B4552F;
  --d-bg: #FFFDF9;
  --d-soft: #F4EDE4;
  background: var(--d-bg);
  color: var(--d-ink);
}
.demo--dental{ --d-accent: #1B7A8C; --d-bg: #FFFFFF; --d-soft: #EEF7F8; --d-ink: #14262B; }
.demo--garden{ --d-accent: #3D6B45; --d-bg: #FCFDFA; --d-soft: #EDF2EA; --d-ink: #1D2A1F; }

.demo h1, .demo h2, .demo h3{ font-family: var(--body); letter-spacing: -.02em; font-variation-settings: normal; }

.d-nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-bottom: 1px solid rgba(0,0,0,.07);
  position: sticky; top: 0; background: var(--d-bg); z-index: 2;
}
.d-logo{ font-weight: 700; font-size: 14.5px; color: var(--d-accent); letter-spacing: -.01em; }
.d-links{ display: flex; gap: 18px; }
.d-links i{ font-style: normal; font-size: 12.5px; opacity: .6; }

.d-hero{ padding: 52px 26px 44px; text-align: center; background: var(--d-soft); }
.d-kicker{ font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--d-accent); font-weight: 700; margin: 0 0 14px; }
.d-hero h1{ font-size: 30px; line-height: 1.12; font-weight: 700; margin: 0 0 14px; }
.d-lede{ font-size: 14px; opacity: .68; margin: 0 auto 22px; max-width: 42ch; }

.d-btn{
  display: inline-block; padding: 11px 24px;
  background: var(--d-accent); color: #fff;
  border-radius: 999px; font-size: 13px; font-weight: 600;
}
.d-btn--out{ background: transparent; color: var(--d-accent); border: 1.5px solid var(--d-accent); }

.d-strip{
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  padding: 16px 26px; border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .5; font-weight: 600;
}

.d-sec{ padding: 44px 26px; }
.d-sec--alt{ background: var(--d-soft); text-align: center; }
.d-sec h2{ font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.d-sec--alt h2{ margin-bottom: 12px; }

.d-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.d-grid--2{ grid-template-columns: repeat(2, 1fr); }
.d-card{ background: var(--d-bg); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 16px; }
.d-card h3{ font-size: 14px; font-weight: 700; margin: 0 0 5px; }
.d-card p{ font-size: 12.5px; opacity: .6; margin: 0; }

.d-thumb{
  height: 78px; border-radius: 9px; margin-bottom: 12px;
  background: linear-gradient(140deg, var(--d-accent) 0%, rgba(0,0,0,.12) 130%);
  opacity: .82;
}
.d-thumb--tall{ height: 128px; }

.d-foot{
  padding: 26px; text-align: center;
  font-size: 11.5px; opacity: .5;
  border-top: 1px solid rgba(0,0,0,.07);
}

/* -------------------------------------------------------- 9. CARDS + STEPS */
.cards{ display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--primary-soft); }

.card__icon{
  width: 44px; height: 44px; margin-bottom: var(--s-3);
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(46,91,216,.09);
  color: var(--primary);
}
.card__icon svg{ width: 22px; height: 22px; }
.card h3{ font-size: 20px; margin-bottom: 10px; }
.card p{ color: var(--muted); font-size: 15.5px; }

.steps{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
}
.step{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover{ transform: translateY(-3px); box-shadow: var(--sh-md); }
.step__num{
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: var(--s-3);
  border-radius: 50%;
  background-image: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 16px; font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.step h3{ font-size: 19px; margin-bottom: 8px; }
.step p{ color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- 10. PRICING */
.pricing{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  align-items: start;
}

.plan{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.plan::before{
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background-image: var(--grad);
}
/* The only saturated element inside a white card, so the eye lands here first */
.plan__badge{
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 var(--s-3);
  padding: 7px 15px 7px 12px;
  background-image: var(--grad);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(46,91,216,.28);
}
.plan__badge::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.plan__name{ font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0 0 var(--s-2); }
.plan__price{
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 600; line-height: 1; letter-spacing: -.03em;
}
.plan__price sup{ font-size: .38em; top: -.85em; font-weight: 600; margin-right: 2px; }
/* "From" sits small and quiet — the number is what people read */
.plan__price em{
  font-family: var(--body);
  font-style: normal;
  font-size: .26em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-right: .4em;
  vertical-align: .9em;
}
/* No-price variant: the slot holds a short phrase rather than a numeral, so it
   steps down from the display size a bare number can carry. */
.plan__price--quote{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.plan__price-sub{
  display: block;
  font-family: var(--body);
  font-size: .4em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: .5em;
}

.plan__unit{ display: block; color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 40ch; }
.plan__unit strong{ color: var(--ink); font-weight: 600; }
.plan__blurb{ color: var(--muted); margin: var(--s-3) 0 var(--s-4); font-size: 16px; }

.plan__list{ list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: 11px; }
.plan__list li{ display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.plan__list li::before{
  content: ""; flex: none; width: 19px; height: 19px; margin-top: 3px;
  border-radius: 50%;
  background: rgba(46,91,216,.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5BD8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.addons{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.addons__title{ font-size: 22px; margin-bottom: 6px; }
.addons__sub{ color: var(--muted); font-size: 15px; margin-bottom: var(--s-4); }

.addon{
  display: flex; align-items: baseline; gap: var(--s-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.addon:last-of-type{ border-bottom: 0; }
.addon__name{ font-weight: 600; font-size: 15.5px; }
.addon__note{ display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }

.addons__foot{ margin-top: var(--s-3); color: var(--muted); font-size: 14.5px; }
.addons__foot a{ color: var(--primary); font-weight: 600; }

/* Closes the section with the next action, where the example grid used to sit */
.nextstep{
  grid-column: 1 / -1;
  margin-top: var(--s-2);
  padding: var(--s-5);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.nextstep__title{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.nextstep__sub{
  color: var(--muted); font-size: 16px;
  max-width: 56ch; margin: 0 auto var(--s-4);
}
.nextstep__actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------ 11. GUARANTEE/ABOUT/FAQ */
.guarantee{
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.guarantee__mark{
  flex: none; width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background-image: var(--grad);
  color: #fff;
}
.guarantee__mark svg{ width: 26px; height: 26px; }
.guarantee h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.guarantee p{ color: var(--muted); max-width: 68ch; }

.about{ display: grid; grid-template-columns: .85fr 1fr; gap: var(--s-6); align-items: center; }
.about__photo{
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--paper-deep) 0%, rgba(111,155,242,.18) 100%);
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-md);
}
/* Once a real image is in, the box takes the image's own landscape ratio rather
   than the 4/5 placeholder crop — otherwise the sides (and the desk sign) get cut. */
.about__photo--filled{
  aspect-ratio: 5 / 4;
  background: none;
  overflow: hidden;
}
.about__photo--filled img{
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about__body h2{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: var(--s-3); }
.about__body p{ color: var(--muted); margin-bottom: var(--s-2); }
.about__sign{
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: 19px; color: var(--ink) !important;
  margin: var(--s-3) 0 var(--s-4) !important;
}

.faq{ display: grid; gap: 10px; }
.faq__item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 24px;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t), border-color var(--t);
}
.faq__item:hover{ box-shadow: var(--sh-md); border-color: var(--primary-soft); }
.faq__item summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__item summary::after{
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.2px solid var(--primary);
  border-bottom: 2.2px solid var(--primary);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--t);
}
.faq__item[open] summary::after{ transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item p{ color: var(--muted); padding: 0 0 20px; font-size: 16px; max-width: 66ch; }

/* ------------------------------------------------------- 12. CTA + FOOTER */
.section--cta{ position: relative; overflow: hidden; text-align: center; }
.cta__glow{
  position: absolute; bottom: -420px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(111,155,242,.30) 0%, rgba(46,91,216,.08) 45%, transparent 70%);
  pointer-events: none;
}
.cta{ position: relative; }
.cta h2{ font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: var(--s-2); }
.cta p{ color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto var(--s-5); }
.cta__actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__fine{ font-size: 14px !important; margin-top: var(--s-4) !important; }
.cta__fine a{ color: var(--primary); text-decoration: none; }
.cta__fine a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* ---- Quote form ---- */
.quote-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: var(--s-4);
  /* The CTA band is centred; a form's labels must not be */
  text-align: left;
}

.qf-row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.qf-field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-2); }

.qf-field label{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.qf-req{ color: var(--primary); }
.qf-opt{ font-weight: 400; color: var(--muted); font-size: 13px; }
.qf-hint{ font-size: 12.5px; color: var(--muted); }

.qf-field input,
.qf-field select,
.qf-field textarea{
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;           /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.qf-field textarea{ resize: vertical; line-height: 1.6; }

.qf-field input::placeholder,
.qf-field textarea::placeholder{ color: #9AA4AE; }

.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,91,216,.14);
}

.qf-field.is-invalid input,
.qf-field.is-invalid select,
.qf-field.is-invalid textarea{ border-color: #C0392B; }
.qf-field.is-invalid input:focus,
.qf-field.is-invalid textarea:focus{ box-shadow: 0 0 0 3px rgba(192,57,43,.13); }

.qf-err{ font-size: 13px; color: #C0392B; }
.qf-err:empty{ display: none; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.qf-hp{
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.qf-foot{
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-1);
}
.qf-foot__fine{
  font-size: 13.5px !important;
  color: var(--muted);
  margin: 0 !important;
  max-width: 30ch;
  text-align: left;
}

.qf-error{
  margin-top: var(--s-2) !important;
  padding: 12px 14px;
  font-size: 14.5px !important;
  color: #8C2A1F;
  background: #FCEEEC;
  border: 1px solid #F0CFC9;
  border-radius: var(--r-sm);
  text-align: left;
}
.qf-error a{ color: #8C2A1F; }

/* ---- Success panel ---- */
.quote-done{ text-align: center; padding: var(--s-4) var(--s-2); }
.quote-done__tick{ width: 46px; height: 46px; color: var(--primary); margin: 0 auto var(--s-2); }
.quote-done h3{ font-size: 1.6rem; margin-bottom: var(--s-1); outline: none; }
.quote-done p{ margin-bottom: var(--s-3) !important; }

.footer{ border-top: 1px solid var(--border); padding: var(--s-6) 0; background: var(--paper-deep); }
.footer__inner{ display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.footer__links{ display: flex; gap: var(--s-3); flex-wrap: wrap; margin-left: auto; }
.footer__links a{
  text-decoration: none; color: var(--muted); font-size: 15px;
  transition: color var(--t);
}
.footer__links a:hover{ color: var(--primary); }
.footer__fine{ width: 100%; color: var(--muted); font-size: 13.5px; padding-top: var(--s-3); border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- 13. MOTION */
.reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .btn:hover, .card:hover, .step:hover, .example:hover,
  .case__frame:hover .browser{ transform: none; }
}

/* ------------------------------------------------------------ 14. RESPONSIVE */
@media (max-width: 1000px){
  .cards, .steps{ grid-template-columns: repeat(2, 1fr); }
  .case{ grid-template-columns: 1fr; gap: var(--s-4); }
  .case--flip .case__frame{ order: 0; }
  .pricing{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; gap: var(--s-4); }
  .about__photo{ aspect-ratio: 16 / 10; }
  /* The real image keeps its own ratio when stacked — a 16/10 crop would cut the
     whiteboard off the top and the desk sign off the bottom. */
  .about__photo--filled{ aspect-ratio: 5 / 4; }

  /* ---- Mobile navigation ---- */
  .nav__toggle{
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px; flex: none;
    margin-left: 4px; padding: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color var(--t), transform var(--t);
  }
  .nav__toggle:hover{ transform: translateY(-1px); border-color: var(--primary-soft); }
  .nav__bar{
    display: block; width: 16px; height: 2px; border-radius: 2px;
    background: var(--ink);
    transition: transform var(--t), opacity var(--t);
  }
  .nav__toggle[aria-expanded="true"] .nav__bar:first-child{ transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bar:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

  .nav__links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    margin: 0; padding: var(--s-2);
    /* Opaque, not translucent — headings bleeding through behind the links
       made them hard to read. Legibility beats the glass effect here. */
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open .nav__links{ opacity: 1; visibility: visible; transform: none; }
  .nav__links a{
    display: flex; align-items: center;
    min-height: 52px;              /* comfortable thumb target */
    padding: 0 18px;
    border-radius: var(--r-md);
    font-size: 17px; color: var(--ink);
  }
}

@media (max-width: 767px){
  body{ font-size: 16px; padding-bottom: 82px; } /* room for the sticky CTA */
  .section{ padding: var(--s-6) 0; }
  .section--compact{ padding: var(--s-5) 0; }
  .hero{ padding: var(--s-6) 0 var(--s-5); }
  .rack{ gap: var(--s-6); }
  .sechead{ margin-bottom: var(--s-4); }
  .cards, .steps{ grid-template-columns: 1fr; }
  .guarantee{ flex-direction: column; gap: var(--s-3); }
  .nextstep__actions .btn{ width: 100%; }

  /* Tap-to-call is the highest-value action on a phone, but these sit in small
     body copy (18–25px tall). Pad them out so they're comfortable to hit. */
  .hero__call a,
  .cta__fine a,
  .footer__links a{
    display: inline-block;
    padding: 9px 2px;
  }
  .hero__call{ line-height: 1.5; }

  /* Cards go horizontal on phones — icon beside the text, not stacked above it.
     Same content, roughly half the vertical space. */
  .card, .step{
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-3);
    align-items: start;
    padding: var(--s-3);
  }
  .card__icon, .step__num{ grid-row: 1 / span 2; margin-bottom: 0; }
  .card h3, .step h3{ margin-bottom: 4px; align-self: center; }
  .card p, .step p{ grid-column: 2; }

  /* Form goes single column — two fields side by side is unusable at this width */
  .qf-row{ grid-template-columns: 1fr; gap: 0; }
  .quote-card{ padding: var(--s-3); }
  .qf-foot .btn{ width: 100%; }
  .qf-foot__fine{ max-width: none; text-align: center; }
  /* Clear the sticky bottom CTA so it can't sit on top of the send button */
  .section--cta{ padding-bottom: calc(var(--s-7) + 72px); }

  /* Sticky quote button at thumb height */
  .mobile-cta{
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251,249,246,.9);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
  }
  .mobile-cta .btn{ width: 100%; }

  /* Nested scroll is a trap on touch — collapse the frame and let the page scroll */
  .frame-viewport{
    height: 300px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  }
  .case__frame.is-open .frame-viewport{
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* A live demo can't grow to fit its content the way the static markup does —
     its iframe height is a percentage, which collapses against an auto parent.
     Give the expanded state a real height and let the demo scroll inside it. */
  .case__frame.is-open .frame-viewport--live{ height: 70vh; }
  .frame-hint{ display: none; }
  .frame-expand{
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
    min-height: 44px; padding: 0 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--sh-md);
    font-family: var(--body); font-size: 14.5px; font-weight: 600;
    color: var(--ink); cursor: pointer;
  }
  .case__note{ margin-top: var(--s-4); }
  .d-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  /* Glow is sized for a wide viewport — at 375px you'd only see its dense core */
  .hero__glow{ width: 560px; height: 460px; top: -200px; }
  .cta__glow{ width: 640px; height: 520px; bottom: -300px; }

  .hero__facts{ gap: var(--s-2); flex-direction: column; }
  .hero__actions, .cta__actions{ flex-direction: column; }
  /* Only the page CTAs go full width — never the button in the header */
  .hero__actions .btn, .cta__actions .btn{ width: 100%; }

  .nav__inner{ gap: var(--s-2); }
  .nav__inner .btn--sm{ padding: 0 16px; font-size: 13.5px; }
  .logo{ font-size: 16px; }
  .logo__light{ display: none; }

  /* 48px of card padding leaves too little room on a narrow phone — the badge
     text alone then forces the grid track wider than the screen. */
  .pricing{ grid-template-columns: minmax(0, 1fr); }
  .plan, .addons, .nextstep{ padding: var(--s-4); }
}

/* Smallest phones still in use (iPhone SE 1st gen, older Androids). */
@media (max-width: 380px){
  /* The header row can't fit logo + button + toggle at this width. The sticky
     bottom bar already carries "Get a free quote", so drop the duplicate. */
  .nav__inner .btn{ display: none; }
  .plan, .addons, .nextstep{ padding: var(--s-3); }
}
