/* ==========================================================================
   SecureSiteAI marketing site
   Tokens → base → components → sections → pages → utilities
   ========================================================================== */

:root {
  /* palette — sampled from the product logo (#7bd708) and the Play feature graphic */
  --ink: #0b0e13;
  --graphite: #141a22;
  --graphite-2: #1b232e;
  --lime: #7bd708;
  --lime-bright: #9af02a;
  --lime-ink: #3f7a00; /* lime for text on light surfaces (AA on white) */
  --lime-soft: rgba(123, 215, 8, 0.12);
  --paper: #f4f6f2;
  --white: #ffffff;
  --text: #0f141a;
  --muted: #5b6b7c;
  --muted-dark: #93a4b6;
  --line: rgba(15, 20, 26, 0.1);
  --line-dark: rgba(255, 255, 255, 0.09);
  --danger: #ef5350;

  /* type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rhythm */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Surfaces: sections alternate dark (ink) and light (paper). A section owns
   its own colour so the cascade never has to guess.
   -------------------------------------------------------------------------- */

.surface-dark {
  background: var(--ink);
  color: var(--white);
  color-scheme: dark;
}

.surface-light {
  background: var(--paper);
  color: var(--text);
  color-scheme: light;
}

.surface-white {
  background: var(--white);
  color: var(--text);
  color-scheme: light;
}

.surface-light .muted,
.surface-white .muted {
  color: var(--muted);
}

.surface-dark .muted {
  color: var(--muted-dark);
}

.section {
  padding-block: var(--section);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head p {
  font-size: 1.15rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted);
}

.surface-dark .eyebrow {
  color: var(--muted-dark);
}

.eyebrow--lime {
  color: var(--lime-ink);
}

.surface-dark .eyebrow--lime {
  color: var(--lime);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

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

.btn--lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--lime-bright);
}

.btn--ghost {
  border-color: var(--line-dark);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.surface-light .btn--ghost,
.surface-white .btn--ghost {
  border-color: rgba(15, 20, 26, 0.18);
  color: var(--text);
  background: transparent;
}

.surface-light .btn--ghost:hover,
.surface-white .btn--ghost:hover {
  background: rgba(15, 20, 26, 0.05);
}

.btn__arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn__arrow,
.link-arrow:hover .btn__arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--lime-ink);
}

.surface-dark .link-arrow {
  color: var(--lime);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 19, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list > li > a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--muted-dark);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav__list > li > a:hover,
.site-nav__list > li > a.is-active {
  color: var(--white);
}

.site-nav__list > li > a.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__cta {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.site-nav__cta .btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.site-nav__list > .site-nav__cta > .btn--primary,
.site-nav__list > .site-nav__cta > .btn--primary:hover {
  color: var(--ink);
}

.site-nav__list > .site-nav__cta > .btn--ghost {
  color: var(--white);
}

.site-nav__group {
  position: relative;
}

.site-nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.22s var(--ease-out);
}

.site-nav__group:hover .site-nav__sub,
.site-nav__group:focus-within .site-nav__sub {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-nav__sub a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
}

.site-nav__sub a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__sub strong {
  font-weight: 600;
}

.site-nav__sub span {
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  content: "";
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.site-nav__toggle-bar {
  top: 21px;
}

.site-nav__toggle-bar::before {
  left: 0;
  top: -6px;
}

.site-nav__toggle-bar::after {
  left: 0;
  top: 6px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar {
  background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-nav__toggle {
    display: block;
  }

  .site-nav__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__list > li > a {
    display: block;
    padding: 12px;
    font-size: 1.05rem;
  }

  .site-nav__sub {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 12px;
  }

  .site-nav__cta {
    margin: 12px 0 0;
    flex-direction: column;
  }

  .site-nav__cta .btn {
    width: 100%;
    padding: 13px;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) 0;
  isolation: isolate;
}

/* geofence rings: the one atmospheric device on the page, from the product itself */
.hero__rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(123, 215, 8, 0.16), transparent 70%),
    radial-gradient(40% 40% at 90% 85%, rgba(123, 215, 8, 0.08), transparent 70%);
}

.hero__rings svg {
  position: absolute;
  right: -8%;
  top: -18%;
  width: min(60vw, 820px);
  height: auto;
  opacity: 0.6;
}

.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

.hero__copy {
  max-width: 900px;
}

.hero__copy h1 {
  margin-bottom: 0.35em;
}

