:root {
  color-scheme: light dark;
  --ink: #121b18;
  --deep: #15221e;
  --deep-line: #385047;
  --cream: #faf8f2;
  --mint: #9ee9be;
  --gold: #f1d4a1;
  --on-ink: #f7f4ea;
  --muted-ink: #bdc9c0;
  --paper: #f8f5ee;
  --paper-alt: #eeece1;
  --text: #1c2c24;
  --muted: #4c5c51;
  --line: #cfd4c7;
  --link: #185a40;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c2923;
    --paper-alt: #23332b;
    --text: #f5f2e8;
    --muted: #c0cbbf;
    --line: #46564c;
    --link: #a1e8be;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1rem/1.65 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 690; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
code { font-family: var(--mono); }
.wrap { width: min(100% - 44px, 1216px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; transform: translateY(-150%); background: var(--mint); color: var(--ink); padding: .5rem .75rem; }
.skip:focus { transform: none; }

.site-header, .site-footer { background: var(--ink); color: var(--on-ink); }
.site-header { border-bottom: 1px solid #304238; }
.nav-wrap, .footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-wrap { min-height: 67px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; color: var(--on-ink); text-decoration: none; font-size: 1.24rem; font-weight: 730; letter-spacing: -.055em; }
.brand-mark { position: relative; display: block; width: 27px; height: 27px; border-radius: 8px; background: var(--mint); transform: rotate(-7deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 7px; height: 13px; width: 6px; border-radius: 5px 5px 1px 1px; background: var(--ink); transform: rotate(35deg); }
.brand-mark::before { left: 8px; }
.brand-mark::after { height: 9px; top: 10px; left: 14px; }

.main-nav, .footer-wrap nav { display: flex; align-items: center; gap: clamp(.8rem, 2.8vw, 2.4rem); }
.main-nav a, .footer-wrap nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-ink); font-weight: 550; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .footer-wrap nav a:hover, .main-nav a[aria-current="page"] { color: var(--on-ink); text-decoration: underline; }
.footer-wrap { min-height: 100px; padding-block: 24px; flex-wrap: wrap; }

.hero { background: var(--deep); color: var(--on-ink); overflow: hidden; }
.hero-grid { display: grid; align-items: center; padding-block: 52px 28px; }
.hero-copy { isolation: isolate; z-index: 1; }
.eyebrow { margin-bottom: 1.1rem; color: var(--gold); font: 650 .76rem/1.4 var(--mono); letter-spacing: .115em; text-transform: uppercase; }
.hero h1 { max-width: 10.5em; font-size: clamp(2.62rem, 7.2vw, 5.08rem); font-weight: 680; letter-spacing: -.03em; word-spacing: .035em; line-height: 1.04; text-wrap: initial; }
.hero h1 span { color: var(--mint); }
.hero-copy > p:not(.eyebrow) { max-width: 48ch; margin-top: 1.5rem; color: var(--muted-ink); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.66; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 51px; margin-top: 1.65rem; padding: .7rem 1.12rem; border-radius: 8px; background: var(--mint); color: #10251a; font-weight: 760; text-decoration: none; }
.button:hover { background: #bff3d3; }
.button span { font-size: 1.38rem; line-height: 1; }
.button, .guide-list a span { transition: background-color .18s ease, color .18s ease; }

.hero-preview { position: relative; width: 100%; max-width: 560px; justify-self: center; margin-top: 1.5rem; }
.preview-scene { isolation: isolate; position: relative; width: 100%; max-width: 540px; margin-inline: auto; height: clamp(275px, 77vw, 476px); color: #f1f4ec; }
.preview-orbit { position: absolute; inset: 0 -6%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at 50% 57%, #759e6335, transparent 66%), repeating-radial-gradient(ellipse at 51% 52%, transparent 0 27px, #b3d3a521 28px 29px, transparent 30px 35px); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 74%); }
.invite-window, .receipt-window, .claim-token { position: absolute; box-shadow: 0 18px 42px #06110b77; }
.invite-window { left: 2%; top: 9%; width: 67%; max-width: 335px; padding: clamp(14px, 4vw, 31px); border: 1px solid #567267; border-radius: 21px; background: linear-gradient(145deg, #31463b, #212f28 70%); transform: rotate(-6deg); }
.invite-handle { position: absolute; top: 8px; left: calc(50% - 17px); width: 34px; height: 3px; border-radius: 2px; background: #6a8274; }
.preview-symbol { flex: none; display: inline-grid; place-items: center; width: clamp(28px, 7vw, 42px); aspect-ratio: 1; border-radius: 9px; font-size: clamp(1rem, 4vw, 1.4rem); line-height: 1; font-weight: 700; }
.invite-symbol { background: #465b37; color: #d7e6ad; }
.invite-title { margin: .48rem 0 .55rem; font-size: clamp(1.1rem, 3.7vw, 1.65rem); font-weight: 700; letter-spacing: -.045em; }
.invite-link, .invite-action { display: flex; align-items: center; gap: .4rem; padding: .35rem .55rem; border-radius: 6px; font-size: clamp(.68rem, 2.45vw, .94rem); font-weight: 600; }
.invite-link { border: 1px solid #526d5f; color: #d1dbd0; }
.link-symbol { color: var(--mint); }
.invite-action { justify-content: center; margin-top: .45rem; background: #a2e6b9; color: #163426; }
.claim-token { display: flex; align-items: center; gap: clamp(.3rem, 1.3vw, .58rem); z-index: 2; top: 12%; right: 0; padding: .42rem .6rem; border: 1px solid #6b7e53; border-radius: 99px; background: #2f432c; color: #dfedc9; font-size: clamp(.65rem, 2.1vw, .82rem); font-weight: 650; white-space: nowrap; }
.claim-token code { color: #f4dba5; font-size: .86em; }
.claim-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #a6e5a7; color: #213620; font-size: .72rem; }
.receipt-window { right: 1%; bottom: 10%; width: 78%; max-width: 392px; padding: clamp(12px, 4vw, 27px); border: 1px solid #607a6a; border-radius: 17px; background: linear-gradient(135deg, #314638, #23372a 70%); transform: rotate(4deg); }
.receipt-heading { display: flex; align-items: center; gap: clamp(.38rem, 1.1vw, .8rem); }
.receipt-symbol { background: #5a5336; color: #f2d89e; }
.receipt-heading strong, .receipt-heading div > span { display: block; }
.receipt-heading strong { font-size: clamp(.8rem, 3.4vw, 1.25rem); letter-spacing: -.025em; }
.receipt-heading div > span { color: #bfcebd; font-size: clamp(.65rem, 2.3vw, .85rem); }
.receipt-price { margin-left: auto; color: #b8f0c5; font: 650 clamp(.85rem, 3.6vw, 1.48rem)/1 var(--mono); }
.receipt-count { display: flex; justify-content: space-between; align-items: center; margin-top: .55rem; padding-top: .45rem; border-top: 1px solid #567060; color: #cbd9ca; font-size: clamp(.65rem, 2.3vw, .85rem); }
.receipt-count strong { color: #f1d4a1; font-family: var(--mono); }
.hero-preview figcaption { margin-top: -.4rem; color: var(--muted-ink); font-size: .78rem; text-align: center; }

.benefits { border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; }
.benefit { padding-block: 28px; }
.benefit + .benefit { border-top: 1px solid var(--line); }
.benefit h2 { text-wrap: initial; font-size: clamp(1.34rem, 2.35vw, 1.85rem); }
.benefit p, .step p { max-width: 43ch; margin-top: .55rem; color: var(--muted); }
.section-pad { padding-block: clamp(46px, 7vw, 98px); }
.section-title { font-size: clamp(2.15rem, 5vw, 3.65rem); }
.steps { display: grid; gap: 18px; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 13px; }
.step-copy { flex: 1; min-width: 0; }
.step-number { display: block; margin-bottom: .5rem; color: var(--link); font: 650 .76rem/1.2 var(--mono); }
.step h3 { font-size: clamp(1.21rem, 2.4vw, 1.65rem); text-wrap: initial; }
.step p { font-size: .95rem; line-height: 1.55; }
.step-visual { flex: none; display: grid; place-items: center; width: 96px; height: 81px; border-radius: 9px; background: radial-gradient(ellipse at bottom, #396b48, #263d31 72%); color: #d9f1dd; }
.step-visual > span { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .28rem; max-width: 90%; padding: .25rem .38rem; border: 1px solid #83ac8c; border-radius: 6px; background: #23382c; font: 650 .68rem/1.35 var(--body); }
.step-visual b { color: #c6f4cd; }
.step-visual .step-action { background: #abdcb7; color: #12291c; }
.step-action b { color: inherit; }
.step-visual .step-code, .step-event strong { font-family: var(--mono); color: #f3dda6; }

.guide-section { border-top: 1px solid var(--line); background: var(--paper-alt); }
.guide-grid { display: grid; gap: 24px; }
.guide-grid .section-title { max-width: 13ch; text-wrap: initial; }
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li { padding-block: 12px 16px; border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; color: var(--text); font-size: clamp(1.13rem, 2vw, 1.42rem); text-decoration: none; letter-spacing: -.035em; }
.guide-list a:hover strong { text-decoration: underline; }
.guide-list a span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--link); font-size: 1.05rem; }
.guide-list a:hover span { background: var(--link); color: var(--paper); }
.guide-list p { color: var(--muted); }

.article-header { padding-block: clamp(46px, 9vw, 95px); border-bottom: 1px solid var(--deep-line); background: var(--deep); color: var(--on-ink); }
.article-width { max-width: 780px; }
.article-header h1 { font-size: clamp(2.5rem, 7.3vw, 4.7rem); line-height: 1.03; text-wrap: initial; }
.article-header p:not(.eyebrow) { max-width: 49ch; margin-top: 1.1rem; color: var(--muted-ink); font-size: clamp(1rem, 2vw, 1.21rem); }
.article-body { padding-block: 12px clamp(42px, 7vw, 84px); }
.article-body section, .setup-list li { padding-block: 1.55rem; border-bottom: 1px solid var(--line); }
.article-body h2 { color: var(--text); font-size: clamp(1.4rem, 3.25vw, 2rem); text-wrap: initial; }
.article-body p { margin-top: .7rem; color: var(--muted); }
.article-links a { display: inline-block; margin-right: .9rem; padding-block: .2rem; font-weight: 650; }
.setup-list { margin: 0; padding-left: 1.5rem; }
.setup-list li::marker { color: var(--link); font: 700 .93rem var(--mono); }

@media (min-width: 670px) {
  .wrap { width: min(100% - 64px, 1216px); }
  .hero-grid { padding-block: 72px 42px; }
  .hero-preview { margin-top: .25rem; }
  .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit { padding: 31px 24px 34px; }
  .benefit:first-child { padding-left: 0; }
  .benefit:last-child { padding-right: 0; }
  .benefit + .benefit { border-top: 0; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .step-visual { width: auto; height: clamp(110px, 13vw, 145px); border-radius: 12px 12px 0 0; }
  .step-visual > span { padding: .4rem .65rem; font-size: .9rem; }
  .step-copy { padding: 20px; }
  .guide-grid { grid-template-columns: .86fr 1.14fr; gap: 7%; }
}
@media (min-width: 950px) {
  .wrap { width: min(100% - 100px, 1216px); }
  .nav-wrap { min-height: 74px; }
  .hero-grid { grid-template-columns: 1.14fr 1fr; gap: clamp(18px, 3.8vw, 55px); padding-block: 88px 82px; }
  .hero h1 { font-size: clamp(3.5rem, 5.6vw, 5.08rem); }
  .hero-preview { margin-top: 1.1rem; }
  .preview-scene { height: clamp(355px, 33vw, 476px); }
  .claim-token { top: 16%; }
  .receipt-window { bottom: 12%; }
  .benefit { padding: 37px 32px 42px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 32px); }
  .main-nav { gap: .68rem; }
  .main-nav a { font-size: .82rem; }
  .brand { gap: 7px; font-size: 1.08rem; }
  .brand-mark { scale: .88; }
  .hero h1 { font-size: 2.37rem; }
  .step { gap: 9px; }
  .step-visual { width: 72px; }
  .step-visual .step-code { font-size: .57rem; padding-inline: .22rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
