/* ==========================================================================
   ISO Hub site styles
   Colors, fonts and widths live in the :root block right below.
   Change a value there and it changes everywhere on the site.
   ========================================================================== */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --night: #050c1a;      /* page background (deep navy) */
  --deep: #0a1730;       /* form fields and panels */
  --rule: #1c2e50;       /* lines and borders */
  --electric: #4cc9ff;   /* glowing blue accent */
  --ice: #bfeaff;        /* wordmark and highlight lines */
  --white: #ffffff;      /* main text */
  --mist: #b8c6dc;       /* secondary text */
  --dim: #8094b4;        /* captions and small print */
  --amber: #f2c14e;      /* "draft" notices only */

  /* Type */
  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Glow */
  --glow-text: 0 0 24px rgba(76, 201, 255, 0.45), 0 0 2px rgba(191, 234, 255, 0.9);
  --glow-box: 0 0 0 1px rgba(76, 201, 255, 0.35), 0 0 22px rgba(76, 201, 255, 0.35);

  /* Layout */
  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 10px;
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(76, 201, 255, 0.65);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--electric);
}

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0.75rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--deep);
  border: 1px solid var(--electric);
  border-radius: 8px;
  color: var(--white);
}

.skip:focus {
  left: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 12, 26, 0.86);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: 4rem;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ice);
  text-decoration: none;
  text-shadow: var(--glow-text);
}

.wordmark:hover {
  color: var(--white);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--mist);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--electric);
}

.menu-toggle {
  display: none;
}

/* Small screens: the menu folds behind a button (only when the script runs) */
@media (max-width: 819px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.4rem 0.95rem;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 8px;
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .js .menu-toggle[aria-expanded="true"] {
    border-color: var(--electric);
  }

  .js .site-nav {
    display: none;
    width: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.75rem;
  }

  .js .site-nav a {
    display: block;
    padding: 0.8rem 0;
    border-top: 1px solid var(--rule);
    font-size: 1.125rem;
  }

  .js .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--electric);
    padding-left: 0.85rem;
  }
}

/* ---------- Buttons, links and tags ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(180deg, rgba(76, 201, 255, 0.18), rgba(76, 201, 255, 0.05)), var(--deep);
  border: 2px solid var(--electric);
  border-radius: var(--radius);
  box-shadow: var(--glow-box);
  color: var(--white);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.button:hover {
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.6), 0 0 34px rgba(76, 201, 255, 0.55);
}

.more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ice);
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 0.42em 0.7em;
  border: 1.5px solid var(--electric);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(76, 201, 255, 0.3);
  color: var(--ice);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag-soon {
  border-style: dashed;
  border-color: var(--dim);
  box-shadow: none;
  color: var(--mist);
}

.tag-draft {
  border-style: dashed;
  border-color: var(--amber);
  box-shadow: none;
  color: var(--amber);
}

/* ---------- Moving energy (drawn by the script behind a section) ---------- */

[data-energy] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

[data-energy] > .wrap {
  position: relative;
  z-index: 2;
}

.energy-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Fades the energy into the page below it */
[data-energy]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 35%;
  background: linear-gradient(to bottom, rgba(5, 12, 26, 0), var(--night));
  pointer-events: none;
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

/* Keeps the words readable over the energy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(75% 60% at 22% 38%, rgba(5, 12, 26, 0.85), rgba(5, 12, 26, 0) 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.9vw + 1.4rem, 3.25rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-shadow: 0 0 30px rgba(76, 201, 255, 0.3);
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 0.9vw + 1rem, 1.6rem);
  font-weight: 500;
  color: var(--mist);
}

.hero .button {
  margin-top: 2rem;
}

/* DealPulse demo slot under the home headline.
   Shows the sample report until assets/video/dealpulse-demo.mp4 is added. */
.demo-slot {
  position: relative;
  margin-top: 1.75rem;
  max-width: 30rem;
}

/* "Sample" label sits on the top edge of the frame, clear of the report itself */
.sample-tag {
  position: absolute;
  top: -0.7rem;
  left: 0.8rem;
  z-index: 3;
  padding: 0.32em 0.65em;
  background: rgba(2, 16, 34, 0.9);
  border: 1.5px solid var(--electric);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(76, 201, 255, 0.45);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
}

.hero-media {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
}

/* Blue aura behind the AI host */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 6% 8% 14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(76, 201, 255, 0.42), rgba(76, 201, 255, 0.12) 60%, rgba(76, 201, 255, 0));
  filter: blur(12px);
}

