/* ==========================================================================
   Stevan Othon — Web & SEO
   Main site styles (home, about, mockup pages).
   Demo sites in /examples/ use their own inline styles on purpose,
   so each one shows a different design system.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #121212;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --paper: #eef1f5;
  --card: #ffffff;
  --line: #d6dde6;
  --accent: #ff5a1f;        /* signal orange: calls to action */
  --accent-ink: #ffffff;
  --accent-dark: #d9440f;
  --deep: #101b33;          /* dark sections */
  --radius: 14px;
  --blue: #1d5fd1;           /* links, search and AI visuals */
  --sun: #ffc83d;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --wrap: 1140px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: 12px;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255,90,31,.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238,241,245,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-dark); }
.nav-links .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.nav-links .btn:hover { color: #fff; }
.menu-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; width: 100%; min-height: 50px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 88px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; }
.hero .lead { margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero-visual { position: relative; min-height: 380px; }
.stack-card {
  position: absolute; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  background: #fff; border: 1px solid rgba(0,0,0,.06); width: 72%;
}
.stack-card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.stack-card:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); }
.stack-card:nth-child(2) { top: 70px; right: 0; transform: rotate(3deg); }
.stack-card:nth-child(3) { bottom: 0; left: 14%; transform: rotate(-1deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
}

/* ---------- Proof strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; list-style: none; margin: 0; padding: 22px 0; }
.strip li { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  counter-increment: step; position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 800;
  font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 10px; line-height: 1;
}
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Examples grid ---------- */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.example:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.example:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.example-thumb { aspect-ratio: 16/10; background: #ddd; overflow: hidden; border-bottom: 1px solid var(--line); }
.example-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.example:hover .example-thumb img { transform: scale(1.04); }
.example-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.example-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.example-body h3 { margin: 0; }
.example-body p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.example-link { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 960px) { .examples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .examples { grid-template-columns: 1fr; } }

/* ---------- Problem → fix ---------- */
.dark { background: var(--deep); color: #eef1f6; }
.dark .eyebrow { color: #8fb6ff; }
.dark .lead { color: #c3cad6; }
.fixes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fix { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.03); }
.fix .problem { color: #ff9b78; font-weight: 700; margin-bottom: 6px; }
.fix .problem::before { content: "Problem: "; color: #8f9bb0; font-weight: 600; }
.fix .solution { margin: 0; color: #dfe5ee; }
.fix .solution::before { content: "Fix: "; color: #8f9bb0; font-weight: 600; }
@media (max-width: 760px) { .fixes { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; opacity: .95; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- About / process ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.process li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.process .num { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.process h3 { margin-bottom: .25em; }
.process p { margin: 0; color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }

/* ---------- Form ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 14px; border-radius: 10px; border: 1.5px solid #c3ccd6; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; }
.form-small { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hidden { display: none !important; }
.offer { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; }
.offer .big { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.offer .big span { color: var(--accent); }
.offer ol { padding-left: 20px; margin: 18px 0 0; }
.offer li { margin-bottom: 10px; color: #d9d9d9; }
.offer li strong { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .95rem; color: var(--ink-soft); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-dark); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Showcase layer (added with the 3D hero and the SEO + GEO page)
   ========================================================================== */
@view-transition { navigation: auto; }   /* smooth cross-fade between pages */

/* ---------- Dark hero stage with the live 3D gallery ---------- */
.hero { background: radial-gradient(900px 500px at 78% 40%, #1c3260 0%, transparent 70%), var(--deep); color: #fff; }
.hero .eyebrow { color: var(--sun); }
.hero .lead { color: #c5cfe2; }
.hero-note { color: #93a1bd; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-grid { grid-template-columns: 1fr 1.15fr; }
.hero-visual { min-height: 500px; }
.hero3d-canvas { position: absolute; inset: -50px -70px -50px -40px; width: calc(100% + 110px); height: calc(100% + 100px); display: none; touch-action: pan-y; }
.is-3d .hero3d-canvas { display: block; }
.is-3d .stack-card { display: none; }
.hero3d-label {
  position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero3d-label span { color: var(--muted); font-weight: 500; }
.hero3d-label:hover { background: var(--sun); }
.hero3d-hint { position: absolute; right: 0; top: -14px; margin: 0; font-size: .85rem; color: #93a1bd; display: none; }
.is-3d .hero3d-hint { display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .hero3d-canvas { inset: -20px -16px; width: calc(100% + 32px); height: calc(100% + 40px); }
  .hero3d-hint { display: none !important; }
}

/* ---------- Example cards tilt toward the pointer (site.js) ---------- */
.examples { perspective: 1200px; }
.example { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
.example:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* ---------- Dark section: light follows the pointer ---------- */
.dark[data-spotlight] { position: relative; overflow: hidden; }
.dark[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), rgba(64,120,255,.22), transparent 70%);
}
.dark[data-spotlight] > .wrap { position: relative; }

/* ---------- SEO + GEO ---------- */
.band { background: var(--card); border-block: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.explain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band .explain { background: var(--paper); }
.explain .abbr { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue); }
.explain h3 { margin: 6px 0 10px; }
.explain p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Mock search / AI answer panel */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(16,27,51,.14); overflow: hidden; color: var(--ink); }
.mock-tabs { display: flex; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.mock-tabs button { flex: 1; font: inherit; font-weight: 700; padding: 14px 10px; border: 0; background: none; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; }
.mock-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); background: #fff; }
.mock-body { padding: 22px; min-height: 330px; }
.mock-q { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 600; margin-bottom: 18px; }
.mock-q::before { content: ""; width: 14px; height: 14px; border: 2.5px solid var(--blue); border-radius: 50%; flex: none; }
.pack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pack li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.pack li.you { border: 2px solid var(--blue); background: #f2f6ff; }
.pack b { font-size: 1.02rem; }
.pack small { color: var(--muted); }
.pack .stars { color: #e7a100; font-weight: 700; }
.pack .tagyou { justify-self: start; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-bottom: 4px; }
.ai-answer { font-size: 1.05rem; min-height: 7.5em; }
.ai-answer .caret { display: inline-block; width: 8px; height: 1.1em; background: var(--blue); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-src { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.ai-src li { background: #f3f5f9; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.mock-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); background: #fafbfd; }
.mock .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; margin-top: 14px; }

/* Stat tiles with sources */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat3 { border-left: 4px solid var(--blue); padding: 4px 0 4px 20px; }
.stat3 b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stat3 p { margin: 8px 0 6px; color: var(--ink-soft); }
.stat3 a { font-size: .88rem; color: var(--blue); }
.dark .stat3 p { color: #c5cfe2; } .dark .stat3 a { color: #8fb6ff; } .dark .stat3 { border-color: var(--sun); }
@media (max-width: 760px) { .stats3 { grid-template-columns: 1fr; } }

/* Signals: what Google and AI tools read about a business */
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.signals li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.signals h3 { font-size: 1.12rem; margin-bottom: .3em; }
.signals p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.signals .who { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--blue); }
@media (max-width: 900px) { .signals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .signals { grid-template-columns: 1fr; } }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; font-size: 1.08rem; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; max-width: 70ch; }
.plain-note { background: #fff7e0; border: 1px solid #f0d68a; border-radius: 12px; padding: 16px 20px; color: #4a3b06; }
