/* Homepage sections. Requires theme.css and ds.css. */
/* Hero: copy on the left, CSS 3D stack of proposal cards on the right. */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(2.9rem, 5.4vw, 5.6rem); line-height: .94; letter-spacing: -.05em; }

.hero-stage { --rx: 0deg; --ry: 0deg; position: relative; height: clamp(420px, 44vw, 560px); perspective: 1400px; perspective-origin: 50% 40%; }
.hero-scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-14deg + var(--ry))); transition: transform .6s var(--ease-out); }
.hero-stage.is-tracking .hero-scene { transition: transform .12s linear; }
.hero-card { position: absolute; border-radius: 26px; transform-style: preserve-3d; backface-visibility: hidden; will-change: transform; }

.hero-card-back { width: 54%; left: 0; top: 10%; padding: 14px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); transform: translateZ(-120px) rotateZ(-6deg); animation: hero-float-back 9s ease-in-out infinite; }
.mini-portrait { width: 56px; height: 70px; border-radius: 12px; background: var(--paper-200); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-600); letter-spacing: -.04em; }
.mini-copy { display: grid; gap: 3px; min-width: 0; }
.mini-copy strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; }
.mini-copy span { color: var(--text-muted); font-size: .76rem; }
.mini-price { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: .8rem; font-weight: 720; }

.hero-card-mid { width: 60%; right: 0; top: 2%; padding: 22px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-panel); transform: translateZ(-40px) rotateZ(4deg); animation: hero-float-mid 8s ease-in-out infinite; }
.mini-chip { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--lime-200); color: var(--lime-900); font-size: .7rem; font-weight: 720; }
.mid-title { margin: 14px 0 8px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; letter-spacing: -.035em; }
.mid-body { margin: 0; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.mid-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: .76rem; color: var(--text-muted); }
.mid-foot strong { color: var(--text-strong); font-size: .95rem; }

.hero-card-front { width: 72%; left: 14%; bottom: 4%; padding: clamp(22px, 2.6vw, 34px); background: var(--surface-inverse); color: var(--text-inverse); box-shadow: 0 50px 90px rgba(20,22,19,.32), 0 10px 24px rgba(20,22,19,.16); transform: translateZ(70px); animation: hero-float-front 7s ease-in-out infinite; }
.hero-card-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.09) 0%, transparent 38%); }
.front-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(20px, 3vw, 36px); }
.hero-card-front .ring-mark { width: 40px; height: 40px; font-size: 15px; }
.hero-card-front .state-chip { color: var(--lime-900); background: var(--accent); border-color: transparent; }
.front-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1; letter-spacing: -.045em; }
.front-terms { margin: 22px 0 0; }
.front-terms div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border-inverse); }
.front-terms dt { color: var(--text-inverse-subtle); font-size: .72rem; font-weight: 600; }
.front-terms dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }

.hero-float-chip { position: absolute; right: 4%; bottom: -3%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); font-size: .78rem; font-weight: 720; transform: translateZ(140px); animation: hero-float-chip 6s ease-in-out infinite; }
.hero-float-chip .icon { width: 15px; height: 15px; color: var(--lime-700); }

