/* The landing uses the same token palette and card artwork as the app. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--p-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 520; }
h2 { font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.055em; }
.sr-only, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  clip-path: none;
  inset: 12px auto auto 12px;
  width: auto;
  height: auto;
  padding: 12px;
  color: var(--p-bg);
  background: var(--p-text);
}
.section-wrap { width: min(calc(100% - 88px), 1160px); margin-inline: auto; padding-block: clamp(66px, 9vw, 118px); }
.section-intro > p, .closing > p {
  max-width: 40rem;
  margin-top: 18px;
  color: var(--p-muted);
  font-size: clamp(.94rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}
.section-intro > :is(.text-link, .button) { margin-top: 22px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.wordmark { display: flex; flex-direction: column; width: fit-content; flex: none; }
.wordmark img { width: 109px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
:root[data-theme=light] .wordmark img { filter: brightness(0); }
.wordmark > span { margin: -2px 0 0 10px; color: var(--p-muted); font-size: 9px; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 34px); color: var(--p-muted); font-size: .875rem; }
.site-header nav a:hover, .site-footer a:hover { color: var(--p-accent); }
.landing-header-tools { display: flex; gap: 10px; align-items: center; }
.theme-toggle, .menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--p-line);
  border-radius: 50%;
  font-size: 21px;
}
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 17px;
  color: var(--p-text);
  background: transparent;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 570;
  line-height: 1.3;
}
.button > span[aria-hidden], .text-link > span { display: inline-block; }
.button:hover { border-color: var(--p-accent); }
.button.light { background: var(--p-text); color: var(--p-bg); border-color: var(--p-text); }
.button.quiet { border-color: transparent; color: var(--p-muted); }
.button.quiet:hover { color: var(--p-text); }
.header-cta { min-height: 40px; border-radius: 100px; white-space: nowrap; }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 42px; color: var(--p-accent); font-size: .875rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  padding: clamp(50px, 7vw, 105px) 22px 0;
  overflow: clip;
  text-align: center;
  background: radial-gradient(ellipse 40% 40% at 50% 75%, #b5936334, transparent);
}
.hero h1 { font-size: clamp(2.4rem, 6.9vw, 6rem); line-height: 1.025; letter-spacing: -.065em; }

.hero-copy {
  max-width: 35rem;
  margin: 22px auto 0;
  color: var(--p-muted);
  font-size: clamp(.97rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.prototype-label { margin-top: 16px; color: var(--p-muted); font-size: .8rem; line-height: 1.5; }
.hero-stage { position: relative; max-width: 920px; height: clamp(258px, 39vw, 420px); margin: 14px auto 0; }
.hero-stage .hero-card {
  position: absolute;
  top: 14%;
  left: 50%;
  width: clamp(174px, 32vw, 375px);
  padding: clamp(12px, 2vw, 26px);
  border-radius: clamp(12px, 1.8vw, 23px);
  box-shadow: 0 25px 40px -19px #000a;
}
.hero-silver { transform: translateX(-104%) rotate(-14deg); }
.hero-gold { transform: translateX(4%) rotate(14deg); }
.hero-stage .hero-black { top: 29%; transform: translateX(-50%); }

.experience, .engine-section, .faq {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 100px);
}
.experience, .how, .collection, .engine-section, .faq { border-top: 1px solid var(--p-line); }
.phone-stage { text-align: center; }
.phone-shell {
  max-width: 300px;
  margin-inline: auto;
  padding: 24px 16px 12px;
  background: #101112;
  color: #f3f2ee;
  border: 1px solid #545655;
  border-radius: 36px;
  box-shadow: inset 0 0 0 5px #1d1f1e, 0 22px 38px -25px #000b;
  text-align: left;
}
.phone-top, .phone-actions, .phone-recent > div, .phone-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phone-top img { width: 82px; filter: brightness(0) invert(1); }
.phone-top > span, .phone-recent > div > span { display: grid; place-items: center; width: 29px; height: 29px; background: #303332; border-radius: 50%; font-size: .75rem; }
.phone-balance, .phone-recent { margin-top: 18px; padding: 16px; background: #1a1c1c; border: 1px solid #353836; border-radius: 13px; }
.phone-balance > p, .phone-recent > p, .phone-balance > small, .phone-recent small { color: #b4b7b5; font-size: .7rem; }
.phone-balance > strong { display: block; margin-block: 4px; font-size: 2rem; font-weight: 540; letter-spacing: -.06em; }
.phone-actions { margin-top: 16px; }
.phone-actions > span { flex: 1; padding: 7px 2px; border: 1px solid #626461; border-radius: 7px; font-size: .7rem; text-align: center; }
.phone-actions > span:first-child { background: #efeeeb; color: #181a1a; }
.phone-recent > div { margin-top: 12px; justify-content: flex-start; font-size: .72rem; }
.phone-recent small { display: block; margin-top: 3px; }
.phone-recent > div > strong { margin-left: auto; }
.phone-nav { margin-top: 16px; justify-content: space-around; color: #d0d2d0; font-size: .7rem; }
.phone-stage figcaption { max-width: 300px; margin: 16px auto 0; color: var(--p-muted); font-size: .75rem; line-height: 1.5; }

.how-layout, .collection-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 55px);
  align-items: center;
  margin-top: clamp(26px, 5vw, 54px);
}
.step-list { display: grid; gap: 9px; }
.step {
  display: grid;
  grid-template-columns: minmax(26px, auto) 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 17px 15px;
  background: transparent;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  text-align: left;
}
.step.active { background: var(--p-raised); border-color: var(--p-accent); }
.step > span:first-child, .step-arrow { color: var(--p-accent); font-size: .83rem; }
.step small { display: block; margin-top: 4px; color: var(--p-muted); font-size: .83rem; line-height: 1.45; }
.flow-demo, .collection-display { padding: clamp(18px, 4vw, 46px); border: 1px solid var(--p-line); border-radius: 20px; background: var(--p-surface); }
.flow-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 22px; }
.flow-progress span { height: 3px; border-radius: 3px; background: var(--p-line); transition: background-color 220ms ease; }
.flow-progress span:first-child,
.flow-demo:is([data-stage="1"], [data-stage="2"]) .flow-progress span:nth-child(2),
.flow-demo[data-stage="2"] .flow-progress span:nth-child(3) { background: var(--p-accent); }
.flow-copy { min-height: 175px; }
#demo-step, .flow-detail > span { color: var(--p-muted); font-size: .875rem; }
#flow-label { margin-top: 6px; font-size: clamp(1.16rem, 2.3vw, 1.65rem); }
.flow-amount { margin-top: 14px; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.065em; }
.flow-amount small { margin-left: 4px; color: var(--p-muted); font-size: .75rem; letter-spacing: .045em; }
.flow-detail { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--p-line); font-size: .875rem; }
.flow-demo .button { margin-top: 22px; }
.demo-disclaimer { margin-top: 13px; color: var(--p-muted); font-size: .75rem; line-height: 1.5; }

.collection-display { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.collection-card-wrap { display: grid; justify-items: center; padding: 5%; }
.collection-card-wrap .card-art { width: min(100%, 390px); transform: rotate(-5deg); padding: clamp(12px, 2.5vw, 25px); }
.collection-info h3 { font-size: clamp(1.9rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.collection-info > p:not(.sr-only) { margin-top: 8px; color: var(--p-muted); font-size: .95rem; }
.finish-options { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.finish-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--p-line);
  border-radius: 100px;
  background: transparent;
  font-size: .83rem;
}
.finish-options button[aria-pressed=true] { border-color: var(--p-accent); background: var(--p-raised); }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #969696; border-radius: 50%; }
.swatch.platinum { background: #d9dadd; }
.swatch.gold { background: linear-gradient(120deg, #ba8349, #ffebc3 49%, #9d6332 73%, #ddaf74); }
.swatch.graphite { background: #19191c; }
.collection-info .text-link { margin-top: 12px; }

.engine-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.engine-result > div { padding: 21px 6px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 12px; color: var(--p-muted); }
.engine-result strong { display: block; margin-top: 10px; color: var(--p-text); font-size: clamp(1.5rem, 3vw, 2.8rem); font-weight: 520; }
.engine-result > p { grid-column: 1 / -1; margin-top: 6px; color: var(--p-muted); font-size: .75rem; }
.faq { align-items: start; }
.faq-list details { border-bottom: 1px solid var(--p-line); }
.faq-list details:first-child { border-top: 1px solid var(--p-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 17px; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--p-accent); font-size: 1.25rem; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-bottom: 17px; color: var(--p-muted); line-height: 1.6; font-size: .9rem; }
.faq-list p a { color: var(--p-accent); text-decoration: underline; }
.closing { margin-bottom: 32px; text-align: center; background: radial-gradient(ellipse at 50% 95%, #b5936329, transparent 70%); }
.closing p { margin-inline: auto; }
.closing .button { margin-top: 24px; }

.site-footer { padding-block: 32px 24px; border-top: 1px solid var(--p-line); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-main nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 42px); }
.footer-main nav > div { display: flex; flex-direction: column; gap: 10px; }
.footer-main nav a { color: var(--p-muted); font-size: .82rem; }
.footer-main nav strong { font-size: .85rem; font-weight: 550; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: .75rem; }

@media (max-width: 720px) {
  .site-header { gap: 10px; }
  .landing-header-tools { margin-left: auto; gap: 6px; }
  .menu-toggle { display: grid; align-content: center; gap: 4px; }
  .menu-toggle span { display: block; height: 1px; width: 15px; background: currentColor; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(2.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .site-header nav { display: none; }
  .site-header nav.open {
    display: grid;
    position: absolute;
    inset: calc(100% + 6px) 16px auto;
    gap: 0;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 12px;
    box-shadow: var(--nav-shadow);
  }
  .site-header nav a { padding: 13px 16px; }
  .section-wrap { width: calc(100% - 44px); }
  .experience, .engine-section, .faq, .how-layout, .collection-display { grid-template-columns: minmax(0, 1fr); }
  .collection-info { text-align: center; }
  .finish-options { justify-content: center; }
  .footer-main { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero { padding-inline: 18px; }
  .hero-stage .hero-card { width: clamp(154px, 49vw, 220px); }
  .hero-silver { transform: translateX(-91%) rotate(-14deg); }
  .hero-gold { transform: translateX(-9%) rotate(14deg); }
  .theme-toggle, .menu-toggle { width: 35px; height: 35px; }
  .header-cta { padding: 8px 11px; min-height: 35px; font-size: .76rem; }
  .header-cta span { display: none; }
  .site-header .wordmark img { width: 84px; height: 28px; }
  .footer-main nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
