/* ============================================================
   Landing page only — loaded by templates/index.html.
   Every colour resolves through theme-multi.css tokens, so the
   page inherits all 7 themes without a second palette.
   ============================================================ */

.landing { position: relative; isolation: isolate; padding: 6px 0 8px; }

/* ---------- ambient aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora-blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: auroraDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora-blob--a {
  top: -26vh; left: -14vw; width: min(62vw, 700px); aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
}
.aurora-blob--b {
  top: 2vh; right: -18vw; width: min(54vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  animation-duration: 33s; animation-delay: -8s;
}
.aurora-blob--c {
  bottom: -30vh; left: 30vw; width: min(46vw, 520px); aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--success) 20%, transparent), transparent 70%);
  animation-duration: 41s; animation-delay: -16s;
}
.aurora-grid {
  position: absolute; inset: 0; opacity: .16;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px);
  gap: 30px;
  align-items: start;
  padding: 26px 0 22px;
}
.hero-copy > * { animation: fadeUp .62s cubic-bezier(.22, 1, .36, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .09s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .27s; }
.hero-copy > :nth-child(5) { animation-delay: .34s; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 13px 6px 10px;
  border: 1px solid var(--accent-border); border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero-glow {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 35%, var(--accent) 70%, var(--accent-2) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 9s linear infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-glow { color: var(--accent); background: none; animation: none; }
}

.hero-sub {
  margin: 0 0 18px; max-width: 48ch;
  font-size: 14.5px; line-height: 1.65; color: var(--text-dim);
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: var(--text-dim);
  font-size: 11.5px; letter-spacing: .01em; white-space: nowrap;
}
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent-border); color: var(--text); }
.hero-note { margin: 0; font-size: 11.5px; color: var(--text-muted); }


/* ---------- claim card ---------- */
.claim-card {
  position: relative;
  padding: 22px;
  animation: cardIn .7s cubic-bezier(.22, 1, .36, 1) .22s both;
}
.claim-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
}
@media (hover: hover) { .claim-card:hover::after { opacity: 1; } }

.claim-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.claim-step {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.claim-card .field { margin-bottom: 12px; }
.claim-note { margin: 13px 0 0; line-height: 1.6; }

/* code meter */
.meter { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; }
.meter-label {
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.meter-track {
  position: relative; flex: 1; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); overflow: hidden;
}
.meter-track i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-glow);
  transition: width .24s ease;
}

/* secret key dots */
.dots { display: flex; gap: 7px; margin: -4px 0 16px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--border-hover); background: transparent;
  transition: background .18s, box-shadow .18s, transform .18s, border-color .18s;
}
.dots i.on {
  background: var(--accent); border-color: transparent;
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.15);
}

.claim-submit { min-height: 46px; font-size: 14.5px; letter-spacing: .01em; }
.claim-submit[disabled] { padding-left: 40px; position: relative; }
.claim-submit[disabled]::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}

/* ---------- result ---------- */
.result-card { margin: 0 0 26px; }
.result-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-check {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
  background: color-mix(in srgb, var(--success) 14%, transparent);
}
.result-check svg {
  width: 21px; height: 21px; fill: none; stroke: var(--success);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: checkDraw .52s .12s ease-out forwards;
}
.result-card #result-links { margin-top: 4px; }
.result-card #result-links .link-out { animation: fadeUp .5s cubic-bezier(.22, 1, .36, 1) backwards; }
.result-card #result-links .link-out:nth-child(2) { animation-delay: .07s; }
.result-card #result-links .link-out:nth-child(3) { animation-delay: .14s; }

/* Key details under the generated links: account type, plan, usage, expiry. */
.result-grid {
  display: grid; gap: 10px; margin: 12px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.result-grid div {
  padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background .2s;
}
.result-grid div:hover { border-color: var(--accent-border); background: rgba(255, 255, 255, .05); }
.result-grid dt {
  font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
}
.result-grid dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; word-break: break-word; }

