/* Avanta site theme — layers the homepage look (dark canvas, Avanta blue, Familjen Grotesk headings)
   over /assets/seo.css on services, guides, resources, case studies, about, process and legal pages.
   Content and markup of those pages are unchanged; only the header and booking buttons were swapped. */

@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/familjen-grotesk.woff2') format('woff2'); }

:root {
  --bg: #07080d;
  --bg-soft: #0a0c13;
  --panel: #10131c;
  --panel-2: #161a26;
  --border: rgba(160,180,255,.15);
  --line: rgba(160,180,255,.09);
  --text: #f2f4fa;
  --muted: #b7bdcd;
  --dim: #8f96aa;
  --accent: #3d6bff;
  --accent-deep: #315dff;
  --accent-2: #93b1ff;
  --accent-soft: rgba(61,107,255,.14);
  --display: 'Familjen Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px rgba(0,0,0,.35);
  --radius: 20px;
  --max: 1160px;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }
body {
  color: var(--text);
  background: radial-gradient(1100px 520px at 50% -160px, rgba(61,107,255,.16), transparent 70%), var(--bg);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(61,107,255,.4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--max), calc(100% - 40px)); }

/* ---------- type ---------- */
h1, h2, h3, h4, .page-title, .stat { font-family: var(--display); font-weight: 700; color: var(--text); text-wrap: balance; }
.hero h1, .page-title { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; }
.section h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; }
.section h3, .feature-card h3, .article-card h3, .faq-card h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.01em; }
.hero p, .lead { color: var(--muted); font-size: 1.12rem; }
.section p, .section li, .hero p, .lead, .section-intro p, .article-card p, .feature-card p, .metric-card p { color: var(--muted); }
.section strong, .section b { color: var(--text); }
.section a:not(.cta):not(.an-cta), .text-link { color: var(--accent-2); text-decoration: none; }
.section a:not(.cta):not(.an-cta):hover, .text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600;
  color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(93,133,255,.35);
  padding: .38rem .85rem;
}

/* ---------- hero ---------- */
.hero { background-image: none; padding: 4.5rem 0 2.5rem; }
.hero > .container, .hero .hero-grid { position: relative; }

