/* AI Approach site styles, v3. No build step. Fonts are self-hosted. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
}

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --white: #ffffff;
  --ink: #111114;
  --ink-2: #2c2c33;
  --muted: #62626d;
  --line: #e2ddd1;
  --accent: #3b2bff;
  --accent-soft: #ecebff;
  --lime: #d4ff3a;
  --radius: 20px;
  --max: 1180px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(17, 17, 20, 0.04), 0 8px 24px rgba(17, 17, 20, 0.06);
  --shadow-lg: 0 2px 4px rgba(17, 17, 20, 0.04), 0 24px 60px rgba(17, 17, 20, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.035em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 750; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; }

/* Serif italic accent used inside headings */
.grad-text, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
h1 .grad-text, h2 .grad-text { font-size: 1.08em; }
.mark {
  background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
  padding: 0 0.08em;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.22em; color: var(--accent); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 0.98rem; line-height: 1;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn::after { content: "→"; transition: transform 0.2s; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(17, 17, 20, 0.18); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(59, 43, 255, 0.35); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost::after { content: none; }
.nav-links .btn { color: #fff; padding: 11px 18px; font-size: 0.92rem; }
.nav-links .btn:hover { color: #fff; }

/* Sections */
section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 660px; line-height: 1.6; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(59, 43, 255, 0.16), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { font-size: 1.25rem; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.86rem; font-weight: 550;
  margin-bottom: 28px; box-shadow: var(--shadow);
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.pill .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
.hero .container.narrow { text-align: left; }
.page-hero { padding: 96px 0 40px; position: relative; }
.page-hero .lead { margin-top: 18px; }

/* AI answer mock */
.answer-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative; transform: rotate(0.6deg);
}
.answer-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.answer-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.answer-top span { margin-left: 10px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.answer-body { padding: 22px 22px 24px; font-size: 0.95rem; }
.q-bubble {
  margin-left: auto; width: fit-content; max-width: 88%; background: var(--ink); color: #fff;
  padding: 11px 16px; border-radius: 18px 18px 4px 18px; font-size: 0.93rem; margin-bottom: 18px;
}
.a-label { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.a-label::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: conic-gradient(from 90deg, var(--accent), #8b7dff, var(--lime), var(--accent)); }
.answer-body p { color: var(--ink-2); margin-bottom: 0.7em; }
.answer-body .you { background: var(--lime); color: var(--ink); font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 0.7rem; font-weight: 700; vertical-align: 2px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sources span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.sources span.hit { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.answer-badge {
  position: absolute; right: 14px; top: 9px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--lime); font-size: 0.76rem; font-weight: 700; padding: 7px 12px; border-radius: 999px;
}

/* Engine strip */
.engines { padding: 28px 0 8px; }
.engines-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.engines-label { font-size: 0.82rem; font-weight: 650; color: var(--muted); margin-right: 6px; }
.engine { font-size: 0.92rem; font-weight: 650; color: var(--ink); padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}
a.card:hover, .card:hover { border-color: rgba(59, 43, 255, 0.35); box-shadow: var(--shadow-lg); }
a.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.35rem;
}
.card .icon svg { width: 24px; height: 24px; }
a.card:hover .icon { background: var(--accent); color: #fff; }
.card ul { color: var(--muted); padding-left: 20px; margin: 14px 0 0; }
.card li { margin-bottom: 6px; }
a.card { text-decoration: none; display: flex; flex-direction: column; }
.card .more { margin-top: auto; padding-top: 22px; font-weight: 650; font-size: 0.92rem; color: var(--ink); }
a.card:hover .more { color: var(--accent); }

/* Bento for services on home */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > :nth-child(1) { grid-column: span 3; }
.bento > :nth-child(2) { grid-column: span 3; }
.bento > :nth-child(3) { grid-column: span 3; }
.bento > :nth-child(4) { grid-column: span 3; }
.bento .feature { background: var(--ink); border-color: var(--ink); }
.bento .feature h3 { color: #fff; }
.bento .feature p { color: #b9b9c4; }
.bento .feature .icon { background: var(--lime); color: var(--ink); }
.bento .feature .more { color: var(--lime); }
.bento .feature:hover { border-color: var(--ink); }
.bento .feature:hover .icon { background: #fff; color: var(--ink); }
.bento .feature:hover .more { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .old { background: var(--paper-2); border-color: var(--line); box-shadow: none; }
.compare .old h3 { color: var(--muted); }
.compare .new { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lime); }
.compare .card:hover { box-shadow: none; }
.compare .new:hover { box-shadow: 8px 8px 0 var(--lime); border-color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; background: var(--lime); color: var(--ink);
}
.x-list li { color: var(--muted); }
.x-list li::before { content: "×"; background: #e7e2d7; color: var(--muted); font-size: 0.9rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--ink); transform: translateX(4px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime);
}
.step h3 { margin: 4px 0 4px; }
.step p { color: var(--muted); margin-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 26px; margin-bottom: 12px; transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; transition: transform 0.2s, background 0.2s;
}
.faq details[open] summary::after { content: "−"; background: var(--lime); border-color: var(--lime); }
.faq details p { color: var(--muted); margin: 14px 0 0; }
.faq a { color: var(--accent); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 56px; text-align: center;
  background: var(--ink); color: #c9c9d3;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
}
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; left: 50%; bottom: -260px; transform: translateX(-50%); background: radial-gradient(circle, rgba(212, 255, 58, 0.35), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band .grad-text { color: var(--lime); }
.cta-band .lead { margin: 12px auto 32px; color: #b9b9c4; }
.cta-band .btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px rgba(212, 255, 58, 0.25); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* Article */
.article { font-size: 1.08rem; }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.article h2 { font-size: 1.85rem; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; margin-bottom: 1.2em; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent); }
.article .summary-box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 22px 26px; margin: 28px 0; }
.article .summary-box p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 0.92rem; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.98rem; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); background: var(--paper-2); }
td { color: var(--ink-2); }

/* Contact */
.contact-box { text-align: center; padding: 48px 32px; }
.contact-email { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); text-decoration: none; }
.contact-email:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #9d9daa; padding: 72px 0 40px; margin-top: 64px; font-size: 0.95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid #2a2a31; padding-top: 24px; font-size: 0.86rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill .dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .answer-card { transform: none; max-width: 560px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3, .grid-4, .compare { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .compare .new { box-shadow: 5px 5px 0 var(--lime); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 22px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; color: var(--ink); }
  .nav-links .btn { display: inline-flex; margin-top: 8px; padding: 13px 20px; }
  .cta-band { padding: 48px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
