/* ============================================================
   TOP CHOICE WEBPAGE DESIGN — Redesign design system (production)
   Vanilla CSS. No frameworks, no build step. Ported from the
   approved 2026-07-13 redesign draft. Same brand DNA (accent
   #E8400C · navy #1A2E44 · Space Grotesk + Inter) pushed toward
   a darker, more confident, "the site is the proof" direction.
   NOTE: redesign.css and main.css share class names — a page
   loads ONE of them, never both on the same page.
   ============================================================ */

/* ---------- Fonts (relative to /assets/css/) ---------- */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --accent: #E8400C;
  --accent-dark: #C93509;
  --accent-glow: #FF7A4D;
  --accent-soft: rgba(232, 64, 12, 0.08);
  --navy: #1A2E44;
  --ink: #0D1A2B;            /* deeper hero/footer navy */
  --ink-2: #12233A;
  --light: #F2F4F6;
  --paper: #F7F5F2;          /* warm alt background */
  --border: #D0D5DD;
  --border-soft: rgba(208, 213, 221, 0.6);
  --white: #FFFFFF;
  --body: #2D3748;
  --muted: #5A6B7E;
  --code-bg: #0B1523;
  --code-green: #7EE787;
  --code-blue: #79C0FF;
  --code-orange: #FFA657;
  --code-grey: #8B99AB;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  --fs-display: clamp(2.5rem, 4.6vw + 1rem, 4.35rem);
  --fs-h2: clamp(1.8rem, 2.4vw + 0.9rem, 2.75rem);
  --fs-h3: clamp(1.2rem, 0.6vw + 1rem, 1.375rem);
  --fs-lead: clamp(1.0625rem, 0.6vw + 0.9rem, 1.1875rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(13, 26, 43, 0.05), 0 10px 28px rgba(13, 26, 43, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(13, 26, 43, 0.06), 0 18px 46px rgba(13, 26, 43, 0.14);
  --shadow-btn: 0 4px 18px rgba(232, 64, 12, 0.32);
  --shadow-window: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 70px rgba(0, 0, 0, 0.45);
  --container: 1160px;
  --pad-x: 24px;
  --section-y: clamp(68px, 9vw, 128px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.6em; }
h1 { font-size: var(--fs-display); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1.2em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(232, 64, 12, 0.55); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(232, 64, 12, 0.18); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section--light { background: var(--light); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: rgba(255,255,255,0.78); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Left-aligned numbered section heads (Linear-style rhythm) */
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,0.6); }
.head-row { display: flex; align-items: baseline; gap: 18px; margin-bottom: 10px; }
.sec-num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; white-space: nowrap; }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 17px 32px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(232, 64, 12, 0.4); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--accent); box-shadow: 0 4px 18px rgba(13, 26, 43, 0.25); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(13, 26, 43, 0.3); }
.btn--lg { padding: 19px 38px; font-size: 1.0625rem; }
.btn--sm { padding: 12px 22px; font-size: 0.9375rem; }
.text-link { font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.text-link .arr { display: inline-block; transition: transform 0.18s ease; }
.text-link:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 26, 43, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { background: rgba(13, 26, 43, 0.92); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; }
.brand-text { font-family: var(--font-head); line-height: 1.1; }
.brand-text .brand-name { display: block; font-size: 1.0625rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.brand-text .brand-tag { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #FF9E73; }
.brand-lockup { display: block; height: 54px; width: auto; flex-shrink: 0; }
.brand-lockup--footer { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  font-family: var(--font-head); font-size: 0.9375rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.82); padding: 9px 13px; border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.btn):hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent-glow); }
.nav-links .btn { padding: 12px 22px; font-size: 0.9375rem; margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin: -10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO (Home) ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  background-image:
    radial-gradient(ellipse 1000px 520px at 85% -10%, rgba(232, 64, 12, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 480px at -5% 115%, rgba(64, 110, 168, 0.22), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 45% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 35%, #000 25%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: center;
  padding: clamp(64px, 8vw, 108px) 0 clamp(64px, 8vw, 100px);
}
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 64, 12, 0.13); border: 1px solid rgba(232, 64, 12, 0.45);
  color: var(--accent-glow); font-family: var(--font-head);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge .pin { width: 12px; height: 12px; flex-shrink: 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: transparent; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-glow) 90%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-lead); margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .tick { color: var(--accent-glow); font-weight: 700; }

