/* Idios Labs — shared styles.
   Titles are Space Grotesk; everything else is Inter. */

:root {
  /* Paper and night match the nebula canvas grounds exactly, so the canvas
     edge never shows against the section behind it. */
  --paper: #fbfaf6;
  --paper-2: #f4f2ec;
  --night: #0a0c18;
  --night-2: #12152a;

  /* On paper: ink 16.9:1, slate 6.6:1, faint 4.6:1. */
  --ink: #191922;
  --slate: #50535f;
  --faint: #6b6e7a;
  --rule: #e4e1d8;

  /* On night: 17.2:1 and 8.6:1. */
  --on-night: #f1f2f6;
  --on-night-soft: #a6abc0;
  --rule-night: #23273d;

  /* Taken from the nebula's blue, darkened for 6.9:1 on paper. */
  --accent: #2346a8;
  --accent-night: #9cb8f2;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent-night); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.2vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.3rem, 4.4vw, 4.6rem); line-height: 1.05; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font: 500 0.75rem/1.4 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.5rem;
}
.dark .eyebrow { color: var(--on-night-soft); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 36em; }
.body { font-size: 1.0625rem; color: var(--slate); max-width: 34em; }
.dark .lede, .dark .body { color: var(--on-night-soft); }
.note { font-size: 0.95rem; font-style: italic; color: var(--faint); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.35em; border-radius: 999px;
  font: 500 0.95rem/1 var(--body); text-decoration: none;
  border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2c2c38; }
.btn-ghost { color: var(--ink); background: transparent; border-color: #c9c6bd; }
.btn-ghost:hover { border-color: var(--ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font: 500 1rem/1.4 var(--body); color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
/* The header runs nearly full width, so the brand sits closer to the left
   edge than the page content does. */
.site-header .wrap { max-width: none; padding: 0 clamp(20px, 6.4vw, 104px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 39px; height: 30px; }
.brand span { font: 600 1.15rem/1 var(--display); letter-spacing: -0.02em; }
/* The header mark is larger than the footer one. */
.site-header .brand { gap: 13px; }
.site-header .brand img { width: 52px; height: 40px; }
.site-header .brand span { font-size: 1.45rem; }
@media (max-width: 760px) { .site-header .brand img { width: 44px; height: 34px; } .site-header .brand span { font-size: 1.25rem; } }
.nav { display: flex; gap: clamp(2px, 0.8vw, 10px); }
.nav a { font-size: 0.92rem; color: var(--slate); text-decoration: none; padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(25, 25, 34, .05); }
/* The page you're on: a filled pill, readable over the hero nebula as
   well as on plain paper. */
.nav a[aria-current] {
  color: var(--ink); font-weight: 600; background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(25, 25, 34, .06);
}
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-size: 0.92rem; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(251,250,246,.85);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(25,25,34,.1);
}
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.menu nav a:hover { background: var(--paper-2); }
.menu nav a[aria-current] { background: var(--paper-2); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- generic section ---------- */
/* Generous vertical space between sections: room to breathe before the
   next idea arrives. */
.section { padding: clamp(128px, 18vw, 260px) 0; }
.section-head { max-width: 44rem; }
.section-head h2 + * { margin-top: 1.75rem; }
.section-head > p + p { margin-top: 1rem; }

/* Fade-in for content that enters the viewport. Hidden only when scripting
   is on, so a script failure never leaves a section blank. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur, 1.5s) ease .3s, transform var(--dur, 1.5s) cubic-bezier(.2,.7,.2,1) .3s; }
.js .reveal.is-in { opacity: 1; transform: none; }
/* data-stagger: the block fades in, then its children arrive one by one
   (site.js numbers them into --i). The block fades too, so a box with a
   background never shows up empty before its content.
   --base: pause before the first child.  --step: gap between children. */
.js .reveal[data-stagger] {
  transition: opacity var(--dur, 1.4s) ease, transform var(--dur, 1.4s) cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--base, .5s);
}
.js .reveal[data-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur, 1.4s) ease, transform var(--dur, 1.4s) cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--base, .5s) + var(--i, 0) * var(--step, .3s));
}
.js .reveal[data-stagger].is-in > * { opacity: 1; transform: none; }
/* A follower (data-reveal-after) is revealed with its leader but waits,
   by default until the leader's text is in. */
