/* Devdwell: Lumiave's ink ground (a teal-black), teal and coral as the two hues,
   deep sea where they meet. Gradients live in grounds and glows; the mark stays flat. */
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/instrument-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/schibsted-400.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/schibsted-500.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/schibsted-600.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-700.woff2') format('woff2'); }

:root {
  --teal: #0E9E93;
  --teal-lift: #4FC9BF;
  --coral: #FF6B57;
  --coral-lift: #FF9B8B;
  --sea: #0B3A48;
  --sea-deep: #04252E;

  --bg: #071A20;
  --bg-2: #0B242C;
  --card: #0E2A32;
  --ink: #EEF5F4;
  --ink-2: #A9C0C0;   /* 8.4:1 on --bg */
  --ink-3: #8BA4A5;   /* 5.9:1 on --bg, 5.1:1 on --card */
  --line: rgba(238, 245, 244, 0.10);
  --line-2: rgba(238, 245, 244, 0.20);

  --btn: linear-gradient(135deg, #7DE0D7 0%, var(--teal-lift) 40%, var(--teal) 100%);
  --brand-grad: linear-gradient(100deg, var(--teal-lift) 0%, #A8D9C6 45%, var(--coral-lift) 100%);
  --card-grad: linear-gradient(180deg, rgba(14, 42, 50, 0.9), rgba(11, 36, 44, 0.6));

  --serif: "Instrument Serif", "New York", Georgia, serif;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wordmark: "Bricolage Grotesque", var(--sans);
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 12% -5%, rgba(14, 158, 147, 0.30), transparent 65%),
    radial-gradient(900px 600px at 95% 8%, rgba(255, 107, 87, 0.16), transparent 65%),
    var(--bg);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-lift); }
em { font-style: italic; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
:focus-visible { outline: 2px solid var(--teal-lift); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100% - var(--wrap)) / 2 + 24px)); background: rgba(7, 26, 32, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a, .nav .signin { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav nav a:hover, .nav .signin:hover { color: var(--ink); }
.nav .signin { margin-left: 4px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo img { width: 22px; height: 29px; }
.logo b { font: 700 23px/1 var(--wordmark); letter-spacing: -0.035em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 12px; font: 600 16px var(--sans); text-decoration: none; color: var(--sea-deep); background: var(--btn); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 32px -10px rgba(14, 158, 147, 0.7); cursor: pointer; transition: filter 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
.link { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--ink); }

.eyebrow { color: var(--teal-lift); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
.lead { color: var(--ink-2); font-size: 20px; max-width: 640px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.04; margin-bottom: 16px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 84px 24px 40px; text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.6vw, 98px); line-height: 0.98; max-width: 940px; }
.hero .lead { margin: 26px auto 34px; }
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.fine { color: var(--ink-3); font-size: 14px; margin: 18px 0 0; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--card); border: 1px solid transparent; background-clip: padding-box; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(79, 201, 191, 0.6), rgba(238, 245, 244, 0.06) 40%, rgba(255, 107, 87, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-shot { margin-top: 64px; }

/* ---------- What it does ---------- */
.features { max-width: var(--wrap); margin: 0 auto; padding: 100px 24px 40px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.grid article { grid-column: span 2; position: relative; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-grad); overflow: hidden; }
.grid article:nth-child(n+4) { grid-column: span 3; }
.grid article::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-lift)); }
.grid article:nth-child(2)::before { background: linear-gradient(90deg, var(--teal-lift), #A8D9C6); }
.grid article:nth-child(3)::before { background: linear-gradient(90deg, #A8D9C6, var(--coral-lift)); }
.grid article:nth-child(4)::before { background: linear-gradient(90deg, var(--coral-lift), var(--coral)); }
.grid article:nth-child(5)::before { background: linear-gradient(90deg, var(--coral), var(--teal-lift)); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(79, 201, 191, 0.22), rgba(255, 107, 87, 0.16)); border: 1px solid var(--line); color: var(--teal-lift); }
.icon svg { width: 22px; height: 22px; }
.grid h3 { font-size: 30px; line-height: 1.1; margin: 18px 0 8px; }
.grid p { color: var(--ink-2); margin: 0; font-size: 16px; }

.feature { max-width: var(--wrap); margin: 0 auto; padding: 90px 24px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 1.15fr 0.85fr; }
.feature.flip .copy { order: 2; }
.feature h2 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.04; margin-bottom: 20px; }
.feature p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, rgba(79, 201, 191, 0.35), rgba(255, 107, 87, 0.25)) padding-box; }
.checks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 4px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------- How it works ---------- */
.how { max-width: var(--wrap); margin: 0 auto; padding: 90px 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: rgba(14, 42, 50, 0.55); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 16px var(--sans); color: var(--sea-deep); background: var(--btn); margin-bottom: 18px; }
.steps li:nth-child(3)::before { background: linear-gradient(135deg, #FFC2B8, var(--coral-lift) 40%, var(--coral)); }
.steps h3 { font-size: 30px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 90px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border: solid var(--teal-lift); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--teal-lift); }
.faq details p { color: var(--ink-2); margin: -6px 4px 22px; max-width: 680px; }

/* ---------- Closing call to action ---------- */
.band { max-width: var(--wrap); margin: 40px auto 100px; padding: 72px 32px; text-align: center; border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 80% at 0% 0%, rgba(14, 158, 147, 0.34), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 107, 87, 0.24), transparent 70%),
    linear-gradient(160deg, var(--sea), var(--bg-2)); }
