/* ==========================================================================
   BetterRank – minimal, graphic-first layout
   Edit the tokens in :root to re-theme the whole site.
   ========================================================================== */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lexend-latin-600-normal.woff2") format("woff2"); }

:root {
  --brand-1: #08708a;
  --brand-gradient: linear-gradient(135deg, #08708a 0%, #065a70 100%);
  --brand: #08708a;
  --brand-dark: #065a70;
  --brand-light: #19b5d2;
  --brand-soft: #e7f4f7;
  --navy: #0b1f33;
  --muted: #5b6e80;
  --line: #e3eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f9fb;
  --good: #0f9d6b;

  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 2px 8px rgba(11,31,51,.04);
  --shadow-md: 0 10px 30px rgba(11,31,51,.08);
  --shadow-lg: 0 24px 60px rgba(8,112,138,.2);

  --font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1080px;
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--bg); line-height: 1.6; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
:focus-visible { outline: 3px solid rgba(8,112,138,.4); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(680px, 100% - 40px); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font: 500 .95rem/1 var(--font); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: .88rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 8px 22px rgba(8,112,138,.28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(8,112,138,.38); }
.btn-ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 28px rgba(0,0,0,.18); font-size: 1.05rem; padding: 18px 36px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 400; letter-spacing: -.02em; }
.brand strong { font-weight: 600; color: var(--brand); }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }

/* ---------- hero ---------- */
h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero graphic */



/* ---------- platforms strip ---------- */
.platforms { border-block: 1px solid var(--line); background: #fff; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; padding: 26px 0; }
.logo-row li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s, transform .25s; }
.logo-row li:hover { filter: none; opacity: 1; transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -.03em; }
.head h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin: 16px auto 0; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.sub { margin-top: 14px; color: var(--muted); }