/* ---------- sections ---------- */
.landing-section { margin: 0 0 28px; }
.section-eyebrow {
  margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.section-title {
  margin: 0 0 6px; font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.2; letter-spacing: -.015em;
}
.section-lede {
  margin: 0 0 16px; max-width: 62ch;
  font-size: 13px; line-height: 1.65; color: var(--text-dim);
}

/* ---------- how it works ---------- */
.step-rail {
  position: relative; margin: 4px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.step-rail::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 33px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transform: scaleX(0); transform-origin: left; opacity: .7;
  transition: transform .9s ease .15s;
}
.landing-section.is-visible .step-rail::before { transform: scaleX(1); }
.step-node {
  position: relative; padding: 17px 18px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .22s, transform .22s, box-shadow .22s;
}
.step-node:hover {
  border-color: var(--accent-border); transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px var(--accent-glow);
}
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.step-node h3 { margin: 0 0 4px; font-size: 13.5px; letter-spacing: -.01em; }
.step-node p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-dim); }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature {
  padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025);
  transition: transform .22s, border-color .22s, box-shadow .22s, background .22s;
}
.feature:hover {
  transform: translateY(-3px); border-color: var(--accent-border);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 20px 44px -28px var(--accent-glow);
}
.feature svg {
  width: 22px; height: 22px; margin-bottom: 10px; display: block;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin: 0 0 4px; font-size: 13px; }
.feature p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 9px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025); overflow: hidden;
  transition: border-color .22s, background .22s;
}
.faq-item[open] { border-color: var(--accent-border); background: rgba(255, 255, 255, .04); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chev {
  flex: 0 0 auto; width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-dim);
  border-bottom: 1.6px solid var(--text-dim);
  transform: rotate(45deg); transition: transform .26s, border-color .22s;
}
.faq-item[open] .faq-chev { transform: rotate(-135deg); border-color: var(--accent); }
.faq-item p {
  margin: 0 15px 14px; font-size: 12.5px; line-height: 1.7; color: var(--text-dim);
  animation: faqIn .28s ease both;
}

/* ---------- device tutorials ---------- */
.tutorial-section { scroll-margin-top: 18px; }
.tutorial-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tutorial-card {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color .22s, transform .22s, box-shadow .22s, background .22s;
}
.tutorial-card:hover {
  border-color: var(--accent-border); background: rgba(255, 255, 255, .045);
  transform: translateY(-2px); box-shadow: 0 18px 40px -26px var(--accent-glow);
}
.tutorial-card__icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}
.tutorial-card__icon svg { width: 19px; height: 19px; }
.tutorial-card__icon svg rect,
.tutorial-card__icon svg path {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.tutorial-card__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tutorial-card__label { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.tutorial-card__hint { font-size: 11.5px; color: var(--text-dim); }
.tutorial-card__play {
  margin-left: auto; display: grid; place-items: center;
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-dim);
  transition: color .22s, border-color .22s, transform .22s;
}
.tutorial-card__play svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.tutorial-card:hover .tutorial-card__play {
  color: var(--text); border-color: var(--accent-border); transform: translateX(2px);
}
@media (max-width: 760px) {
  .tutorial-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- reveal on scroll ---------- */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
html.reveal-ready [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .56s cubic-bezier(.22, 1, .36, 1), transform .56s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes textShimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px 0; }
  .hero-sub { max-width: none; }
  .claim-card { max-width: 520px; }
}
@media (max-width: 720px) {
  .step-rail { grid-template-columns: minmax(0, 1fr); }
  .step-rail::before { display: none; }
  .aurora-blob { filter: blur(70px); opacity: .42; }
  .aurora-blob--c { display: none; }
}
@media (max-width: 520px) {
  .claim-card { padding: 18px; }
  .hero-pill { font-size: 10px; letter-spacing: .04em; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .meter-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .hero-copy > *, .claim-card, .hero-glow { animation: none !important; }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
