/* Bristol Web Works: home page, "Clarity" direction.
   Look: crisp and product-like. White and soft grey, deep navy text, a confident blue,
   green for "all good" states. The hero shows a before/after slider of an outdated site
   against a new one; a site-care panel just below makes the hosting and management side tangible. */

/* Self-hosted fonts (Latin subset), so text never waits on a third-party server */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

:root {
  --bg: #FFFFFF;
  --soft: #F5F7FB;
  --navy: #0B1630;
  --navy-2: #13213F;
  --navy-line: #24345A;
  --text: #0E1525;
  --muted: #566176;
  --line: #E3E7EF;
  --blue: #2B59E8;
  --blue-deep: #1F45C4;
  --blue-soft: #EAF0FF;
  --green: #0E9F6E;
  --green-soft: #E3F6EE;
  --red-soft: #FDECEC;
  --red: #C2362B;
  --on-dark: #F2F5FB;
  --on-dark-muted: #A8B3CA;
  --error: #C2362B;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 128px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(14, 21, 37, 0.06), 0 12px 32px -12px rgba(14, 21, 37, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

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

.display { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--blue) 0%, #6C4CF0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.lede strong { color: var(--text); }
.lede a { color: var(--blue); font-weight: 600; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15.5px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(43, 89, 232, 0.6); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(14,21,37,.05); }
.btn-ghost:hover { border-color: #C9D0DD; background: var(--soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; }
.header-cta { display: none; }
@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .header-cta { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font: 700 14.5px var(--font); color: var(--text); cursor: pointer; }
  .menu-icon, .menu-icon::before { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
  .menu-icon { transform: translateY(-3px); }
  .menu-icon::before { content: ""; position: absolute; top: 6px; }
  .site-nav { position: absolute; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; box-shadow: var(--shadow); }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
  /* The bar already has the mockup button, so the menu doesn't repeat it */
  .site-nav .btn { display: none; }
}
@media (max-width: 420px) {
  /* Fit brand, mockup button and menu on one line: the menu button goes icon-only */
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 15px; }
  .menu-btn { width: 42px; height: 40px; padding: 0; justify-content: center; }
  .menu-btn [data-menu-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta { padding: 0 11px; font-size: 13.5px; }
}
@media (max-width: 900px) { .header-cta, .menu-btn { flex-shrink: 0; } }
@media (min-width: 360px) and (max-width: 374px) {
  /* Common Android width: keep the name, drop the small logo square to make room */
  .header-inner .brand-mark { display: none; }
}
@media (max-width: 359px) {
  /* Narrowest phones: the logo mark carries the brand (the link keeps its accessible name) */
  .header-inner .brand-name { display: none; }
}

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

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(43, 89, 232, 0.10), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(108, 76, 240, 0.06), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); box-shadow: 0 1px 2px rgba(14,21,37,.05); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(14,159,110,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(14,159,110,0); } 100% { box-shadow: 0 0 0 0 rgba(14,159,110,0); } }
.hero .display { margin-top: 22px; }
/* The keyword line sits inside the h1 for search engines but reads as a small label */
.h1-kicker { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.hero .lede { margin-top: 22px; max-width: 33em; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--green); }

/* Before / after slider */
.stage { position: relative; }
.ba {
  position: relative; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(14,21,37,.06), 0 40px 80px -30px rgba(14, 22, 48, 0.28);
}
.ba:has(.ba-range:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 4px; }
.ba-layer { position: absolute; inset: 0; }
.ba-new { clip-path: inset(0 0 0 var(--pos)); }

