/* ==========================================================================
   Nom — nomapp.netlify.app
   Design system. One stylesheet serves the landing page and the three
   secondary pages (support, privacy, terms).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ground and surfaces */
  --bg:              #08090a;
  --bg-raised:       #0d0e10;
  --surface:         rgba(255, 255, 255, 0.024);
  --surface-hover:   rgba(255, 255, 255, 0.045);
  --surface-strong:  rgba(255, 255, 255, 0.06);

  /* Lines */
  --line:            rgba(255, 255, 255, 0.08);
  --line-strong:     rgba(255, 255, 255, 0.14);

  /* Type colour — all three clear 4.5:1 on --bg */
  --text:            #f7f8f8;
  --text-2:          #8a8f98;
  --text-3:          #7c828b;

  /* Accent — light blue. 9.2:1 and 12.2:1 on --bg respectively. */
  --accent:          #5ab9f2;
  --accent-bright:   #8ad3ff;
  --accent-dim:      rgba(90, 185, 242, 0.14);

  /* Type */
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  22px;

  /* Rhythm */
  --gutter:   24px;
  --container: 1120px;
  --section:  clamp(4rem, 7.5vw, 6.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--accent); color: #041018; }

/* Grain. Sits above the glows, below the content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

.container--narrow { max-width: 760px; }

main { position: relative; z-index: 2; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.rule { height: 1px; background: var(--line); border: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

/* Balance only where the heading wraps on its own. The hero headline breaks on
   an explicit <br>, so balancing it just fights the markup. */
.h-section,
.h-feature,
.doc-hero h1 {
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.h-section {
  font-size: clamp(1.95rem, 4vw, 3rem);
  letter-spacing: -0.036em;
}

.h-feature {
  font-size: clamp(1.6rem, 2.9vw, 2.25rem);
  letter-spacing: -0.032em;
}

h3 { font-size: 1.1875rem; letter-spacing: -0.018em; line-height: 1.3; }

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  letter-spacing: -0.011em;
  max-width: 34rem;
  text-wrap: pretty;
}

.lead--center { margin-inline: auto; max-width: 38rem; text-wrap: balance; }

p { max-width: 68ch; }

.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.accent-text { color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease,
              color 0.16s ease, transform 0.16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--text);
  color: #08090a;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
              0 6px 20px -8px rgba(0, 0, 0, 0.9);
}
.btn--primary:hover { background: #fff; }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.22); }

.btn--sm { height: 36px; padding-inline: 14px; font-size: 0.875rem; border-radius: 8px; }

/* Official Apple badge. Height is fixed by Apple's guidelines-friendly ratio. */
.badge {
  display: inline-block;
  border-radius: 9px;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}
.badge img { height: 52px; width: auto; }
.badge:hover { opacity: 0.86; }
.badge:active { transform: translateY(1px); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease,
              backdrop-filter 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
  letter-spacing: -0.008em;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  isolation: isolate;
  /* The glow is inset past the hero's edges on purpose, so its falloff happens
     off-screen. Without this it widened the document by 10% of the viewport at
     every size. */
  overflow: hidden;
}

/* The single hero glow. One soft green bloom, one cool counter-light. */
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 30%, rgba(90, 185, 242, 0.15), transparent 70%),
    radial-gradient(30% 26% at 22% 42%, rgba(64, 110, 190, 0.13), transparent 72%),
    radial-gradient(34% 30% at 78% 38%, rgba(120, 90, 200, 0.10), transparent 78%);
}

/* Hairline horizon under the hero, the way a spotlight ends. */
.hero__horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0.16) 70%, transparent);
}

.hero h1 { max-width: 16ch; margin-inline: auto; }

.hero .lead { margin: 26px auto 0; }

.hero .cta-row { justify-content: center; margin-top: 38px; }

.hero__stage {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.device.hero__device { margin-inline: auto; --dw: min(364px, 76vw); }

.hero__caption {
  margin: 22px auto 0;
  max-width: 40ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   8. Device frame
   Screens are real App Store captures cropped to the phone body. They bleed
   off the bottom of the frame, so only the top corners are rounded.
   -------------------------------------------------------------------------- */

.device {
  --dw: 300px;
  position: relative;
  width: var(--dw);
  border-radius: calc(var(--dw) * 0.15) calc(var(--dw) * 0.15) 0 0;
  overflow: hidden;
  background: #131313;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.95),
    0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

/* Edge light on the top and sides only — the bottom is a deliberate cut, and a
   ring drawn across it reads as a card that got clipped. */
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 0;
  border-radius: inherit;
}

.device img {
  width: 100%;
  display: block;
}

/* Screens are cut off at the bottom by design; fade the cut so it reads as
   depth rather than as a crop accident. */
.device::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.device--on-panel::after { background: linear-gradient(to bottom, transparent, var(--bg-raised)); }

/* --------------------------------------------------------------------------
   9. Spec strip
   -------------------------------------------------------------------------- */

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs div {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}
.specs div:first-child { border-left: 0; }

.specs dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.specs dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   10. Section headings
   -------------------------------------------------------------------------- */

.section-head { max-width: 46rem; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 20px; }

/* --------------------------------------------------------------------------
   11. Steps
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 34px 32px 38px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 32px; }

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 1px;
  background: var(--accent);
}
.step:not(:first-child)::before { left: 32px; }

.step__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  /* No colour here: `.step p` is more specific and sets --text-2. Colouring
     this label means writing `.step .step__n`, not adding a declaration that
     loses silently. */
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.9375rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
  .step:not(:first-child) { padding-left: 0; }
  .step:not(:first-child)::before { left: 0; }
  .step:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   12. Feature rows
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.feature + .feature { margin-top: clamp(4.5rem, 8vw, 7rem); }

.feature--flip .feature__media { order: -1; }

.feature__media {
  display: flex;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.feature__media::before {
  content: "";
  position: absolute;
  /* No horizontal bleed: the gradient is 46% of the box and fades out long
     before the edges, and bleeding sideways widened the document. */
  inset: -14% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(46% 42% at 50% 46%, rgba(90, 185, 242, 0.09), transparent 76%);
}
.device.feature__device { --dw: min(332px, 74vw); }

.feature__body h2 { margin-bottom: 20px; }
.feature__body .lead { margin-bottom: 28px; }

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 32rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-2);
  letter-spacing: -0.008em;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
  flex: none;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 2.75rem; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { order: 0; }
}

/* --------------------------------------------------------------------------
   13. Cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover { border-color: var(--line-strong); }

.card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.card__icon svg { width: 18px; height: 18px; }

.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 0.9375rem; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Panel (raised block for pricing / quotes)
   -------------------------------------------------------------------------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-raised);
  overflow: hidden;
}

.panel__body { padding: clamp(32px, 5vw, 56px); }

/* --------------------------------------------------------------------------
   15. Quotes
   -------------------------------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.014em;
}

.quote figcaption {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: auto;
}

/* Placeholder state — visibly unfinished on purpose, so it cannot ship by
   accident. Remove .quotes--placeholder and the notice once real quotes land. */
.quotes--placeholder .quote {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}
.quotes--placeholder blockquote { color: var(--text-3); }

.placeholder-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-3);
}
.placeholder-notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   16. Plus / subscription
   -------------------------------------------------------------------------- */

