/* TEMA Positions — contemporary sales site */
:root {
  --ink: #0a121c;
  --ink-soft: #142032;
  --slate: #1c2b3d;
  --fog: #9aabbc;
  --mist: #d4dde6;
  --paper: #f0f3f6;
  --white: #ffffff;
  --signal: #1e90ff;
  --signal-deep: #1873cc;
  --trail: #2ec4a8;
  --trail-dim: rgba(46, 196, 168, 0.18);
  --danger: #e85d4c;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(10, 18, 28, 0.1);
  --font-display: "Titillium Web", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --nav-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 18, 28, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-nav__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-block;
  color: var(--white);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.95rem;
  background: var(--signal);
  color: #fff !important;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.15;
  border-radius: 0.45rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.nav-cta:hover {
  background: #4aa3ff;
  transform: translateY(-1px);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem 3rem;
  box-sizing: border-box;
  color: var(--white);
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(30, 144, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(46, 196, 168, 0.16), transparent 55%),
    linear-gradient(165deg, #070d16 0%, #101b2c 48%, #162338 100%);
}

.hero__frame {
  position: relative;
  width: min(var(--max), 100%);
  display: grid;
  gap: 2rem;
  overflow: visible;
}

.hero__stack {
  position: relative;
  width: 100%;
  /* Room below TWS for the staggered TEMA window overlap */
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
  overflow: visible;
}

.hero__layer {
  position: relative;
  line-height: 0;
}

.hero__layer--tws {
  z-index: 1;
  width: 92%;
  margin-left: 48px;
  margin-right: auto;
  box-sizing: border-box;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.hero__shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.hero__shot--tws {
  border-radius: 4px;
}

.hero__layer--tema {
  position: absolute;
  z-index: 2;
  right: 0;
  left: auto;
  bottom: 0;
  width: min(82%, 820px);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 22px rgba(30, 144, 255, 0.18));
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero__shot--tema {
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(255, 255, 255, 0.14),
    0 0 28px rgba(30, 144, 255, 0.12);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

.hero__lede {
  display: block;
  margin: 0 0 1.5rem;
  max-width: none;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--mist);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hero__layer--tema,
  .hero__layer--tws {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero__stack {
    padding-bottom: clamp(2.75rem, 12vw, 4rem);
  }

  .hero__layer--tws {
    width: 100%;
    margin-left: 0;
  }

  .hero__layer--tema {
    right: 0;
    left: auto;
    width: min(94%, 640px);
  }

  .hero__content {
    width: 92%;
    max-width: 92%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  border: none;
  border-radius: 0.45rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn--primary {
  background: var(--signal);
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.btn--primary:hover {
  background: #4aa3ff;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.28rem;
  line-height: 1.15;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* —— Sections —— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--slate {
  background:
    linear-gradient(180deg, #101b2a 0%, #0a121c 100%);
  color: var(--white);
}

.section__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.section__eyebrow--title-case {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section__copy {
  margin: 0;
  max-width: 48ch;
  color: var(--fog);
  font-size: 1.08rem;
}

.section--ink .section__copy,
.section--slate .section__copy {
  color: var(--mist);
}

.section__head {
  margin-bottom: 3rem;
}

/* Intro strip */
.intro {
  background: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.intro__stat {
  display: grid;
  gap: 1.5rem;
}

.stat {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 0.35rem;
}

.stat__label {
  margin: 0;
  color: #5a6b7c;
  font-size: 0.95rem;
}

/* Feature rows — not cards */
.feature-list {
  display: grid;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

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

.feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--trail);
  letter-spacing: -0.02em;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.feature__text {
  margin: 0;
  color: var(--fog);
  max-width: 52ch;
}

/* How it works — split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

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

.steps__mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 196, 168, 0.45);
  color: var(--trail);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 2px;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: #5a6b7c;
  font-size: 0.98rem;
}

.app-frame {
  position: relative;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(10, 18, 28, 0.28);
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: #121c28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4a5c;
}

.app-frame__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--fog);
  letter-spacing: 0.04em;
}

.app-frame__body {
  padding: 0.85rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: #c8d2dc;
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
}

.pos-table th {
  text-align: left;
  color: #6d7f92;
  font-weight: 500;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pos-table tr.is-active td {
  background: rgba(46, 196, 168, 0.08);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag--long {
  background: var(--trail-dim);
  color: var(--trail);
}

.tag--trail {
  background: rgba(30, 144, 255, 0.15);
  color: var(--signal);
}

.pulse-line {
  height: 2px;
  width: 100%;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, transparent, var(--trail), var(--signal), transparent);
  background-size: 200% 100%;
  animation: pulse-sweep 3.2s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes pulse-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Pricing teaser */
.price-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-strip__item {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
}

.price-strip__item:last-child {
  border-right: none;
}

.price-strip__name {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}

.price-strip__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.price-strip__amount small {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fog);
}

.price-strip__note {
  margin: 0;
  color: var(--fog);
  font-size: 0.92rem;
}

.price-strip__item.is-featured .price-strip__amount {
  color: var(--signal);
}

/* Community band */
.community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.community__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.link-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.link-discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.06);
}

.link-discord svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* —— Purchase page —— */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(30, 144, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #0a121c 0%, #0f1a28 100%);
  color: var(--white);
}

.page-hero__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.page-hero__inner--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.page-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0.35rem;
}

.page-hero__preview {
  flex: 0 1 580px;
  max-width: 58%;
  margin-left: auto;
  margin-top: 0.15rem;
  padding-right: 1.75rem;
}

.page-hero__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 255, 255, 0.16),
    0 0 40px rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

.page-hero p {
  margin: 0;
  color: var(--mist);
  max-width: 42ch;
  font-size: 1.1rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.plan {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.plan:hover {
  transform: translateY(-3px);
}

.plan--featured {
  border-color: var(--signal);
  box-shadow: 0 18px 40px rgba(10, 18, 28, 0.1);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: 0;
  right: 1rem;
  transform: translateY(-50%);
  background: #1669bc;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  box-shadow: 0 4px 12px rgba(10, 18, 28, 0.28);
}

.plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.plan__price span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #5a6b7c;
}

.plan__desc {
  margin: 0;
  color: #5a6b7c;
  font-size: 0.95rem;
  flex: 1;
}

.plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plan__list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #3d4d5e;
}

.plan__list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
  background: var(--trail);
  border-radius: 1px;
}

.checkout-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #e8edf2;
  border-left: 3px solid var(--signal);
  font-size: 0.95rem;
  color: #3d4d5e;
}

.checkout-note code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(10, 18, 28, 0.06);
  padding: 0.1rem 0.35rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.3fr);
  gap: 2rem;
  align-items: start;
}

.checkout-summary {
  background: var(--ink);
  color: var(--white);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
}

.checkout-summary .plan__price {
  color: var(--signal);
}

.checkout-summary .plan__desc,
.checkout-summary a {
  color: var(--mist);
}

.checkout-summary a:hover {
  color: var(--white);
}

.checkout-panel {
  background: var(--white);
  border: 1px solid var(--line-dark);
  padding: 1.75rem 1.5rem;
}

.checkout-alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 144, 255, 0.1);
  border-left: 3px solid var(--signal);
  color: #3d4d5e;
  font-size: 0.95rem;
}

