/* JustTap Invites hub. Mobile first. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(255, 96, 110, .34), transparent 60%),
    radial-gradient(700px 520px at -10% 45%, rgba(255, 170, 80, .16), transparent 60%),
    radial-gradient(800px 600px at 60% 100%, rgba(255, 92, 150, .14), transparent 60%),
    linear-gradient(180deg, #2a1420, #1c0e15 50%);
  background-color: #1c0e15;
  color: var(--jt-text); font: 600 16px/1.55 var(--jt-font);
}
h1, h2, h3 { font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--jt-peach); }
:focus-visible { outline: 3px solid var(--jt-peach); outline-offset: 3px; border-radius: 8px; }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top {
  max-width: 1080px; margin: 0 auto; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--jt-text); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand b { color: var(--jt-pink); font-weight: 900; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: #2a1420; border: 1px solid var(--jt-line); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.top-link { color: var(--jt-text); font-weight: 800; text-decoration: none; padding: 8px 14px; border: 1px solid var(--jt-line); border-radius: 999px; }
.top-link:hover { border-color: var(--jt-peach); color: var(--jt-peach); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 16px; font: 900 16px var(--jt-font); text-decoration: none; cursor: pointer; border: 0;
}
.btn-main { color: #2a0f17; background: linear-gradient(90deg, var(--jt-coral), var(--jt-peach) 55%, var(--jt-gold)); box-shadow: 0 10px 30px rgba(255, 122, 89, .32); }
.btn-main:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--jt-text); background: rgba(255, 255, 255, .04); border: 1px solid var(--jt-line); }
.btn-ghost:hover { border-color: var(--jt-pink); }

/* Hero */
.hero { padding: 26px 0 10px; display: grid; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--jt-peach); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(40px, 11vw, 72px); }
.grad { background: linear-gradient(90deg, var(--jt-pink), var(--jt-peach) 50%, var(--jt-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--jt-muted); font-size: 17.5px; max-width: 34em; }
.lede strong { color: var(--jt-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 200px; }

.hero-card { position: relative; height: 290px; margin: 10px auto 0; width: min(100%, 420px); }
.paper {
  position: absolute; left: 0; top: 30px; width: 62%; aspect-ratio: 5 / 7;
  background: linear-gradient(160deg, #fbf6ec, #efe5d2); color: #3c4a3a; border-radius: 10px;
  transform: rotate(-7deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
.paper-small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a7a55; }
.paper-big { font-size: 21px; font-style: italic; }
.paper-tap { position: absolute; bottom: 14px; right: 14px; width: 30px; height: 30px; }
.paper-tap i { position: absolute; inset: 0; border: 2px solid #b39150; border-radius: 50%; opacity: 0; animation: ring 2.4s ease-out infinite; }
.paper-tap i:nth-child(2) { animation-delay: .8s; }
.paper-tap i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.phone {
  position: absolute; right: 0; top: 0; width: 46%; aspect-ratio: 9 / 18.5;
  background: #160a10; border-radius: 26px; border: 2px solid #5a2f3c; padding: 8px;
  transform: rotate(5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 92, 120, .25);
}
.phone-screen {
  height: 100%; border-radius: 19px; background: linear-gradient(180deg, #f8f3e8, #e9efe4);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px;
}
.ps-a { font: italic 26px 'Iowan Old Style', Palatino, Georgia, serif; color: #3c4a3a; }
.ps-line { width: 40%; height: 2px; background: #c2a669; margin-bottom: 6px; }
.ps-btn { width: 100%; text-align: center; padding: 7px 0; border-radius: 10px; font-size: 11px; font-weight: 900; background: #5d7255; color: #fff; }
.ps-btn-2 { background: transparent; color: #5d7255; border: 1.5px solid #9fb092; }

/* Offer */
.offer, .samples, .steps { padding: 34px 0 6px; }
.offer h2, .samples h2, .steps h2 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 14px; }
.section-lede { color: var(--jt-muted); margin: -4px 0 16px; }
.offer-grid { display: grid; gap: 12px; }
.tile {
  position: relative; padding: 18px 18px 18px 64px; border-radius: 20px;
  background: rgba(52, 26, 38, .8); border: 1px solid var(--jt-line);
}
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { color: var(--jt-muted); font-size: 15px; }
.tile strong { color: var(--jt-text); }
.tile-n {
  position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 900; color: #1c0e15;
  background: linear-gradient(135deg, var(--jt-pink), var(--jt-gold));
}

/* Sample cards */
.sample-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sample {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px;
  border-radius: 20px; text-decoration: none; color: var(--jt-text);
  background: rgba(52, 26, 38, .8); border: 1px solid var(--jt-line);
  transition: transform .15s ease, border-color .15s ease;
}
.sample:hover { transform: translateY(-2px); border-color: var(--jt-peach); }
.s-art { height: 96px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; position: relative; }
.s-mono { font-weight: 900; font-size: 22px; position: relative; }
.s-body { display: grid; gap: 2px; }
.s-kind { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--jt-peach); }
.s-title { font-size: 19px; font-weight: 900; line-height: 1.15; }
.s-desc { color: var(--jt-muted); font-size: 14px; line-height: 1.4; }
.s-wedding .s-art { background: linear-gradient(160deg, #fbf6ec, #e3e9dc); }
.s-wedding .s-mono { font: italic 30px 'Iowan Old Style', Palatino, Georgia, serif; color: #5d7255; }
.s-birthday .s-art { background: radial-gradient(circle at 30% 30%, #ffd166 0 10%, transparent 11%), radial-gradient(circle at 75% 70%, #ff6fae 0 8%, transparent 9%), linear-gradient(160deg, #3b2a8c, #1a1450); }
.s-birthday .s-mono { font-size: 46px; color: #ffd166; text-shadow: 0 3px 0 #ff6fae; }
.s-event .s-art { background: linear-gradient(160deg, #0a0420, #2b0a4a); box-shadow: inset 0 0 30px rgba(0, 240, 255, .35); }
.s-event .s-mono { font-size: 24px; letter-spacing: .12em; color: #00f0ff; text-shadow: 0 0 12px #00f0ff, 0 0 24px #ff2bd6; }
.s-popup .s-art { background: repeating-linear-gradient(90deg, #d8b98d 0 12px, #cfae80 12px 24px); }
.s-popup .s-mono { font-size: 17px; color: #fff8ec; background: #c2552d; padding: 4px 10px; border-radius: 6px; transform: rotate(-6deg); }
.s-family .s-art { background: repeating-linear-gradient(0deg, rgba(196, 72, 48, .55) 0 10px, transparent 10px 20px), repeating-linear-gradient(90deg, rgba(196, 72, 48, .55) 0 10px, transparent 10px 20px), #f6ead2; }
.s-family .s-mono { font-size: 22px; color: #2f4a2d; background: #f6ead2; padding: 2px 8px; border-radius: 8px; }
.s-menu .s-art { background: linear-gradient(160deg, #1b1714, #2b211b); }
.s-menu .s-mono { font-size: 20px; letter-spacing: .1em; color: #ff8a3d; border: 2px solid #ff8a3d; padding: 4px 8px; border-radius: 8px; }

/* Steps */
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.step-list li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px;
  background: rgba(255, 255, 255, .03); border: 1px dashed var(--jt-line); color: var(--jt-muted);
}
.step-list li b { color: var(--jt-text); }
.step-list li::before {
  content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--jt-peach); border: 2px solid var(--jt-peach);
}

/* Motto */
.mind {
  margin: 40px 0 10px; padding: 34px 20px; border-radius: 28px; text-align: center;
  background: radial-gradient(500px 240px at 50% 0%, rgba(255, 92, 120, .45), transparent 70%), rgba(52, 26, 38, .8);
  border: 1px solid rgba(255, 200, 150, .35);
  display: grid; gap: 12px; justify-items: center;
}
.mind-big { font-size: clamp(28px, 7.5vw, 46px); font-weight: 900; line-height: 1.1; background: linear-gradient(90deg, #fff4ec, var(--jt-pink) 45%, var(--jt-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mind-small { color: var(--jt-muted); }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 50px; }
  .hero > :not(.hero-card) { grid-column: 1; }
  .hero-card { grid-column: 2; grid-row: 1 / span 4; height: 360px; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .sample-grid { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .sample-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sample { grid-template-columns: 1fr; padding: 12px; }
  .s-art { height: 140px; }
}

/* Party touches: string lights + confetti */
.lights { position: relative; height: 34px; margin: 0 -16px; overflow: hidden; pointer-events: none; }
.lights::before { content: ''; position: absolute; left: -5%; right: -5%; top: -30px; height: 50px; border-bottom: 1.5px solid rgba(255, 210, 160, .35); border-radius: 0 0 50% 50%; }
.lights i { position: absolute; top: 12px; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; background: var(--jt-gold); box-shadow: 0 0 12px 3px rgba(255, 210, 122, .55); animation: glow 3s ease-in-out infinite; }
.lights i:nth-child(3n+2) { background: var(--jt-pink); box-shadow: 0 0 12px 3px rgba(255, 143, 177, .5); animation-delay: .8s; }
.lights i:nth-child(3n) { background: var(--jt-peach); box-shadow: 0 0 12px 3px rgba(255, 179, 138, .5); animation-delay: 1.6s; }
@keyframes glow { 50% { opacity: .55; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.confetti b { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: .55; transform: rotate(25deg); }
.hero { position: relative; isolation: isolate; }
.btn-warm { color: var(--jt-text); background: rgba(255, 179, 138, .12); border: 1px solid rgba(255, 179, 138, .45); }
.btn-warm:hover { background: rgba(255, 179, 138, .2); }
.mind-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.top-nav { display: flex; gap: 8px; }
.top-link.hot { color: #2a0f17; border-color: transparent; background: linear-gradient(90deg, var(--jt-coral), var(--jt-gold)); }
.top-link.hot:hover { color: #2a0f17; filter: brightness(1.05); }
.top-link, .brand { white-space: nowrap; }
@media (max-width: 420px) {
  .top-nav .top-link:not(.hot) { display: none; }
  .brand { font-size: 17px; }
}