/* The artwork fades into the page at the sides, top and very bottom edge.
   The "AI host" label sits above the bottom fade, so it always stays sharp. */
.hero-media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 97.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 11%, #000 97.5%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-media {
    max-width: 40rem;
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(54rem, calc(100svh - 4rem));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 2.5rem;
  }

  .hero-media {
    margin-inline: 0 calc(-1 * var(--gutter));
  }

  /* Let the AI host run a little past the column, toward the screen edge */
  .hero-media .hud {
    width: 112%;
  }
}

/* The page-open moment: headline lights up word by word, artwork powers on */
@media (prefers-reduced-motion: no-preference) {
  .power > span {
    animation: flicker-on 1s both;
    animation-timing-function: steps(1, end);
  }

  .power > span:nth-child(2) { animation-delay: 0.08s; }
  .power > span:nth-child(3) { animation-delay: 0.16s; }
  .power > span:nth-child(4) { animation-delay: 0.24s; }
  .power > span:nth-child(5) { animation-delay: 0.32s; }
  .power > span:nth-child(6) { animation-delay: 0.55s; }

  .hero-media img {
    animation: power-on 1.4s ease-out both;
  }

  .hero-media::before {
    animation: breathe 6s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes flicker-on {
  0% { opacity: 0; }
  14% { opacity: 0.9; }
  20% { opacity: 0.1; }
  32% { opacity: 1; }
  38% { opacity: 0.35; }
  50%, 100% { opacity: 1; }
}

@keyframes power-on {
  from { filter: brightness(0.3) saturate(0.5); }
  55% { filter: brightness(1.12) saturate(1.1); }
  to { filter: none; }
}

/* ---------- The report reader (highlights on the DealPulse sample report) ---------- */

.hud {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-box,
.hud-scan {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
}

.hud-box {
  border: 2px solid var(--electric);
  border-radius: 4px;
  background: rgba(76, 201, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(191, 234, 255, 0.35), 0 0 18px rgba(76, 201, 255, 0.75);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.18s ease, transform 0.3s ease;
}

/* The next part lights up just after the last one goes dark */
.hud-box.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease 0.16s, transform 0.35s ease 0.16s;
}

/* The name of each part, shown above its box */
.hud-box::after {
  content: attr(data-label);
  position: absolute;
  left: -2px;
  bottom: calc(100% + 6px);
  padding: 0.3em 0.6em;
  background: rgba(2, 16, 34, 0.94);
  border: 1px solid var(--electric);
  border-radius: 5px;
  box-shadow: 0 0 14px rgba(76, 201, 255, 0.55);
  color: var(--white);
  font-size: clamp(0.6875rem, 0.55rem + 0.45vw, 0.875rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.hud-box[data-align="end"]::after {
  left: auto;
  right: -2px;
}

.hud-scan {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hud.is-scanning .hud-scan,
.hud.is-read .hud-scan {
  opacity: 1;
}

/* Sweeping light bar */
.hud-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16%;
  background: linear-gradient(to bottom, rgba(76, 201, 255, 0), rgba(76, 201, 255, 0.3) 70%, rgba(191, 234, 255, 0.95) 96%, rgba(191, 234, 255, 0));
  transform: translateY(-110%);
}

.hud.is-scanning .hud-scan::before {
  animation: scan 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

@keyframes scan {
  from { transform: translateY(-110%); }
  to { transform: translateY(640%); }
}

/* Corner brackets around the screen while it's being read */
.hud-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  --c: var(--electric);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px no-repeat;
  filter: drop-shadow(0 0 4px rgba(76, 201, 255, 0.9));
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

.section-flush {
  border-top: 0;
  padding-top: 0;
}

.section h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem);
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.pitch {
  margin-top: 1.1rem;
  max-width: 24ch;
  color: var(--ice);
  font-size: clamp(1.55rem, 2vw + 1rem, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
}

.lead {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--mist);
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
}

.body-copy {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--mist);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.note {
  color: var(--dim);
  font-size: 0.9375rem;
}

/* Two columns on wide screens */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
  }

  .split-even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-wide {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 3rem;
  }

  .split-center {
    align-items: center;
  }

  /* Picture first on wide screens (words still come first on phones) */
  .split-media-first {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split-media-first > .media-col {
    order: -1;
  }
}

/* ---------- Pictures and videos ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  background: #02060f;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.12), 0 30px 90px -30px rgba(76, 201, 255, 0.45);
}

.media-frame img,
.media-frame video {
  width: 100%;
}

.portrait-media {
  width: 100%;
  max-width: 26rem;
}

.portrait-media video {
  aspect-ratio: 9 / 16;
  background: #02060f;
}

@media (min-width: 900px) {
  .split > .portrait-media,
  .split > .portrait {
    justify-self: end;
  }

  .split-media-first > .portrait-media {
    justify-self: start;
  }
}

figcaption {
  margin-top: 0.75rem;
  color: var(--dim);
  font-size: 0.9375rem;
}

/* Play / pause button on the AI host videos (top corner, clear of the label) */
.video-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(2, 16, 34, 0.75);
  border: 1px solid rgba(191, 234, 255, 0.55);
  border-radius: 8px;
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.video-toggle[hidden] {
  display: none;
}

/* DealPulse sample report */
.report {
  width: 100%;
}

.report .media-frame {
  display: block;
}

.report figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

/* What's on a DealPulse page */
.feature-list {
  display: grid;
  gap: 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border-top: 1px solid var(--rule);
}

.feature-list .feature {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.85rem 0 0.85rem 1.8rem;
  background: none;
  border: 0;
  color: var(--white);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 550;
  text-align: left;
}

.feature-list .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--electric);
  border-radius: 3px;
  box-shadow: 0 0 9px rgba(76, 201, 255, 0.65);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-list button.feature {
  cursor: pointer;
}

.feature-list button.feature:hover,
.feature-list .feature.is-active {
  color: var(--ice);
}

.feature-list .feature.is-active::before {
  background: var(--electric);
  box-shadow: 0 0 14px rgba(76, 201, 255, 1);
}

@media (min-width: 640px) and (max-width: 899px) {
  .feature-list-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.list-hint {
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.9375rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cta-row p {
  max-width: 26ch;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem);
  font-weight: 680;
  line-height: 1.12;
  text-wrap: balance;
}

/* ---------- Coming soon panels ---------- */

.soon-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .soon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.soon-item {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 11rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background-color: rgba(10, 23, 48, 0.55);
  background-image:
    linear-gradient(rgba(76, 201, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px dashed #2f4a7c;
  border-radius: 14px;
}

.soon-item .tag {
  justify-self: start;
}

.soon-item h2,
.soon-item h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  font-weight: 700;
}

.is-unlocking {
  color: var(--electric);
  text-shadow: 0 0 16px rgba(76, 201, 255, 0.6);
}

/* A slow light that passes over each panel */
@media (prefers-reduced-motion: no-preference) {
  .soon-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(76, 201, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: sweep 6s ease-in-out infinite;
    pointer-events: none;
  }

  .soon-item + .soon-item::after {
    animation-delay: 1.4s;
  }
}

@keyframes sweep {
  0%, 30% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

.after {
  margin-top: 2rem;
  color: var(--mist);
}

.soon-art {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 900px) {
  .soon-layout .soon-grid {
    grid-template-columns: 1fr;
  }

  .soon-layout .soon-item {
    min-height: 9.5rem;
  }

  .soon-art {
    justify-self: end;
  }
}

/* ---------- Inner page tops ---------- */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2.5rem, 5vw, 4rem);
}

.page-head h1 {
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4.5rem);
  font-weight: 760;
  text-shadow: 0 0 30px rgba(76, 201, 255, 0.28);
}

/* About */
.portrait {
  width: 100%;
  max-width: 28rem;
}

/* ---------- Long text (About, Privacy, Terms) ---------- */

.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 680;
}

.prose p,
.prose li {
  color: var(--mist);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.draft-notice {
  max-width: 42rem;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1.5px dashed var(--amber);
  border-radius: var(--radius);
  color: var(--white);
}

.draft-notice strong {
  color: var(--amber);
}

/* ---------- Contact form ---------- */

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.optional {
  color: var(--dim);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  background: var(--deep);
  border: 1px solid #2a4170;
  border-radius: 8px;
  color: var(--white);
  font: inherit;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.25);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.consent input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.2rem 0 0;
  accent-color: var(--electric);
}

.form-note {
  color: var(--dim);
  font-size: 0.9375rem;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--amber);
  border-radius: 8px;
  color: var(--white);
}

.form-status[hidden] {
  display: none;
}

/* Spam trap: people never see this box */
.hp {
  display: none !important;
}

.contact-aside {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.contact-aside h2 {
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-aside h2:first-child {
  margin-top: 0;
}

.contact-aside p {
  font-size: 1.2rem;
  font-weight: 550;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--mist);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 30ch;
}

.wordmark-sm {
  font-size: 1.15rem;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.footer-nav li + li,
.footer-contact li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.875rem;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Respect people who turn off motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