@keyframes hero-float-back { 50% { transform: translateZ(-120px) rotateZ(-5deg) translateY(-8px); } }
@keyframes hero-float-mid { 50% { transform: translateZ(-40px) rotateZ(3deg) translateY(-12px); } }
@keyframes hero-float-front { 50% { transform: translateZ(70px) translateY(-10px); } }
@keyframes hero-float-chip { 50% { transform: translateZ(140px) translateY(-14px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: clamp(360px, 92vw, 460px); max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .hero-stage { height: 400px; }
  .hero-scene { transform: rotateX(calc(5deg + var(--rx))) rotateY(calc(-7deg + var(--ry))); }
  .hero-card-back { display: none; }
  .hero-card-mid { width: 74%; right: 0; top: 0; padding: 18px; }
  .hero-card-front { width: 86%; left: 4%; bottom: 8%; }
  .hero-float-chip { right: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-float-chip { animation: none; }
  .hero-scene { transition: none; }
}

.lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--text-muted); max-width: 460px; text-wrap: pretty; }
.card-panel { border-radius: 24px; padding: clamp(20px, 3vw, 32px); background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.browse-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.browse-filters { display: grid; gap: 16px; margin: 24px 0 28px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; border-radius: 20px; background: var(--surface-card); border: 1px solid var(--border-subtle); padding: 14px; transition: all .24s var(--ease-out); }
.person:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.person-portrait { aspect-ratio: 4 / 5; border-radius: 14px; background: var(--paper-200); display: grid; place-items: center; position: relative; }
.person-initials { font-family: var(--font-display); font-size: 3.4rem; font-weight: 500; letter-spacing: -.05em; color: var(--ink-600); }
.person-tag { position: absolute; left: 10px; bottom: 10px; font-size: .72rem; font-weight: 700; background: rgba(255,253,248,.9); border-radius: 999px; padding: 6px 10px; }
.person-body { padding: 16px 6px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person-body h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.08; letter-spacing: -.03em; }
.person-known { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.5; }
.person-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.person-price { font-weight: 720; font-size: .95rem; }
.person-turn { font-family: var(--font-mono); font-size: .74rem; color: var(--text-subtle); }
.person-action { padding-top: 12px; }
/* How it works: step buttons drive a CSS 3D prism (one face per step). */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.how-copy { margin: 20px 0 28px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; max-width: 400px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--border-subtle); }
.step { position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 0; border: 0; background: none; color: var(--text-strong); text-align: left; cursor: pointer; opacity: .5; transition: opacity .2s ease; }
.step:hover, .step[aria-pressed="true"] { opacity: 1; }
.step-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--paper-200); color: var(--ink-600); display: grid; place-items: center; transition: background .2s ease, color .2s ease, transform .24s var(--ease-out); }
.step[aria-pressed="true"] .step-icon { background: var(--ink-900); color: var(--accent); transform: translateY(-2px); }
.step-text { display: grid; gap: 6px; }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; }
.step-body { color: var(--text-muted); font-size: .95rem; line-height: 1.6; max-width: 520px; }
.step-progress { position: absolute; left: 62px; right: 0; bottom: -1px; height: 2px; background: var(--ink-900); transform: scaleX(0); transform-origin: left; }
.step[aria-pressed="true"] .step-progress.is-running { transform: scaleX(1); transition: transform var(--how-interval, 5s) linear; }

.how-stage { --w: clamp(280px, 30vw, 380px); --h: calc(var(--w) * 1.18); --angle: 0deg; --rx: 0deg; --ry: 0deg; position: relative; height: calc(var(--h) + 120px); perspective: 1300px; display: grid; place-items: center; }
.prism-tilt { transform-style: preserve-3d; transform: rotateX(calc(-6deg + var(--rx))) rotateY(var(--ry)); transition: transform .5s var(--ease-out); }
.how-stage.is-tracking .prism-tilt { transition: transform .12s linear; }
.prism { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateZ(calc(var(--w) * -.2887)) rotateY(var(--angle)); transition: transform 1.1s cubic-bezier(.65,0,.25,1); }
.prism-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 30px); border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--border-subtle); background: var(--surface-card); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.face-choose { transform: rotateY(0deg) translateZ(calc(var(--w) * .2887)); }
.face-offer { transform: rotateY(120deg) translateZ(calc(var(--w) * .2887)); background: linear-gradient(160deg, #fffef9, var(--paper-200)); }
.face-pay { transform: rotateY(240deg) translateZ(calc(var(--w) * .2887)); background: var(--surface-inverse); color: var(--text-inverse); border-color: rgba(255,255,255,.08); }
.prism-shadow { position: absolute; bottom: 34px; left: 50%; width: calc(var(--w) * .9); height: 36px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(21,23,22,.22), transparent); filter: blur(6px); }
.prism-dots { position: absolute; bottom: 0; display: flex; gap: 8px; }
.prism-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--border-hover); transition: width .3s var(--ease-out), background .3s ease; }
.how-stage[data-step="0"] .prism-dots span:nth-child(1), .how-stage[data-step="1"] .prism-dots span:nth-child(2), .how-stage[data-step="2"] .prism-dots span:nth-child(3) { width: 22px; background: var(--ink-900); }

