/* ==========================================================================
   The Eclipse AI — marketing site
   ========================================================================== */

:root {
  --bg:        #0a0a0e;
  --bg-raise:  #101017;
  --panel:     #17171f;
  --panel-2:   #1e1e29;
  --line:      rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);

  --ink:    #f8f8fb;
  --ink-2:  #d2d2df;   /* body copy — 12.1:1 on --bg */
  --ink-3:  #a6a6bb;   /* labels   —  7.4:1 on --bg */

  --accent:      #7b5cf5;
  --accent-hi:   #9b83ff;
  --accent-ink:  #cabbff;  /* accent text on dark: 8.6:1 */

  --ok:   #4ade80;
  --warn: #fbbf24;
  --bad:  #f87171;

  --display: "Instrument Serif", "Iowan Old Style", "Times New Roman", Times, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gut: 40px;
  --masthead-h: 72px;
  --r: 14px;
}

/* --- reset ---------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead-h) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { left: 16px; }

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

/* --- typography ------------------------------------------------------ */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.display-xl { font-size: clamp(3rem, 7.2vw, 5.6rem); }
.display-l  { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.display-m  { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.accent-line {
  display: block;
  font-style: italic;
  color: var(--accent-hi);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lede {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.06rem;
}

.muted { color: var(--ink-3); }

/* --- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-hi); color: var(--accent-ink); }

.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 0.72rem;
}
.btn-quiet:hover { border-color: var(--accent-hi); }

.btn-sm { padding: 11px 20px; font-size: 0.7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* --- masthead -------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--masthead-h);
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.masthead.is-stuck {
  background: rgba(10, 10, 14, 0.94);
  border-bottom-color: var(--line-soft);
}

.masthead-inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-nav {
  display: flex;
  gap: 34px;
  margin-inline: auto;
}
.masthead-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s ease;
}
.masthead-nav a:hover { color: var(--ink); }
.masthead-nav a[aria-current="page"] { color: var(--ink); }
.masthead-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-hi);
}

.masthead-actions { display: flex; align-items: center; gap: 18px; flex: none; }

.masthead-signin {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.masthead-signin:hover { color: var(--ink); }

.masthead-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.masthead-toggle-bars { display: grid; gap: 5px; width: 18px; }
.masthead-toggle-bars span { height: 1.5px; background: currentColor; border-radius: 2px; }

.mobile-nav {
  display: grid;
  gap: 2px;
  padding: 12px var(--gut) 26px;
  background: rgba(10, 10, 14, 0.98);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 13px 0;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav-cta { color: var(--accent-ink) !important; }

/* --- sections -------------------------------------------------------- */

main { display: block; }

.section { padding-block: clamp(80px, 11vw, 140px); }
.section-tight { padding-block: clamp(56px, 7vw, 90px); }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lede { margin: 0; }

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

.hero {
  position: relative;
  /* Clears the fixed masthead. Without this the nav sits on the CTAs. */
  padding-top: calc(var(--masthead-h) + clamp(70px, 10vw, 130px));
  padding-bottom: clamp(56px, 6vw, 88px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -46%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 92, 245, 0.20) 0%, rgba(123, 92, 245, 0.06) 38%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
}

.hero-copy .lede { margin-top: 30px; }

.hero-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 131, 255, 0.16), transparent 68%);
  filter: blur(24px);
}
.hero-art svg { position: relative; z-index: 1; width: min(360px, 82%); height: auto; }

.hero-scroll {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.hero-scroll::before {
  content: "";
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--ink-3), transparent);
}

/* --- problem cards ---------------------------------------------------
   Four items, four columns. The grid is declared from the item count so a
   fifth empty cell can never appear.
   -------------------------------------------------------------------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
}

.card-row > * + * { border-left: 1px solid var(--line); }

.problem {
  /* min-width:0 keeps long words inside the column instead of bleeding out */
  min-width: 0;
  padding: 34px 28px 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-wrap: anywhere;
}
.problem-n {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
}
.problem h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.problem p { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.62; }

/* --- thesis ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split-reverse .split-media { order: -1; }

.split-media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #12121d, #0c0c12 62%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 34%, rgba(123, 92, 245, 0.22), transparent 58%);
}
.split-media svg { position: relative; width: min(300px, 62%); height: auto; }

.split-copy h2 + p { margin-top: 26px; }
.split-copy p { color: var(--ink-2); }
.split-copy p + p { margin-top: 18px; }

/* --- steps ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}
.step { min-width: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.step-n { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--accent-ink); }
.step h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; margin: 14px 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* --- capabilities ---------------------------------------------------- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.capability {
  min-width: 0;
  padding: 38px 32px 40px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.2s ease;
}
.capability:hover { background: var(--panel-2); }
.capability-n {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
}
.capability h3 { font-size: 1.42rem; }
.capability p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.capability ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.capability li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.capability li::before { content: "\2192"; color: var(--accent-ink); }

/* --- platform detail rows -------------------------------------------- */