.hero__copy h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero__lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 640px;
  color: var(--muted-dark);
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* the ledger: a live feed of verified shift events (the page's signature) */
.ledger {
  --row-h: 44px;
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(20, 26, 34, 0.75);
  backdrop-filter: blur(8px);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.ledger__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ledger__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(123, 215, 8, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 215, 8, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(123, 215, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(123, 215, 8, 0);
  }
}

.ledger__body {
  height: calc(var(--row-h) * 4);
  overflow: hidden;
  position: relative;
}

.ledger__body::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(20, 26, 34, 0.95));
  pointer-events: none;
}

.ledger__row {
  display: grid;
  grid-template-columns: 82px 96px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  height: var(--row-h);
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.ledger__row.is-new {
  animation: ledger-in 0.55s var(--ease-out);
}

@keyframes ledger-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(123, 215, 8, 0.12);
  }
  to {
    opacity: 1;
    transform: none;
    background: transparent;
  }
}

.ledger__time {
  color: var(--muted-dark);
}

.ledger__id {
  color: var(--white);
}

.ledger__site {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-dark);
}

.ledger__checks {
  display: flex;
  gap: 12px;
  color: var(--muted-dark);
}

.ledger__checks b {
  font-weight: 500;
  color: var(--lime);
}

.ledger__checks .is-fail b {
  color: var(--danger);
}

.ledger__status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: var(--lime-soft);
  color: var(--lime);
}

.ledger__status--off {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-dark);
}

.ledger__status--deny {
  background: rgba(239, 83, 80, 0.14);
  color: var(--danger);
}

@media (max-width: 720px) {
  .ledger__row {
    grid-template-columns: 70px 1fr auto;
  }

  .ledger__site,
  .ledger__checks {
    display: none;
  }
}

/* device frames -------------------------------------------------------- */

.hero__stage {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 6vw, 72px);
}

.browser {
  border-radius: var(--radius-lg);
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--graphite);
}

.browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.browser__url {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.browser img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phone {
  width: 100%;
  border-radius: 34px;
  padding: 10px;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px -25px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0a0c10;
  aspect-ratio: 720 / 1525;
}

.phone__screen img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__phone {
  position: absolute;
  right: clamp(-8px, 1vw, 24px);
  bottom: 0;
  width: clamp(150px, 20vw, 250px);
}

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

/* --------------------------------------------------------------------------
   Products (alternating rows)
   -------------------------------------------------------------------------- */

.product-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.product-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.product-row__media {
  grid-column: span 7;
}

.product-row__copy {
  grid-column: span 5;
}

.product-row--flip .product-row__media {
  order: 2;
}

.product-row--phone .product-row__media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.product-row--phone .phone {
  width: min(100%, 260px);
}

.product-row--phone .phone + .phone {
  margin-top: 48px;
}

.product-row__copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.product-row__copy ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 8px;
}

.product-row__copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.product-row__copy li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%233f7a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.product-row .browser {
  box-shadow: 0 30px 60px -30px rgba(15, 20, 26, 0.45);
}

@media (max-width: 900px) {
  .product-row__media,
  .product-row__copy {
    grid-column: 1 / -1;
  }

  .product-row--flip .product-row__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -28px rgba(15, 20, 26, 0.35);
}

.surface-dark .feature {
  background: var(--graphite);
  border-color: var(--line-dark);
}

.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--lime-ink);
  margin-bottom: 18px;
}

.surface-dark .feature__icon {
  color: var(--lime);
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.surface-dark .feature p {
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   How a verified shift works (a real sequence, hence the numbers)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.steps__list {
  grid-column: span 7;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps__list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.steps__list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--lime);
  padding-top: 6px;
}

.steps__list h3 {
  margin-bottom: 0.3em;
}

.steps__list p {
  margin: 0;
  color: var(--muted-dark);
}

.steps__media {
  grid-column: span 5;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.steps__media .phone {
  width: min(100%, 250px);
}

.record {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  padding: 16px 18px;
  color: var(--muted-dark);
  overflow-x: auto;
}

.record b {
  font-weight: 500;
  color: var(--white);
}

.record i {
  font-style: normal;
  color: var(--lime);
}

@media (max-width: 900px) {
  .steps__list,
  .steps__media {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Why cards / stats
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.why {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.why__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 14px;
}

.why h3 {
  margin-bottom: 0.4em;
}

.why p {
  color: var(--muted);
  margin: 0;
}

.why p + p {
  margin-top: 12px;
  color: var(--text);
  font-weight: 500;
}

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

.faq {
  max-width: 820px;
}

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

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

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 400;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--lime-soft);
  border-color: transparent;
}

.faq details > div {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 700px;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

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

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--section);
  border-top: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 85% 50%, rgba(123, 215, 8, 0.14), transparent 70%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-band p {
  color: var(--muted-dark);
  max-width: 520px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }
}

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding-top: 64px;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__brand .brand {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer__brand p {
  max-width: 380px;
}

.site-footer__made {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 500;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.site-footer__legal {
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.site-footer__legal p {
  margin: 0;
}

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

@media (max-width: 540px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-out);
}

.wa-float:hover {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px);
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 10% 0%, rgba(123, 215, 8, 0.14), transparent 70%);
}

.page-hero__inner {
  max-width: 800px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}

.page-hero__lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--muted-dark);
  max-width: 620px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero__stage {
  margin-top: clamp(32px, 5vw, 64px);
}