.checkout-fields {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  gap: 0.35rem;
}

.field-row label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.field-row input[type="text"],
.field-row input[type="email"],
.field-row input[type="password"],
.field-row select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c5d0db;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.field-row input:focus,
.field-row select:focus {
  outline: 2px solid rgba(30, 144, 255, 0.35);
  border-color: var(--signal);
}

.checkout-single {
  max-width: 560px;
  margin-inline: auto;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.checkout-card {
  margin: 0;
  padding: 1rem 1rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(20, 40, 70, 0.12);
}

.checkout-card legend {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 0.35rem;
}

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

.account-fields[hidden] {
  display: none !important;
}

.account-fields {
  display: grid;
  gap: 1rem;
}

#Username[readonly] {
  background: #eef2f6;
  color: #3d4d5e;
}

@media (max-width: 720px) {
  .field-row--card-meta {
    grid-template-columns: 1fr;
  }
}

.field-row input:focus {
  outline: 2px solid rgba(30, 144, 255, 0.35);
  border-color: var(--signal);
}

.field-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6b7c;
}

.password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.password-toggle {
  border: 1px solid #c5d0db;
  background: #f7f9fb;
  color: #3d4d5e;
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.field-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.terms-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #3d4d5e;
  margin: 0.35rem 0 0.5rem;
}

