/* AMS site styles. Bright, simple, animated. No external fonts (strict CSP). */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --ink: #0a2540;
  --text: #33475b;
  --muted: #5b6b7f;
  --line: #e3e8ef;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #10b981;
  --green-ink: #047857;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-lg: 0 2px 4px rgba(10, 37, 64, .05), 0 24px 60px rgba(10, 37, 64, .14);
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--violet) 45%, var(--pink) 75%, var(--amber) 100%);
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227, 232, 239, .8);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-size: 1rem; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav a.btn { color: #fff; margin-left: 6px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; font-family: inherit;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 37, 64, .24); background: #12345a; }
.btn.brand { background: var(--brand); box-shadow: 0 8px 22px rgba(37, 99, 235, .32); }
.btn.brand:hover { background: var(--brand-dark); }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); }
.arrow { transition: transform .2s ease; display: inline-block; }
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* Breadcrumbs */
.crumbs { font-size: .88rem; }
.crumbs ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a3b0c2; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(37, 99, 235, .22), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(236, 72, 153, .18), transparent 70%),
    radial-gradient(40% 50% at 60% 70%, rgba(6, 182, 212, .20), transparent 70%),
    radial-gradient(30% 40% at 90% 60%, rgba(245, 158, 11, .16), transparent 70%);
  filter: blur(10px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text); max-width: 54ch; margin-bottom: 26px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.pill b { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .75rem; }
.hero.simple { padding: 54px 0 34px; }
.hero.simple h1 { max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.3rem); }