.js .reveal[data-reveal-after] { --base: 2.2s; transition-delay: var(--base); }
/* Inner pages (body.brisk) read faster: shorter fades, tighter steps. */
.brisk { --dur: 1s; }
.brisk .reveal { --base: .25s; --step: .18s; }
.brisk .reveal[data-reveal-after] { --base: 1s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal[data-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- footer ---------- */
/* Footer: the Idios Labs banner, then one row of links and a line of
   small print. The banner's paper background matches the page, so it
   sits flush rather than as a framed picture. */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 32px; }
/* Wider than the page grid, so the banner can stretch out. */
.site-footer .wrap { max-width: 1480px; }
.footer-banner { display: block; border-radius: 22px; overflow: hidden; }
.footer-banner picture, .footer-banner img { display: block; width: 100%; height: auto; }
.footer-row { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; }
.site-footer .tagline { font: 500 1.05rem/1.4 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.site-footer .links a { color: var(--slate); text-decoration: none; font-size: 0.93rem; }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .links .footer-cta { color: var(--paper); background: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 500; }
.site-footer .links .footer-cta:hover { color: var(--paper); background: #2c2c38; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--faint); }
.site-footer .bottom a { color: var(--faint); text-decoration: none; }
.site-footer .bottom a:hover { color: var(--ink); }
/* Phones show a crop of just the mark and name, so it stays legible. */
@media (max-width: 640px) { .footer-banner { max-width: 320px; border-radius: 12px; } .footer-row { margin-top: 12px; } }

/* ---------- product mockups ---------- */
.mock {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(25,25,34,.04), 0 12px 32px rgba(25,25,34,.06);
  font-size: 0.8rem; color: var(--ink); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #efede7; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e2dfd6; }
.mock-bar span { margin-left: 8px; font-size: 0.72rem; color: var(--faint); }
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-label { font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font-size: 0.72rem; white-space: nowrap; }
.chip.on { background: #e9eefb; border-color: #c7d3f3; color: var(--accent); }
.q { padding: 10px; border-radius: 10px; background: var(--paper); border: 1px solid #efede7; }
.q p { font-weight: 500; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--slate); }
.opt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c9c6bd; flex: none; }
.opt.on { color: var(--ink); }
.opt.on::before { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.fact { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 10px; border: 1px solid #efede7; border-radius: 10px; }
.fact b { font-weight: 500; }
.fact small { grid-column: 1; color: var(--faint); font-size: 0.68rem; }
.fact .ctl { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; align-self: center; }
.fact .ctl span { font-size: 0.66rem; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--rule); color: var(--slate); }
.tag { display: inline-block; font-size: 0.62rem; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.tag.v { background: #e6f3ee; color: #1f6b52; }
.tag.p { background: #f6efe1; color: #7a5418; }
.prompt { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--slate); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare > div { padding: 10px; border-radius: 10px; border: 1px solid #efede7; line-height: 1.45; }
.compare .adapted { border-color: #c7d3f3; background: #f5f7fd; }
.compare em { display: block; font-style: normal; font-size: 0.64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.compare .adapted em { color: var(--accent); }
.used { font-size: 0.7rem; color: var(--faint); }
.used b { color: var(--slate); font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--slate);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: #fff;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9a23a; }

/* ---------- constellation: the nebula as an explanatory diagram ----------
   Used on the AI Profile and Research pages. A calm nebula canvas sits
   behind an SVG map of labelled nodes; edges draw in when it is revealed.
   Illustrative only: none of it is live user data. */
.constellation { position: relative; width: 100%; aspect-ratio: 1; }
.constellation canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
          mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.constellation .map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .edge { fill: none; stroke: rgba(35, 70, 168, .38); stroke-width: .28; }
.map .edge.faint { stroke: rgba(35, 70, 168, .18); stroke-width: .22; }
.map .edge.key { stroke: #6b5fc7; stroke-width: .5; }
.map .node { fill: #fff; stroke: #2346a8; stroke-width: .45; }
.map .hub { fill: #2346a8; }
.map .hub-glow { fill: rgba(35, 70, 168, .12); }
.map .dot { fill: #2346a8; opacity: .45; }
.map text {
  font: 500 2.75px var(--body); fill: var(--ink); text-anchor: middle;
  paint-order: stroke; stroke: #fbfaf6; stroke-width: .9px; stroke-linejoin: round;
}
.map text.small { font-size: 2.2px; fill: #5b4fb0; font-weight: 600; }
.map text.num { fill: var(--accent); font-weight: 600; }
.map .ring { fill: none; stroke: #2346a8; stroke-width: .3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .pulse .ring { animation: ping 1.8s ease-out; }
.map .pulse .node { fill: #e9eefb; transition: fill .4s; }
@keyframes ping { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.viz-note { margin-top: 6px; text-align: center; font-size: 0.78rem; color: var(--faint); }
/* reveal: edges draw, nodes and labels fade, the key relationship last */
.js .constellation .edge { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s ease .4s; }
.js .constellation .n-group, .js .constellation .key-group { opacity: 0; transition: opacity 1s ease; }
.js .is-in > .constellation .edge { stroke-dashoffset: 0; }
.js .is-in > .constellation .n-group { opacity: 1; transition-delay: calc(.6s + var(--k, 0) * .15s); }
.js .is-in > .constellation .key-group { opacity: 1; transition-delay: 2.6s; }
.js .constellation .key-group .edge { stroke-dasharray: 1.4 1; stroke-dashoffset: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js .constellation .edge { stroke-dashoffset: 0; transition: none; }
  .js .constellation .n-group, .js .constellation .key-group { opacity: 1; transition: none; }
  .map .pulse .ring { animation: none; }
}

/* ---------- dividers that wait for their content ----------
   .reveal-rule: a section's top (or, with .rule-bottom, bottom) border
   draws in once something inside it has revealed, instead of sitting
   there on its own first. Without scripting it is a plain border. */
.js .reveal-rule { position: relative; border-top-color: transparent !important; border-bottom-color: transparent !important; }
.js .reveal-rule::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.4,0,.2,1) .2s;
}
.js .reveal-rule.rule-bottom::after { top: auto; bottom: -1px; }
.js .reveal-rule:has(.is-in)::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal-rule::after { transition: none; } }


/* ---------- open research community panel (Research and About pages) ---------- */
/* A featured panel in the USIL greens,
   set apart from the article cards. Text colours measured on the
   panel tone: ink 11.5:1, soft 5.5:1, accent 5.7:1; white on the accent button 6.4:1. */
.community {
  --g-ink: #16382c; --g-soft: #46695b; --g-accent: #2d6a4c; --g-line: #cfe0d4;
  position: relative; overflow: hidden; color: var(--g-ink); border-radius: 28px;
  padding: clamp(28px, 4vw, 56px); border: 1px solid var(--g-line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(214, 233, 205, .9), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(246, 236, 210, .7), transparent 60%),
    #eef4ec;
}
.community .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--g-accent); margin-bottom: 1.25rem; }
.community .eyebrow .num { color: var(--g-accent); }
.community-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; }
.community h2 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--g-ink); }
.community .lede { margin-top: 1rem; color: var(--g-soft); }
.community .ask {
  margin-top: 1.75rem; padding-left: 18px; border-left: 3px solid var(--g-accent);
  font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.4 var(--display); letter-spacing: -0.01em; color: var(--g-ink); max-width: 30em;
}
.community .body { margin-top: 1rem; color: var(--g-soft); }
.community .body + .body { margin-top: .75rem; }
.community figure { margin: 0; }
.community figure img { width: 100%; border-radius: 18px; box-shadow: 0 18px 48px rgba(22, 56, 44, .14); border: 1px solid rgba(255,255,255,.7); }
.tiles { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  background: rgba(255,255,255,.72); border: 1px solid var(--g-line); border-radius: 18px; padding: 22px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tile svg {
  box-sizing: content-box; padding: 9px; border-radius: 12px; background: #dcebdf; color: var(--g-accent);
}
.tile h3 { margin-top: 14px; font: 600 1.05rem/1.3 var(--body); letter-spacing: -0.005em; color: var(--g-ink); }
.tile p { margin-top: 6px; font-size: 0.92rem; color: var(--g-soft); }
.ext-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ext-links a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 10px 16px; border-radius: 999px; color: var(--g-accent); background: rgba(255,255,255,.65); border: 1px solid var(--g-line);
  transition: background .2s, color .2s, border-color .2s;
}
.ext-links a:first-child { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.ext-links a:hover { border-color: var(--g-accent); }
.ext-links a:first-child:hover { background: #24573e; }
.community .scope { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--g-line); font-size: 0.88rem; color: var(--g-soft); }
/* tiles arrive one by one after the panel's text */
.js .community .tiles > * { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .community.is-in .tiles > * { opacity: 1; transform: none; }
.js .community .tiles > :nth-child(1) { transition-delay: .9s; }
.js .community .tiles > :nth-child(2) { transition-delay: 1.1s; }
.js .community .tiles > :nth-child(3) { transition-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) { .js .community .tiles > * { opacity: 1; transform: none; transition: none; } }
@media (max-width: 980px) {
  .community-head, .tiles { grid-template-columns: 1fr; }
  .community figure { max-width: 520px; }
}

/* ---------- navigation call to action ---------- */
.nav { align-items: center; }
.nav .nav-cta {
  color: var(--paper); background: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 500;
  transition: background .2s;
}
.nav .nav-cta:hover { color: var(--paper); background: #2c2c38; }
.menu nav a.nav-cta { margin-top: 6px; background: var(--ink); color: var(--paper); text-align: center; }
.menu nav a.nav-cta:hover { background: #2c2c38; }

/* ---------- waitlist and contact: dialog ----------
   A centred card on desktop; a full-screen panel on phones. */
.idd {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 12, 24, .28); overflow: auto;
}
.idd::backdrop { background: rgba(10, 12, 24, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.idd[open] { animation: idd-in .32s cubic-bezier(.2,.7,.2,1); }
@keyframes idd-in { from { opacity: 0; transform: translateY(14px); } }
.idd-inner { position: relative; padding: clamp(24px, 4vw, 40px); }
.idd-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid var(--rule);
}
.idd-close:hover { border-color: var(--ink); }
.idd-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #efedfa; color: #5b4fb0; }
.idd h2 { margin-top: 18px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.idd-kicker { margin-top: 6px; font-weight: 600; }
.idd-intro { margin-top: 8px; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 640px) {
  .idd { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .idd-inner { padding: 72px 20px 32px; }
}
@media (prefers-reduced-motion: reduce) { .idd[open] { animation: none; } }

/* ---------- waitlist and contact: form ---------- */
.idf { margin-top: 24px; display: grid; gap: 14px; }
.idf[hidden], .idf-done[hidden], .idf-error[hidden] { display: none; }
.idf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.idf-field { display: grid; gap: 6px; }
.idf label { font-size: 0.86rem; font-weight: 500; color: var(--slate); }
.idf .idf-opt { font-weight: 400; color: var(--faint); }
.idf .req { color: var(--accent); }
.idf input:not([type="checkbox"]):not(.idf-hp), .idf select, .idf textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink); background: #fff;
  border: 1px solid #dcd8cd; border-radius: 12px; padding: 12px 14px; transition: border-color .2s;
}
.idf select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2350535f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.idf textarea { resize: vertical; min-height: 120px; }
.idf input::placeholder, .idf textarea::placeholder { color: #9b9ea8; }
.idf input:focus, .idf select:focus, .idf textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 70, 168, .14); }
.idf .idf-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.idf-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.idf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.idf-submit { justify-content: center; width: 100%; padding: 14px; border-radius: 12px; font-size: 1rem; cursor: pointer; }
.idf-submit[disabled] { opacity: .6; cursor: progress; }
.idf-fine { margin-top: -4px; font-size: 0.8rem; color: var(--faint); text-align: center; }
.idf-error { font-size: 0.88rem; color: #8f2a22; background: #fdf0ee; border: 1px solid #f1d2cc; border-radius: 10px; padding: 10px 12px; }
.idf-done { margin-top: 24px; padding: 28px 24px; border-radius: 18px; background: #f2f1fb; border: 1px solid #ddd9f3; text-align: center; }
.idf-done:focus { outline: none; }
.idf-done-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; }
.idf-done h3 { margin-top: 14px; font-size: 1.3rem; }
.idf-done p { margin-top: 6px; color: var(--slate); }
@media (max-width: 520px) { .idf-row { grid-template-columns: 1fr; } }