/* ---------- surfaces ---------- */
.card, .sidebar-card, .feature-card, .metric-card, .article-card, .quote-card, .faq-card, .frame, .form-card, .hero-panel {
  background: linear-gradient(180deg, rgba(22,26,38,.9), rgba(16,19,28,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-card, .feature-card { transition: border-color .25s ease, transform .25s ease; }
.article-card:hover, .feature-card:hover { border-color: rgba(147,177,255,.35); }
.panel-list li, .check-list li, .link-list li { border-bottom-color: var(--line); color: var(--muted); }
.toc a, .link-list a, .article-card a { color: var(--text); }
.toc a:hover, .link-list a:hover, .article-card a:hover { color: var(--accent-2); text-decoration: none; }
.stat { color: #fff; letter-spacing: -.02em; }
.stat-sub { color: var(--dim); font-weight: 600; }
.band, .cta-strip {
  border: 1px solid rgba(93,133,255,.28);
  background: linear-gradient(180deg, rgba(61,107,255,.16), rgba(61,107,255,.04));
  border-radius: var(--radius);
}
.quote-card p, .cta-strip p { color: var(--text); }
.pill { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--border); font-weight: 600; }
.frame figcaption, .guide-visual figcaption { color: var(--dim); }
.guide-visual img, .frame img { border-color: var(--border); }
code { color: var(--accent-2); background: rgba(147,177,255,.08); padding: .08em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); }

/* tables written into guides */
.section table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.section th, .section td { border-bottom: 1px solid var(--line); padding: .7rem .6rem; text-align: left; vertical-align: top; color: var(--muted); }
.section th { color: var(--text); font-weight: 600; }
[style*="background:#f9fafb"] { background: rgba(255,255,255,.04) !important; border-bottom-color: var(--border) !important; }
[style*="background:#f3f4f6"] { background: rgba(255,255,255,.05) !important; color: var(--text); }

/* ---------- buttons ---------- */
.cta {
  background: var(--accent-deep); border: 1px solid transparent; color: #fff;
  font-weight: 600; letter-spacing: 0; border-radius: 999px; padding: .95rem 1.5rem;
  box-shadow: 0 10px 30px rgba(49,93,255,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.cta:hover { background: #4672ff; box-shadow: 0 14px 40px rgba(49,93,255,.5), inset 0 1px 0 rgba(255,255,255,.2); }
.cta.secondary { background: transparent; border-color: rgba(160,180,255,.25); color: var(--text); box-shadow: none; }
.cta.secondary:hover { border-color: var(--accent-2); background: var(--accent-soft); }

/* ---------- forms + calculators ---------- */
.field label { color: var(--text); font-weight: 600; }
.field input, .field textarea, .field select { color: var(--text); background: #0b0d14; border-color: var(--border); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61,107,255,.18); }
.calc-result { background: rgba(61,107,255,.08); border-color: rgba(93,133,255,.3); }
.mini-note { color: var(--dim); }

/* ---------- footer ---------- */
.site-footer { background: #05060a; border-top: 1px solid var(--line); margin-top: 5rem; }
.site-footer .brand { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.footer-grid h3 { font-family: var(--body, Inter), sans-serif; font-size: .9rem; font-weight: 600; color: var(--dim); }
.footer-grid p, .footer-grid a, .footer-note { color: var(--muted); }
.footer-grid a:hover { color: #fff; }
.footer-note { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--dim); }
.an-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2rem; }
.an-badges span { display: inline-flex; align-items: center; height: 42px; border-radius: 10px; overflow: hidden; }
.an-badges .tt { background: #000; border: 1px solid var(--border); padding: 6px 12px; }
.an-badges .amz { background: #fff; padding: 2px 4px; height: 54px; }
.an-badges img { height: 100%; width: auto; display: block; }

/* ---------- header (replaces the old .site-nav) ---------- */
.an-nav { position: sticky; top: 0; z-index: 60; background: rgba(7,8,13,.72); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.an-nav.scrolled { border-bottom-color: var(--line); background: rgba(7,8,13,.92); }
.an-row { display: flex; align-items: center; gap: 22px; height: 72px; }
.an-brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; color: var(--text); }
.an-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.an-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s ease; white-space: nowrap; }
.an-links a:hover, .an-links a[aria-current="page"] { color: #fff; }
.an-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.an-sep { width: 1px; height: 18px; background: var(--border); }
.an-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--accent-deep); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 30px rgba(49,93,255,.35), inset 0 1px 0 rgba(255,255,255,.18); transition: background .25s ease, box-shadow .25s ease; }
.an-cta:hover { background: #4672ff; }
.an-mcta, .an-burger { display: none; }
.an-burger { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.an-burger svg { width: 20px; height: 20px; }
.an-panel { display: none; }
@media (max-width: 1040px) {
  .an-links { display: none; }
  .an-cta { margin-left: auto; }
  .an-burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .an-row { height: 64px; gap: 10px; }
  .an-cta { display: none; }
  .an-mcta { display: inline-flex; margin-left: auto; padding: 10px 16px; font-size: 13px; border-radius: 999px; background: var(--accent-deep); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
}
@media (max-width: 1040px) {
  .an-panel { position: absolute; left: 0; right: 0; top: 100%; background: #07080d; box-shadow: 0 30px 60px rgba(0,0,0,.6); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .an-panel.open { display: block; }
  .an-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; color: var(--text); }
  .an-panel a[aria-current="page"] { color: var(--accent-2); }
  .an-panel .an-cta { display: flex; justify-content: center; margin-top: 16px; border-bottom: 0; color: #fff; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { width: calc(100% - 36px); }
  .hero { padding: 3rem 0 1.75rem; }
  .hero h1, .page-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-actions .cta { width: 100%; }
  .section table { display: block; overflow-x: auto; }
}

/* ---------- page-specific light surfaces from the old light theme ---------- */
html body .proof-frame { background: var(--panel); }
html body .proof-tag { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.04); letter-spacing: 0; text-transform: none; font-weight: 600; }
html body .forecast-field input, html body .forecast-field select,
html body .calc-field input, html body .calc-field select { background: #0b0d14; color: var(--text); border-color: var(--border); }
html body .preset-button, html body .tool-button { background: transparent; color: var(--text); border-color: var(--border); }
html body .preset-button.active, html body .tool-button.primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
html body .forecast-details summary, html body .profit-positive { color: var(--text); }
html body .chart-wrap, html body .primary-result, html body .score-option { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--text); }
html body .score-option:hover { border-color: rgba(147,177,255,.4); }
html body .bar.profit { background: linear-gradient(180deg, #93b1ff, #3d6bff); }
html body .monthly-table th { background: var(--panel-2); }
html body .monthly-table th, html body .monthly-table td { border-bottom-color: var(--line); }
html body .status-loss { color: #ff8a8a; }
html body .proof-showcase, html body .hero-intro, html body .hero-proof-card, html body .hero-copy-card,
html body .hero-insight, html body .hero-pulse, html body .compare-card, html body .compare-card.amazon, html body .section-block,
html body .faq-card-article, html body .summary-card, html body .assumption-panel, html body .dashboard-panel, html body .insight-card,
html body .frame, html body .guide-body table {
  background: linear-gradient(180deg, rgba(22,26,38,.9), rgba(16,19,28,.92)); border-color: var(--border); box-shadow: var(--shadow);
}
html body .compare-card.tiktok, html body .quarter-card.highlight, html body .cta-panel {
  background: linear-gradient(180deg, rgba(61,107,255,.18), rgba(61,107,255,.05)); border-color: rgba(93,133,255,.32);
}
html body .hero-intro-card, html body .quarter-card { background: rgba(255,255,255,.03); border-color: var(--border); }
html body .hero-intro p, html body .hero-proof-card p, html body .proof-showcase p, html body .compare-card p,
html body .summary-card p, html body .summary-card li, html body .summary-card small { color: var(--muted); }
html body .compare-points li, html body .cta-panel p { color: var(--text); }
html body .compare-points li, html body .summary-card li, html body .quarter-card .row { border-top-color: var(--line); }
html body .hero-intro h1, html body .hero-proof-card h3, html body .hero-intro-card strong, html body .summary-card strong { font-family: var(--display); letter-spacing: -.02em; }
html body .hero-intro h1 { line-height: 1.04; }
html body .summary-card span, html body .quarter-card .label { letter-spacing: 0; text-transform: none; font-weight: 600; }
html body .guide-body th, html body .guide-body td { border-color: var(--line); }
html body .proof-frame figcaption { background: transparent; color: var(--muted); border-color: var(--line); }

/* Wide tables scroll inside their own box on phones instead of widening the page */
.content-grid > article { min-width: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }

/* Logo: locked wordmark, no dot. Stacked on phones so it reads bigger next to the CTA. */
.an-brand span { display: inline; }
@media (max-width: 640px) {
  .an-brand { font-size: 20px; line-height: .9; letter-spacing: .03em; }
  .an-brand span { display: block; }
}
@media (max-width: 370px) { .an-brand { font-size: 18px; } }

/* Visible FAQ block (mirrors each page's FAQ schema so search and AI tools see the same answers) */
.faq-visible { margin: 3rem 0 1rem; }
.faq-visible h2 { margin-bottom: 1rem; }
.faq-visible .faq-list { display: grid; gap: 14px; }
.faq-visible .faq-card { padding: 20px 22px; border-radius: 18px; background: var(--panel, #10131c); border: 1px solid var(--border, rgba(255,255,255,.08)); box-shadow: none; }
.faq-visible .faq-card h3 { margin: 0 0 .5rem; color: var(--text, #f2f4fa); }
.faq-visible .faq-card p { margin: 0; color: var(--muted, #b7bdcd); }

/* 90-day phase graphic (process page) */
.phase-viz { margin: 1.25rem 0 1.5rem; padding: 22px; border-radius: 22px; border: 1px solid var(--border, rgba(255,255,255,.08)); background: radial-gradient(120% 140% at 0% 0%, rgba(61,107,255,.18), rgba(16,19,28,.9) 55%); }
.pv-track { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: stretch; }
.pv-seg { display: grid; grid-template-rows: auto auto 150px auto; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(7,8,13,.55); border: 1px solid rgba(255,255,255,.06); }
.pv-days { white-space: nowrap; font: 600 12px/1.2 var(--mono, ui-monospace, monospace); color: var(--accent-2, #93b1ff); letter-spacing: .04em; text-transform: uppercase; }
.pv-name { font-family: var(--display, inherit); font-weight: 700; font-size: 1.15rem; color: var(--text, #f2f4fa); }
.pv-bar { position: relative; display: block; border-radius: 12px; background: rgba(255,255,255,.04); overflow: hidden; }
.pv-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 12px; background: linear-gradient(180deg, #93b1ff, #3d6bff 60%, #2a4fe0); box-shadow: 0 0 30px rgba(61,107,255,.35); }
.s1 .pv-bar i { opacity: .55; } .s2 .pv-bar i { opacity: .8; }
.pv-out { font-size: .92rem; color: var(--muted, #b7bdcd); }
@media (max-width: 640px) {
  .phase-viz { padding: 14px; }
  .pv-track { gap: 8px; }
  .pv-seg { padding: 10px; grid-template-rows: auto auto 110px auto; }
  .pv-name { font-size: 1rem; }
  .pv-out { font-size: .8rem; }
  .pv-days { font-size: 10px; letter-spacing: 0; }
}

/* Growth engine flow graphic (TikTok Shop agency page) */
.engine-flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 0 0 1.5rem; counter-reset: ef; }
.ef-step { position: relative; display: grid; gap: 4px; padding: 16px 14px; border-radius: 16px; background: var(--panel, #10131c); border: 1px solid var(--border, rgba(255,255,255,.08)); }
.ef-step:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--accent-2, #93b1ff); font-size: 14px; z-index: 1; }
.ef-step b { color: var(--text, #f2f4fa); font-size: 1rem; }
.ef-step small { color: var(--muted, #b7bdcd); font-size: .85rem; line-height: 1.35; }
.ef-n { font: 600 11px/1 var(--mono, ui-monospace, monospace); color: var(--accent-2, #93b1ff); letter-spacing: .06em; }
.ef-step.hot { background: linear-gradient(160deg, #3d6bff, #2a4fe0); border-color: transparent; box-shadow: 0 14px 40px rgba(61,107,255,.35); }
.ef-step.hot b, .ef-step.hot small, .ef-step.hot .ef-n { color: #fff; }
@media (max-width: 900px) {
  .engine-flow { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .ef-step { grid-template-columns: 34px 1fr; column-gap: 10px; padding: 12px 14px; }
  .ef-step .ef-n { grid-row: span 2; align-self: center; }
  .ef-step:not(:last-child)::after { content: "↓"; right: auto; left: 26px; top: auto; bottom: -13px; transform: none; }
}

/* Related links block */
.related-links { margin: 2.5rem 0 1rem; padding: 20px 22px; border-radius: 18px; background: var(--panel, #10131c); border: 1px solid var(--border, rgba(255,255,255,.08)); }
.related-links h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.related-links ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 8px; }
.related-links li a { display: inline; padding: 4px 0; line-height: 1.7; }

/* Mobile header: logo height matches the Book button (Nov 16) */
@media (max-width: 760px) { .an-brand { font-size: 23px; } }
@media (max-width: 370px) { .an-brand { font-size: 20px; } }
