@font-face {
  font-family: Bricolage;
  src: url('/assets/nimbus-font-5.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/assets/nimbus-font-8.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/nimbus-font-11.ttf') format('truetype');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f8f5ff;
  --muted: #d8cfe9;
  --lilac: #d2baff;
  --border: rgba(244, 226, 255, .23);
  --pearl: linear-gradient(166deg, #fff 3%, #f0e4ff 63%, #dcc5ff 100%);
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: #100a20;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 14%, transparent 0%, rgba(15, 9, 30, .15) 50%, #10091e 95%),
    linear-gradient(180deg, rgba(16, 9, 34, .41), rgba(16, 8, 32, .54) 58%, #10091e 99%),
    #1b0d34 url('/assets/nimbus-cloud-wide-v1.webp') center 39% / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
:focus-visible { outline: 2px solid #f0dfff; outline-offset: 4px; }
.shell { width: min(100% - 48px, 1060px); margin-inline: auto; }
.glass {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(253, 232, 255, .13), rgba(202, 164, 255, .045) 65%), rgba(25, 15, 49, .68);
  box-shadow: inset 0 1px 0 rgba(244, 223, 255, .15), 0 25px 55px -28px #0d071a;
  backdrop-filter: blur(25px) saturate(145%);
}
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; left: 12px; top: 12px; z-index: 1; background: #100a20; padding: 12px; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; }
.brand { font-family: Bricolage, system-ui, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .31em; }
.brand span { color: var(--lilac); }
.site-nav { display: flex; gap: 2px; align-items: center; padding: 5px; border-radius: 999px; }
.site-nav a { color: var(--muted); font-size: .83rem; padding: 9px 15px; border-radius: 999px; }
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }

.intro { text-align: center; padding: clamp(40px, 8vw, 94px) 0 clamp(29px, 5vw, 54px); }
.eyebrow, .plan-type { margin: 0; color: #eadbfb; letter-spacing: .19em; text-transform: uppercase; font-size: .69rem; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.eyebrow span { width: 32px; height: 1px; background: linear-gradient(90deg, transparent, #e7d5ff); }
.eyebrow span:last-child { transform: scaleX(-1); }
h1, h2 { margin: 0; font: 700 2rem/1.02 Bricolage, system-ui, sans-serif; letter-spacing: -.055em; }
h1 { font-size: clamp(3.6rem, 9vw, 7rem); margin-block: 14px 17px; text-shadow: 0 16px 50px rgba(15, 6, 29, .55); }
em { font: italic 1.05em/.86 'Instrument Serif', Georgia, serif; color: #f3dcff; }
.intro > p:last-child { margin: 0 auto; color: var(--muted); max-width: 38ch; line-height: 1.65; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border-radius: 24px; padding: clamp(20px, 3vw, 29px); display: flex; flex-direction: column; justify-content: space-between; gap: 25px; min-height: 256px; }
.plan-type { color: #dbcee9; }
.plan-premium .plan-type, .plan-lifetime .plan-type { color: #edd7ff; }
.plan h2 { margin-top: 9px; font-size: clamp(2.15rem, 4vw, 3.1rem); }
.plan-description { margin: 12px 0 0; max-width: 29ch; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.plan-lifetime {
  border-color: rgba(236, 211, 255, .56);
  background: radial-gradient(ellipse at 95% 5%, rgba(212, 157, 255, .29), transparent 76%), linear-gradient(145deg, rgba(254, 235, 255, .12), transparent), rgba(37, 19, 72, .82);
  box-shadow: inset 0 1px 0 rgba(249, 228, 255, .28), 0 0 45px -18px rgba(219, 163, 255, .55), 0 25px 55px -28px #0d071a;
}
.price { margin: 0 0 14px; font: 700 1.8rem/1.15 Bricolage, system-ui, sans-serif; letter-spacing: -.025em; }
.price small { color: var(--muted); margin-left: 5px; font: .73rem Geist, system-ui, sans-serif; letter-spacing: 0; }
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(244, 223, 255, .34);
  background: rgba(238, 215, 255, .09);
  color: var(--ink);
  font-size: .88rem;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.plan .button { width: 100%; }
.free-note { display: block; margin-top: 10px; color: var(--muted); font-size: .76rem; }
.button:not(:disabled):hover { border-color: rgba(249, 232, 255, .72); background-color: rgba(239, 214, 255, .19); }
.button-primary { color: #25133f; background: var(--pearl); border-color: rgba(255, 255, 255, .72); box-shadow: 0 5px 25px -7px rgba(214, 172, 255, .7); font-weight: 700; }
.button-primary:not(:disabled):hover { box-shadow: 0 5px 28px -3px rgba(225, 191, 255, .76); }
.checkout-note, .feedback { text-align: center; font-size: .82rem; line-height: 1.55; color: var(--muted); margin: 20px 0 0; }
.feedback { color: #fae0fb; }

.receipt { width: min(100%, 570px); margin: 26px auto 0; border-radius: 24px; padding: 26px; scroll-margin-block: 14px; }
.receipt > p { color: var(--muted); line-height: 1.55; }
.key-row { display: flex; flex-wrap: wrap; gap: 9px; }
.key-row input { flex: 1 1 235px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: rgba(6, 3, 16, .45); padding: 12px; color: var(--ink); font: .86rem ui-monospace, Consolas, monospace; }
.redeem { padding: 45px 0 32px; text-align: center; }
.redeem h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.redeem p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 9px 0; }
.redeem a, .site-footer > :last-child { color: #e4cdfb; font-size: .82rem; text-underline-offset: 4px; }
.redeem a:hover, .site-footer > :last-child:hover { text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; align-items: center; min-height: 61px; border-top: 1px solid var(--border); }

@media (max-width: 660px) {
  body::before {
    background-image: linear-gradient(180deg, rgba(16, 9, 34, .31), rgba(16, 8, 32, .63) 67%, #10091e 100%), url('/assets/nimbus-cloud-portrait-v1.webp');
  }
  .shell { width: calc(100% - 30px); }
  .site-header { min-height: 64px; gap: 8px; }
  .site-nav a { padding-inline: 8px; }
  .desktop-break { display: none; }
  .plans { width: min(100%, 440px); margin-inline: auto; grid-template-columns: 1fr; gap: 12px; }
  .plan { min-height: 0; gap: 15px; }
}

@media (max-width: 340px) {
  .site-nav a { font-size: .74rem; padding-inline: 6px; }
  .brand { letter-spacing: .21em; }
}

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