/* services */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.ico { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center; background: var(--brand-soft); transition: background .25s; }
.ico svg { width: 32px; height: 32px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.tile:hover .ico { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.tile:hover .ico svg { stroke: #fff; }
.tile h3 { font-size: 1.25rem; }
.tile p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* process */
.flow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.flow-step { display: grid; justify-items: center; gap: 16px; }
.flow-ico { position: relative; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-md); }
.flow-ico svg { width: 44px; height: 44px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-ico em { position: absolute; top: -2px; right: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-style: normal; font-weight: 500; font-size: .9rem; border: 3px solid var(--bg-alt); }
.flow-step h3 { font-size: 1.3rem; }
.flow-line { flex: 1; max-width: 150px; margin-bottom: 40px; }
.flow-line svg { width: 100%; height: 12px; overflow: visible; }
.flow-line path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-line path:first-child { stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -11; } }

/* results */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 22px 24px 26px; display: grid; gap: 6px; }
.case-body h3 { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.big { font-size: 3.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; background: linear-gradient(120deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 46px 1fr 48px; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.bar .val { text-align: right; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.track { height: 12px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #c3d1db; transform-origin: left; }
.bar.after .track i { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.js .case.reveal .track i { transform: scaleX(0); }
.js .case.visible .track i { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .25s; }
.pos { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.pos span { margin-right: auto; }
.pos b { font-weight: 500; font-size: 1rem; color: var(--navy); }
.pos b.good { color: var(--good); }
.pos svg { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; gap: 22px; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.2rem; color: var(--muted); font-weight: 400; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: -12px; }
.price b { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: .9rem; }
.check { display: grid; gap: 12px; flex: 1; }
.check li { position: relative; padding-left: 30px; font-size: .95rem; }
.check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%2308708a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { width: 100%; }
.plan.featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand), var(--brand-light)) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan.featured:hover { transform: translateY(-16px); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 6px 16px; border-radius: 999px; }
.fine { text-align: center; margin-top: 34px; font-size: .85rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%2308708a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* cta */
.cta { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 120px) 0; text-align: center; color: #fff; background: linear-gradient(135deg, #08708a, #054a5c); }
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 34px; color: #fff; }
.cta-inner { position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); animation: float 9s ease-in-out infinite; }
.orb.o1 { width: 340px; height: 340px; left: -90px; top: -110px; }
.orb.o2 { width: 440px; height: 440px; right: -140px; bottom: -190px; animation-delay: -4s; }
.contact-links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.88); font-size: .98rem; transition: color .2s; }
.contact-links a:hover { color: #fff; }
.contact-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 26px 0; font-size: .88rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand.light { color: #fff; font-size: 1.1rem; }
.brand.light strong { color: #7fd6e8; }

/* ---------- scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .tiles .reveal:nth-child(2), .js .cases .reveal:nth-child(2), .js .plans .reveal:nth-child(2) { transition-delay: .08s; }
.js .tiles .reveal:nth-child(3), .js .cases .reveal:nth-child(3), .js .plans .reveal:nth-child(3) { transition-delay: .16s; }
.js .tiles .reveal:nth-child(5) { transition-delay: .08s; }
.js .tiles .reveal:nth-child(6) { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cases, .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-6px); }
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .tiles { gap: 12px; }
  .tile { padding: 24px 14px; }
  .ico { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 14px; }
  .ico svg { width: 28px; height: 28px; }
  .tile h3 { font-size: 1.1rem; }
  .tile p { font-size: .85rem; }
  .flow-ico { width: 84px; height: 84px; }
  .flow-ico svg { width: 34px; height: 34px; }
  .flow-line { margin-bottom: 36px; }
  .footer-inner { flex-direction: column; }
  .btn-white { padding: 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .case.reveal .track i { transform: none; }
}

/* ==========================================================================
   v2 – bolder graphics + a little more text
   ========================================================================== */

/* hero extras */

/* platforms */
.plat-title { text-align: center; padding-top: 22px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.logo-row { padding: 16px 0 24px; }
.logo-row li { filter: none; opacity: 1; }

/* section subtitle */
.sub { max-width: 34em; margin-inline: auto; }
.head h2 .grad { display: inline; }

/* SEO vs AEO diagram */

/* services: coloured icons by default */
.ico { width: 78px; height: 78px; border-radius: 24px; background: var(--g, var(--brand)); box-shadow: 0 12px 24px -8px var(--gs, rgba(8,112,138,.5)); transform: rotate(-4deg); transition: transform .3s; }
.ico svg { width: 36px; height: 36px; stroke: #fff; stroke-width: 1.9; }
.tile:hover .ico { background: var(--g); transform: rotate(4deg) scale(1.08); }
.tile:hover .ico svg { stroke: #fff; }
.g1 { --g: linear-gradient(135deg, #08708a, #19b5d2); --gs: rgba(8,112,138,.5); }
.g2 { --g: linear-gradient(135deg, #3b6fd8, #6fa1ff); --gs: rgba(59,111,216,.45); }
.g3 { --g: linear-gradient(135deg, #7a4fd6, #a98bf5); --gs: rgba(122,79,214,.45); }
.g4 { --g: linear-gradient(135deg, #0f9d6b, #3fd1a0); --gs: rgba(15,157,107,.45); }
.g5 { --g: linear-gradient(135deg, #e0782a, #f7b267); --gs: rgba(224,120,42,.45); }
.g6 { --g: linear-gradient(135deg, #d6457a, #f58aab); --gs: rgba(214,69,122,.45); }
.tile { padding: 34px 26px 30px; }
.tile p { margin-top: 8px; line-height: 1.55; }

/* process illustrations */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { text-align: center; padding: 0 8px; }
.step-art { position: relative; margin: 0 auto 22px; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #eaf7fa, #f7fcfd); border: 1px solid #d6ebf0; border-radius: 28px; display: grid; place-items: center; padding: 20px; }
.step-art .il { width: 100%; height: 100%; overflow: visible; }
.step-n { position: absolute; top: -14px; left: -10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 600; font-size: 1.1rem; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; max-width: 22em; margin-inline: auto; }
.il-f { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.il-bar { fill: var(--brand); }
.il-b1 { fill: #7fd0e2; }
.il-b2 { fill: var(--brand); }
.il-lens { fill: rgba(255,255,255,.75); stroke: var(--brand); stroke-width: 5; }
.il-handle { stroke: var(--brand); stroke-width: 7; stroke-linecap: round; fill: none; }
.il-plus { stroke: var(--brand); stroke-width: 3; stroke-linecap: round; fill: none; }
.il-rail { stroke: #cfe6ec; stroke-width: 8; stroke-linecap: round; fill: none; }
.il-fill { stroke: #7fd0e2; stroke-width: 8; stroke-linecap: round; fill: none; }
.il-knob { fill: #fff; stroke: var(--brand); stroke-width: 4; }
.il-spark { fill: #f2a65a; animation: pop 3s ease-in-out infinite; transform-origin: 138px 20px; }
.il-trend { fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.js .step.reveal .il-trend { stroke-dashoffset: 200; }
.js .step.visible .il-trend { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease .4s; }
.js .step.reveal .il-b1, .js .step.reveal .il-b2 { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.js .step.visible .il-b1, .js .step.visible .il-b2 { transform: scaleY(1); transition: transform .8s cubic-bezier(.2,.8,.2,1) .2s; }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 8px 12px; }
.why-ico { position: relative; width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-md); }
.why-ico::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(8,112,138,.35); animation: spin2 30s linear infinite; }
.why-ico svg { width: 46px; height: 46px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.why-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); }

/* results */
.case-tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--brand-dark); font-size: .74rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.case-img { position: relative; }
.big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big .count { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.big small { font-size: .9rem; font-weight: 300; letter-spacing: 0; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.track { height: 14px; }
.rank { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rank-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.rank-top b { font-weight: 500; color: var(--navy); font-size: .95rem; }
.rank-top em { font-style: normal; color: var(--muted); padding: 0 2px; }
.rank-top strong { font-weight: 600; color: var(--good); }
.rank-track { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); margin: 0 8px; }
.rank-track::after { content: "#1"; position: absolute; right: -8px; top: 14px; font-size: .68rem; color: var(--muted); }
.rank-track::before { content: "lower"; position: absolute; left: -8px; top: 14px; font-size: .68rem; color: var(--muted); }
.rank-track u { position: absolute; top: 1px; height: 4px; left: var(--a); width: calc(var(--b) - var(--a)); background: linear-gradient(90deg, #c3d1db, var(--good)); border-radius: 4px; text-decoration: none; transform-origin: left; }
.rank-track i { position: absolute; top: 50%; left: var(--x); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11,31,51,.25); }
.rank-track i.from { background: #aebdca; }
.rank-track i.to { background: var(--good); }
.js .case.reveal .rank-track u { transform: scaleX(0); }
.js .case.reveal .rank-track i.to { left: var(--a); }
.js .case.visible .rank-track u { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.2,.8,.2,1) .5s; }
.js .case.visible .rank-track i.to { left: var(--x); transition: left 1.2s cubic-bezier(.2,.8,.2,1) .5s; }
.js .case.reveal .rank-track i.to { transition: none; }
.imp { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--brand-dark); background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; justify-self: start; }
.imp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* pricing */
.plan-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); }
.plan-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.featured .plan-ico { background: linear-gradient(135deg, var(--brand), var(--brand-light)); box-shadow: 0 10px 22px -6px rgba(8,112,138,.5); }
.featured .plan-ico svg { stroke: #fff; }
.plan { gap: 16px; }
.plan h3 { color: var(--navy); font-size: 1.35rem; font-weight: 500; margin-top: 2px; }
.plan .desc { margin-top: -10px; color: var(--muted); font-size: .92rem; }
.price { margin-top: 0; }

/* cta */
.cta-sub { max-width: 30em; margin: -12px auto 32px; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-spark { position: absolute; fill: rgba(255,255,255,.45); animation: pop 4s ease-in-out infinite; }
.cta-spark.s1 { width: 44px; left: 12%; top: 22%; }
.cta-spark.s2 { width: 28px; right: 14%; top: 18%; animation-delay: -1.5s; }
.cta-spark.s3 { width: 34px; right: 22%; bottom: 20%; animation-delay: -3s; }

@media (max-width: 900px) {
  .steps, .why { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 40px; }
}
@media (max-width: 560px) {
  .ico { width: 64px; height: 64px; border-radius: 20px; }
  .ico svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .step.reveal .il-trend, .js .step.reveal .il-b1, .js .step.reveal .il-b2, .js .case.reveal .rank-track u { transform: none; stroke-dashoffset: 0; }
}
.check { align-content: start; }


/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.review { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.review::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,210,.16), transparent 70%); }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review.featured { background: linear-gradient(160deg, #08708a, #054a5c); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.review.featured:hover { transform: translateY(-16px); }
.review .q { width: 46px; height: 35px; }
.review.featured .q path { fill: rgba(255,255,255,.9); }
.stars { display: flex; gap: 0px; }
.stars svg { width: 22px; height: 22px; fill: #f5b301; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1.05rem; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.review.featured figcaption { border-top-color: rgba(255,255,255,.25); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.review.featured .avatar { background: #fff; color: var(--brand-dark); }
.who { display: grid; line-height: 1.35; }
.who b { font-weight: 500; }
.who small { color: var(--muted); font-size: .82rem; }
.review.featured .who small { color: rgba(255,255,255,.75); }
.js .reviews .reveal:nth-child(2) { transition-delay: .08s; }
.js .reviews .reveal:nth-child(3) { transition-delay: .16s; }
@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .review.featured { transform: none; }
  .review.featured:hover { transform: translateY(-6px); }
}

/* ==========================================================================
   v3 – motion
   ========================================================================== */

/* scroll progress bar */
.progress { position: fixed; z-index: 300; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateX(-24px) scale(.96); } }
@keyframes skIn { from { opacity: 0; transform: scaleX(.2); } }
@keyframes typing { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drawLine { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes bgmove { to { background-position: 20px 0; } }
@keyframes marq { to { transform: translateX(-100%); } }
@keyframes ring { 0% { box-shadow: 0 8px 22px rgba(8,112,138,.28), 0 0 0 0 rgba(25,181,210,.55); } 70%, 100% { box-shadow: 0 8px 22px rgba(8,112,138,.28), 0 0 0 16px rgba(25,181,210,0); } }
@keyframes starPop { 0% { opacity: 0; transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.35) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes tickIn { from { opacity: 0; transform: translateX(-14px); } }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg); } 25% { transform: rotate(-16deg) scale(1.1); } 55% { transform: rotate(8deg) scale(1.1); } 80% { transform: rotate(-8deg); } }
@keyframes glow { 0%,100% { box-shadow: 0 24px 60px rgba(8,112,138,.2); } 50% { box-shadow: 0 24px 70px rgba(25,181,210,.42); } }
@keyframes shine { to { transform: translateX(260%) skewX(-20deg); } }
@keyframes gradmove { to { background-position: 100% 100%; } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes sway { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-14px,-10px); } }
@keyframes knob { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes ping { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---- hero entrance (pure CSS, runs on load) ---- */
.grad { background-size: 200% 100%; animation: gradmove 6s ease-in-out infinite alternate; background-image: linear-gradient(120deg, var(--brand), var(--brand-light), var(--brand)); }
@keyframes gradmove { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* AI card plays out like a real answer */

/* blobs follow scroll a little */

/* ---- logo marquee ---- */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .logo-row { flex: none; min-width: 100%; flex-wrap: nowrap; justify-content: space-around; gap: 48px; padding: 16px 24px 24px; animation: marq 26s linear infinite; }
.marquee:hover .logo-row { animation-play-state: paused; }
.marquee .logo-row li { white-space: nowrap; }
.logo-row li img { transition: transform .3s; }
.logo-row li:hover img { transform: scale(1.2) rotate(-6deg); }

/* ---- scroll reveals: richer variants ---- */
.js .head.reveal h2::after { width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1) .35s; }
.js .head.visible h2::after { width: 44px; }
.js .tile.reveal { transform: translateY(30px) scale(.92); }
.js .tile.visible .ico { animation: wiggle 1s ease .35s; }
.js .step.reveal { transform: translateY(40px); }
.js .why-item.reveal { transform: translateY(30px) scale(.9); }
.js .tiles .reveal:nth-child(4) { transition-delay: .24s; }
.js .tiles .reveal:nth-child(5) { transition-delay: .32s; }
.js .tiles .reveal:nth-child(6) { transition-delay: .4s; }
.js .steps .reveal:nth-child(2) { transition-delay: .15s; }
.js .steps .reveal:nth-child(3) { transition-delay: .3s; }
.js .why .reveal:nth-child(2) { transition-delay: .12s; }
.js .why .reveal:nth-child(3) { transition-delay: .24s; }
.js .faq details { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, border-color .2s, box-shadow .2s; }
.js .faq.visible details { opacity: 1; transform: none; }
.js .faq.visible details:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.js .faq.visible details:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.js .faq.visible details:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.js .faq.visible details:nth-child(5) { transition-delay: .32s, .32s, 0s, 0s; }

/* process: animated connector + living illustrations */
.steps::before { content: ""; position: absolute; z-index: 0; left: 20%; right: 20%; top: 100px; height: 3px; border-radius: 3px; opacity: .45; background: repeating-linear-gradient(90deg, var(--brand) 0 10px, transparent 10px 20px); animation: bgmove 1s linear infinite; }
.step-art { z-index: 1; transition: transform .3s, box-shadow .3s; }
.step:hover .step-art { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
.mag { animation: sway 3.2s ease-in-out infinite; }
.il-knob { transform-box: fill-box; transform-origin: center; animation: knob 2.4s ease-in-out infinite; }
.il-knob:nth-of-type(2) { animation-delay: -.8s; }
.il-knob:nth-of-type(3) { animation-delay: -1.6s; }

/* reviews */
.js .review.visible .stars svg { animation: starPop .55s cubic-bezier(.2,.8,.2,1) backwards; }
.js .review.visible .stars svg:nth-child(1) { animation-delay: .35s; }
.js .review.visible .stars svg:nth-child(2) { animation-delay: .45s; }
.js .review.visible .stars svg:nth-child(3) { animation-delay: .55s; }
.js .review.visible .stars svg:nth-child(4) { animation-delay: .65s; }
.js .review.visible .stars svg:nth-child(5) { animation-delay: .75s; }
.review .q { transition: transform .4s; }
.review:hover .q { transform: scale(1.15) rotate(-6deg); }

/* pricing */
.plan.featured { animation: glow 3.6s ease-in-out infinite; }
.ribbon { overflow: hidden; }
.ribbon::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-120%) skewX(-20deg); animation: shine 3.2s ease-in-out 1s infinite; }
.js .plan.visible .check li { animation: tickIn .5s cubic-bezier(.2,.8,.2,1) backwards; }
.js .plan.visible .check li:nth-child(1) { animation-delay: .3s; }
.js .plan.visible .check li:nth-child(2) { animation-delay: .4s; }
.js .plan.visible .check li:nth-child(3) { animation-delay: .5s; }
.js .plan.visible .check li:nth-child(4) { animation-delay: .6s; }
.js .plan.visible .check li:nth-child(5) { animation-delay: .7s; }
.plan-ico { transition: transform .3s; }
.plan:hover .plan-ico { transform: rotate(-10deg) scale(1.12); }

/* why */
.js .why-item.visible .why-ico svg { animation: bobSm 3s ease-in-out infinite; }
.why-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-light); opacity: 0; animation: ping 3s ease-out infinite; }

/* faq */
.faq details[open] p { animation: faqIn .4s ease; }

/* buttons: shine on hover */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-white::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after, .btn-white:hover::after { animation: shine .8s ease; }
.btn-white { animation: ring 2.6s ease-out infinite; }

/* cta background drifts */
.cta { background: linear-gradient(135deg, #08708a, #054a5c, #0a8aa6, #054a5c); background-size: 300% 300%; animation: gradmove 14s ease-in-out infinite alternate; }
.orb.o1 { animation-duration: 11s; }

/* results extras */
.case-img::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); pointer-events: none; }
.case:hover .case-img::after { animation: shine .9s ease; }
.imp svg { animation: bobSm 2.6s ease-in-out infinite; }

@media (max-width: 900px) { .steps::before { display: none; } .hero-visual { transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .marquee { overflow-x: auto; }
  .marquee .logo-row[aria-hidden] { display: none; }
  .js .faq details, .js .tile.reveal, .js .step.reveal, .js .why-item.reveal { opacity: 1; transform: none; }
  .js .head.reveal h2::after { width: 44px; }
}

/* make sure revealed variants settle to their natural position */
.js .tile.reveal.visible, .js .step.reveal.visible, .js .why-item.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   HERO – animated search demo (typing query -> AI answer -> brand cited first)
   ========================================================================== */
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes bobSm { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes gradShift { to { background-position: 300% 0; } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-70px, 50px) scale(.95); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -50px) scale(1.2); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes chatFloat { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-1); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.grad-text { background: linear-gradient(90deg, #08708a, #19b5d2, #065a70, #08708a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: gradShift 7s linear infinite; }

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(25, 181, 210, .20), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgba(8, 112, 138, .14), transparent 60%),
    linear-gradient(180deg, #f2fafc 0%, #ffffff 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 66%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob.b1 { width: 460px; height: 460px; left: -120px; top: -80px; background: rgba(8, 112, 138, .28); animation: drift1 16s ease-in-out infinite; }
.blob.b2 { width: 420px; height: 420px; right: -100px; top: 10%; background: rgba(25, 181, 210, .30); animation: drift2 19s ease-in-out infinite; }
.blob.b3 { width: 380px; height: 380px; left: 38%; bottom: -160px; background: rgba(6, 90, 112, .20); animation: drift3 22s ease-in-out infinite; }
.grid-fade {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(8, 112, 138, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 112, 138, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
.hero-marquee {
  position: absolute; inset: -10% -15%; display: flex; flex-direction: column; justify-content: center; gap: 44px; transform: rotate(-7deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, rgba(0, 0, 0, .35) 80%);
          mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, rgba(0, 0, 0, .35) 80%);
  pointer-events: none; user-select: none;
}
.marquee-row { display: flex; width: max-content; animation: marquee 55s linear infinite; will-change: transform; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 65s; }
.marquee-row:nth-child(3) { animation-duration: 75s; }
.marquee-group { display: flex; flex: none; gap: 72px; padding-right: 72px; }
.marquee-item { display: inline-flex; align-items: center; gap: 16px; flex: none; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; opacity: .10; }
.marquee-item img { width: 44px; height: 44px; }
.hero.is-offscreen .blob, .hero.is-offscreen .marquee-row { animation-play-state: paused; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1::selection { background: var(--brand-soft); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 400; }
.trust-list li { position: relative; padding-left: 24px; }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.200l-4.400 4.400a.8.8 0 01-1.100 0L4.300 8.700a.8.8 0 011.100-1.100l1.400 1.300 3.800-3.800a.8.8 0 011.100 1.100z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.200l-4.400 4.400a.8.8 0 01-1.100 0L4.300 8.700a.8.8 0 011.100-1.100l1.400 1.300 3.800-3.800a.8.8 0 011.100 1.100z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-copy > * { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .40s; }
.hero-copy > :nth-child(5) { animation-delay: .52s; }
.hero-visual { position: relative; z-index: 1; animation: riseIn 1s .35s cubic-bezier(.2, .7, .2, 1) backwards; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; z-index: -1; background: linear-gradient(135deg, rgba(25, 181, 210, .45), rgba(8, 112, 138, .35)); filter: blur(46px); }
.chat-card { background: linear-gradient(160deg, #ffffff 0%, #f1fafc 100%); border: 1px solid rgba(8, 112, 138, .18); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); transform-style: preserve-3d; animation: chatFloat 6s ease-in-out infinite; transition: box-shadow .3s; }

/* search demo */
@keyframes loadbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25, 181, 210, .45); } 50% { box-shadow: 0 0 0 7px rgba(25, 181, 210, 0); } }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(18deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.serp { padding: 18px 18px 14px; font-size: .86rem; line-height: 1.5; text-align: left; }
.serp-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.serp-top .dot { width: 10px; height: 10px; border-radius: 50%; background: #d5e0e7; }
.serp-top em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); }

.serp-bar {
  position: relative; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #dfe5ea; border-radius: 999px; padding: 9px 14px; box-shadow: 0 2px 10px rgba(11, 31, 51, .08);
  overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.serp.is-typing .serp-bar { border-color: rgba(25, 181, 210, .6); box-shadow: 0 4px 18px rgba(25, 181, 210, .25); }
.serp-bar > img { width: 20px; height: 20px; flex: none; }
.serp-query { flex: 1; min-width: 0; color: #202124; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-query .caret { display: none; width: 2px; height: 1.05em; margin-left: 1px; background: #202124; vertical-align: -3px; animation: caret .9s steps(1) infinite; }
.serp.is-typing .serp-query .caret { display: inline-block; }
.serp-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-gradient); transition: transform .2s; }
.serp-go svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.serp.is-pressed .serp-go { transform: scale(.82); }
.serp-load { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #08708a, #19b5d2); transform-origin: left; transform: scaleX(0); opacity: 0; }
.serp.is-loading .serp-load { opacity: 1; animation: loadbar .8s ease-out forwards; }

.serp-body { margin-top: 14px; display: grid; gap: 10px; transition: opacity .5s; }
.serp-body.is-fading { opacity: 0; }

/* AI overview panel */
.aio {
  position: relative; border-radius: 16px; padding: 12px 14px 12px; background: linear-gradient(135deg, #f1fafd, #ffffff);
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f1fafd, #fff) padding-box, linear-gradient(135deg, #19b5d2, #8fdcee, #08708a) border-box;
}
.aio-label { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 500; margin-bottom: 6px; }
.aio-label svg { width: 15px; height: 15px; animation: sparkle 2.6s ease-in-out infinite; }
.aio-label span { background: linear-gradient(90deg, #08708a, #19b5d2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aio-text { display: grid; margin: 0 0 10px; color: #202124; font-size: .82rem; line-height: 1.55; }
.aio-text > span { grid-area: 1 / 1; }
.aio-text .ghost { visibility: hidden; }
.aio-text .vis.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--brand-1); vertical-align: -2px; animation: caret .8s steps(1) infinite; }

.aio-sources { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; }
.src { border: 1px solid #e1e8ee; border-radius: 12px; padding: 8px 9px; background: #fff; min-width: 0; }
.src.first { border-color: #19b5d2; background: linear-gradient(135deg, #ffffff, #e9f8fc); position: relative; }
.src-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.fav { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .56rem; font-weight: 600; color: #fff; background: var(--brand-gradient); }
.src-name { font-size: .72rem; font-weight: 500; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-title { font-size: .7rem; line-height: 1.35; color: #4d5156; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src .num { position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 500; color: #fff; background: var(--brand-gradient); box-shadow: 0 4px 10px rgba(8, 112, 138, .35); }
.skel-line { display: block; height: 7px; border-radius: 4px; background: #e3eaf0; margin-top: 6px; }
.skel-line.s { width: 60%; }
.src:not(.first) .src-head .fav { background: #cfdae3; }

/* Organic results */
.result { border-radius: 14px; padding: 9px 12px; }
.result.first-result { background: #fff; border: 1px solid #19b5d2; box-shadow: 0 8px 22px rgba(25, 181, 210, .2); position: relative; }
.result.first-result.in { animation: slideIn .6s ease both, glowPulse 2.4s .6s ease-out 2; }
.r-site { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.r-site .fav { width: 22px; height: 22px; font-size: .62rem; }
.r-meta { line-height: 1.25; min-width: 0; }
.r-name { font-size: .76rem; color: #202124; }
.r-url { font-size: .68rem; color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-title { margin: 3px 0 2px; font-size: .95rem; font-weight: 400; line-height: 1.3; color: #1a0dab; letter-spacing: 0; }
.r-desc { margin: 0; font-size: .75rem; line-height: 1.5; color: #4d5156; }
.r-desc b { font-weight: 500; color: #202124; }
.r-rank { position: absolute; top: -9px; right: 10px; font-size: .68rem; font-weight: 500; color: #fff; padding: 2px 9px; border-radius: 999px; background: var(--brand-gradient); box-shadow: 0 4px 10px rgba(8, 112, 138, .35); }
.result.skel { padding: 4px 12px; }

.serp-note { font-size: .7rem; color: var(--muted); margin: 10px 0 0; }

/* Reveal states (only when JS is running) */
.js .serp [data-r] { opacity: 0; transform: translateY(14px); }
.js .serp [data-r].in { animation: slideIn .6s ease forwards; }
.js .serp .result.first-result.in { animation: slideIn .6s ease forwards, glowPulse 2.4s .6s ease-out 2; }

@media (max-width: 620px) {
  .serp { padding: 14px 12px 12px; }
  .aio-sources { grid-template-columns: 1.3fr 1fr; }
  .aio-sources .src:nth-child(3) { display: none; }
  .r-title { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .serp [data-r] { opacity: 1; transform: none; animation: none !important; }
  .aio-label svg, .serp-query .caret { animation: none !important; }
}


@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-visual { max-width: 460px; } }
@media (max-width: 620px) { .hero-bg::after { background: rgba(255,255,255,.6); } .cta-row .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) {
  .blob, .marquee-row, .grad-text, .hero-copy > *, .hero-visual, .chat-card { animation: none !important; }
}

.fav {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.r-site .fav {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   v4 – content expansion. New sections reuse the existing tokens,
   card/tile/step/FAQ components and keyframes. No existing rule is changed.
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* hero: lead copy split into short paragraphs */
.lead p + p { margin-top: 12px; }

/* small label above an h2 (same treatment as .plat-title, in brand teal) */
.kicker { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.head .sub + .sub { margin-top: 10px; }

/* section joins: .joined continues the previous section, .seam separates two same-colour sections */
.section.joined { padding-top: 0; }
.section.seam { border-bottom: 1px solid var(--line); }

/* 4-up tile grid (Why AEO matters, Industries) */
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tiles.cols-4 .tile { padding: 30px 22px 26px; }
.tiles.cols-4 .tile h3 { font-size: 1.12rem; line-height: 1.25; }

/* How AEO works: four connected cards */
.aeo-flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.aeo-flow::before { content: ""; position: absolute; z-index: 0; left: 12%; right: 12%; top: 58px; height: 3px; border-radius: 3px; opacity: .6; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 10px); animation: bgmove 1s linear infinite; }
.aeo-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.aeo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.aeo-card .step-n { width: 38px; height: 38px; font-size: 1rem; }
.aeo-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); transition: transform .3s; }
.aeo-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aeo-card:hover .aeo-ico { transform: rotate(-10deg) scale(1.08); }
.aeo-card h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 8px; }
.aeo-card p { color: var(--muted); font-size: .93rem; }
.aeo-foot { max-width: 720px; margin: 40px auto 0; display: grid; gap: 18px; text-align: center; }
.aeo-foot .sub { margin-top: 0; max-width: none; }
.note { display: flex; align-items: flex-start; gap: 12px; text-align: left; background: var(--brand-soft); border: 1px solid #d6ebf0; border-radius: 16px; padding: 16px 20px; font-size: .95rem; }
.note svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.note strong { font-weight: 500; }
.js .aeo-flow .reveal:nth-child(2) { transition-delay: .1s; }
.js .aeo-flow .reveal:nth-child(3) { transition-delay: .2s; }
.js .aeo-flow .reveal:nth-child(4) { transition-delay: .3s; }

/* What's included: reuses the FAQ accordion */
.incl summary h3 { flex: 1; font-size: 1.02rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.incl summary .cnt { flex: none; font-size: .76rem; font-weight: 500; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.incl .check { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; padding: 2px 24px 24px; }
.incl .check li { font-size: .92rem; }
.incl details[open] .check { animation: faqIn .4s ease; }
.faq details .incl-note { margin-top: -8px; font-size: .85rem; }

/* AI visibility audit preview (illustrative UI – styled like the hero search card) */
.audit { max-width: 860px; margin: 0 auto; background: linear-gradient(160deg, #ffffff 0%, #f1fafc 100%); border: 1px solid rgba(8,112,138,.18); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-md); }
.audit-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.audit-top .dot { width: 10px; height: 10px; border-radius: 50%; background: #d5e0e7; }
.audit-top em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); }
.audit-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.audit-tabs button { flex: 1 0 auto; font: 500 .9rem/1.2 var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.audit-tabs button:hover { color: var(--brand); background: var(--brand-soft); }
.audit-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 6px 16px rgba(8,112,138,.25); }
.audit-panels { display: grid; margin-top: 16px; }
.audit-panel { grid-area: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
/* inactive panels keep their space (no layout shift when switching tabs) but are hidden from view and assistive tech */
.audit-panel[hidden] { display: block; visibility: hidden; }
.audit-panel:not([hidden]) { animation: faqIn .35s ease; }
.audit-lead { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.audit-list { display: grid; gap: 10px; }
.audit-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: .95rem; }
.audit-list li > span:not(.a-ico) { flex: 1; min-width: 0; }
.a-ico { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); }
.a-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a-tag { flex: none; font-style: normal; font-size: .72rem; font-weight: 500; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.center-cta { text-align: center; margin-top: 22px; }

/* Why it pays off: five items, 3 + 2 centred */
.why.five { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 24px; }
.why.five .why-item { flex: 0 1 calc((100% - 48px) / 3); }
.js .why .reveal:nth-child(4) { transition-delay: .12s; }
.js .why .reveal:nth-child(5) { transition-delay: .24s; }

@media (max-width: 900px) {
  .tiles.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .aeo-flow { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 28px; }
  .aeo-flow::before { left: 50%; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--brand) 0 10px, transparent 10px 20px); animation: none; }
  .why.five { flex-direction: column; flex-wrap: nowrap; }
  .why.five .why-item { flex: none; }
}
@media (max-width: 620px) {
  .audit { padding: 14px 12px; border-radius: 20px; }
  .audit-tabs { border-radius: 18px; }
  .audit-tabs button { padding: 10px 12px; font-size: .85rem; }
  .audit-panel { padding: 18px 16px; }
  .audit-list li { flex-wrap: wrap; font-size: .9rem; }
  .center-cta .btn { white-space: normal; text-align: center; line-height: 1.3; }
}
@media (max-width: 560px) {
  .tiles.cols-4 { grid-template-columns: 1fr; }
  .tiles.cols-4 .tile { padding: 26px 20px 24px; }
  .tiles.cols-4 .tile p { font-size: .92rem; }
  .incl .check { grid-template-columns: 1fr; padding: 2px 20px 20px; }
  .faq details .incl-note { padding-inline: 20px; }
}
/* the expanded service descriptions are too long for two columns on small phones */
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 26px 20px 24px; }
  .tile p { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .aeo-flow::before { animation: none; }
}

/* ==========================================================================
   v5 – section heads: heading and description share one column width
   ========================================================================== */
.head { max-width: 760px; margin-inline: auto; }
.head h2 { text-wrap: balance; }
.head .sub { max-width: none; font-size: 1.05rem; text-wrap: pretty; }

/* hero headline: longer tagline ("Rank better in AI search.") sized to sit on two lines */
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-wrap: balance; }