/* GENUBRA AI — "a line of thought". Light, quiet, big type; one signal colour (GENUBRA magenta) rationed to the line. */
:root {
  --paper: #fbfbf9;
  --paper-2: #f2f2ef;
  --card: #ffffff;
  --ink: #0b0b0f;
  --ink-2: #4a4b53;
  --ink-3: #7b7c85;
  --rule: #e4e4df;
  --sig: #d1155c;
  --sig-soft: #fbe6ee;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0e; --paper-2: #121217; --card: #15151b; --ink: #f2f2f4; --ink-2: #b2b3bc; --ink-3: #85868f; --rule: #24242c;
    --sig: #ff4d8b; --sig-soft: #2a1019; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0b0e; --paper-2: #121217; --card: #15151b; --ink: #f2f2f4; --ink-2: #b2b3bc; --ink-3: #85868f; --rule: #24242c;
  --sig: #ff4d8b; --sig-soft: #2a1019; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* mark: a station on the line */
.mark { width: 32px; height: 20px; flex: none; }
.mark rect { fill: var(--sig); }
.mark circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3.4; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--ink) 60%, transparent); transform: translateY(-1px); }
.btn-sig { background: var(--sig); color: #fff; }
.btn-sig:hover { box-shadow: 0 10px 28px -10px var(--sig); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--sans); letter-spacing: .06em; text-decoration: none; }
.brand .ai { font-weight: 500; letter-spacing: .02em; color: var(--sig); margin-left: -4px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 color-mix(in srgb, var(--sig) 50%, transparent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin-top: 28px; font-size: clamp(48px, 9.4vw, 124px); font-weight: 800; letter-spacing: -0.055em; }
.hero h1 .hl { color: var(--ink-3); }
@supports (background-clip: text) {
  .hero h1 .hl { background: linear-gradient(90deg, var(--ink) 0%, var(--ink-3) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lede { margin-top: 28px; max-width: 640px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.5; }
.join { position: relative; display: flex; gap: 8px; margin-top: 36px; width: min(520px, 100%); padding: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -24px rgba(0,0,0,.25); flex-wrap: wrap; }
.join input { flex: 1 1 200px; min-width: 0; min-height: 48px; border: 0; background: transparent; padding: 0 18px; font: 400 17px var(--sans); color: var(--ink); }
.join input:focus { outline: none; }
.join:focus-within { border-color: color-mix(in srgb, var(--sig) 55%, var(--rule)); }
.join-msg { position: absolute; left: 0; right: 0; top: calc(100% + 12px); font: 500 14px/1.4 var(--sans); color: var(--ink-2); text-align: center; min-height: 1.4em; }
.join-msg.ok { color: var(--sig); }
.join-msg.err { color: #c62d2d; }
.fine { margin-top: 48px; font-size: 13.5px; color: var(--ink-3); }

/* the line */
.line-sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.kicker { font: 500 13px/1 var(--mono); color: var(--sig); letter-spacing: .04em; }
.line-sec h2, .sec h2 { margin-top: 16px; font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -0.045em; }
.ask-card { margin-top: 44px; display: inline-flex; flex-direction: column; gap: 8px; max-width: 640px; padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 18px 50px -34px rgba(0,0,0,.35); }
.ask-k { font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.ask-q { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.line { --dur: 13s; list-style: none; margin: 44px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: var(--rule); }
.line::after { content: ""; position: absolute; left: 0; top: 13px; height: 4px; width: 100%; border-radius: 2px; background: var(--sig); transform-origin: left; transform: scaleX(0); animation: run var(--dur) linear infinite; }
@keyframes run { 0% { transform: scaleX(0); } 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.st { position: relative; padding: 46px 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pin { position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); z-index: 1; animation: lit var(--dur) linear infinite; animation-delay: calc(var(--i) * var(--dur) / 6.5); }
@keyframes lit { 0%, 2% { border-color: var(--ink); background: var(--paper); transform: scale(1); } 4% { border-color: var(--sig); background: var(--sig); transform: scale(1.18); } 10%, 90% { border-color: var(--sig); background: var(--paper); transform: scale(1); } 100% { border-color: var(--ink); } }
.st b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.st span:not(.pin) { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* sections */
.sec { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--rule); }
.tiles { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -36px rgba(0,0,0,.35); }
.t-wide { grid-column: span 2; background: linear-gradient(135deg, var(--card) 40%, var(--sig-soft)); }
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; margin-top: auto; }
.tile p { color: var(--ink-2); font-size: 16px; }
.chip { align-self: flex-start; font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }
.chip.on { background: var(--sig-soft); color: var(--sig); }

.band { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; }
.band-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.band h2 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; }
.band .soft { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.band p { color: color-mix(in srgb, var(--paper) 75%, transparent); font-size: 18px; }

.promises { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.promises li { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--rule); }
.promises li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--rule); }
.promises h3 { font-size: 24px; letter-spacing: -0.025em; }
.promises p { margin-top: 10px; color: var(--ink-2); }

.faq-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.faq a { color: var(--sig); }

.final { padding: clamp(96px, 13vw, 170px) 0; text-align: center; border-top: 1px solid var(--rule); background: radial-gradient(60% 70% at 50% 100%, var(--sig-soft), transparent 70%); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.mark.big { width: 72px; height: 44px; }
.final h2 { margin-top: 24px; font-size: clamp(44px, 8vw, 104px); font-weight: 800; letter-spacing: -0.055em; }
.final p { margin-top: 16px; color: var(--ink-2); font-size: 19px; }

.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand.small { font-size: 14px; }
.brand.small .mark { width: 26px; height: 16px; }
.foot-fine { font-size: 13.5px; color: var(--ink-3); }
.foot-fine a { color: var(--ink-2); }

/* reveal on scroll, CSS only (content is visible without support) */
@supports (animation-timeline: view()) {
  .tile, .promises li, .ask-card { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 960px) {
  .links { display: none; }
  .bar-in .btn { margin-left: auto; }
  .line { grid-template-columns: 1fr; }
  .line::before, .line::after { left: 11px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .line::after { transform-origin: top; transform: scaleY(0); animation-name: run-v; }
  @keyframes run-v { 0% { transform: scaleY(0); } 92% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
  .st { padding: 0 0 28px 50px; }
  .pin { top: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .band-in, .faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .promises { grid-template-columns: 1fr; }
  .promises li, .promises li:nth-child(even) { padding: 26px 0; border-left: 0; }
  .join { border-radius: 24px; }
  .join .btn { width: 100%; }
  .join-msg { position: static; margin-top: 4px; width: 100%; }
  .fine { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line::after { transform: none; }
}

@media (max-width: 520px) { .hide-s { display: none; } }