/* --- Hero build demo: code window → browser window --- */
.build-demo { position: relative; min-width: 0; }
.demo-window {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-window);
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.demo-bar .dots i:nth-child(1) { background: #FF5F57; }
.demo-bar .dots i:nth-child(2) { background: #FEBC2E; }
.demo-bar .dots i:nth-child(3) { background: #28C840; }
.demo-bar .demo-title { font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.45); margin-left: 6px; }
.demo-url {
  flex: 1; margin-left: 8px; background: rgba(255,255,255,0.07);
  border-radius: 6px; padding: 4px 12px;
  font-family: var(--font-body); font-size: 0.6875rem; color: rgba(255,255,255,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-url .lock { color: var(--code-green); }

.code-window { background: var(--code-bg); }
.code-body {
  padding: 16px 18px; font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.9vw, 0.8125rem); line-height: 1.75;
  min-height: 172px; color: var(--code-grey); white-space: pre; overflow: hidden;
}
.code-body .tag { color: var(--code-blue); }
.code-body .attr { color: var(--code-orange); }
.code-body .txt { color: #E6EDF3; }
.code-body .caret {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom;
  background: var(--accent-glow); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.site-window { background: #fff; color: var(--body); margin-top: 18px; transform: translateX(clamp(10px, 2vw, 34px)); }
.mini-site { padding: 0; min-height: 200px; }
.mini-site .m-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); }
.mini-site .m-logo { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; color: var(--navy); }
.mini-site .m-logo i { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); display: inline-block; }
.mini-site .m-links { display: flex; gap: 12px; }
.mini-site .m-links i { width: 30px; height: 6px; border-radius: 3px; background: var(--border); display: block; }
.mini-site .m-hero { padding: 22px 18px 18px; background: linear-gradient(135deg, var(--navy), var(--ink-2)); }
.mini-site .m-headline { width: 68%; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.92); margin-bottom: 8px; }
.mini-site .m-subline { width: 46%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.35); margin-bottom: 14px; }
.mini-site .m-btn { width: 84px; height: 22px; border-radius: 6px; background: var(--accent); box-shadow: 0 3px 10px rgba(232,64,12,0.45); }
.mini-site .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 20px; }
.mini-site .m-card { border: 1px solid var(--border-soft); border-radius: 8px; padding: 10px; box-shadow: 0 4px 10px rgba(13,26,43,0.06); }
.mini-site .m-card i.ic { width: 18px; height: 18px; border-radius: 5px; background: var(--accent-soft); border: 1px solid rgba(232,64,12,0.35); display: block; margin-bottom: 8px; }
.mini-site .m-card i.l1 { display: block; width: 80%; height: 6px; border-radius: 3px; background: var(--border); margin-bottom: 5px; }
.mini-site .m-card i.l2 { display: block; width: 55%; height: 6px; border-radius: 3px; background: var(--border-soft); }
/* build-in animation states */
.mini-site .m-piece { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.45s ease, transform 0.45s ease; }
.mini-site .m-piece.on { opacity: 1; transform: none; }
.demo-replay {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  background: rgba(13,26,43,0.85); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
  padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.demo-replay.show { opacity: 1; pointer-events: auto; }
.demo-replay:hover { border-color: #fff; }

/* --- Mockup affordances (chunk 2): once the mini-site has assembled,
       its button-like pieces react to hover/press so they feel intentional —
       but they stay PURELY decorative: no navigation, no submit, no links.
       The .assembled class is added by redesign.js after the build-in
       finishes (and removed on replay) so these faster transitions never
       fight the 0.45s assemble animation. --- */
.mini-site.assembled .m-piece { transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; }
.mini-site.assembled .m-btn { cursor: pointer; }
.mini-site.assembled .m-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 16px rgba(232, 64, 12, 0.55); filter: brightness(1.07); }
.mini-site.assembled .m-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 6px rgba(232, 64, 12, 0.4); }
.mini-site.assembled .m-links i { cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; }
.mini-site.assembled .m-links i:hover { background: var(--muted); transform: translateY(-1px); }
.mini-site.assembled .m-links i:active { transform: translateY(0); }
.mini-site.assembled .m-card { cursor: pointer; }
.mini-site.assembled .m-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 26, 43, 0.14); border-color: var(--border); }
.mini-site.assembled .m-card:active { transform: translateY(0) scale(0.99); }