/* Hero demo: search results that reorder + an AI answer */
.demo { position: relative; min-height: 430px; }
.window {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.window-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8ef; display: block; }
.searchbox { margin: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.searchbox .typed { border-right: 2px solid var(--brand); white-space: nowrap; overflow: hidden; width: 0; animation: type 9s steps(22) infinite; }
@keyframes type { 0% { width: 0; } 18%, 100% { width: 15.5ch; } }
.results { position: relative; height: 236px; margin: 0 14px 14px; }
.result {
  position: absolute; left: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .9rem;
}
.result .dot { width: 30px; height: 30px; border-radius: 9px; background: #eef2f7; flex: none; }
.result .lines { flex: 1; }
.result .lines b { display: block; color: var(--ink); font-size: .88rem; }
.result .lines span { color: var(--muted); font-size: .78rem; }
.result .stars { color: var(--amber); font-size: .8rem; letter-spacing: 1px; }
.r1 { animation: r1 9s ease-in-out infinite; }
.r2 { animation: r2 9s ease-in-out infinite; }
.r3 { animation: r3 9s ease-in-out infinite; }
.you { animation: you 9s ease-in-out infinite; border-color: rgba(37, 99, 235, .45); box-shadow: 0 6px 20px rgba(37, 99, 235, .18); }
.you .dot { background: var(--grad); }
@keyframes r1 { 0%, 30% { top: 0; } 45%, 100% { top: 60px; } }
@keyframes r2 { 0%, 30% { top: 60px; } 45%, 100% { top: 120px; } }
@keyframes r3 { 0%, 30% { top: 120px; } 45%, 100% { top: 180px; } }
@keyframes you { 0%, 30% { top: 180px; } 45%, 100% { top: 0; } }
.ai-card {
  position: absolute; right: -14px; bottom: -6px; width: 72%; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: pop 9s ease-in-out infinite; font-size: .88rem;
}
.ai-card .tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.ai-card p { margin: 6px 0 0; color: var(--ink); }
.ai-card mark { background: linear-gradient(120deg, rgba(37, 99, 235, .16), rgba(236, 72, 153, .16)); color: var(--ink); font-weight: 700; padding: 0 4px; border-radius: 4px; }
@keyframes pop { 0%, 50% { opacity: 0; transform: translateY(14px) scale(.98); } 58%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.demo-label { position: absolute; left: 0; bottom: -30px; font-size: .78rem; color: var(--muted); }

/* Logo strip of trades */
.trades { padding: 20px 0 8px; }
.trades ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-weight: 700; }
.trades li { white-space: nowrap; }

/* Sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; display: block; }
.sub { color: var(--text); font-size: 1.12rem; max-width: 62ch; margin-bottom: 36px; }
.fine { color: var(--muted); font-size: .88rem; }
.gap { margin-top: 22px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { margin: 0; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  color: #fff; font-weight: 800; font-size: 1rem; background: var(--brand);
}
.icon.c2 { background: var(--violet); } .icon.c3 { background: var(--pink); } .icon.c4 { background: var(--amber); } .icon.c5 { background: var(--cyan); } .icon.c6 { background: var(--green); }

/* Plain words dictionary */
.dict { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.term b { color: var(--ink); display: block; font-size: 1.05rem; }
.term i { font-style: normal; color: var(--brand); font-weight: 700; font-size: .85rem; display: block; margin-bottom: 6px; }
.term p { margin: 0; font-size: .97rem; }

/* Process timeline */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 3px; background: var(--line); border-radius: 3px; }
.process::after { content: ""; position: absolute; top: 22px; left: 6%; height: 3px; width: 0; background: var(--grad); border-radius: 3px; transition: width 1.6s ease .2s; }
.process.is-in::after { width: 88%; }
.step { position: relative; text-align: left; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink);
  background: #fff; border: 3px solid var(--line); margin-bottom: 14px; position: relative; z-index: 1; transition: border-color .4s ease, background .4s ease, color .4s ease;
}
.process.is-in .step .n { border-color: var(--brand); background: var(--brand); color: #fff; }
.process.is-in .step:nth-child(2) .n { transition-delay: .5s; background: var(--violet); border-color: var(--violet); }
.process.is-in .step:nth-child(3) .n { transition-delay: 1s; background: var(--pink); border-color: var(--pink); }
.process.is-in .step:nth-child(4) .n { transition-delay: 1.5s; background: var(--amber); border-color: var(--amber); }
.step .when { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process::before, .process::after { left: 22px; right: auto; top: 0; width: 3px; height: 100%; }
  .process::after { height: 0; transition: height 1.6s ease .2s; }
  .process.is-in::after { width: 3px; height: 100%; }
  .step { padding-left: 64px; }
  .step .n { position: absolute; left: 0; top: 0; }
}

/* Stat counters */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat b.up { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 4px 10px;
}

/* Example cards */
.examples { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ex-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .25s ease, box-shadow .25s ease; }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.ex-top { height: 120px; position: relative; overflow: hidden; }
.ex-top.t1 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.ex-top.t2 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.ex-top.t3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.ex-top.t4 { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.ex-top .big { position: absolute; left: 18px; bottom: 12px; color: #fff; font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; }
.ex-top .big small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: 0; opacity: .9; }
.ex-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex-body h3 { margin: 0; }
.ex-body p { margin: 0; font-size: .96rem; }
.ex-body .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--brand); }

/* Example detail: tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); background: none; border: 0; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.panel { animation: fade .45s ease; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .panel-title { position: absolute; left: -9999px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.side { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: #fff; }
.side.before { background: #fbfcfe; }
.side.after { border-color: rgba(37, 99, 235, .35); box-shadow: 0 10px 30px rgba(37, 99, 235, .12); }
.side h3 { display: flex; align-items: center; gap: 8px; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--line); }
.side li:first-child { border-top: 0; }
.side.before li::before { content: "\2715"; position: absolute; left: 2px; color: #ef4444; font-weight: 800; }
.side.after li::before { content: "\2713"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline > li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.timeline .when { font-weight: 800; color: var(--brand); }
.timeline ul { margin: 6px 0 0; padding-left: 18px; }
.timeline li li { margin-bottom: 4px; }
@media (max-width: 640px) { .timeline > li { grid-template-columns: 1fr; gap: 6px; } }

/* Bar chart of map position, months 0 to 6 */
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar span { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: var(--grad); height: 0; transition: height 1.1s cubic-bezier(.2, .8, .2, 1); }
.bar em { font-style: normal; font-size: .78rem; color: var(--muted); }
.bar b { font-size: .85rem; color: var(--ink); }
.chart.is-in .bar span { height: var(--h); }
.chart.is-in .bar:nth-child(2) span { transition-delay: .08s; } .chart.is-in .bar:nth-child(3) span { transition-delay: .16s; }
.chart.is-in .bar:nth-child(4) span { transition-delay: .24s; } .chart.is-in .bar:nth-child(5) span { transition-delay: .32s; }
.chart.is-in .bar:nth-child(6) span { transition-delay: .4s; } .chart.is-in .bar:nth-child(7) span { transition-delay: .48s; }

/* Callout and disclaimer */
.callout { border-radius: var(--radius); padding: 18px 20px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .95rem; }
.callout b { color: #78350f; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { position: relative; border: 0; }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 2px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .tag { align-self: flex-start; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.plan h2 { font-size: 1.4rem; margin-bottom: 6px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.founding { color: var(--green-ink); font-weight: 700; margin: 6px 0 14px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan ul { margin-bottom: 20px; }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 9px; }
ul.checks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #fff; background: var(--green); }
ul.plain { padding-left: 20px; margin: 0; }
ul.plain li { margin-bottom: 8px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .2s ease; }
details[open] { box-shadow: var(--shadow); }
summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; }

/* Form */
form.audit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); max-width: 640px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 10px; font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #c9d6e6; text-align: center; padding: 84px 0; }
.cta::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, rgba(37, 99, 235, .35), rgba(124, 58, 237, .3), rgba(236, 72, 153, .3), rgba(245, 158, 11, .25), rgba(37, 99, 235, .35));
  filter: blur(80px); animation: spin 24s linear infinite; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: .92rem; }
