/* AIendome marketing site v3 — like-for-like port of the base44 design.
   Theme: deep navy + gold (default) with a graphite "dark gray" option
   via <html data-theme="graphite">. Raleway headings, Lato body. */

@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-var.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg:          #0A1628;
  --bg-deep:     #081122;
  --card:        #0F1D33;
  --card-2:      #0D1F35;
  --border:      #1a2e44;
  --border-soft: #13233a;
  --text:        #f5f7fa;
  --text-mid:    #9ca3af;
  --text-dim:    #64748b;
  --primary:     #E8A020;
  --primary-lt:  #FBD98A;
  --primary-ink: #10203a;
  --ok:          #34d399;
  --wa:          #25D366;
  --blue:        #4F8EF7;
  --r: 12px;
  --sans: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
html[data-theme="graphite"] {
  --bg:          #131417;
  --bg-deep:     #0e0f11;
  --card:        #1a1c21;
  --card-2:      #17191d;
  --border:      #2a2d34;
  --border-soft: #212429;
  --text:        #f2f3f5;
  --text-mid:    #a2a8b3;
  --text-dim:    #6b7280;
  --primary-ink: #17130a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .head { font-family: var(--head); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
::selection { background: var(--primary); color: var(--primary-ink); }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; gap: 24px; padding: 15px 0; }
.wordmark {
  font-family: var(--head); font-size: 21px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none !important;
}
.wordmark b { color: var(--primary); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links > a { color: var(--text-mid); font-size: 14px; font-weight: 700; font-family: var(--head); }
.nav-links > a:hover { color: var(--text); text-decoration: none; }
.nav-links > a.active { color: var(--primary); }

/* Theme toggle */
.theme-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-mid); cursor: pointer; font-size: 15px;
}
.theme-btn:hover { color: var(--text); border-color: var(--text-dim); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--head); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--primary); color: var(--primary-ink) !important; }
.btn-gold:hover { background: var(--primary-lt); }
.btn-outline { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary) !important; }
.btn-outline:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* ── Toggles (market + billing) ────────────────────────── */
.seg {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px; gap: 4px; background: var(--card);
}
.seg button {
  border: 0; background: transparent; color: var(--text-mid); cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 13px;
  padding: 7px 18px; border-radius: 999px; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.seg .save { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: .8; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; padding: 96px 0 88px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary); border-radius: 999px; padding: 6px 14px;
  font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 22px;
}
.pill .ping { position: relative; width: 8px; height: 8px; }
.pill .ping::before, .pill .ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary);
}
@media (prefers-reduced-motion: no-preference) {
  .pill .ping::before { animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.02em; max-width: 16ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub { margin-top: 22px; font-size: clamp(16px, 1.9vw, 18px); color: var(--text-mid); max-width: 52ch; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* Hero demo card ("Watch AIendome work in real time") */
.demo {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: 0 30px 70px -35px rgba(0,0,0,.6);
}
.demo .hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--text-mid);
}
.demo .hd .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.demo-line {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-deep); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 11px 14px; margin-top: 10px; font-size: 13.5px; color: var(--text-mid);
}
.demo-line .ic { color: var(--primary); font-size: 15px; flex-shrink: 0; }
.demo-line .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); display: block; }
.demo-line strong { color: var(--text); font-weight: 700; }
.demo-line.wa { border-left: 3px solid var(--wa); }
.demo-line.ok-line strong { color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .demo-line { opacity: 0; animation: drop .6s ease forwards; }
  .demo-line:nth-child(2) { animation-delay: .25s; }
  .demo-line:nth-child(3) { animation-delay: .9s; }
  .demo-line:nth-child(4) { animation-delay: 1.6s; }
  .demo-line:nth-child(5) { animation-delay: 2.3s; }
  @keyframes drop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
}