/* ---------- Ticker strip ---------- */
.ticker { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); overflow: hidden; }
.ticker-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 0; padding: 18px var(--pad-x); font-family: var(--font-head); font-size: 0.8125rem; }
.ticker-inner span { display: inline-flex; align-items: center; padding: 0 clamp(14px, 2.5vw, 28px); }
.ticker-inner span + span { border-left: 1px solid rgba(255,255,255,0.12); }
.ticker-inner b { color: #fff; font-weight: 600; margin-right: 7px; }
.ticker-inner .hl { color: var(--accent-glow); }

/* ---------- Process (numbered, with connector) ---------- */
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; position: relative; }
.pstep { position: relative; padding-top: 20px; }
.pstep::before {
  content: ""; position: absolute; top: 0; left: 0; right: -22px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(232,64,12,0.15) 100%);
}
.pstep:last-child::before { right: 0; }
.pstep .p-num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 10px; }
.pstep h3 { font-size: 1.125rem; margin-bottom: 8px; }
.pstep p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.section--dark .pstep p { color: rgba(255,255,255,0.6); }
.pstep .p-meta { display: inline-block; margin-top: 12px; font-family: var(--font-body); font-size: 0.6875rem; color: var(--muted); background: var(--light); border: 1px solid var(--border-soft); padding: 3px 10px; border-radius: 100px; }
.section--dark .pstep .p-meta { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.55); }

/* --- Automation pipeline chip strip (Make.com-style) --- */
.pipeline-card {
  margin-top: 56px; background: var(--ink); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); color: rgba(255,255,255,0.75);
  display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr); gap: 28px; align-items: center;
  border: 1px solid rgba(255,255,255,0.07);
}
.pipeline-card h3 { color: #fff; margin-bottom: 8px; }
.pipeline-card p { font-size: 0.9375rem; margin: 0; color: rgba(255,255,255,0.6); }
.pipe-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; row-gap: 16px; }
.pipe-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 9px 16px;
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 500; color: #fff;
  white-space: nowrap;
}
.pipe-chip .ic { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); flex-shrink: 0; }
.pipe-chip .ic svg { width: 12px; height: 12px; }
.pipe-chip--ghost .ic { background: rgba(255,255,255,0.14); }
.pipe-link { display: inline-flex; align-items: center; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.pipe-link .p-dots { display: inline-flex; gap: 4px; }
.pipe-link .p-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; animation: pipedot 1.6s ease-in-out infinite; }
.pipe-link .p-dots i:nth-child(2) { animation-delay: 0.2s; }
.pipe-link .p-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pipedot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento-card {
  position: relative; background: var(--white);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex; flex-direction: column; min-width: 0;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border); }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 0.9375rem; margin: 0 0 14px; }
.bento-card .text-link { margin-top: auto; }
.b-span3 { grid-column: span 3; }
.b-span2 { grid-column: span 2; }
.b-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.b-icon svg { width: 23px; height: 23px; }
.b-price { font-family: var(--font-body); font-size: 0.8125rem; color: var(--muted); margin: 0 0 14px; }
.b-price b { color: var(--navy); font-weight: 600; }
.badge-new {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-head); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 100px;
}
.badge-new--accent { background: var(--accent); }