.terms-row--inline {
  margin: 0;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #3d4d5e;
  cursor: pointer;
  white-space: nowrap;
}

.terms-row--inline input {
  margin-top: 0;
}

.account-fields[hidden] + .checkout-card {
  margin-top: -0.35rem;
}

.terms-row input {
  margin-top: 0.2rem;
}

.payment-response {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-pay {
  display: flex;
  justify-content: center;
  width: 100%;
}

.checkout-pay__btn {
  width: 90%;
}

.checkout-secure {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #5a6b7c;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.faq-item {
  border-top: 1px solid var(--line-dark);
  padding: 0;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  padding: 1.35rem 2.25rem 1.35rem 0;
  position: relative;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--signal);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.35rem;
  max-width: 90%;
  width: 90%;
  margin-left: 3%;
  text-align: left;
  color: #5a6b7c;
  font-size: 1.02rem;
  line-height: 1.6;
}

.faq-item a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(10, 18, 28, 0.06);
  padding: 0.1rem 0.35rem;
}

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

.legal-page {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}

.legal-page article {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.legal-page p,
.legal-page li {
  color: #3d4d5e;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--white);
  padding: 1.5rem 0;
  color: #5a6b7c;
  font-size: 0.9rem;
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #5a6b7c;
  margin-left: 1rem;
}

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

.site-footer--dark {
  background: #050a10;
  border-top-color: var(--line);
  color: var(--fog);
}

.site-footer--dark a {
  color: var(--fog);
}

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

/* —— Product page template (reusable) —— */
.product-hero .page-hero h1 {
  max-width: 16ch;
}

.product-hero__lede {
  max-width: 48ch !important;
  margin-bottom: 1.5rem !important;
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.product-stage {
  background:
    radial-gradient(ellipse 55% 60% at 50% 40%, rgba(30, 144, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #0f1a28 0%, #0a121c 100%);
  padding: 2.5rem 0 3.25rem;
  margin-top: -1px;
}

.product-stage__inner {
  display: flex;
  justify-content: center;
}

.product-stage__figure {
  margin: 0;
  width: min(920px, 100%);
  text-align: center;
}

.product-stage__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 28px rgba(255, 255, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.product-stage__figure img:hover {
  transform: scale(1.035);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
}

.product-stage__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.product-lede {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.product-lede__copy {
  margin: 0;
  color: #5a6b7c;
  font-size: 1.08rem;
  line-height: 1.65;
}

.product-specs {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--white);
  padding: 0;
}

.product-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
}

.product-specs__grid > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line-dark);
}

.product-specs__grid > div:last-child {
  border-right: none;
}

.product-specs__grid dt {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.product-specs__grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.35;
}

.product-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-flow li {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.product-flow__n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.product-flow h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.product-flow p {
  margin: 0;
  color: #5a6b7c;
  font-size: 0.98rem;
  line-height: 1.5;
}

.product-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-point h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-point p {
  margin: 0;
  color: #5a6b7c;
  font-size: 1rem;
  line-height: 1.55;
}

.product-close {
  text-align: center;
}

@media (max-width: 900px) {
  .product-lede,
  .product-flow,
  .product-points,
  .product-specs__grid {
    grid-template-columns: 1fr;
  }

  .product-specs__grid > div {
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
  }

  .product-specs__grid > div:last-child {
    border-bottom: none;
  }

  .product-flow {
    gap: 1.75rem;
  }
}

/* Toast for stub checkout */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 80;
  max-width: 360px;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--signal);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.toast.is-open {
  transform: none;
  opacity: 1;
}

.toast p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .intro__grid,
  .split,
  .plans,
  .price-strip {
    grid-template-columns: 1fr;
  }

  .page-hero__inner--split {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .page-hero__preview {
    max-width: min(460px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
  }

  .price-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .price-strip__item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem 1.5rem;
    background: rgba(10, 18, 28, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem 0.85rem 0.75rem;
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .feature {
    grid-template-columns: 3rem 1fr;
  }
}