.site-footer .cols { display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer b { color: var(--ink); display: block; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 4px 0; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 30px; font-size: 1.35rem; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .ai-card { right: 0; width: 86%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 40px 0 40px; }
  .demo { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .r1 { top: 60px; } .r2 { top: 120px; } .r3 { top: 180px; } .you { top: 0; }
  .ai-card { opacity: 1; }
  .searchbox .typed { width: 15.5ch; border: 0; }
  .process::after { width: 88%; }
  .bar span { height: var(--h); }
}

/* bar heights (generated) */
.h5 { --h: 5%; }
.h10 { --h: 10%; }
.h15 { --h: 15%; }
.h20 { --h: 20%; }
.h25 { --h: 25%; }
.h30 { --h: 30%; }
.h35 { --h: 35%; }
.h40 { --h: 40%; }
.h45 { --h: 45%; }
.h50 { --h: 50%; }
.h55 { --h: 55%; }
.h60 { --h: 60%; }
.h65 { --h: 65%; }
.h70 { --h: 70%; }
.h75 { --h: 75%; }
.h80 { --h: 80%; }
.h85 { --h: 85%; }
.h90 { --h: 90%; }
.h95 { --h: 95%; }
.h100 { --h: 100%; }

/* Free audit page */
.audit-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 44px; align-items: start; }
form.audit { position: relative; overflow: hidden; max-width: none; padding: 36px 32px 30px; }
form.audit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--grad); }
.audit-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.audit-head p { margin: 0 0 22px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.audit input[type="text"], form.audit input[type="tel"], form.audit input[type="email"], form.audit textarea {
  background: var(--bg-soft); padding: 14px 16px; border-radius: 12px; border-color: var(--line);
}
form.audit input:hover, form.audit textarea:hover { border-color: #b8c4d4; }
form.audit input:focus, form.audit textarea:focus { background: #fff; border-color: var(--brand); }
form.audit .btn { width: 100%; justify-content: center; text-align: center; padding: 16px 20px; font-size: 1.05rem; margin-top: 6px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--violet) 100%); }
form.audit .btn:hover { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--violet) 100%); }
.audit-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 16px 0 0; }
.audit-trust li { font-size: .85rem; font-weight: 700; color: var(--green-ink); background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 6px 12px; }
.audit-trust li::before { content: "\2713"; margin-right: 6px; }
.audit-side { position: sticky; top: 104px; }
.audit-side h2 { font-size: 1.6rem; margin-bottom: 22px; }
.next-steps { list-style: none; margin: 0 0 6px; padding: 0; }
.next-steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding-bottom: 26px; }
.next-steps li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line); border-radius: 3px; }
.next-steps .num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.next-steps li:nth-child(2) .num { background: var(--violet); box-shadow: 0 6px 16px rgba(124, 58, 237, .28); }
.next-steps li:nth-child(3) .num { background: var(--pink); box-shadow: 0 6px 16px rgba(236, 72, 153, .28); }
.next-steps b { display: block; color: var(--ink); font-size: 1.08rem; margin-top: 9px; }
.next-steps p { margin: 4px 0 0; }
.talk-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.talk-card b { color: var(--ink); }
.talk-card p { margin: 4px 0 0; }
@media (max-width: 900px) {
  .audit-layout { grid-template-columns: 1fr; gap: 34px; }
  .audit-side { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  form.audit { padding: 30px 20px 24px; }
}

/* New client form (/start) */
.intake { max-width: 820px; }
.intake fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.intake legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.intake legend .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; color: #fff; background: var(--brand); }
.intake fieldset:nth-of-type(2) legend .num { background: var(--violet); }
.intake fieldset:nth-of-type(3) legend .num { background: var(--pink); }
.intake fieldset:nth-of-type(4) legend .num { background: var(--amber); }
.intake fieldset:nth-of-type(5) legend .num { background: var(--green); }
.intake fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 26px; }
.req { font-weight: 600; font-size: .78rem; color: #b42318; margin-left: 4px; }
.intake select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--bg-soft); }
.intake select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); background: #fff; }
.intake textarea.tall { min-height: 140px; }
.intake .needs { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }
.tick { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 16px; cursor: pointer; }
.tick input { width: 20px; height: 20px; accent-color: var(--brand); }
.field.pad { display: flex; align-items: flex-end; }
.intake-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg); }
.intake-done[hidden], form.audit[hidden] { display: none; }
.intake-done .next-steps { margin-top: 24px; }

/* Sample sites page */
.sample-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: inherit; text-decoration: none; }
.sample-card:hover { text-decoration: none; }
.sample-card p { flex: 1; }
.sample-shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