.page-hero__stage--phones {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  align-items: flex-start;
}

.page-hero__stage--phones .phone {
  width: min(30%, 250px);
}

.page-hero__stage--phones .phone:nth-child(2) {
  margin-bottom: 36px;
}

@media (max-width: 640px) {
  .page-hero__stage--phones .phone:nth-child(3) {
    display: none;
  }

  .page-hero__stage--phones .phone {
    width: 46%;
  }
}

/* screen tour: alternating screenshot + copy, used by product pages */
.tour {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.tour:last-of-type {
  border-bottom: 1px solid var(--line);
}

.tour__media {
  grid-column: span 7;
}

.tour__copy {
  grid-column: span 5;
}

.tour--flip .tour__media {
  order: 2;
}

.tour--phone .tour__media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.tour--phone .phone {
  width: min(100%, 250px);
}

.tour--phone .phone + .phone {
  margin-top: 44px;
}

.tour__copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.tour__copy p {
  color: var(--muted);
}

.tour__copy ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 0;
}

.tour__copy li + li {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .tour__media,
  .tour__copy {
    grid-column: 1 / -1;
  }

  .tour--flip .tour__media {
    order: 0;
  }

  .tour--phone .phone + .phone {
    margin-top: 0;
  }
}

/* prose (about, privacy) */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.6em;
}

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

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--lime-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.prose th {
  color: var(--text);
  font-weight: 600;
}

.prose td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.prose .table-wrap {
  overflow-x: auto;
}

@media (max-width: 600px) {
  .prose td:first-child {
    white-space: normal;
  }
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.principle {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  color: var(--white);
}

.principle h3 {
  font-size: 1.2rem;
}

.principle p {
  margin: 0;
  color: var(--muted-dark);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.plan--featured {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 40px 70px -40px rgba(11, 14, 19, 0.6);
}

.plan__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.plan--featured .plan__name {
  color: var(--lime);
}

.plan h3 {
  font-size: 1.7rem;
  margin-bottom: 0.3em;
}

.plan__for {
  color: var(--muted);
  min-height: 3.2em;
}

.plan--featured .plan__for {
  color: var(--muted-dark);
}

.plan__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0 4px;
}

.plan__unit {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.plan--featured .plan__unit {
  color: var(--muted-dark);
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.plan li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%233f7a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.plan--featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%237bd708' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan li.is-inherited {
  color: var(--muted);
  font-weight: 500;
}

.plan--featured li.is-inherited {
  color: var(--muted-dark);
}

.plan li.is-inherited::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%235b6b7c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: rgba(91, 107, 124, 0.12);
}

.plan .btn {
  width: 100%;
}

.plan--featured .btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

.pricing-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pricing-note svg {
  flex: none;
  color: var(--lime-ink);
  margin-top: 3px;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-card + .contact-card {
  margin-top: 18px;
}

.contact-card h2 {
  font-size: 1.4rem;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
}

.contact-list li > span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--lime-ink);
}

.contact-list a {
  font-weight: 600;
  color: var(--text);
}

.contact-list small {
  display: block;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 20, 26, 0.18);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  font-size: 0.85rem;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.form__status {
  min-height: 1.5em;
  font-weight: 500;
  color: var(--lime-ink);
}

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

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

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}

.notfound .mono {
  color: var(--lime);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Reveal on scroll (opt-in via data-reveal; disabled for reduced motion)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ledger__dot,
  .ledger__row.is-new {
    animation: none;
  }
}

/* ==========================================================================
   Mobile rework (≤ 720px): the desktop layout stacked verbatim runs to ~30
   screens. Below, phones sit side by side at half width, feature cards go two
   across, decorative media is dropped, and rhythm tightens.
   ========================================================================== */

