/* ============================================================
   Stansfield Systems · stansfieldsystems.ca
   Ink #0F0F11 · Slate #2A2A2E · Panel #1A1A1E
   Champagne Gold #C7A24B · Bone #F1ECE1 · Muted #A9A294
   ============================================================ */

:root {
  --ink: #0F0F11;
  --slate: #2A2A2E;
  --panel: #1A1A1E;
  --gold: #C7A24B;
  --gold-soft: rgba(199, 162, 75, 0.14);
  --gold-line: rgba(199, 162, 75, 0.35);
  --bone: #F1ECE1;
  --muted: #A9A294;
  --line: rgba(241, 236, 225, 0.08);
  --heading: "Poppins", sans-serif;
  --body: "Lato", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { max-width: 62ch; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: none; }

/* Keyboard users get a visible ring; mouse users do not. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { outline-offset: 4px; }

.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

/* Skip link, first thing a keyboard or screen reader lands on. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 10px 10px;
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translate(-50%, 0); }

.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }

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

.container {
  width: min(1120px, 100% - 2.75rem);
  margin-inline: auto;
}

.container-narrow { width: min(780px, 100% - 2.75rem); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(199, 162, 75, 0.28);
}

/* shine sweep */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-gold:hover::after { left: 125%; }

.btn-gold:hover {
  background: #D4B15E;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(199, 162, 75, 0.4);
}

.btn-ink {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 0 8px 24px rgba(15, 15, 17, 0.35);
}

.btn-ink:hover { transform: translateY(-2px); }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.9rem; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 0.9rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
  background: rgba(15, 15, 17, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.65rem;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--bone);
}

.brand img { width: 34px; height: auto; }