.plus {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.plus__list { list-style: none; padding: 0; display: grid; gap: 0; }

.plus__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.plus__list li:first-child { padding-top: 0; }
.plus__list li:last-child { border-bottom: 0; }
.plus__list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.plus__list b { color: var(--text); font-weight: 500; }

.terms-note {
  margin-top: 26px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 46ch;
}
.terms-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.terms-note a:hover { color: var(--text); }

@media (max-width: 860px) { .plus { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   17. Closing CTA
   -------------------------------------------------------------------------- */

.close {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}

.close__glow {
  position: absolute;
  left: 50%;
  bottom: -420px;
  translate: -50% 0;
  width: min(1100px, 130vw);
  height: 700px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(90, 185, 242, 0.16), transparent 74%);
  pointer-events: none;
}

.close h2 { margin-bottom: 20px; }
.close .lead { margin: 0 auto 34px; }
.close .cta-row { justify-content: center; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 56px;
  position: relative;
  z-index: 2;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 0.875rem;
}
.site-footer nav a { color: var(--text-2); transition: color 0.15s ease; }
.site-footer nav a:hover { color: var(--text); }

.site-footer small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   19. Document pages (support / privacy / terms)
   -------------------------------------------------------------------------- */

.doc-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.doc-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: -0.038em; }
.doc-hero .lead { margin-top: 18px; }

.doc { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }

.doc h2 {
  font-size: 1.375rem;
  letter-spacing: -0.022em;
  margin-top: 52px;
  margin-bottom: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 8px;
}

.doc p, .doc li { color: var(--text-2); font-size: 0.9688rem; }
.doc p + p { margin-top: 14px; }

.doc ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc li::marker { color: var(--text-3); }

.doc strong { color: var(--text); font-weight: 500; }

/* :not(.btn) so a button inside a document page keeps looking like a button —
   `.doc a` is more specific than `.btn--ghost` and was underlining it. */
.doc a:not(.btn) { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.doc a:not(.btn):hover { color: var(--accent); }

.doc__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 20px;
}

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--text);
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-bright); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  rotate: 45deg;
  transition: rotate 0.25s var(--ease), border-color 0.15s ease;
}
.faq details[open] summary::after { rotate: -135deg; margin-top: -2px; border-color: var(--accent); }

.faq .faq__answer { padding: 0 0 24px; }
.faq .faq__answer p { color: var(--text-2); font-size: 0.9375rem; max-width: 62ch; }

.contact-card {
  margin-top: 44px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-card h2 { margin: 0 0 10px; border: 0; padding: 0; font-size: 1.1875rem; }
.contact-card p { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   20. Motion
   The authored moment is the hero entrance; everything below it uses a
   quieter, differently-shaped reveal so the page does not repeat one gesture.
   Content is visible by default and only hidden once JS confirms it can
   animate it back in.
   -------------------------------------------------------------------------- */

.js .r-up,
.js .r-media {
  opacity: 0;
}

.js .r-up { transform: translateY(16px); }
.js .r-media { transform: translateY(28px) scale(0.985); }

.js .r-up.is-in,
.js .r-media.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.js .r-media.is-in { transition-duration: 0.9s, 1.15s; }

/* Hero entrance — one orchestrated moment on load. */
.js .hero__enter { opacity: 0; transform: translateY(18px); }
.js .hero.is-ready .hero__enter {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 1s var(--ease);
}
.js .hero.is-ready .hero__enter:nth-child(1) { transition-delay: 0.02s; }
.js .hero.is-ready .hero__enter:nth-child(2) { transition-delay: 0.09s; }
.js .hero.is-ready .hero__enter:nth-child(3) { transition-delay: 0.16s; }
.js .hero.is-ready .hero__enter:nth-child(4) { transition-delay: 0.23s; }

.js .hero__stage { opacity: 0; transform: translateY(46px) scale(0.97); }
.js .hero.is-ready .hero__stage {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease) 0.24s, transform 1.4s var(--ease) 0.24s;
}

.js .hero__glow { opacity: 0; }
.js .hero.is-ready .hero__glow { opacity: 1; transition: opacity 1.6s ease 0.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r-up,
  .js .r-media,
  .js .hero__enter,
  .js .hero__stage,
  .js .hero__glow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
