/* ============================================================
   Doorstep Web — public site styles
   ============================================================ */

:root {
  --ink:       #0E1726;
  --ink-2:     #142033;
  --teal:      #0E9384;
  --teal-2:    #12B3A0;
  --teal-lite: #3FE0C8;
  --amber:     #F5A524;
  --paper:     #FFFFFF;
  --mist:      #F3F6F8;
  --mist-2:    #E9EFF2;
  --line:      #DCE4E9;
  --muted:     #647587;
  --slate:     #33465A;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(14,23,38,0.06);
  --shadow-md: 0 16px 44px rgba(14,23,38,0.13);
  --maxw:      1140px;
  --sans: "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* `clip` not `hidden`: hidden makes body a scroll container, which silently
     breaks position:sticky everywhere (it stopped the showcase mockup pinning). */
  overflow-x: clip;
}

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  font-weight: 800; color: var(--teal); display: block; margin-bottom: 0.6rem;
}
.eyebrow.on-dark { color: var(--teal-lite); }
.muted { color: var(--muted); }
.hl { color: var(--teal); }
.hl-lite { color: var(--teal-lite); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.97rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--teal-lite); outline-offset: 2px; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.03rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14,147,132,0.3); }
.btn-primary:hover { background: #0B7A6D; transform: translateY(-2px); }
.btn-bright { background: var(--teal-lite); color: #04231F; }
.btn-bright:hover { background: #6BEBD8; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  /* Frosted glass: content stays legible through it while clearly moving
     underneath. -webkit- prefix is required — Safari (so most phones) ignores
     the unprefixed property and would fall back to a flat white bar. */
  background: rgba(255,255,255,0.66);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
/* Firefox and older browsers don't do backdrop-filter; without this the header
   would be 66% transparent with no blur and text would collide with content. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255,255,255,0.94); }
}
.site-header.scrolled {
  background: rgba(255,255,255,0.78);
  border-color: rgba(14,23,38,0.08);
  box-shadow: 0 1px 24px rgba(14,23,38,0.07);
}
/* The open mobile menu needs a solid backing — a translucent panel over the
   page makes the menu links unreadable. */
.site-header.menu-open { background: rgba(255,255,255,0.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; display: block; }
.brand .name { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.03em; }
.brand .name .sp { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav > a { font-weight: 600; font-size: 0.95rem; position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal); transition: width .25s ease;
}
.nav > a:not(.btn):hover::after { width: 100%; }
/* padding gives a 44px+ touch target, per mobile accessibility guidance */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 14px 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 10px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 0.75rem 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: 0; margin-top: 0.8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(3.5rem,8vw,6rem) 0 clamp(3.5rem,7vw,5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(18,179,160,0.30), transparent 62%),
    radial-gradient(700px 420px at 5% 95%, rgba(14,147,132,0.22), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin-bottom: 1.1rem; }
.hero p.lead { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: #C3D2DE; max-width: 620px; margin-bottom: 2rem; }
.hero p.lead b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.9rem; color: #A9BBCA; }
.hero-badges span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-badges b { color: var(--teal-lite); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.8rem) 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.7rem; font-size: 1.04rem; }

/* ---------- Feature cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { font-size: 1.6rem; }
.feature h3 { margin: 0.7rem 0 0.35rem; font-size: 1.02rem; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: start; }
.tier {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.7rem 2rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.featured { border-color: var(--teal); box-shadow: 0 14px 36px rgba(14,147,132,0.18); background: linear-gradient(180deg,#F4FBFA,#fff 40%); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
}
.t-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.t-name { font-size: 1.35rem; font-weight: 800; margin-top: 3px; letter-spacing: -0.02em; }
.t-pages { font-size: 0.87rem; font-weight: 700; color: var(--teal); margin-top: 3px; }
.price-row { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.price-row .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.price-row .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-row .amt small { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-alt { margin-top: 0.45rem; font-size: 0.9rem; color: var(--slate); }
.price-alt b { color: var(--ink); }
.tier ul { list-style: none; margin: 1.2rem 0 1.5rem; display: grid; gap: 0.62rem; }
.tier ul li { font-size: 0.93rem; padding-left: 1.5rem; position: relative; color: var(--slate); }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.tier .btn { width: 100%; }
.anchor-line { text-align: center; margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; }
.anchor-line b { color: var(--ink); }

/* ---------- Includes strip ---------- */
.includes {
  margin-top: 2.2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.9rem; box-shadow: var(--shadow-sm);
}
.includes h3 { margin-bottom: 1.1rem; }
.inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem 1.6rem; }
.inc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.inc-grid div { font-size: 0.92rem; padding-left: 1.5rem; position: relative; color: var(--slate); }
.inc-grid div::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step .n {
  width: 38px; height: 38px; border-radius: 11px; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.step h3 { margin: 0.8rem 0 0.3rem; font-size: 1.04rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.addon {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
}
.addon .a-name { font-size: 0.92rem; font-weight: 600; }
.addon .a-price { font-size: 0.92rem; font-weight: 800; color: var(--teal); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.7rem; max-width: 820px; margin: 0 auto; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 1.3rem 1.15rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.7rem;
}
.quote .stars { color: var(--amber); letter-spacing: 2px; }
.quote p { font-size: 1.02rem; font-style: italic; margin: 0.5rem 0 0.8rem; }
.quote .who { font-size: 0.88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-list a { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
.contact-list .ic {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(18,179,160,0.14);
  display: grid; place-items: center; font-size: 1.05rem;
}
form .field { margin-bottom: 0.9rem; }
form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
form input, form textarea, form select {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
form textarea { min-height: 110px; resize: vertical; }

/* ---------- Form headings ---------- */
.form-head { margin-bottom: 1.3rem; }
.form-head h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.form-head p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
/* Separates the quick tap-questions above from the typing below */
.form-group-head {
  font-size: 0.85rem; font-weight: 700; margin: 1.5rem 0 0.7rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}

/* ---------- Choice chips ---------- */
form fieldset.choice { border: 0; padding: 0; margin: 0 0 1.1rem; }
form fieldset.choice legend { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.55rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Override the base `form label { display:block }` — chips sit side by side */
.chips label { position: relative; display: inline-flex; margin: 0; font-weight: 600; cursor: pointer; }
/* Hidden, but kept inside the chip's box rather than off-screen: a `required`
   radio that can't be scrolled to makes Chrome refuse to show its validation
   message at all ("not focusable"), so the form would fail silently. */
.chips input {
  position: absolute; left: 14px; bottom: 0; width: 1px; height: 1px;
  opacity: 0; margin: 0; padding: 0;
}
.chips span {
  display: inline-flex; align-items: center; min-height: 44px;   /* thumb-sized */
  padding: 0.5rem 0.95rem; font-size: 0.88rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.chips label:hover span { border-color: var(--teal); }
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- "Request received" confirmation ----------
   The old confirmation was a line of small text under the button, which people
   scrolled past and then re-submitted because they weren't sure it worked.
   This blocks the page until acknowledged. */
.sent-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(14,23,38,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: sent-fade .25s var(--ease);
}
.sent-backdrop[hidden] { display: none; }   /* [hidden] loses to display:grid */
.sent-card {
  background: #fff; border-radius: var(--radius); padding: 2.1rem 1.9rem 1.7rem;
  max-width: 440px; width: 100%; text-align: center;
  box-shadow: 0 24px 70px rgba(14,23,38,0.32);
  animation: sent-pop .34s var(--ease);
}
.sent-card:focus { outline: none; }
.sent-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 0.9rem; }
.sent-lead { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.sent-tick { width: 72px; height: 72px; margin: 0 auto; }
.sent-tick svg { width: 100%; height: 100%; }
.sent-tick circle {
  fill: none; stroke: var(--teal); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: sent-draw .5s var(--ease) .12s forwards;
}
.sent-tick path {
  fill: none; stroke: var(--teal); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: sent-draw .3s var(--ease) .5s forwards;
}
.sent-next { list-style: none; text-align: left; margin: 1.4rem 0 0.2rem; display: grid; gap: 0.75rem; }
.sent-next li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--slate, #33465A); }
.sent-next li .n {
  flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(18,179,160,0.16);
  color: var(--teal); font-size: 0.75rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.sent-next li .t { flex: 1; }
.sent-foot { font-size: 0.82rem; color: var(--muted); margin: 1.1rem 0 1.1rem; }
@keyframes sent-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sent-pop  { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes sent-draw { to { stroke-dashoffset: 0 } }
@media (prefers-reduced-motion: reduce) {
  .sent-backdrop, .sent-card { animation: none; }
  /* Without the draw animation the tick would stay invisible at dashoffset. */
  .sent-tick circle, .sent-tick path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink), #0C3B36); color: #fff; }
.cta-inner { text-align: center; padding: clamp(3rem,6vw,4.5rem) 0; }
.cta-inner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-inner p { color: #B9C7D4; margin-bottom: 1.7rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3.2rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.13); }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .name .sp { color: var(--teal-lite); }
.footer-tag { margin-top: 0.7rem; font-size: 0.92rem; max-width: 270px; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.93rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--teal-lite); }
.footer-contact { font-size: 0.93rem; display: grid; gap: 0.45rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-top: 1.5rem; font-size: 0.84rem; color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--teal-lite); }

/* ============================================================
   PRICING — 4 tiers, comparison table, add-ons
   ============================================================ */
.tiers.four { grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.tiers.four .tier { padding: 1.6rem 1.3rem 1.8rem; display: flex; flex-direction: column; }
.tiers.four .tier .btn { margin-top: auto; }   /* CTAs line up along the bottom */
.tiers.four .t-name { font-size: 1.2rem; }
.tiers.four .price-row .amt { font-size: 2.15rem; }
.tiers.four ul li { font-size: .87rem; padding-left: 1.35rem; }
.tier .t-blurb { font-size: .88rem; color: var(--muted); margin-top: .4rem; min-height: 2.4em; }
.tier .t-inherit { font-size: .84rem; font-weight: 700; color: var(--teal); margin: 1rem 0 -.3rem; }

/* Visible to screen readers only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch;
}
table.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
.compare thead th {
  background: var(--mist); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate); font-weight: 800; padding: 1rem .8rem; text-align: center; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.compare thead th:first-child { text-align: left; padding-left: 1.3rem; }
.compare thead th .p { display: block; font-size: .95rem; color: var(--ink); letter-spacing: -.02em; text-transform: none; margin-top: 2px; }
.compare td { padding: .85rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare td:first-child { text-align: left; padding-left: 1.3rem; font-weight: 600; color: var(--slate); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: #FAFCFD; }
.compare .pop { background: rgba(18,179,160,.055); }
.compare thead th.pop { background: rgba(18,179,160,.12); }
.tick { color: #16A34A; font-weight: 900; }
.cross { color: #C9D4DC; }
.compare .val { font-weight: 700; color: var(--ink); }
.compare-note { text-align: center; font-size: .86rem; color: var(--muted); margin-top: .9rem; }

/* Existing-website services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.service.highlight { border-color: var(--teal); border-width: 2px; background: linear-gradient(180deg,#F4FBFA,#fff 45%); }
.service .ic { font-size: 1.7rem; }
.service h3 { margin: .75rem 0 .4rem; font-size: 1.08rem; }
.service p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.service .price {
  margin-top: auto; font-weight: 800; color: var(--teal); font-size: 1.02rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.service .price small { font-weight: 600; color: var(--muted); font-size: .82rem; }

/* the problems we fix — quick scannable list */
.problems { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.4rem; }
.problems span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.05rem; font-size: .9rem; color: var(--slate); font-weight: 600;
}
.problems span::before { content: "✕ "; color: #C9563F; font-weight: 800; }

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* Add-ons grid */
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.addon-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.addon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.addon-card .a-name { font-weight: 700; font-size: .95rem; }
.addon-card .a-price { font-weight: 800; color: var(--teal); font-size: .95rem; white-space: nowrap; }
.addon-card .a-price.quote { color: var(--muted); font-weight: 700; font-size: .87rem; }

@media (max-width: 1080px) {
  .tiers.four { grid-template-columns: repeat(2, 1fr); }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tiers.four, .addon-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION
   ============================================================ */
:root { --ease: cubic-bezier(.22,.61,.36,1); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-lite));
  z-index: 100; transition: width .1s linear; pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal, [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="blur"]  { filter: blur(6px); transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease); }
.reveal.in, [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- Parallax ---------- */
.parallax { will-change: transform; }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.counter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.counter:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.counter .num {
  font-size: clamp(2.1rem,4vw,2.9rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1;
}
.counter .lbl { margin-top: .5rem; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- Sticky showcase ---------- */
/* No overflow:hidden here — it silently breaks position:sticky on .sticky-visual,
   which stops the mockup pinning and swapping as you scroll. */
.showcase { background: var(--ink); color: #fff; }
.showcase h2, .showcase .section-head h2 { color: #fff; }
.showcase .section-head p { color: #A9BBCA; }
.sticky-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; align-items: start; }

.sticky-visual { position: sticky; top: 120px; }
.browser {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14);
}
.browser-bar { height: 40px; background: #E8EEF2; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar .u { flex: 1; height: 20px; margin-left: 10px; border-radius: 6px; background: #fff; }
.browser-screen { position: relative; aspect-ratio: 4/3.1; background: var(--mist); }
.screen {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 1.8rem; gap: .7rem; opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.screen.active { opacity: 1; transform: none; }
.screen .ic { font-size: 2.4rem; }
.screen .screen-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.screen p { font-size: .93rem; color: var(--muted); max-width: 260px; margin: 0 auto; }
.screen .bar { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 220px; margin: .4rem auto 0; }
.screen .bar span { display: block; height: 100%; background: var(--teal); width: 0; transition: width 1.1s var(--ease); }
.screen.active .bar span { width: var(--w, 60%); }

.sticky-steps { display: grid; gap: 20vh; padding: 6vh 0 26vh; }
.sticky-step { opacity: .32; transition: opacity .45s var(--ease); }
.sticky-step.active { opacity: 1; }
.sticky-step .n {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.16); transition: background .4s var(--ease), transform .4s var(--ease);
}
.sticky-step.active .n { background: var(--teal); border-color: var(--teal); transform: scale(1.06); }
.sticky-step h3 { font-size: clamp(1.3rem,2.4vw,1.7rem); margin: 1rem 0 .5rem; color: #fff; }
.sticky-step p { color: #A9BBCA; font-size: 1.02rem; max-width: 420px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--teal); color: #fff; overflow: hidden; padding: .85rem 0; }
.marquee-track { display: inline-flex; gap: 2.6rem; white-space: nowrap; animation: marq 26s linear infinite; font-weight: 700; }
.marquee-track span { opacity: .95; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Card lift ---------- */
.tier, .feature, .addon { transition: transform .28s var(--ease), box-shadow .28s var(--ease); }

@media (max-width: 980px) {
  .counters { grid-template-columns: repeat(2,1fr); }
  .sticky-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-visual { position: relative; top: 0; }
  .sticky-steps { gap: 2.5rem; padding: 2rem 0 0; }
  .sticky-step { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  .marquee-track { animation: none; }
  .parallax { transform: none !important; }
  .sticky-step { opacity: 1; }
  .scroll-progress { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4, .inc-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers, .steps, .addons { grid-template-columns: 1fr; }
  .steps { gap: 1.6rem; }
  .quotes, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .mobile-nav { display: flex; }
}
@media (max-width: 430px) {
  .grid-4, .inc-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   MOBILE OPTIMISATION
   Fixes found by testing at 375px, not guessed at.
   ============================================================ */

/* Stop iOS inflating text in landscape */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Anchor links must clear the sticky header, or the heading you jumped to
   ends up hidden underneath it. */
section[id], span[id] { scroll-margin-top: 90px; }

@media (max-width: 620px) {
  /* iOS Safari zooms the whole page when you focus a field under 16px.
     This is the single most irritating mobile bug on a contact form. */
  form input, form select, form textarea { font-size: 16px; }

  /* Two 119px columns is too narrow for lines like "You own your domain
     & content" — it wrapped awkwardly on every row. */
  .inc-grid, .inc-grid-2 { grid-template-columns: 1fr; }

  /* Nudge small print up to a comfortable reading size on a phone */
  .tier ul li,
  .tiers.four ul li,          /* more specific rule elsewhere wins without this */
  .feature p,
  .service p,
  .addon-card .a-name,
  .addon-card .a-price,
  .compare td { font-size: 0.95rem; }

  /* Tap targets: these were 24-40px tall, under the 44px guideline */
  .footer-nav a,
  .footer-contact a { display: flex; align-items: center; min-height: 44px; }
  .contact-list a { min-height: 48px; }
  .brand { min-height: 44px; }
  .faq summary { padding-top: 1.15rem; padding-bottom: 1.15rem; }

  /* Give the hero and sections a little breathing room back */
  .hero { padding-top: 2.6rem; }
  .section { padding-top: 3rem; padding-bottom: 3rem; }

  /* Long emails/URLs shouldn't force the page sideways */
  .contact-list a, .footer-contact a { overflow-wrap: anywhere; }
}
