:root {
  --bg-cream: #fcf7ef;
  --ink-header: #070b16;
  --purple-900: #241645;
  --purple-700: #7d2a63;
  --coral-500: #ff6b6b;
  --orange-400: #ff9e4a;
  --orange-500: #ff8a3d;
  --orange-600: #ff5b2e;
  --yellow-400: #ffcf4a;
  --text-heading: #1b2136;
  --text-body: #4d4b49;
  --text-muted: #5b6478;
  --card-border: #ece4d6;
  --code-bg: #f3eee3;
  --dark-btn: #0b1020;
  --white: #ffffff;
  --gradient-cta: linear-gradient(164deg, var(--orange-600) 0%, var(--orange-500) 100%);
  --gradient-icon: linear-gradient(135deg, var(--orange-600) 0%, var(--yellow-400) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-cream);
  color: var(--text-heading);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.15px;
  padding: 11px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-white {
  background: var(--white);
  color: #151b2e;
  font-weight: 800;
  font-size: 14.5px;
  padding: 10px 20px;
  letter-spacing: -0.19px;
}

.btn-dark {
  background: var(--dark-btn);
  color: var(--white);
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 21.75px;
  letter-spacing: -0.19px;
}

/* Header */

.site-header {
  background: var(--ink-header);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
  letter-spacing: -0.64px;
  flex-shrink: 0;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #ffcf4a 0%, #ff953c 50%, #ff5b2e 100%);
  box-shadow: 0 0 20px 0 rgba(255, 138, 61, 0.6);
}

.header-countdown {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 91, 46, 0.16);
  border: 1px solid rgba(255, 138, 61, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.08px;
}

.header-countdown .dot {
  width: 7px;
  height: 7px;
  border-radius: 3.5px;
  background: var(--yellow-400);
  flex-shrink: 0;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 0;
  background: linear-gradient(
    180deg,
    var(--ink-header) 0%,
    var(--purple-900) 34%,
    var(--purple-700) 62%,
    var(--coral-500) 84%,
    var(--orange-400) 100%
  );
}

.hero-sun {
  position: absolute;
  width: 622px;
  height: 622px;
  left: 50%;
  top: 445px;
  transform: translateX(-50%);
  pointer-events: none;
}

.sun-back,
.sun-mid,
.sun-front {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.sun-back {
  width: 622px;
  height: 622px;
  top: 0;
  background: #ff9c31;
  filter: blur(50px);
}

.sun-mid {
  width: 574px;
  height: 574px;
  top: 24px;
  opacity: 0.9;
  filter: blur(25px);
  background: radial-gradient(
    circle at center,
    #ffffff 0%,
    #fff3d2 25%,
    #ffe7a5 50%,
    #ffdb77 75%,
    #ffcf4a 100%
  );
}

.sun-front {
  width: 594px;
  height: 594px;
  top: 14px;
  background: #ffffff;
  filter: blur(50px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* 772px design width + 2 × 24px gutter, so text wraps exactly as in Figma */
  max-width: 820px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 24px 67px;
}

/* h1 and its supporting line are one group in the design — 12px apart, not 24px */
.hero-main-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* min-height, not height — the pill has to grow when the copy wraps.
     8px (not 9) so the 1px border lands inside Figma's 36.75px pill. */
  min-height: 36.75px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 14px;
  line-height: 18.75px;
  font-weight: 700;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

.hero h1 {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.64px;
  margin: 0;
}

.hero h1 span {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, var(--white) 0%, var(--yellow-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.03;
  letter-spacing: -1.08px;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-sub {
  max-width: 692px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.45px;
}

.countdown {
  display: flex;
  gap: 12px;
}

.countdown-unit {
  width: 80px;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--purple-900);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit .num {
  font-size: 33px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit .label {
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 16.5px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1.56px;
  text-transform: uppercase;
}

.countdown-caption {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: var(--purple-900);
  letter-spacing: -0.3px;
  margin: 0;
}

.hero-wave {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 53px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sections */

.section {
  padding: 40px 24px 0;
}

.section-intro {
  max-width: 714px;
  margin: 0 auto;
  text-align: center;
}

.section-intro h2 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0;
}

.section-intro p {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--text-body);
}

/* About */

.about .section-intro {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  border: 1.5px dashed rgba(91, 100, 120, 0.3);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  padding: 40px 48px;
}

.about .section-intro h2 {
  text-align: center;
}

.about .section-intro p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

.about .section-intro a {
  color: var(--orange-600);
  font-weight: 700;
  text-decoration: underline;
}

/* FAQ */

.faq {
  padding-bottom: 96px;
}

.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.2px;
  padding: 20px 32px 20px 0;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

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

.faq-item p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.faq-item p a {
  color: var(--orange-600);
  font-weight: 700;
  text-decoration: underline;
}

/* Platform banner (v1 only) */

.step-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: var(--purple-900);
  letter-spacing: -0.3px;
  margin: 48px 0 24px;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--gradient-icon);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-banner {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(11, 16, 32, 0.35);
  background: linear-gradient(165deg, #0b1020 0%, var(--purple-900) 46%, var(--purple-700) 100%);
}

/* Follows a step label — the label's own 24px bottom margin sets the gap */
.step-label + .platform-banner {
  margin-top: 24px;
}

.platform-logo {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-logo img {
  width: 163px;
  height: auto;
}

.platform-body {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.platform-body .eyebrow {
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.platform-body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 39px;
  color: var(--white);
  letter-spacing: -0.3px;
  margin: 0;
}

.platform-body p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 606px;
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pill-discount {
  background: var(--yellow-400);
  color: #151b2e;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  border-radius: 999px;
  padding: 10px 12px;
}

/* Deal cards */

.deals-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  /* Warm radial glow sitting behind the cards, showing through the gutters */
  background: radial-gradient(
    circle 516px at 50% 50%,
    rgba(255, 107, 107, 0.25) 0%,
    rgba(255, 132, 78, 0.25) 20%,
    rgba(255, 156, 49, 0.25) 40%,
    rgba(254, 179, 97, 0.1875) 50%,
    rgba(254, 202, 144, 0.125) 60%,
    rgba(252, 247, 239, 0) 80%
  );
}

/* Follows a step label — the label's own 24px bottom margin sets the gap */
.step-label + .deals-grid {
  margin-top: 24px;
}

.deal-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 26px -20px rgba(11, 16, 32, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deal-logo {
  height: 116px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 22px 23px;
}

.deal-logo img {
  width: auto;
  height: auto;
}

.deal-logo img[alt="Gravity Wiz"] {
  width: 66px;
}

.deal-logo img[alt="GravityKit"] {
  width: 90px;
}

.deal-logo img[alt="Gravity PDF"] {
  width: 227px;
}

.deal-logo img[alt="JetSloth"] {
  width: 174px;
}

.deal-logo img[alt="CosmicGiant"] {
  width: 59px;
}

.deal-logo img[alt="Gravity Flow"] {
  width: 227px;
}

.deal-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-discount {
  align-self: flex-start;
  background: var(--yellow-400);
  color: #111;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.23px;
  border-radius: 999px;
  padding: 6px 12px;
}

/* Card body rhythm is uneven by design: 14 / 6 / 15 / 16 down the stack */

.deal-body h3 {
  font-size: 18px;
  line-height: 27px;
  font-weight: 800;
  letter-spacing: -0.44px;
  margin: 14px 0 0;
}

.deal-body p.deal-desc {
  font-size: 14px;
  line-height: 21.75px;
  letter-spacing: -0.19px;
  color: var(--text-muted);
  margin: 6px 0 0;
  flex: 1;
}

.deal-code {
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: -0.08px;
  color: var(--text-muted);
  margin: 15px 0 0;
}

.deal-body .btn-dark {
  margin-top: 16px;
}

.deal-code code {
  background: var(--code-bg);
  color: var(--text-heading);
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  padding: 1px 4px;
}

/* How it works */

.how-it-works {
  padding-top: 96px;
  padding-bottom: 96px;
}

.steps {
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* The icon row spans the full column so the dashed rules meet across steps;
   only the copy below is inset. */
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.step-icon-row .rule {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed rgba(91, 100, 120, 0.3);
}

.step-icon-row .step-first-rule {
  visibility: hidden;
}

.step-icon-row .step-last-rule {
  visibility: hidden;
}

.step-icon-row img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.step h4 {
  width: 100%;
  padding: 0 24px;
  font-size: 18px;
  line-height: 27px;
  font-weight: 800;
  letter-spacing: -0.44px;
  margin: 16px 0 0;
}

.step p {
  width: 100%;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 20.25px;
  letter-spacing: -0.11px;
  margin: 3px 0 0;
}

/* Footer */

.site-footer {
  background: var(--ink-header);
  padding: 0 0 38px;
}

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

.footer-notify {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-notify-copy {
  max-width: 420px;
}

.footer-notify-copy h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.2px;
}

.footer-notify-copy p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8b93a7;
}

.footer-notify-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.footer-notify-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
  min-width: 220px;
  font-family: inherit;
}

.footer-notify-form input[type="email"]::placeholder {
  color: #8b93a7;
}

.footer-notify-form .btn-primary {
  padding: 10px 16px;
  font-size: 13px;
}

.footer-notify-confirm {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow-400);
  letter-spacing: -0.1px;
}

.footer-notify-confirm[hidden] {
  display: none;
}

.footer-inner {
  padding-top: 46px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 347px;
}

.footer-brand .brand {
  font-size: 18px;
  letter-spacing: -0.44px;
}

.footer-brand p {
  margin: 0;
  font-size: 12px;
  color: #8b93a7;
  line-height: 20.25px;
  letter-spacing: -0.11px;
}

.footer-meta {
  text-align: right;
  font-size: 13px;
  color: #aab2c6;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-meta p {
  margin: 0;
  line-height: 19.5px;
  letter-spacing: -0.08px;
}

.footer-meta strong {
  color: var(--white);
}

.footer-meta .fine-print {
  font-size: 12px;
  line-height: 18.75px;
  letter-spacing: -0.04px;
  color: #5c657a;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  color: #aab2c6;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 960px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-banner {
    flex-direction: column;
  }

  .platform-logo {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-icon-row .rule {
    visibility: hidden;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .header-countdown {
    display: none;
  }

  .brand {
    font-size: 14px;
    gap: 6px;
  }

  .brand-dot {
    width: 20px;
    height: 20px;
  }

  .header-inner .btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Tighter type keeps the eyebrow on one line down to ~455px, and reads
     better than 14px once it does wrap. */
  .badge {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.24px;
    padding: 8px 14px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .countdown-unit {
    width: 64px;
  }

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

  .section-intro h2 {
    font-size: 30px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .about .section-intro {
    padding: 28px 24px;
  }

  .footer-notify {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-notify-form {
    width: 100%;
  }

  .footer-notify-form input[type="email"] {
    flex: 1;
    min-width: 0;
  }
}
