:root {
  --bg: #08090c;
  --panel: #12151b;
  --panel-soft: #181c24;
  --text: #f3f0e8;
  --muted: #aaa59b;
  --line: #2a2f3a;
  --gold: #e3b64e;
  --gold-deep: #c9982f;
  --gold-bright: #f0cf7a;
  --accent: var(--gold);
  --accent-ink: #14100a;
  --danger: #f08a8a;
  --radius: 14px;           /* echoes the rounded logo tile */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  /* the decorative hero watermark intentionally overflows — never let it
     create sideways scroll, especially on phones */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

/* ── ambient gold glows behind everything ─────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 12% -8%, rgba(227, 182, 78, .10), transparent 65%),
    radial-gradient(720px 540px at 105% 110%, rgba(227, 182, 78, .07), transparent 65%);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* ── header ────────────────────────────────────────────────────────────── */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .01em;
}

.wordmark-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(227, 182, 78, .28);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.wordmark:hover .wordmark-logo {
  transform: rotate(-6deg) scale(1.07);
  box-shadow: 0 4px 22px rgba(227, 182, 78, .45);
}

.header-link,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}

.header-link::after,
.site-footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}

.header-link:hover,
.site-footer a:hover {
  color: var(--gold-bright);
}

.header-link:hover::after,
.site-footer a:hover::after {
  transform: scaleX(1);
}

.content {
  flex: 1;
  padding: 72px 0;
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 760px;
  padding: 44px 0 52px;
}

.hero-watermark {
  position: absolute;
  top: -30px;
  right: -260px;
  width: 460px;
  height: 460px;
  opacity: .05;
  transform: rotate(8deg);
  pointer-events: none;
  user-select: none;
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: rotate(8deg) translateY(0); }
  to   { transform: rotate(5deg) translateY(-18px); }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(30px, 8.5vw, 78px);
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  font-size: 22px;
}

/* gold gradient headline with a slow shine sweep */
.gold {
  background: linear-gradient(110deg,
    var(--gold-deep) 0%, var(--gold-bright) 28%,
    var(--gold-deep) 55%, var(--gold-bright) 80%, var(--gold-deep) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to { background-position: -220% center; }
}

.lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

/* ── entrance motion ───────────────────────────────────────────────────── */
.rise {
  opacity: 0;
  animation: rise .8s var(--ease-out) forwards;
}

.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .34s; }
.d5 { animation-delay: .46s; }
.d6 { animation-delay: .56s; }

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

/* ── buttons ───────────────────────────────────────────────────────────── */
.cta-row,
.stacked-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease-out),
              box-shadow .25s var(--ease-out),
              border-color .25s ease,
              background-color .25s ease;
}

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

.button:active {
  transform: translateY(0) scale(.98);
}

.button-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--accent-ink);
  box-shadow: 0 2px 12px rgba(227, 182, 78, .25);
}

.button-primary:hover {
  box-shadow: 0 6px 24px rgba(227, 182, 78, .45);
}

/* soft attention pulse on the money button */
.button-glow {
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(227, 182, 78, .22); }
  50%      { box-shadow: 0 2px 26px rgba(227, 182, 78, .48); }
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(227, 182, 78, .18);
}

.price-line,
.muted {
  color: var(--muted);
}

/* ── panels ────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease-out),
              border-color .3s ease,
              box-shadow .3s var(--ease-out);
}

.panel::before {
  /* hairline gold top edge */
  content: '';
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 182, 78, .55), transparent);
}

.panel:hover {
  transform: translateY(-3px);
  border-color: #3a4150;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

.narrow {
  max-width: 680px;
}

.clean-list,
.legal ul,
.legal ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.clean-list li,
.legal li {
  margin: 10px 0;
}

.clean-list li::marker {
  content: '\2726  ';   /* ✦ gold spark */
  color: var(--gold);
}

/* ── account status ────────────────────────────────────────────────────── */
.status-list {
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.badge-trialing {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(227, 182, 78, .18) inset;
}

.badge-active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--accent-ink);
}

.badge-past-due,
.badge-unpaid {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── success check ─────────────────────────────────────────────────────── */
.check-pop {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--accent-ink);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 6px 26px rgba(227, 182, 78, .4);
  animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── legal pages ───────────────────────────────────────────────────────── */
.legal {
  max-width: 820px;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.legal h1 {
  font-size: clamp(32px, 6vw, 54px);
}

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

/* ── small screens ─────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .page-shell {
    padding: 16px;
  }

  .content {
    padding: 28px 0;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .lede {
    font-size: 16.5px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px 18px;
  }

  /* header stays a compact ROW on phones — only footer + status stack */
  .site-footer,
  .status-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer span {
    line-height: 1.6;
  }

  .status-list dd {
    text-align: left;
  }

  .cta-row .button,
  .stacked-actions .button {
    width: 100%;
  }

  .price-line {
    font-size: 15px;
  }

  /* watermark: centred glow behind the headline instead of an off-canvas
     slab — nothing may poke past the viewport on a phone */
  .hero-watermark {
    top: 8px;
    right: 4vw;
    width: min(46vw, 220px);
    height: auto;
    opacity: .05;
  }
}

/* ── accessibility: kill all motion on request ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .rise {
    opacity: 1;
  }
}