/* ---------- Portfolio cards (browser-chrome + hover reveal) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
.site-card { min-width: 0; }
.site-frame {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(13,26,43,0.06), 0 22px 48px rgba(13,26,43,0.12);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-card:hover .site-frame { transform: translateY(-6px); box-shadow: 0 4px 10px rgba(13,26,43,0.08), 0 30px 64px rgba(13,26,43,0.18); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--light); border-bottom: 1px solid var(--border-soft); }
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.frame-bar .dots i:nth-child(1) { background: #FF5F57; }
.frame-bar .dots i:nth-child(2) { background: #FEBC2E; }
.frame-bar .dots i:nth-child(3) { background: #28C840; }
.frame-bar .f-url {
  flex: 1; margin-left: 6px; background: #fff; border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 3px 12px;
  font-family: var(--font-body); font-size: 0.6875rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-bar .f-url .lock { color: #1A9E52; }
.frame-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); container-type: size; }
.frame-shot img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1); }
.site-card:hover .frame-shot img, .site-card:focus-within .frame-shot img { transform: translateY(calc(-100% + 100cqh)); }
.frame-veil {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(13,26,43,0.82) 100%);
  opacity: 0; transition: opacity 0.3s ease; padding: 18px;
}
.site-card:hover .frame-veil, .site-card:focus-within .frame-veil { opacity: 1; }
.frame-veil .veil-cta { font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.work-body { padding: 22px 6px 0; }
.work-cat { font-family: var(--font-head); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 12px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.work-tags span {
  font-family: var(--font-body); font-size: 0.6875rem; color: var(--muted);
  background: var(--light); border: 1px solid var(--border-soft);
  padding: 4px 11px; border-radius: 100px;
}
.open-slot .site-frame { background: var(--ink); border-color: rgba(255,255,255,0.08); }
.open-slot .frame-bar { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.open-slot .frame-bar .f-url { background: rgba(255,255,255,0.07); border-color: transparent; color: rgba(255,255,255,0.5); }
.open-slot .frame-shot { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); }
.open-slot .open-mark { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: rgba(255,255,255,0.18); letter-spacing: -0.02em; text-align: center; line-height: 1.2; }

/* ---------- Pricing path (journey section) ---------- */
.price-path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.tier-list { display: grid; gap: 14px; }
.tier-row-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 20px 24px; box-shadow: var(--shadow-card); flex-wrap: wrap;
}
.tier-row-card .t-name { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.0625rem; }
.tier-row-card .t-desc { color: var(--muted); font-size: 0.875rem; flex: 1 1 220px; }
.tier-row-card .t-price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); white-space: nowrap; }
.tier-row-card .t-price .from { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }

/* mini estimate widget */
.estimate-card {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px); box-shadow: 0 16px 44px rgba(13, 26, 43, 0.3);
  border: 1px solid rgba(255,255,255,0.08); position: sticky; top: 96px;
}
.estimate-card h3 { color: #fff; margin-bottom: 4px; }
.estimate-card .est-sub { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-bottom: 20px; }
.est-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.est-chip { position: relative; }
.est-chip input { position: absolute; opacity: 0; pointer-events: none; }
.est-chip label {
  display: block; text-align: center; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: var(--radius-sm);
  padding: 12px 6px 10px; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.est-chip label:hover { border-color: rgba(255,255,255,0.5); }
.est-chip input:checked + label { border-color: var(--accent); background: rgba(232,64,12,0.14); box-shadow: 0 0 0 1px var(--accent); }
.est-chip input:focus-visible + label { outline: 3px solid rgba(232,64,12,0.55); outline-offset: 2px; }
.est-chip .c-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; }
.est-chip .c-pages { display: block; font-size: 0.6875rem; color: rgba(255,255,255,0.5); }
.est-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-top: 1px solid rgba(255,255,255,0.1); }
.est-toggle .tg-label { font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.est-toggle .tg-label small { display: block; color: rgba(255,255,255,0.45); font-size: 0.75rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: absolute; inset: 0; background: rgba(255,255,255,0.18); border-radius: 100px; transition: background-color 0.18s ease; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.18s ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(232,64,12,0.55); outline-offset: 2px; }
.est-total { padding: 16px 0 6px; border-top: 1px solid rgba(255,255,255,0.1); }
.est-total .label { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.est-total .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.est-total .amount .permo { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.55); }
.est-total .amount.bump { animation: bump 0.3s ease; }
@keyframes bump { 40% { transform: scale(1.04); } }
.est-note { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin: 12px 0 18px; }
.estimate-card .btn { width: 100%; }

/* ---------- Honesty / testimonial ---------- */
.honesty-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 46px 40px; background: var(--white);
}
.honesty-card .quote-mark { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--accent); opacity: 0.35; display: block; margin-bottom: 6px; }
.honesty-card p { font-size: 1.0625rem; color: var(--muted); font-style: italic; }
.honesty-card .attribution { font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; color: var(--navy); font-style: normal; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  background-image: radial-gradient(ellipse 700px 360px at 82% 120%, rgba(232,64,12,0.28), transparent 60%),
                    radial-gradient(ellipse 500px 300px at 8% -20%, rgba(64,110,168,0.25), transparent 60%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-lead); max-width: 580px; margin: 0 auto 34px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--ink);
  background-image: radial-gradient(ellipse 760px 400px at 82% -20%, rgba(232, 64, 12, 0.2), transparent 62%);
  color: #fff; padding: clamp(56px, 7vw, 92px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-lead); max-width: 640px; margin: 0; }