/* ── Founding story + mission/vision (About) ──────────────── */
.story {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 48px 44px; display: grid; gap: 18px;
}
.story p { color: var(--text-mid); font-size: 15.5px; line-height: 1.75; max-width: 74ch; }
.story blockquote {
  border-left: 3px solid var(--primary); padding: 4px 0 4px 20px; margin: 10px 0 4px;
  font-family: var(--head); font-style: italic; font-weight: 700; font-size: 19px;
  color: var(--text); max-width: 60ch;
}
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 12px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.mv .item { display: flex; gap: 14px; }
.mv .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 13%, transparent); color: var(--primary); font-size: 18px; }
.mv .lbl { font-family: var(--head); font-size: 11.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.mv p { color: var(--text-mid); font-size: 14.5px; }

/* ── Markets map ───────────────────────────────────────── */
.worldmap { position: relative; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 16px; padding: 8px; margin-top: 44px; overflow: hidden; }
.worldmap svg { display: block; width: 100%; height: auto; }
.wm-land { fill: color-mix(in srgb, var(--primary) 7%, var(--card)); }
.wm-dot { fill: var(--primary); }
.wm-pulse { fill: none; stroke: var(--primary); stroke-width: 2; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .wm-pulse { animation: wmping 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  .wm-pulse.d2 { animation-delay: 1.2s; }
  @keyframes wmping { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
}
.wm-label { font-family: var(--head); font-size: 26px; font-weight: 800; fill: var(--primary); }
.wm-sub { font-family: var(--sans); font-size: 20px; fill: var(--text-mid); }
.map-legend { display: flex; gap: 28px; justify-content: center; margin-top: 20px; font-size: 13.5px; color: var(--text-mid); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .sw { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }

/* ── Sections ──────────────────────────────────────────── */
section { padding: 84px 0; }
section.deep { background: var(--bg-deep); border-block: 1px solid var(--border-soft); }
.kicker {
  font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
h2.title {
  font-size: clamp(28px, 3.8vw, 40px); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.12; max-width: 26ch; text-wrap: balance;
}
.subtitle { margin-top: 14px; color: var(--text-mid); max-width: 58ch; }
.center { text-align: center; }
.center h2.title, .center .subtitle { margin-left: auto; margin-right: auto; }

/* Stats trio */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 44px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 24px; }
.stat .v { font-family: var(--head); font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat p { margin-top: 10px; font-size: 14px; color: var(--text-mid); }

/* Pillar cards */
.grid { display: grid; gap: 16px; margin-top: 44px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px; transition: border-color .25s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateY(-3px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--text-mid); }

/* How it works strip */
.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 44px; }
.step4 { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 22px; position: relative; }
.step4 .n { font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--primary); letter-spacing: .1em; }
.step4 h3 { font-size: 19px; font-weight: 800; margin-top: 8px; }
.step4 p { color: var(--text-mid); font-size: 14px; margin-top: 6px; }

/* Industry stats band */
.industry { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 44px; }
.ind {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--r); padding: 28px 26px;
}
.ind .v { font-family: var(--head); font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; }
.ind p { margin-top: 12px; color: var(--text-mid); font-size: 14.5px; }
.ind .src { margin-top: 12px; font-size: 12px; color: var(--text-dim); font-style: italic; }

/* Testimonials */
.quote-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.quote-card p { color: var(--text); font-size: 15px; line-height: 1.65; }
.quote-card p::before { content: "“"; color: var(--primary); font-family: var(--head); font-weight: 800; }
.quote-card p::after { content: "”"; color: var(--primary); font-family: var(--head); font-weight: 800; }
.quote-card .who { margin-top: auto; font-size: 13px; color: var(--text-dim); }
.quote-card .who strong { display: block; color: var(--text-mid); font-family: var(--head); font-weight: 700; font-size: 13.5px; }

/* CTA band */
.band {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--primary) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: var(--r); padding: 44px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.band h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.015em; max-width: 24ch; }
.band p { color: var(--text-mid); margin-top: 6px; }

/* ── Features page ─────────────────────────────────────── */
.pillar-block { margin-top: 56px; }
.pillar-block .ph {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.pillar-block .ph .n { font-family: var(--head); font-weight: 800; color: var(--primary); font-size: 15px; }
.pillar-block .ph h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.pillar-block .ph p { color: var(--text-mid); font-size: 14.5px; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px;
}
.feat h4 { font-family: var(--head); font-size: 15.5px; font-weight: 700; }
.feat p { color: var(--text-mid); font-size: 13.5px; margin-top: 5px; }

/* ── Pricing page ──────────────────────────────────────── */
.price-controls { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px;
  transition: border-color .25s;
}
.plan:hover { border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.plan.popular {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  box-shadow: 0 0 40px rgba(232, 160, 32, .12);
}
.plan .badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: var(--primary); color: var(--primary-ink);
  font-family: var(--head); font-size: 11.5px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .price { margin: 14px 0 4px; font-family: var(--head); }
.plan .price .amt { font-size: 38px; font-weight: 800; color: var(--text); }
.plan .price .cur { font-size: 20px; font-weight: 700; vertical-align: 14px; }
.plan .per { font-size: 12.5px; color: var(--text-dim); }
.plan .save { font-size: 12px; color: var(--ok); margin-top: 4px; min-height: 18px; }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 9px; }
.plan li { font-size: 13.5px; color: var(--text-mid); padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }
.all-plans { margin-top: 36px; text-align: center; color: var(--text-dim); font-size: 13.5px; }
.all-plans strong { color: var(--text-mid); }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--head); font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; font-weight: 700; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--text-mid); font-size: 14.5px; padding-bottom: 20px; }

/* ── Contact page ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; margin-top: 44px; align-items: start; }
.form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--text-mid); }
.form input, .form textarea {
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font-family: var(--sans); font-size: 14.5px; padding: 11px 14px;
}
.form input:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.contact-side .card + .card { margin-top: 14px; }

/* Founder rows */
.founder { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.founder .avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary); font-family: var(--head); font-weight: 800; font-size: 16px;
}
.founder h3 { font-size: 16px; font-weight: 800; }
.founder p { font-size: 13px; color: var(--text-dim); margin: 0; }
.founder a { font-size: 14px; }

/* ── Prose (privacy/terms) ─────────────────────────────── */
.prose { max-width: 760px; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; }
.prose h3 { font-size: 16.5px; font-weight: 700; margin: 24px 0 6px; font-family: var(--head); }
.prose p, .prose li { color: var(--text-mid); }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--primary); }
.prose .lede { font-size: 18.5px; color: var(--text); }
.prose strong { color: var(--text); }
.prose .updated { font-size: 13px; color: var(--text-dim); margin-bottom: 30px; }

/* ── Footer ────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border-soft); background: var(--bg-deep);
  padding: 48px 0 56px; margin-top: 40px; font-size: 14px; color: var(--text-dim);
}
.foot { display: flex; flex-wrap: wrap; gap: 30px; align-items: start; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text-mid); }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot .legal { width: 100%; margin-top: 18px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .band { padding: 30px 24px; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
}