.detail-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: 1px solid var(--line); }
.detail-n { font-family: var(--display); font-size: 1.2rem; color: var(--accent-ink); }
.detail-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.detail-body p { margin: 0; color: var(--ink-2); font-size: 0.98rem; max-width: 46ch; }
.detail-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.detail-points li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.detail-points li::before { content: "\2192"; color: var(--accent-ink); }

/* --- roadmap --------------------------------------------------------- */

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.roadmap-col {
  min-width: 0;
  padding: 30px 28px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.roadmap-col h3 { font-family: var(--body); font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.roadmap-col ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.roadmap-col li { font-size: 0.95rem; color: var(--ink-2); padding-left: 20px; position: relative; }
.roadmap-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--ok); background: rgba(74, 222, 128, 0.11); }
.pill-building { color: var(--warn); background: rgba(251, 191, 36, 0.11); }
.pill-planned { color: var(--ink-3); background: rgba(255, 255, 255, 0.05); }

/* --- forms ----------------------------------------------------------- */

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d8da2; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(123, 92, 245, 0.06);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.hint { font-size: 0.88rem; color: var(--ink-2); line-height: 1.58; margin: 0; }
.hint a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.rules { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rules li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.16s ease;
}
.rules li::before { content: "\25CB"; font-size: 0.7em; }
.rules li.met { color: var(--ok); }
.rules li.met::before { content: "\2713"; }

.alert {
  padding: 14px 17px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  border: 1px solid;
}
.alert-error { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.32); color: #fca5a5; }
.alert-ok { background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.3); color: #86efac; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }

.field-error { font-size: 0.8rem; color: #fca5a5; }

/* --- contact --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); }

.facts { border-top: 1px solid var(--line); }
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fact dd { margin: 0; font-size: 1rem; }
.fact dd a { color: var(--accent-ink); text-decoration: none; }
.fact dd a:hover { text-decoration: underline; }
.fact-links { display: flex; gap: 20px; }

/* --- closing CTA ----------------------------------------------------- */

.cta-panel {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 32px;
  text-align: center;
  background: linear-gradient(160deg, #1b1b27, #0d0d13 70%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  aspect-ratio: 2;
  background: radial-gradient(ellipse at 50% 50%, rgba(155, 131, 255, 0.18), transparent 62%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .eyebrow { justify-content: center; }
.cta-panel h2 { margin-bottom: 34px; }

/* --- footer ---------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 64px 34px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand p { margin: 18px 0 0; max-width: 32ch; font-size: 0.94rem; color: var(--ink-2); }
.footer-col { display: grid; gap: 11px; align-content: start; }
.footer-col h2 {
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.footer-col a { font-size: 0.96rem; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* --- auth cards ------------------------------------------------------ */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--masthead-h) + 48px) 20px 64px;
  position: relative;
  overflow: hidden;
}
.auth-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(123, 92, 245, 0.16), transparent 42%),
    radial-gradient(circle at 82% 76%, rgba(76, 130, 240, 0.12), transparent 44%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(30, 30, 42, 0.9), rgba(16, 16, 22, 0.95));
  border: 1px solid var(--line);
  border-radius: 20px;
}
.auth-card-wide { max-width: 620px; }
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head .logo-mark { margin: 0 auto 16px; }
.auth-head h1 { font-size: 1.7rem; }
.auth-head p { margin: 10px 0 0; font-size: 0.93rem; color: var(--ink-2); }
.auth-foot { margin-top: 22px; text-align: center; font-size: 0.93rem; color: var(--ink-2); }
.auth-foot a { color: var(--accent-ink); }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 0.84rem; }
.auth-links a { color: var(--accent-ink); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.btn-block { width: 100%; }

/* --- error pages ----------------------------------------------------- */

.status-page {
  min-height: 78vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  padding: calc(var(--masthead-h) + 40px) 24px 80px;
}
.status-page .code { font-family: var(--display); font-size: 5rem; color: var(--accent-ink); line-height: 1; }

/* --- scroll reveal ---------------------------------------------------
   Only hidden when JS is running AND motion is allowed. If the observer
   never fires, site.js reveals everything after 1.2s. Content is therefore
   never permanently invisible.
   -------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  :root { --gut: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 320px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row > * + * { border-left: 0; }
  .card-row > *:nth-child(even) { border-left: 1px solid var(--line); }
  .card-row > *:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .detail-row { grid-template-columns: 48px minmax(0, 1fr); }
  .detail-points { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .masthead-nav, .masthead-actions { display: none; }
  .masthead-toggle { display: inline-flex; margin-left: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  :root { --gut: 20px; }
  .card-row { grid-template-columns: 1fr; }
  .card-row > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .card-row > *:nth-child(even) { border-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .masthead-toggle-label { display: none; }
  .auth-card { padding: 28px 22px; }
}
