:root {
  --ink: #0b1f2a;
  --ink-soft: #1c3a4a;
  --paper: #f3f6f4;
  --mint: #7fd1b9;
  --signal: #e23d28;
  --gold: #e8c547;
  --line: rgba(11, 31, 42, 0.12);
  --shadow: 0 24px 60px rgba(11, 31, 42, 0.18);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(127, 209, 185, 0.35), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(226, 61, 40, 0.18), transparent 50%),
    linear-gradient(165deg, #eef4f1 0%, #d9e5df 45%, #c5d4cf 100%);
  line-height: 1.5;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

.site-header,
.hero,
.prices-page,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  color: var(--signal);
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 3rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: var(--ink);
  animation: rise 0.8s ease both;
}

.hero h1,
.prices-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.hero h1 {
  max-width: 12ch;
  animation: rise 0.9s 0.08s ease both;
}

.lede {
  font-size: 1.125rem;
  max-width: 38ch;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  animation: rise 1s 0.14s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s 0.2s ease both;
}

.btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: #c93220;
}

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

.btn-on-dark {
  border-color: rgba(243, 246, 244, 0.85);
  color: #f3f6f4;
}

.btn-on-dark:hover {
  background: rgba(243, 246, 244, 0.1);
}

/* —— Home landing —— */
.home-body {
  background: #07151c;
  color: #eef4f1;
}

.home-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  width: 100%;
}

.home-header .logo,
.home-header nav a {
  color: #eef4f1;
}

.home-header nav a:hover,
.home-header nav a.active {
  color: var(--gold);
}

.hero-landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(6.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-plane-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 21, 28, 0.2) 0%, rgba(7, 21, 28, 0.55) 42%, rgba(7, 21, 28, 0.88) 100%),
    linear-gradient(180deg, #1a3a2e 0%, #0b1f2a 45%, #07151c 100%);
  animation: wash-shift 14s ease-in-out infinite alternate;
}

.hero-plane-stripes {
  position: absolute;
  inset: -10% -5%;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 18px,
    rgba(226, 61, 40, 0.14) 18px 22px,
    transparent 22px 48px
  );
  opacity: 0.85;
  animation: stripe-drift 22s linear infinite;
}

.hero-plane-foil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 70%, rgba(232, 197, 71, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(127, 209, 185, 0.18), transparent 55%);
  animation: foil-pulse 8s ease-in-out infinite alternate;
}

.hero-landing-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.home-body .brand-mark {
  color: #f3f6f4;
  text-shadow: 0 2px 28px rgba(7, 21, 28, 0.45);
}

.home-body .hero-landing h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  max-width: 14ch;
  margin: 0 0 0.85rem;
  color: #f3f6f4;
  animation: rise 0.9s 0.08s ease both;
}

.home-body .lede {
  color: rgba(238, 244, 241, 0.86);
  max-width: 36ch;
  animation: rise 1s 0.14s ease both;
}

.social-cta {
  animation: rise 1.05s 0.22s ease both;
}

.social-cta .btn:nth-child(1) {
  animation: rise 1.05s 0.22s ease both;
}

.social-cta .btn:nth-child(2) {
  animation: rise 1.1s 0.28s ease both;
}

.social-cta .btn:nth-child(3) {
  animation: rise 1.15s 0.34s ease both;
}

.home-prices-band {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(165deg, #eef4f1 0%, #d9e5df 55%, #c5d4cf 100%);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.home-prices-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.home-prices-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.home-prices-band p {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-soft);
}

.home-prices-cta {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.pulse-line {
  font-weight: 600;
  color: var(--ink) !important;
}

.pulse-line strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--signal);
  margin-left: 0.25rem;
}

.home-footer {
  background: #07151c;
  color: rgba(238, 244, 241, 0.7);
}

.home-footer a {
  color: #f3f6f4;
  font-weight: 600;
  text-decoration: none;
}

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

.prices-page {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}

#cache-meta {
  margin: 0;
  font-weight: 600;
}

.hint {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-section {
  margin-top: 2.75rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.section-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.sort-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.sort-field-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sort-field select {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: rgba(243, 246, 244, 0.9);
  border: 1px solid rgba(11, 31, 42, 0.22);
  border-radius: 0.35rem;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

.sort-field select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.set-group-row td {
  padding-top: 1.15rem;
  padding-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 31, 42, 0.28);
  background: rgba(243, 246, 244, 0.55);
}

.set-group-row:first-child td {
  padding-top: 0.65rem;
}

.price-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  font-weight: 400;
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 18rem;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-ui {
  position: relative;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(11, 31, 42, 0.2);
  border: 1px solid rgba(11, 31, 42, 0.25);
  transition: background 0.15s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 31, 42, 0.35);
  transition: transform 0.15s ease;
}

.toggle input:checked + .toggle-ui {
  background: var(--ink);
  border-color: var(--ink);
}

.toggle input:checked + .toggle-ui::after {
  transform: translateX(1.05rem);
}

.toggle input:focus-visible + .toggle-ui {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.toggle-label {
  line-height: 1.25;
  font-size: 0.95rem;
}

.strike {
  text-decoration: line-through;
  opacity: 0.75;
}

.promo-note {
  margin-top: 0.25rem;
}

.promo-line {
  padding-left: 0.15rem;
}

.admin-form-section {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: rgba(243, 246, 244, 0.92);
  border: 1px solid rgba(11, 31, 42, 0.22);
  border-radius: 0.35rem;
  padding: 0.65rem 0.75rem;
}

.admin-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.admin-form input:focus-visible,
.admin-form select:focus-visible,
.admin-form textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.field-hint {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
}

.form-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

td a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

td a:hover {
  color: var(--signal);
}

.money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.money.best {
  color: #0f7a5a;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.error-text {
  color: var(--signal);
  font-size: 0.85rem;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer code {
  font-size: 0.85em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wash-shift {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.06);
  }
}

@keyframes stripe-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-60px);
  }
}

@keyframes foil-pulse {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .brand-mark {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-landing {
    align-items: center;
    min-height: 100svh;
  }
}