@media (max-width: 720px) {
  :root {
    --section: 52px;
    --gutter: 20px;
    --radius-lg: 18px;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  h2 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .section__head {
    margin-bottom: 24px;
  }

  .section__head p {
    font-size: 1rem;
  }

  .btn--lg {
    padding: 13px 20px;
    font-size: 1rem;
  }

  /* hero */
  .hero {
    padding-top: 36px;
  }

  .hero__lede {
    font-size: 1.02rem;
    margin-bottom: 20px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .ledger {
    --row-h: 40px;
    margin-top: 24px;
    font-size: 0.75rem;
  }

  .ledger__body {
    height: calc(var(--row-h) * 3);
  }

  .ledger__row {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
  }

  .hero__stage {
    margin-top: 20px;
    padding-bottom: 28px;
  }

  .browser__bar {
    height: 30px;
  }

  .browser__url {
    font-size: 0.62rem;
  }

  /* products: two phones side by side, no stagger, half width each */
  .product-row,
  .tour {
    gap: 18px;
    padding-block: 28px;
  }

  .product-row--phone .product-row__media,
  .tour--phone .tour__media {
    gap: 12px;
    align-items: flex-start;
  }

  .product-row--phone .phone,
  .tour--phone .phone {
    width: calc(50% - 6px);
    padding: 6px;
    border-radius: 22px;
  }

  .product-row--phone .phone + .phone,
  .tour--phone .phone + .phone {
    margin-top: 0;
  }

  .phone__screen {
    border-radius: 17px;
  }

  .product-row__copy h3,
  .tour__copy h3 {
    font-size: 1.4rem;
  }

  .product-row__copy ul {
    margin: 12px 0 16px;
    gap: 6px;
    font-size: 0.95rem;
  }

  .tour__copy ul,
  .tour__copy p {
    font-size: 0.95rem;
  }

  /* features: two across, compact */
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .feature__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 12px;
  }

  .feature__icon svg {
    width: 18px;
    height: 18px;
  }

  .feature h3 {
    font-size: 0.98rem;
  }

  .feature p {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  /* how it works: keep the record, drop the phone */
  .steps {
    gap: 20px;
  }

  .steps__list li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .steps__list h3 {
    font-size: 1.15rem;
  }

  .steps__list p {
    font-size: 0.95rem;
  }

  .steps__media .phone {
    display: none;
  }

  .record {
    font-size: 0.72rem;
    padding: 14px;
  }

  /* why cards */
  .why-grid {
    gap: 10px;
  }

  .why {
    padding: 20px;
  }

  .why h3 {
    font-size: 1.2rem;
  }

  .why p {
    font-size: 0.95rem;
  }

  /* faq */
  .faq summary {
    font-size: 1.02rem;
    padding: 15px 0;
  }

  .faq details > div {
    font-size: 0.95rem;
    padding-bottom: 16px;
  }

  /* cta + footer */
  .cta-band__actions .btn {
    flex: 1 1 auto;
  }

  .site-footer {
    padding-top: 40px;
  }

  .site-footer__grid {
    gap: 28px;
  }

  .site-footer__legal {
    margin-top: 28px;
  }

  /* inner pages */
  .page-hero {
    padding-block: 36px 32px;
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .page-hero__lede {
    font-size: 1.02rem;
  }

  .page-hero__stage {
    margin-top: 24px;
  }

  .page-hero__stage--phones .phone {
    width: calc(50% - 6px);
    padding: 6px;
    border-radius: 22px;
  }

  .page-hero__stage--phones .phone:nth-child(2) {
    margin-bottom: 0;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .principles {
    gap: 10px;
  }

  .principle {
    padding: 18px;
  }

  .principle p {
    font-size: 0.95rem;
  }

  .plan {
    padding: 22px 20px;
  }

  .plan__for {
    min-height: 0;
  }

  .plan ul {
    gap: 8px;
    font-size: 0.95rem;
  }

  .contact-card {
    padding: 20px;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 720px) {
  /* home: product rows keep the paragraph and link; the bullet detail lives on the product pages */
  [data-page="home"] .product-row__copy ul {
    display: none;
  }

  /* features become a compact two-up index: icon + name; descriptions are on the product pages */
  .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .feature__icon {
    flex: none;
    margin: 0;
  }

  .feature h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .feature p {
    display: none;
  }

  .why__label + p {
    display: none;
  }

  .tour__copy ul {
    display: none;
  }

  .why__label {
    margin-bottom: 8px;
  }
}
