/* Builds by Leo — marketing site. Modern LIGHT theme, its OWN identity: cool
   off-white base, indigo primary, near-black ink bands, clean bold sans display.
   Structural cues (section separation, rounded shapes, marquee, motion) are
   inspired by good SaaS sites but the palette and layout are deliberately not a
   clone. Self-hosted fonts only — no third-party requests. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: local("Manrope"), url("/assets/fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "InterVar"; font-style: normal; font-weight: 400 700; font-display: swap; src: local("Inter"), url("/assets/fonts/inter.woff2") format("woff2"); }

:root {
  --bg:        #F4F5FB;
  --surface:   #FFFFFF;
  --raised:    #FAFBFF;
  --ink:       #171826;
  --muted:     #5E6280;
  --dim:       #9498B2;
  --line:      #E7E8F2;
  --primary:   #4F46E5;   /* indigo */
  --primary-2: #4038C9;
  --primary-ink:#FFFFFF;
  --primary-weak:#ECEBFC;
  --dark:      #16172A;   /* near-black indigo — dark bands */
  --dark-2:    #1E1F38;
  --dark-ink:  #EAEBF7;
  --dark-muted:#9DA0C4;
  --ok:        #16A34A;
  --warn:      #E0A106;
  --bad:       #E0524A;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(23,24,38,.05), 0 14px 34px rgba(23,24,38,.07);
  --shadow-lift:0 10px 24px rgba(23,24,38,.10), 0 30px 60px rgba(79,70,229,.10);
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans:    "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1.02rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 0 0 .4em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-underline-offset: 3px; }
.em { color: var(--primary); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 52ch; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--primary); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.band-dark .eyebrow { color: #A9A3FF; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 70; }
section { padding: clamp(46px, 7.5vw, 92px) 0; }
.tight { padding-top: 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-sans); font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 12px 26px rgba(79,70,229,.36); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.linkish { background: none; border: none; color: var(--primary); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Header ---- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(244,245,251,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.04em; }
.brand .accent { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { padding: 9px 18px; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---- Hero ---- */
.hero { padding-top: clamp(36px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.trust { font-size: .92rem; color: var(--dim); display: flex; gap: 16px; flex-wrap: wrap; }
.trust b { color: var(--muted); font-weight: 600; }

/* Website mockup preview in hero */
.mock { position: relative; }
.mock .blob { position: absolute; inset: -12% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, var(--primary-weak), transparent 70%); z-index: -1; }
.window { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; border: 1px solid var(--line); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #DDDEEB; }
.url-pill { flex: 1; margin-left: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .76rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) { .float { animation: float 6s ease-in-out infinite; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* mini site inside the window */
.msite-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.msite-nav .mlogo { font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.msite-nav .mlinks { display: flex; gap: 10px; } .msite-nav .mlinks span { width: 34px; height: 7px; border-radius: 4px; background: var(--line); }
.msite-hero { padding: 26px 18px 30px; background: linear-gradient(180deg, var(--primary-weak), var(--surface)); text-align: center; }
.msite-hero .mh { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.msite-hero .mp { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.msite-hero .mbtn { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; font-size: .82rem; padding: 9px 18px; border-radius: 9px; }
.msite-row { display: flex; gap: 10px; padding: 16px 18px; }
.msite-card { flex: 1; height: 46px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }

/* ---- Marquee ---- */
.marquee { background: var(--dark); color: var(--dark-ink); padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; width: max-content; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: scrollx 32s linear infinite; } }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.marquee .dot { color: var(--primary); }

/* ---- Section heads ---- */
.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---- Cards (tools = free value) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--primary-weak); }
.card .thumb { aspect-ratio: 16/10; background: var(--primary-weak) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }
.card .tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.card h3 { margin: 8px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .go { margin-top: 14px; color: var(--primary); font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; }
.free-pill { display: inline-block; background: var(--primary-weak); color: var(--primary); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Homepage tool teaser: single-row swipeable carousel on mobile, cards peek
   at both edges so it reads as "more either side" rather than a dead end. */
@media (max-width: 640px) {
  #tools .cards { display: flex; flex-wrap: nowrap; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; gap: 14px; margin: 0 -22px; padding: 4px 22px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #tools .cards::-webkit-scrollbar { display: none; }
  #tools .cards .card { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---- Google SERP mock + animation ---- */
.serp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .serp-grid { grid-template-columns: 1fr; } }
.serp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; }
.serp-bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; margin-bottom: 8px; color: var(--muted); }
.serp-bar .g { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.serp-bar .q { flex: 1; font-size: .92rem; }
.serp-stats { font-size: .72rem; color: var(--dim); padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.serp-list { list-style: none; margin: 0; padding: 0; }
.serp-item { padding: 11px 10px; border-radius: 12px; transition: background .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease, box-shadow .5s; }
.serp-item .u { font-size: .74rem; color: #1a7f37; }
.serp-item .t { font-size: 1rem; color: #1a3fd1; font-weight: 600; }
.serp-item .d { font-size: .8rem; color: var(--muted); }
.serp-item.you { position: relative; }
.serp-item.you .t { color: var(--ink); }
.serp-fold { text-align: center; font-size: .7rem; color: var(--dim); border-top: 1px dashed var(--line); margin: 8px 0; padding-top: 6px; }
/* the "you" row is buried by default; when ranked, it lifts to the top & highlights */
.serp[data-state="ranked"] .you { order: -1; background: var(--primary-weak); box-shadow: inset 0 0 0 1.5px var(--primary); }
.serp[data-state="ranked"] .you::after { content: "You · #1"; position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff; font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.serp[data-state="buried"] .you { opacity: .55; }
.serp[data-state="buried"] .you::after { content: "You · #8"; position: absolute; top: 10px; right: 10px; background: var(--line); color: var(--muted); font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.serp-list { display: flex; flex-direction: column; }
.serp-toggle { display: inline-flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 14px; }
.serp-toggle button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .82rem; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.serp-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.serp-benefits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }

/* ---- Ticks ---- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; background: var(--primary-weak); color: var(--primary); font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.band-dark .ticks li::before { background: rgba(79,70,229,.28); color: #C7C2FF; }

/* ---- Dark band ---- */
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-dark h2, .band-dark h3, .band-dark .display { color: var(--dark-ink); }
.band-dark .lead, .band-dark p { color: var(--dark-muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { border: 1px solid rgba(234,235,247,.14); border-radius: var(--radius); padding: 24px 22px; }
.step .n { font-family: var(--font-display); font-weight: 800; color: #A9A3FF; font-size: 1rem; margin-bottom: 12px; }
.step h3 { color: var(--dark-ink); }
.step p { margin: 0; }

/* ---- Demo embed ---- */
.demo { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.demo-preview { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--primary-weak); }
.demo-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.demo-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.demo-play span { background: var(--primary); color: #fff; font-weight: 700; padding: 13px 22px; border-radius: 999px; box-shadow: 0 8px 20px rgba(79,70,229,.4); transition: transform .15s; }
.demo-preview:hover .demo-play span { transform: scale(1.05); }
.demo-frame { width: 100%; height: 640px; border: 0; display: block; background: #fff; }
.demo-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.demo-actions .try { color: var(--dim); font-size: .88rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 10px; }

/* ---- Footer ---- */
.site-foot { background: var(--dark); color: var(--dark-ink); padding: 56px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 680px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand { color: var(--dark-ink); }
.site-foot p { color: var(--dark-muted); }
.foot-contact a { color: var(--dark-ink); text-decoration: none; display: block; margin-bottom: 8px; font-size: 1.05rem; font-weight: 600; }
.foot-contact a:hover { color: #A9A3FF; }
.foot-eyebrow { color: #A9A3FF; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 12px; }
.demo-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); background: var(--primary-weak); border-radius: 999px; padding: 4px 12px; }

/* ---- Links page ---- */
.links { max-width: 440px; margin: 0 auto; padding: 8vh 22px; text-align: center; }
.links .btn { width: 100%; margin-bottom: 12px; justify-content: center; }
.noscript-note { background: var(--surface); border: 1px solid var(--primary); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: .9rem; }

/* ---- Conversational enquiry modal ---- */
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal[data-open="1"] { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(23,24,38,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(23,24,38,.4); padding: 26px; }
@media (prefers-reduced-motion: no-preference) { .modal-card { animation: pop .24s cubic-bezier(.2,.9,.3,1.2); } }
@keyframes pop { from { transform: translate(-50%,-46%) scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-progress { font-size: .78rem; font-weight: 700; color: var(--dim); letter-spacing: .02em; }
.modal-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--dim); cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--ink); }
.progress-track { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress-fill { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.step-q { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.step-help { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.choices { display: grid; gap: 10px; margin-bottom: 8px; }
.choice { text-align: left; background: var(--raised); border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 16px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.choice:hover { border-color: var(--primary); }
.choice.sel { border-color: var(--primary); background: var(--primary-weak); }
.modal input { width: 100%; background: var(--raised); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; margin-bottom: 12px; }
.modal input:focus { border-color: var(--primary); }
.modal-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.modal-err { color: var(--bad); font-size: .88rem; font-weight: 600; margin: 0 0 10px; }
.modal-done { text-align: center; padding: 12px 0; }
.modal-done .big { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, .float { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } .serp-item { transition: none !important; } }
