/* modAI landing page. Palette and type follow the product (frontend/tailwind.config.js):
   ink #101727, cloud #f4f6f9, cyan #2f9fb5, coral #de775f. Fonts are self-hosted (OFL),
   so the page makes no third-party requests. */
/* Newsreader, latin-ext */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Newsreader, latin */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Schibsted Grotesk, latin-ext */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Schibsted Grotesk, latin */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #101727;
  --ink-2: #182238;
  --ink-3: #222e48;
  --paper: #f4f6f9;
  --white: #ffffff;
  --cyan: #2f9fb5;
  --cyan-text: #1d6f80;      /* cyan for small text on paper: 5.3:1 */
  --cyan-light: #7fd3e2;     /* cyan for text on ink */
  --coral: #de775f;
  --slate: #556275;
  --mist: #a7b4c6;
  --rule: #d5dce5;
  --rule-ink: #2b3753;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  font-feature-settings: "ss01" 1;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; color: var(--slate); }
.muted { color: var(--slate); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

/* Wordmark: the product's own "modAI." with the coral dot. */
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--coral); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--white);
}
.button:hover { background: var(--ink-3); border-color: var(--ink-3); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--white); border-color: var(--ink); }
.button--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--light:hover { background: var(--paper); border-color: var(--paper); }

/* Header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--cyan-text); }
.nav .button { min-height: 42px; padding: 9px 18px; font-size: 15px; color: var(--white); }
.nav .lang { color: var(--slate); font-weight: 700; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--white); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(300px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px;
  box-shadow: 0 24px 60px rgba(16, 23, 39, 0.18);
}
.menu-panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--paper); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 26px; max-width: 34ch; }
/* English words run longer: a smaller display size keeps the headline to three or four lines. */
.hero--long h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { margin-top: 30px; font-size: 15px; color: var(--slate); max-width: 46ch; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-copy .lead { max-width: 40ch; } }

/* The answer console: the page's one memorable element. */
.console { background: var(--ink); color: var(--white); border-radius: 22px; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 30px 80px rgba(16, 23, 39, 0.22); }
.console-questions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.console-questions button {
  font: 600 14px/1.3 var(--sans); color: var(--mist); background: transparent; cursor: pointer; text-align: left;
  border: 1px solid var(--rule-ink); border-radius: 999px; padding: 8px 14px;
}
.console-questions button:hover { color: var(--white); border-color: var(--mist); }
.console-questions button[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.exchange { display: grid; gap: 14px; align-content: start; }  /* min-height is reserved by site.js; rows must not stretch */
.bubble-question {
  justify-self: end; max-width: 88%; background: var(--ink-3); border-radius: 16px 16px 4px 16px; padding: 12px 16px;
  font-size: 17px; font-weight: 600;
}
.bubble-answer { max-width: 96%; background: var(--ink-2); border-radius: 16px 16px 16px 4px; padding: 16px 18px; font-size: 18px; line-height: 1.5; min-height: 3.2em; }
.bubble-answer .caret { display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--cyan-light); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.evidence { border-left: 3px solid var(--cyan); padding: 4px 0 4px 16px; transition: opacity .35s ease, transform .35s ease; }
.evidence[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); }
.evidence--none { border-left-color: var(--coral); }
.evidence-label { font-size: 13px; font-weight: 700; color: var(--mist); }
.evidence-doc { font-size: 15px; font-weight: 700; color: var(--cyan-light); overflow-wrap: anywhere; }
.evidence--none .evidence-doc { color: #f0a594; }
.evidence-quote { margin-top: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: #e8edf4; }
.evidence-quote table { border-collapse: collapse; margin-top: 6px; font-size: 16px; }
.evidence-quote td { padding: 3px 18px 3px 0; border-bottom: 1px solid var(--rule-ink); vertical-align: top; }
.evidence-quote tr.match td { color: var(--white); font-weight: 600; background: rgba(47, 159, 181, 0.16); }
.evidence-quote tr.match td:first-child { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 8px; }
.console-note { margin-top: 18px; font-size: 13px; color: var(--mist); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 18px; }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead, .section--ink .muted { color: var(--mist); }
.section--ink a { color: var(--cyan-light); }
.section--white { background: var(--white); }

/* Differences: a definition list with sources, not a card grid. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 48px 0 0; }
.fact { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.fact dt { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.fact dd { margin: 10px 0 0; color: var(--slate); }
.fact .source { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so it is numbered. */
.steps { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 56px); margin-top: 48px; align-items: start; }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; }
.step-list li { counter-increment: step; }
.step-button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: var(--radius); padding: 16px; font: inherit; color: inherit;
}
.step-button::before {
  content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; border: 2px solid var(--rule); color: var(--slate);
}
.step-button strong { font-size: 19px; line-height: 1.3; }
.step-button span { color: var(--slate); font-size: 16px; line-height: 1.5; }
.step-button:hover { background: rgba(255, 255, 255, 0.6); }
.step-button[aria-selected="true"] { background: var(--white); box-shadow: 0 10px 30px rgba(16, 23, 39, 0.06); }
.step-button[aria-selected="true"]::before { background: var(--ink); border-color: var(--ink); color: var(--white); }
.screen { margin: 0; background: var(--ink); border-radius: 18px; padding: clamp(8px, 1vw, 12px); box-shadow: 0 30px 70px rgba(16, 23, 39, 0.18); }
.screen img { border-radius: 10px; width: 100%; }
.screen figcaption { color: var(--mist); font-size: 14px; padding: 12px 6px 4px; }
.step-figures .screen[hidden] { display: none; }
.step-inline { display: none; }
.step-inline a { display: block; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-figures { display: none; }
  .step-inline { display: block; margin: 6px 0 22px; }
  .step-button { cursor: default; }
  .step-button:hover, .step-button[aria-selected="true"] { background: transparent; box-shadow: none; }
  .step-button[aria-selected="true"]::before { background: transparent; border-color: var(--rule); color: var(--slate); }
}