.face-kicker { margin: 0; font-family: var(--font-mono); font-size: .72rem; color: var(--text-subtle); }
.face-pay .face-kicker { color: var(--text-inverse-subtle); }
.face-people { display: grid; gap: 10px; flex: 1; align-content: center; }
.face-person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,.6); }
.face-person.is-picked { border-color: var(--border-strong); background: #fff; box-shadow: var(--shadow-selected); }
.fp-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-200); font-family: var(--font-display); font-size: 1rem; color: var(--ink-600); }
.is-picked .fp-avatar { background: var(--ink-900); color: var(--accent); }
.fp-name { display: grid; font-weight: 720; font-size: .88rem; }
.fp-name small { color: var(--text-muted); font-weight: 400; font-size: .72rem; }
.fp-price { font-size: .76rem; font-weight: 720; }
.face-foot { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: .78rem; color: var(--text-muted); }
.face-foot strong { color: var(--text-strong); }
.face-pay .face-foot { border-color: var(--border-inverse); color: var(--text-inverse-subtle); }
.face-pay .face-foot strong { color: var(--accent); }
.face-title { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -.045em; }
.face-quote { margin: 0; flex: 1; color: var(--text-muted); font-size: .88rem; line-height: 1.6; }
.face-amount { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border-subtle); font-size: .8rem; color: var(--text-muted); }
.face-amount strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-strong); }
.face-amount small { grid-column: 1 / -1; font-size: .72rem; }
.amount-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--paper-200); overflow: hidden; }
.amount-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ink-900), var(--lime-700)); transition: width .9s var(--ease-out) .5s; }
.how-stage[data-step="1"] .amount-fill { width: 72%; }
.face-timeline { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-content: center; }
.face-timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: .9rem; color: var(--text-inverse-muted); opacity: .35; transform: translateX(-6px); transition: opacity .4s ease, transform .4s var(--ease-out); }
.face-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 32px; bottom: -8px; width: 1px; background: var(--border-inverse); }
.face-timeline .dot { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 1.5px solid var(--text-inverse-subtle); }
.face-timeline .is-done .dot { background: var(--text-inverse); border-color: var(--text-inverse); }
.face-timeline .is-held { color: var(--accent); font-weight: 650; }
.face-timeline .is-held .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(199,255,74,.16); }
.face-timeline .is-final .dot { border-style: dashed; }
.how-stage[data-step="2"] .face-timeline li { opacity: 1; transform: none; }
.how-stage[data-step="2"] .face-timeline li:nth-child(1) { transition-delay: .3s; }
.how-stage[data-step="2"] .face-timeline li:nth-child(2) { transition-delay: .55s; }
.how-stage[data-step="2"] .face-timeline li:nth-child(3) { transition-delay: .8s; }
.how-stage[data-step="2"] .face-timeline li:nth-child(4) { transition-delay: 1.05s; }