.page-hero .kicker { color: var(--accent-glow); }

/* ---------- Service area strip ---------- */
.area-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.area-strip .area-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 100px; padding: 7px 15px;
}
.area-strip .area-chip svg { width: 13px; height: 13px; color: var(--accent-glow); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; transition: transform 0.2s ease; color: var(--accent); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 1.1fr 1.1fr; gap: 48px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.68); font-size: 0.9375rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: 0.9375rem; max-width: 320px; margin-top: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; }
.footer-contact .fc-label { color: rgba(255, 255, 255, 0.4); font-size: 0.8125rem; min-width: 48px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .site-frame, .frame-shot img, .bento-card { transition: none; }
  .pipe-link .p-dots i { animation: none; opacity: 1; }
  .code-body .caret { animation: none; }
  .mini-site .m-piece { opacity: 1; transform: none; transition: none; }
  /* Mockup affordances: keep the pointer + brightness cue, drop the motion */
  .mini-site.assembled .m-piece { transition: none; }
  .mini-site.assembled .m-btn:hover, .mini-site.assembled .m-btn:active,
  .mini-site.assembled .m-links i:hover, .mini-site.assembled .m-links i:active,
  .mini-site.assembled .m-card:hover, .mini-site.assembled .m-card:active { transform: none; box-shadow: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy { max-width: 640px; }
  .site-window { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-span3, .b-span2 { grid-column: span 1; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .pstep:nth-child(2)::before { right: 0; }
  .pipeline-card { grid-template-columns: 1fr; }
  .price-path { grid-template-columns: 1fr; }
  .estimate-card { position: static; }
  .work-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    padding: 12px 20px 20px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 14px; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 768px) {
  .work-grid, .work-grid--3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .tier-row-card { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tier-row-card .t-price { font-size: 1.375rem; }
}
@media (max-width: 480px) {
  .process-flow { grid-template-columns: 1fr; }
  .pstep::before { right: 0; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .btn-row .btn { width: 100%; }
  .est-chips { grid-template-columns: 1fr; }
  .est-chip label { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; text-align: left; }
}

/* ============================================================
   MOVE 2 — Elevated service cards (Design pass, 2026-07-22)
   APPEND THIS WHOLE BLOCK TO THE END OF redesign.css.
   Purely additive: every rule keys off the .svc-card modifier
   (applied ALONGSIDE .bento-card in markup), so existing
   .bento-card usage anywhere stays pixel-identical until the
   Builder adopts the new classes. No other file changes.
   Accents stay inside the brand family — orange (accent),
   navy/steel, and the copper from the rich badge finish.
   All text/tint pairs verified AA (script in the design pack).
   Flagship = light card + copper frame (Variant B — Jeremy's
   pick, 2026-07-22; dark Variant A built, reviewed, dropped).
   ============================================================ */

/* --- Per-service accent tokens (default = brand orange) --- */
.svc-card {
  --svc: var(--accent);                 /* icon, rail, ghost mark */
  --svc-ink: var(--accent-dark);        /* price emphasis — AA on tint */
  --svc-soft: rgba(232, 64, 12, 0.09);  /* chip + icon-plate tint */
  --svc-line: rgba(232, 64, 12, 0.30);  /* chip + icon-plate border */
  overflow: hidden;                     /* clips rail + ghost cleanly */
  padding: 32px 30px 30px;
}
.svc--navy   { --svc: #2E4E77; --svc-ink: var(--navy); --svc-soft: rgba(26, 46, 68, 0.07);   --svc-line: rgba(26, 46, 68, 0.26); }
.svc--copper { --svc: #B26E35; --svc-ink: #8A5120;     --svc-soft: rgba(178, 110, 53, 0.10); --svc-line: rgba(178, 110, 53, 0.32); }

/* --- Accent rail across the top; brightens on hover/focus --- */
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--svc) 0%, transparent 78%);
  opacity: 0.55;
  transition: opacity 0.22s ease;
}
.svc-card:hover::before, .svc-card:focus-within::before { opacity: 1; }

/* --- Icon plate: 56px, tinted gradient, hairline, two-tone SVG --- */
.svc-card .b-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background-color: var(--white);
  background-image: linear-gradient(150deg, var(--svc-soft) 0%, rgba(255, 255, 255, 0) 92%);
  border: 1px solid var(--svc-line);
  color: var(--svc);
  box-shadow: 0 2px 6px rgba(13, 26, 43, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.22s ease;
}
.svc-card .b-icon svg { width: 28px; height: 28px; }
.svc-card:hover .b-icon { transform: translateY(-2px) rotate(-3deg) scale(1.05); }

/* --- Ghost watermark: oversized copy of the icon, barely-there --- */
.svc-card .svc-ghost {
  position: absolute; right: -22px; bottom: -26px;
  width: 148px; height: 148px;
  color: var(--svc); opacity: 0.06;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.svc-card:hover .svc-ghost { opacity: 0.09; transform: rotate(-5deg) translateY(-5px); }

/* --- Price line becomes a designed chip (same markup, .b-price) ---
       Font stays --font-body per the 2026-07-15 type decision
       (numbers=head, small labels/price=body). */
.svc-card .b-price {
  align-self: flex-start;
  display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px;
  background: var(--svc-soft);
  border: 1px solid var(--svc-line);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.55;
  color: var(--navy);
  margin: 0 0 18px;
}
.svc-card .b-price b { color: var(--svc-ink); font-weight: 700; }

/* --- FLAGSHIP (Web Design): light card + copper→orange frame.
       Echoes the copper-framed navy/orange lockup badge. --- */
.svc-card--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FDF8F3 100%) padding-box,
    linear-gradient(140deg, #D08A47 0%, rgba(178, 110, 53, 0.30) 45%, rgba(232, 64, 12, 0.75) 100%) border-box;
  box-shadow: 0 2px 6px rgba(13, 26, 43, 0.07), 0 16px 40px rgba(13, 26, 43, 0.12);
}
.svc-card--featured:hover { border-color: transparent; } /* keep base hover from painting over the frame */
.svc-card--featured::before { display: none; }           /* the frame replaces the rail */

/* --- Flagship tag --- */
.svc-flag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-head); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  color: #8A5120;
  background: rgba(178, 110, 53, 0.08);
  border: 1px solid rgba(178, 110, 53, 0.42);
}

/* --- Reduced motion: keep the color/opacity cues, drop the motion --- */
@media (prefers-reduced-motion: reduce) {
  .svc-card::before, .svc-card .b-icon, .svc-card .svc-ghost { transition: none; }
  .svc-card:hover .b-icon { transform: none; }
  .svc-card:hover .svc-ghost { transform: rotate(-8deg); }
}

/* --- Small screens: tighten padding, shrink the ghost --- */
@media (max-width: 480px) {
  .svc-card { padding: 28px 24px 26px; }
  .svc-card .svc-ghost { width: 120px; height: 120px; right: -20px; bottom: -22px; }
}