/* The dated site */
.ba-old { background: #DCD8CF; color: #2B2B2B; font-family: "Times New Roman", Times, serif; filter: saturate(.75); }
.old-banner { background: #6E7F5C; color: #F4F1E8; text-align: center; font-size: 22px; font-style: italic; font-weight: 700; padding: 44px 10px 16px; text-shadow: 1px 1px 0 #333; }
.old-nav { background: #B9B2A2; font-size: 13px; padding: 6px 12px; color: #1F3D8F; text-decoration: underline; border-bottom: 2px outset #9C9688; white-space: nowrap; overflow: hidden; }
.old-body { padding: 16px 18px; display: grid; gap: 8px; }
.old-img { height: 88px; background: repeating-linear-gradient(45deg, #C4BEB1 0 10px, #BDB6A8 10px 20px); border: 3px ridge #9C9688; width: 60%; }
.old-img.small { height: 54px; width: 38%; justify-self: end; }
.old-line { height: 8px; background: #A39E92; border-radius: 1px; }
.old-counter { margin-top: 6px; font-size: 11px; color: #555; text-align: center; font-family: "Courier New", monospace; }

/* The new site: an example trade business with its own palette, so it reads as a client's site */
.ba-new {
  --tx-ink: #15171D; --tx-ink-2: #23262F; --tx-yel: #FFC83D; --tx-paper: #F7F6F2; --tx-muted: #5E6270;
  background: var(--tx-paper); color: var(--tx-ink); padding: 40px 14px 14px; display: grid; gap: 9px; align-content: start;
}
/* The new site sits in flow and sets the slider's height, so its content always fits; the old site fills in behind */
.ba .ba-new { position: relative; }
.tx-top { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tx-logo { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tx-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--tx-ink); color: var(--tx-yel); display: grid; place-items: center; }
.tx-logo b { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.tx-logo b span { font-weight: 500; color: var(--tx-muted); }
.tx-nav { display: flex; gap: 12px; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--tx-muted); }
.tx-nav i { font-style: normal; }
.tx-call { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; background: var(--tx-yel); color: var(--tx-ink); padding: 5px 9px; border-radius: 7px; }
.tx-hero {
  position: relative; border-radius: 12px; padding: 16px 18px 14px; display: grid; gap: 9px; justify-items: start; color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 200, 61, .22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--tx-ink-2), var(--tx-ink));
}
.tx-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-yel); }
.tx-title { font-weight: 800; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.12; letter-spacing: -0.03em; max-width: 15em; }
.tx-title em { font-style: normal; color: var(--tx-yel); }
.tx-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.tx-btn { font-size: 12px; font-weight: 800; padding: 8px 13px; border-radius: 8px; background: var(--tx-yel); color: var(--tx-ink); }
.tx-btn-alt { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); }
.tx-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); padding: 4px 9px 4px 4px; border-radius: 999px; }
.tx-rating b { color: #fff; font-size: 12px; }
.tx-g { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
.tx-stars { display: inline-flex; gap: 1px; color: #FBBC04; }
.tx-services { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-services span { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #E4E2DA; }
.tx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tx-review { background: #fff; border-radius: 10px; padding: 9px 10px; display: grid; gap: 5px; align-content: start; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-top: 2px solid var(--tx-yel); }
.tx-review p { font-size: 11px; line-height: 1.35; font-weight: 500; color: var(--tx-ink); }
.tx-who { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: var(--tx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-av { width: 16px; height: 16px; border-radius: 50%; background: #E8E3D3; color: var(--tx-ink); display: grid; place-items: center; font-size: 8.5px; font-weight: 800; flex-shrink: 0; }
.tx-trust { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; font-weight: 600; color: var(--tx-muted); }
.tx-trust span { display: inline-flex; align-items: center; gap: 4px; }
.tx-trust svg { color: #1E9E5A; }
.ba-caption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 22, 48, .18); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); border: 3px solid #fff; color: #fff; box-shadow: 0 8px 20px -6px rgba(43, 89, 232, .7); }
.ba-label { position: absolute; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba-label-old { left: 12px; background: rgba(14, 21, 37, .72); color: #fff; }
.ba-label-new { right: 12px; background: var(--green-soft); color: var(--green); }
/* Invisible full-size range: drag anywhere, arrow keys when focused; pan-y keeps vertical page scroll on touch */
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }

@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .stage { max-width: 600px; } }
@media (max-width: 520px) {
  .stage { padding: 0; }
  .tx-nav, .tx-trust { display: none; }
  .tx-reviews { grid-template-columns: 1fr 1fr; }
  .tx-review:nth-child(3) { display: none; }
}

/* Site care */
.care { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 88px); }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.care-copy { display: grid; gap: 16px; }
.care-panel { width: 100%; max-width: 520px; justify-self: end; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 4px 18px; border-bottom: 1px solid var(--line); }
.panel-domain { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.panel-sub { font-size: 13px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.panel-rows { list-style: none; padding: 6px 0; margin: 0; }
.panel-rows li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 11px 4px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.panel-rows li:last-child { border-bottom: 0; }
.row-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--navy); display: grid; place-items: center; }
.panel-rows b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.panel-rows b.ok { color: var(--green); }
.panel-task { margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--blue-soft); }
.task-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.task-title { font-size: 14px; font-weight: 600; }
.task-meta { font-size: 12.5px; color: var(--muted); }
.task-done { margin-left: auto; color: var(--blue); }
.panel-caption { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .care-grid { grid-template-columns: 1fr; } .care-panel { justify-self: start; } }
.care-grid > *, .bento > * { min-width: 0; }
@media (max-width: 360px) {
  /* Smallest phones: trim padding so the panels fit without sideways scroll */
  .tile { padding: 22px 18px; }
  .tile-art { padding: 14px; }
  .ta-phone { width: 100%; max-width: 220px; }
  .panel { padding: 16px; }
}

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 28px 20px; border-right: 1px solid var(--line); }
.facts-grid > div:first-child { padding-left: 0; }
.facts-grid > div:last-child { border-right: 0; }
.fact-num { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.fact-label { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .facts-grid > div:nth-child(odd) { padding-left: 0; }
  .facts-grid > div:nth-child(2n) { border-right: 0; }
  .facts-grid > div:nth-child(n+3) { border-bottom: 0; }
}

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

.section { padding-block: var(--section); }
.band-soft { background: var(--soft); }
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark .lede, .band-dark p { color: var(--on-dark-muted); }
.band-dark .h2, .band-dark .h3 { color: #fff; }
.band-dark .eyebrow { color: #8FA8FF; }
.band-dark :focus-visible { outline-color: #8FA8FF; }
.section-head { max-width: 760px; display: grid; gap: 16px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Problem */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; box-shadow: 0 1px 2px rgba(14,21,37,.04); }
.card-step { font-family: var(--mono); font-size: 12.5px; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 3px 8px; justify-self: start; margin-bottom: 8px; }
.card p:last-child { color: var(--muted); }
.callout { margin-top: 24px; padding: 28px 30px; border-radius: var(--radius); background: var(--soft); border-left: 4px solid var(--blue); font-size: 18px; color: var(--muted); }
.callout strong { display: block; margin-top: 8px; color: var(--text); font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -0.01em; }
.compare { margin-top: 56px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--muted); }
.x { width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } .compare { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .compare ul { grid-template-columns: 1fr; } }

/* Bento */
.bento { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 2px rgba(14,21,37,.04); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile p { color: var(--muted); }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.tile-wide { grid-column: span 2; grid-row: span 2; grid-template-rows: auto auto auto 1fr; }
.tile-accent { background: var(--blue); border-color: var(--blue); color: #fff; }
.tile-accent p { color: rgba(255,255,255,.82); }
.tile-accent .tile-ic { background: rgba(255,255,255,.16); color: #fff; }
/* Annotated example homepage: numbered pins on the phone match the notes beside it */
.tile-art { margin-top: 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; align-self: end; }
.ta-phone { background: var(--navy); border-radius: 26px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(11, 22, 48, .5); }
.ta-screen { --ta-teal: #0F766E; background: #F8FAF9; border-radius: 19px; padding: 12px 10px 14px; display: grid; gap: 9px; color: #10201E; }
.ta-pin { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.ta-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10.5px; }
.ta-top b { font-weight: 800; letter-spacing: -0.01em; }
.ta-call { position: relative; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--ta-teal); color: #fff; }
.ta-hero { position: relative; display: grid; gap: 8px; padding: 12px 10px; border-radius: 12px; background: linear-gradient(150deg, #134E4A, #0F766E); color: #fff; }
.ta-title { font-size: 14px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.ta-photo { position: relative; height: 54px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)), repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px); }
.ta-photo .ta-pin { top: 6px; right: 6px; }
.ta-stars { position: relative; display: flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 600; color: #4B5B58; }
.ta-stars svg { color: #F5B301; }
.ta-stars svg:last-of-type { margin-right: 5px; }
.ta-stars .ta-pin { top: -4px; right: 0; }
.ta-chips { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding-right: 22px; }
.ta-chips span:not(.ta-pin) { font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: #fff; border: 1px solid #DCE4E2; }
.ta-chips .ta-pin { top: 0; right: 0; }
.ta-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ta-notes li { display: flex; gap: 12px; align-items: flex-start; }
.ta-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.ta-notes div { display: grid; }
.ta-notes b { font-size: 15px; }
.ta-notes span:not(.ta-num) { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .tile-art { grid-template-columns: 1fr; justify-items: center; } .ta-phone { width: 220px; } }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile-wide { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), #C7D3FA); }
.timeline li { position: relative; display: grid; gap: 10px; align-content: start; }
.timeline p { color: var(--muted); }
.tl-num { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; box-shadow: 0 0 0 6px #fff; }
.timeline li:first-child .tl-num { background: var(--blue); color: #fff; }
.wont { margin-top: 64px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; }
.wont-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; }
.wont-grid > div { display: flex; gap: 14px; align-items: flex-start; }
.wont-grid p { color: var(--muted); }
.wont-grid strong { color: var(--text); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), #C7D3FA); }
  .timeline li { padding-left: 66px; }
  .tl-num { position: absolute; left: 0; top: 0; }
  .wont-grid { grid-template-columns: 1fr; }
}

/* Support */
.sla { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sla article { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 20px; padding: 28px; display: grid; gap: 8px; align-content: start; }
.sla .tile-ic { background: rgba(143, 168, 255, 0.14); color: #8FA8FF; }
.sla-num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #fff !important; }
@media (max-width: 860px) { .sla { grid-template-columns: 1fr; } }

/* Pricing */
.plans { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(14,21,37,.04); }
.plan-featured { border: 2px solid var(--blue); box-shadow: 0 30px 60px -30px rgba(43, 89, 232, 0.45); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-for { color: var(--muted); font-size: 15px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.price-num { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-per { color: var(--muted); font-weight: 600; }
.plan-up { margin: 10px 0 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.chip { background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 6px; }
.chip-alt { background: var(--blue-soft); color: var(--blue); }
.ticks { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks svg { color: var(--green); margin-top: 3px; }
.ticks .off { color: var(--muted); }
.ticks .off svg { color: #A6AEBD; }
.terms { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.terms div { display: flex; justify-content: space-between; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; font-weight: 700; }
.outright { margin-top: 28px; padding: 22px 26px; border-radius: 16px; background: var(--soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.outright strong { color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.smallprint { margin-top: 56px; }
.smallprint summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.smallprint summary::-webkit-details-marker { display: none; }
.sp-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; transition: transform .2s; flex-shrink: 0; }
.smallprint[open] .sp-toggle { transform: rotate(45deg); }
.smallprint dl { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.smallprint dl div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.smallprint dl div:nth-child(3n) { border-right: 0; }
.smallprint dl div:nth-child(n+4) { border-bottom: 0; }
.smallprint dt { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.smallprint dd { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 860px) {
  .smallprint dl { grid-template-columns: 1fr; }
  .smallprint dl div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .smallprint dl div:last-child { border-bottom: 0 !important; }
}

/* About */
.about { display: grid; grid-template-columns: 0.75fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 24px; background: linear-gradient(160deg, #E8EDF7, #D7DFEE); display: grid; place-items: center; color: var(--muted); font-weight: 600; box-shadow: var(--shadow); }
.about-copy { display: grid; gap: 16px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.about-sign { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.about-sign b { display: block; }
.about-sign span:not(.task-avatar) { font-size: 14px; color: var(--muted); }
img.portrait { display: block; height: auto; object-position: 50% 30%; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }

/* FAQ */
.faq { margin: 48px auto 0; max-width: 820px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #C9D3EA; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--blue); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.answer { padding: 0 22px 20px; display: grid; gap: 10px; color: var(--muted); }

/* CTA */
.cta { padding-top: 0; }
.cta-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: var(--navy); color: var(--on-dark); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
}
.cta-box::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 89, 232, 0.55), transparent 65%); pointer-events: none; }
.cta-copy { position: relative; display: grid; gap: 16px; }
.cta-copy .h2 { color: #fff; }
.cta-copy .eyebrow { color: #8FA8FF; }
.cta-copy .lede { color: var(--on-dark-muted); }
.cta-copy .lede strong { color: #fff; }
.cta-alt { list-style: none; margin: 10px 0 0; padding: 20px 0 0; border-top: 1px solid var(--navy-line); display: grid; gap: 12px; color: var(--on-dark-muted); font-size: 15px; }
.cta-alt li { display: flex; gap: 12px; align-items: center; }
.cta-alt a { color: #fff; }
.cta-box :focus-visible { outline-color: #8FA8FF; }
.form-card { position: relative; background: #fff; color: var(--text); border-radius: 20px; padding: clamp(24px, 3.5vw, 36px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.form-card :focus-visible { outline-color: var(--blue); }
.form { display: grid; gap: 16px; }
.form-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.field { display: grid; gap: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #D3D9E4; border-radius: 10px; background: #fff; font: 500 16px var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566176' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 89, 232, 0.15); }
.field.has-error input { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); font-size: 14.5px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success { display: grid; gap: 12px; outline: none; }
.success-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
@media (max-width: 900px) { .cta-box { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-pair { grid-template-columns: 1fr; } .cta-box { border-radius: 20px; } }

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

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 26em; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.footer-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: var(--text); }
.footer-col a:hover { color: var(--blue); }
.footer-col span { color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Phones: a shorter page ---------- */

/* Swipe rows are phone-only; on larger screens their contents sit in the normal grid */
.bento-rest { display: contents; }
.swipe-hint { display: none; }

@media (max-width: 600px) {
  :root { --section: 56px; }
  .section-head { gap: 12px; }
  .cards-3, .bento, .timeline, .sla { margin-top: 28px; }
  .wont { margin-top: 36px; }

  /* Problem: tighter cards and a plain list for the usual fixes */
  .cards-3 { gap: 10px; }
  .card { padding: 16px 18px; gap: 4px; }
  .card-step { margin-bottom: 4px; }
  .callout { margin-top: 14px; padding: 18px; font-size: 16px; }
  .callout strong { font-size: 18px; }
  .compare { margin-top: 32px; gap: 14px; }
  .compare ul { gap: 10px; }
  .compare li { padding: 0; border: 0; border-radius: 0; }

  /* Support: compact rows with the icon beside the text */
  .sla { gap: 10px; }
  .sla article { grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; }
  .sla .tile-ic { grid-row: span 3; width: 40px; height: 40px; margin: 0; }
  .sla-num { font-size: 20px; }
  .sla .h3 { font-size: 16px; }
  .sla article p:last-child { font-size: 14.5px; }

  /* Swipeable rows: cards snap into place with the next one peeking in */
  .swipe-hint { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 18px 0 -6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .swipe-row {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 84%; scroll-snap-align: center; }

  .bento { gap: 0; }
  .bento-rest.swipe-row > .tile { flex-basis: 74%; padding: 22px 20px; }
  .plans.swipe-row { max-width: none; margin-top: 4px; align-items: stretch; }
  .plan { padding: 26px 20px; }
  .outright { margin-top: 18px; padding: 18px; }
  .smallprint { margin-top: 28px; }
}

/* ---------- Simple pages: privacy policy and 404 ---------- */

.page { padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.page-head { max-width: 760px; display: grid; gap: 12px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-date { font-size: 14px; color: var(--muted); }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 40px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.footer-col a[aria-current="page"] { color: var(--blue); }

.lost { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; justify-items: start; gap: 18px; padding-block: 48px; max-width: 760px; }
.lost .lede { max-width: 34em; }
.lost .btn-row { margin-top: 8px; }
.lost-help { font-size: 15px; color: var(--muted); }
.lost-help a { color: var(--blue); font-weight: 700; }