.brand-word {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-word em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(9rem, 16vw, 12.5rem) 0 clamp(5rem, 9vw, 7.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -22rem;
  left: 50%;
  transform: translateX(-50%);
  width: 68rem;
  height: 42rem;
  background: radial-gradient(closest-side, rgba(199, 162, 75, 0.13), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy { max-width: 680px; }

/* ---------- Hero console ---------- */

.hero-console {
  position: relative;
  perspective: 1400px;
  width: min(420px, 100%);
}

/* gold aura behind the console */
.hero-console::before {
  content: "";
  position: absolute;
  inset: -3rem -4rem;
  background: radial-gradient(46% 40% at 55% 45%, rgba(199, 162, 75, 0.4), rgba(199, 162, 75, 0.1) 58%, transparent 78%);
  filter: blur(28px);
  pointer-events: none;
}

.console-float { animation: console-float 8s ease-in-out infinite alternate; }

@keyframes console-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.console {
  position: relative;
  background: linear-gradient(180deg, #202027, var(--panel) 40%);
  border: 1px solid rgba(241, 236, 225, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(2deg);
  box-shadow:
    28px 34px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(199, 162, 75, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.console-dots { display: inline-flex; gap: 5px; }

.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(241, 236, 225, 0.16);
}

.console-dots i:first-child { background: rgba(199, 162, 75, 0.6); }

.console-title {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.console-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(199, 162, 75, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 162, 75, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(199, 162, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 162, 75, 0); }
}

.console-feed { list-style: none; }

.console-feed li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: row-in 0.55s ease forwards;
}

.console-feed li:nth-child(1) { animation-delay: 0.5s; }
.console-feed li:nth-child(2) { animation-delay: 1.1s; }
.console-feed li:nth-child(3) { animation-delay: 1.7s; }
.console-feed li:nth-child(4) { animation-delay: 2.3s; }
.console-feed li:nth-child(5) { animation-delay: 2.9s; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

.row-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.row-icon svg { width: 16px; height: 16px; }

.row-text {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.row-text b {
  display: block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--bone);
  margin-bottom: 0.1rem;
}

.row-check {
  flex: none;
  margin-left: auto;
  align-self: center;
  color: var(--gold);
  font-size: 0.95rem;
}

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  background: rgba(199, 162, 75, 0.08);
}

.foot-label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-value {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.foot-value i {
  font-style: normal;
  font-size: 0.42em;
  color: var(--muted);
  margin-left: 0.25em;
}

/* ---------- Phone mockup (3D iPhone) ---------- */

.phone-stage {
  position: relative;
  perspective: 1200px;
}

/* gold aura behind the phone */
.phone-stage::before {
  content: "";
  position: absolute;
  inset: -5rem -6rem;
  background:
    radial-gradient(30% 26% at 54% 42%, rgba(212, 177, 94, 0.55), transparent 70%),
    radial-gradient(48% 42% at 54% 44%, rgba(199, 162, 75, 0.45), rgba(199, 162, 75, 0.16) 55%, transparent 78%);
  filter: blur(24px);
  pointer-events: none;
}

/* floor shadow, grounds the phone like a product shot */
.phone-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  width: 230px;
  height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), transparent);
  filter: blur(5px);
  pointer-events: none;
}

.phone-float {
  animation: phone-float 7s ease-in-out infinite alternate;
}

.phone {
  --ry: -24deg;
  --rx: -3deg;
  --rz: 3deg;
  position: relative;
  width: 290px;
  padding: 10px;
  border-radius: 52px;
  background:
    linear-gradient(100deg,
      #9a9ea6 0%,
      #3c3d43 3.5%,
      #17171a 14%,
      #101013 50%,
      #202126 86%,
      #4c4e55 96.5%,
      #8d9199 100%);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    38px 48px 80px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(199, 162, 75, 0.18),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.25),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.8);
}

/* side/back of the chassis, gives the frame real 3D thickness */
.phone-back {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(100deg, #67696f, #141417 20%, #0a0a0c 60%, #33343a);
  transform: translateZ(-14px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
}

/* power button */
.phone::before {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 150px;
  width: 4px;
  height: 66px;
  border-radius: 2.5px;
  background: linear-gradient(90deg, #46474d, #191a1d);
}

/* volume buttons */
.phone::after {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 118px;
  width: 4px;
  height: 40px;
  border-radius: 2.5px;
  background: linear-gradient(90deg, #191a1d, #4a4b51);
  box-shadow: 0 56px 0 0 #35363c, 0 -32px 0 -1px #35363c;
}

.phone-island {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: #000;
  z-index: 3;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  background: #0B0B0E;
  border-radius: 42px;
  padding: 0.9rem 0.9rem 1.6rem;
  min-height: 566px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
}

/* screen glare */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 45%);
  pointer-events: none;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.9rem 0;
  color: var(--bone);
  margin-bottom: 1.9rem;
}

.status-time {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.78rem;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
}

.phone-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.phone-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.phone-name {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.phone-sub { font-size: 0.7rem; color: var(--muted); }

@keyframes phone-float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.sms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sms-meta {
  align-self: center;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: none;
}

.sms-meta.sms-done { color: var(--gold); margin-top: 0.2rem; }

.msg {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.msg.out {
  background: var(--gold);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.msg.in {
  background: var(--slate);
  color: var(--bone);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

/* message sequence plays once on load */
.sms > * {
  opacity: 0;
  animation: sms-in 0.5s ease forwards;
}

.sms > :nth-child(1) { animation-delay: 0.8s; }
.sms > :nth-child(2) { animation-delay: 1.8s; }
.sms > :nth-child(3) { animation-delay: 3s; }
.sms > :nth-child(4) { animation-delay: 4.2s; }
.sms > :nth-child(5) { animation-delay: 5.2s; }

@keyframes sms-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Automations detail ---------- */

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

.auto-copy h2 { margin-bottom: 1.3rem; }

.auto-lead { color: var(--muted); }

.auto-list {
  list-style: none;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.85rem;
  max-width: 56ch;
}

.auto-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
}

.auto-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.auto-note {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-cap {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.6rem;
}

.eyebrow {
  color: var(--gold);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 6.4vw, 3.9rem);
  max-width: 17ch;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.link-arrow {
  color: var(--bone);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.link-arrow:hover { border-color: var(--gold); color: var(--gold); }

.trust-line {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(26, 26, 30, 0.55), rgba(26, 26, 30, 0.25));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--gold);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section h2 { margin-bottom: 2.75rem; }

/* ---------- Leak cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 4px 24px rgba(199, 162, 75, 0.1);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.6rem; }

.card p { color: var(--muted); font-size: 0.99rem; }

.card-price {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Leak calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  justify-content: center;
}

.calc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.calc-row-head label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.98rem;
}

.calc-row-head output {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.calc-result {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.calc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.4rem;
}

.calc-stat + .calc-stat {
  padding-left: 1.25rem;
  border-left: 1px solid var(--gold-line);
}

.calc-label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
}

.calc-total {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.calc-per {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.2em;
}

.calc-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
}

.calc-result .btn { margin-top: auto; padding: 0.85rem 1.7rem; font-size: 0.98rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.step {
  border-top: 1px solid var(--gold-line);
  padding-top: 1.5rem;
}

.step-num {
  display: block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

.step h3 { margin-bottom: 0.55rem; }

.step p { color: var(--muted); font-size: 0.99rem; }

.callout {
  margin-top: 3.25rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.9rem;
}

.callout p {
  color: var(--bone);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.05rem;
  max-width: none;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.price-card h3 { margin-bottom: 1rem; }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.amount {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.per { color: var(--muted); font-size: 0.95rem; }

.onboarding {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.price-desc {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.99rem;
}

.price-card.featured {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(199, 162, 75, 0.09), var(--panel) 55%);
  box-shadow: var(--shadow);
}

.featured-tag {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.pricing-note {
  margin-top: 1.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-photo { position: relative; }

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  z-index: -1;
}

.about-copy h2 { margin-bottom: 1.4rem; }

.about-copy p { color: var(--muted); font-size: 1.05rem; }

.about-sign {
  margin-top: 1.6rem;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 1.2rem; }

.contact-copy > p { color: var(--muted); }

.contact-meta {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.contact-meta a {
  color: var(--bone);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-meta a:hover { color: var(--gold); border-color: var(--gold); }

.contact-demo {
  margin-top: 1.8rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}

/* honeypot, hidden from people but not from bots */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field { display: grid; gap: 0.45rem; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field label {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.optional {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--bone);
  background: rgba(15, 15, 17, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.field input:hover,
.field textarea:hover { border-color: rgba(241, 236, 225, 0.2); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-submit { margin-top: 0.4rem; justify-self: start; border: none; cursor: pointer; }

.form-note { color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color 0.2s ease;
}

.faq-list details[open] { border-color: var(--gold-line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-marker {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.2s ease;
}

.faq-marker::before {
  left: 0; right: 0; top: 6px;
  height: 2px;
}

.faq-marker::after {
  top: 0; bottom: 0; left: 6px;
  width: 2px;
}

details[open] .faq-marker::after { transform: scaleY(0); }

.faq-list details p {
  color: var(--muted);
  padding-bottom: 1.25rem;
  max-width: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gold);
  color: var(--ink);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cta-inner { text-align: center; }

.cta-band h2 {
  color: var(--ink);
  margin-inline: auto;
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.cta-band > .container > p {
  margin: 0.8rem auto 0;
  font-size: 1.15rem;
  color: rgba(15, 15, 17, 0.75);
}

.cta-band .btn { margin-top: 2rem; }

.cta-contact {
  margin: 2.2rem auto 0;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cta-contact a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid rgba(15, 15, 17, 0.35);
}

.cta-contact a:hover { border-color: var(--ink); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.footer-inner .brand img { width: 26px; }

.footer-inner .brand-word { font-size: 0.82rem; }

.footer-meta { color: var(--muted); font-size: 0.9rem; }

.footer-nav {
  display: flex;
  gap: 1.4rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--gold); }

.footer-tag {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(8rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.6rem;
}

.legal .effective {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
  max-width: none;
}

.legal p, .legal li { color: var(--muted); }

.legal ul {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.legal strong { color: var(--bone); }

.legal a { border-bottom: 1px solid var(--gold-line); }

.legal .back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  border: none;
}

/* ---------- Reveal animation ---------- */

/* Hidden state only applies once JS has stamped the html.js class,
   so content is never invisible if the script fails to run. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Siblings in a group cascade in rather than landing all at once. */
html.js .card-grid > .reveal:nth-child(2),
html.js .steps > .reveal:nth-child(2),
html.js .pricing-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }

html.js .card-grid > .reveal:nth-child(3),
html.js .steps > .reveal:nth-child(3),
html.js .pricing-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .btn-gold::after { display: none; }
  .sms > * { animation: none; opacity: 1; }
  .phone-float, .console-float { animation: none; }
  .console-feed li { animation: none; opacity: 1; }
  .console-live::before { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .auto-grid { grid-template-columns: 1fr; }

  .hero-console {
    justify-self: center;
    margin-top: 1.5rem;
  }

  .console { transform: none; }

  .auto-demo { justify-self: center; margin-top: 1rem; }

  .phone-stage { margin-top: 1rem; }
}

@media (max-width: 900px) {
  .card-grid,
  .steps,
  .pricing-grid,
  .calc {
    grid-template-columns: 1fr;
  }

  .steps { gap: 1.75rem; }

  .price-card.featured { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .about-photo { max-width: 420px; }
}

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

  .header-inner { justify-content: space-between; }

  .brand img { width: 28px; }

  .brand-word { font-size: 0.8rem; letter-spacing: 0.1em; }

  .hero { padding-top: 7.5rem; }

  .hero-cta .btn-lg {
    width: 100%;
  }

  .calc-stats { grid-template-columns: 1fr; gap: 1.1rem; }

  .field-row { grid-template-columns: 1fr; }

  .form-submit { justify-self: stretch; }

  .calc-stat + .calc-stat {
    padding: 1.1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--gold-line);
  }

  .footer-nav { flex-wrap: wrap; justify-content: center; }
}

/* On the narrowest phones the wordmark and the header button collide. */
@media (max-width: 430px) {
  .header-inner { gap: 0.75rem; }

  .brand { min-width: 0; }

  .brand-word { font-size: 0.7rem; letter-spacing: 0.06em; }

  .brand-word em { letter-spacing: 0.1em; }

  .btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
}