.band h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 14px; }
.band .lead { margin: 0 auto 30px; font-size: 19px; }

/* ---------- Request access ---------- */
.request { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 100px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.request h1 { font-size: clamp(46px, 6.4vw, 78px); line-height: 1; margin-bottom: 22px; }
.request .lead { font-size: 19px; margin: 0 0 36px; }
.request h2 { font-size: 30px; margin: 0 0 14px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.platforms div { padding: 18px 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 42, 50, 0.6); }
.platforms b { display: block; font-weight: 600; }
.platforms span { color: var(--ink-2); font-size: 15px; }
.next { list-style: none; margin: 0; padding: 0; counter-reset: next; display: flex; flex-direction: column; gap: 16px; }
.next li { counter-increment: next; position: relative; padding-left: 46px; color: var(--ink-2); }
.next li b { color: var(--ink); font-weight: 600; display: block; }
.next li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--sans); color: var(--teal-lift); border: 1px solid rgba(79, 201, 191, 0.45); background: rgba(79, 201, 191, 0.08); }

.form { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 20px; background: rgba(4, 22, 27, 0.72); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: rgba(238, 245, 244, 0.05); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9C0C0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-lift); box-shadow: 0 0 0 3px rgba(79, 201, 191, 0.2); }
.form .btn { margin-top: 6px; width: 100%; }
.form-ok, .form-err { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form-ok { background: rgba(79, 201, 191, 0.14); border: 1px solid rgba(79, 201, 191, 0.4); color: var(--ink); }
.form-err { background: rgba(255, 107, 87, 0.14); border: 1px solid rgba(255, 107, 87, 0.45); color: var(--ink); }
.form-err:empty, .form-ok:empty { padding: 0; border: 0; }

/* ---------- Footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 56px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.foot .logo img { width: 18px; height: 24px; }
.foot .logo b { font-size: 19px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.foot nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot p { color: var(--ink-3); font-size: 14px; margin: 0; flex-basis: 100%; }
.foot p a { color: var(--ink-2); }

/* ---------- Text pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 90px; }
.page h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1; margin-bottom: 24px; }
.page h2 { font-size: 30px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-2); }
.page li { margin-bottom: 6px; }
.page li b, .page p b { color: var(--ink); font-weight: 600; }
.page .updated { color: var(--ink-3); font-size: 15px; }
.page .actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 900px) {
  .nav { gap: 16px; padding-left: 16px; padding-right: 16px; }
  .nav nav { display: none; }
  .nav .signin { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  .grid article, .grid article:nth-child(n+4) { grid-column: auto; }
  .feature, .feature.flip, .request, .steps { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .feature { padding: 60px 16px; gap: 32px; }
  .hero { padding: 52px 16px 24px; }
  .hero-shot { margin-top: 44px; }
  .lead { font-size: 18px; }
  .features, .how, .faq { padding: 64px 16px; }
  .request { padding: 48px 16px 72px; gap: 40px; }
  .band { margin: 20px 16px 70px; padding: 48px 20px; border-radius: 22px; }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .foot nav { margin-left: 0; }
  .page { padding: 48px 16px 72px; }
}
@media (max-width: 480px) {
  .nav .signin { display: none; }
  .nav .btn { margin-left: auto; }
  .platforms { grid-template-columns: 1fr; }
  .grid h3, .steps h3 { font-size: 27px; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .faq summary::after { transition: none; } }