@media (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-copy-col { display: contents; }
  .how > .how-copy-col > h2 { order: 0; }
  .how-copy { order: 1; margin-bottom: 8px; }
  .how-stage { order: 2; --w: min(320px, 76vw); height: calc(var(--h) + 90px); margin-bottom: 20px; }
  .steps { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .prism, .prism-tilt, .amount-fill, .face-timeline li, .step-progress { transition: none !important; }
}

.request-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; align-items: start; }
.glass-panel { border-radius: 28px; padding: clamp(22px, 3vw, 36px); background: rgba(255,255,255,.62); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-panel); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.request-form { display: flex; flex-direction: column; gap: 25px; }
.group-label { margin: 0 0 9px; font-weight: 720; font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; text-align: left; min-height: 86px; display: grid; align-content: center; gap: 5px; padding: 15px 17px; border-radius: 17px; cursor: pointer; color: var(--text-strong); border: 1px solid var(--border-subtle); background: rgba(255,255,255,.46); transition: all .15s ease; }
.choice:hover { border-color: rgba(21,23,22,.32); transform: translateY(-1px); }
.choice::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-hover); }
.choice[aria-checked="true"] { border-color: var(--border-strong); background: rgba(255,255,255,.86); box-shadow: var(--shadow-selected); transform: none; }
.choice[aria-checked="true"]::after { border: 5px solid var(--ink-900); background: var(--accent); }
.choice strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.choice small { color: var(--text-muted); font-size: .75rem; line-height: 1.4; padding-right: 24px; }
.hint { margin: 12px 0 0; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }
.custom-title { margin-top: 14px; }
.quick-amounts { margin-top: 12px; }
.send-status { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }
.preview-col { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.proposal-card { width: 100%; border-radius: 34px; padding: clamp(28px, 5vw, 64px); background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--shadow-feature); }
.proposal-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(40px, 7vw, 84px); }
.ring-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: var(--accent); font-weight: 800; letter-spacing: -.04em; font-size: 17.5px; }
.state-chip { font-size: .75rem; font-weight: 600; color: var(--text-inverse-muted); border: 1px solid var(--border-inverse); border-radius: 999px; padding: 7px 12px; }
.card-recipient { margin: 0 0 14px; color: var(--accent); font-size: .86rem; font-weight: 600; }
.card-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: .96; letter-spacing: -.05em; text-wrap: balance; overflow-wrap: anywhere; }
.request-grid .card-title { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.card-body { margin: 30px 0 40px; color: #c9ccc5; font-size: 1rem; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.terms { margin: 0; }
.term { display: grid; grid-template-columns: minmax(100px, 130px) 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border-inverse); }
.term:first-child { border-top: 1px solid var(--border-inverse); }
.term dt { color: var(--text-inverse-subtle); font-size: .72rem; font-weight: 600; padding-top: 5px; }
.term dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -.015em; }
.card-foot { display: flex; justify-content: space-between; gap: 30px; margin-top: 28px; color: var(--text-inverse-subtle); font-size: .75rem; line-height: 1.5; }
.card-foot p { margin: 0; }
.creator-band { border-radius: 34px; background: var(--surface-inverse); color: var(--text-inverse); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-feature); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: end; }
.creator-band-side { display: flex; flex-direction: column; gap: 24px; }
.creator-band p { margin: 0; color: #c9ccc5; font-size: 1.02rem; line-height: 1.7; max-width: 460px; }

@media (max-width: 720px) {
  .preview-col { position: static; }
}

/* Trust & safety (adapted from the ip-b landing page) */
.eyebrow-kicker { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.trust-grid { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.trust-grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface-card, #fffdf8); border: 1px solid var(--border-subtle); }
.trust-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--ink-900); color: var(--accent); display: grid; place-items: center; }
.trust-grid h3 { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }
.trust-grid p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.55; }
/* Create your account */
.join-panel { border-radius: 34px; padding: clamp(28px, 5vw, 56px); background: var(--surface-inverse, #151716); color: var(--text-inverse, #f4f1ea); display: grid; gap: 28px; }
.join-panel .lead { color: #c9ccc5; margin-top: 12px; }
.join-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.join-card { display: grid; gap: 6px; padding: 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: inherit; text-decoration: none; transition: all .2s ease; }
.join-card:hover { background: rgba(255,255,255,.1); border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.join-card strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.03em; }
.join-card span { color: #c9ccc5; font-size: .88rem; line-height: 1.45; }
.join-note { margin: 0; color: #c9ccc5; font-size: .88rem; }
.join-note a { color: var(--accent); }