/* Voice band */
.voice { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.voice img { width: min(100%, 360px); border-radius: 28px; justify-self: center; }
.voice-points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.voice-points li { padding-left: 22px; position: relative; color: #dfe6ef; }
.voice-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
@media (max-width: 760px) { .voice { grid-template-columns: 1fr; } .voice img { width: 220px; justify-self: start; } }

/* Architecture: where things run. */
.arch { display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.6fr); gap: 18px; align-items: stretch; margin-top: 48px; }
.arch-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; background: var(--white); }
.arch-box h3 { font-size: 19px; }
.arch-box ul { margin: 12px 0 0; padding-left: 20px; color: var(--slate); font-size: 16px; }
.arch-box li + li { margin-top: 6px; }
.arch-box--server { background: var(--ink); color: var(--white); border-color: var(--ink); }
.arch-box--server ul { color: var(--mist); }
.arch-link { display: grid; place-items: center; align-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--slate); text-align: center; }
.arch-link::before { content: ""; width: 64px; height: 2px; background: var(--ink); }
.arch-outside { margin-top: 18px; display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; border: 2px dashed var(--rule); border-radius: var(--radius); color: var(--slate); font-size: 16px; }
.arch-outside strong { color: var(--ink); }
.controls { margin: 40px 0 0; padding: 0; list-style: none; columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.controls li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--slate); }
.controls strong { color: var(--ink); }
@media (max-width: 860px) {
  .arch { grid-template-columns: 1fr; }
  .arch-link::before { width: 2px; height: 34px; }
  .controls { columns: 1; }
}

/* Fit: two honest columns. */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: 44px; }
.fit h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.fit ul { margin: 16px 0 0; padding-left: 20px; color: var(--slate); }
.fit li + li { margin-top: 8px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* Pricing: three ruled columns, the recommended one on ink. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 2px solid var(--ink); }
.plan { padding: 28px clamp(18px, 2.4vw, 32px) 32px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan--featured { background: var(--ink); color: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.plan--featured + .plan { border-left: 0; }
.plan-name { font-size: 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.plan-name small { font-size: 13px; font-weight: 700; color: var(--cyan-light); }
.plan-price { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.plan--featured .plan-price span, .plan--featured .plan-desc, .plan--featured li { color: var(--mist); }
.plan-desc { margin-top: 12px; color: var(--slate); font-size: 16px; }
.plan ul { margin: 20px 0 28px; padding-left: 20px; font-size: 16px; color: var(--slate); flex: 1; }
.plan li + li { margin-top: 7px; }
.plan .button { align-self: flex-start; }
.plan--featured .button { background: var(--white); border-color: var(--white); color: var(--ink); }
.fine-print { margin-top: 24px; font-size: 14px; color: var(--slate); max-width: 90ch; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; border-top: 0; }
  .plan { border-top: 2px solid var(--ink); }
  .plan + .plan { border-left: 0; }
  .plan--featured { border-radius: var(--radius); margin-block: 8px; border-top: 0; }
}

/* Comparison with cloud assistants */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-wrap { margin-top: 40px; overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { padding: 16px 18px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 800; }
.compare thead th span { display: block; font-size: 14px; font-weight: 500; color: var(--slate); }
.compare tbody th { width: 30%; font-weight: 700; }
.compare td:nth-child(2) { background: var(--white); color: var(--ink); font-weight: 600; }
.compare td:nth-child(3) { color: var(--slate); }
.compare-note { margin-top: 24px; max-width: 90ch; color: var(--slate); }
.compare-note strong { color: var(--ink); }

/* Purchase */
.buy-steps { counter-reset: buy; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); margin: 44px 0 0; padding: 0; list-style: none; }
.buy-steps li { counter-increment: buy; padding-top: 18px; border-top: 2px solid var(--cyan-light); }
.buy-steps li::before { content: counter(buy); display: block; font-size: 15px; font-weight: 800; color: var(--cyan-light); }
.buy-steps strong { display: block; margin-top: 6px; font-size: 19px; line-height: 1.3; }
.buy-steps span { display: block; margin-top: 8px; color: var(--mist); font-size: 16px; }
.buy-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); margin-top: 48px; }
.buy-regions h3 { padding-bottom: 10px; border-bottom: 1px solid var(--rule-ink); }
.buy-regions ul { margin: 14px 0 0; padding-left: 20px; color: var(--mist); }
.buy-regions li + li { margin-top: 6px; }
.buy-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 44px; color: var(--mist); font-size: 16px; }
.buy-cta .button { background: var(--white); border-color: var(--white); color: var(--ink); }
.buy-cta .button:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 1000px) { .buy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(16px, 4vw, 40px); } }
@media (max-width: 640px) { .buy-steps, .buy-regions { grid-template-columns: 1fr; } .compare { font-size: 16px; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--slate); max-width: 72ch; }

/* Closing call to action */
.closing { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.closing .lead { margin-top: 16px; }

/* Footer */
.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: baseline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .evidence, .evidence[hidden] { transition: none; transform: none; }
  .bubble-answer .caret { animation: none; }
}
