/* Public site: header, landing page, footer and legal documents. */
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.16em; font-size: 13px; }
/* The orbital mark has fine lines, so it needs a larger, high-contrast holder than a conventional app icon. */
.brand img, .brand-mark { width: 64px; height: 64px; box-sizing: border-box; flex: 0 0 64px; padding: 1px; border-radius: 18px; background: #fff; object-fit: contain; box-shadow: 0 5px 14px rgb(20 10 14 / 18%); }

#public { overflow-x: clip; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: saturate(1.6) blur(16px); background: rgb(246 242 233 / 78%); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: all 0.2s; }
.site-nav > a:hover { color: var(--ink); background: rgb(30 21 25 / 6%); }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.menu-btn { display: none; }

/* Hero */
.hero { width: min(1180px, 100% - 48px); margin: 0 auto; padding: 56px 0 72px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); box-shadow: var(--shadow-sm); }
.hero-title { font-size: clamp(54px, 8.2vw, 104px); line-height: 0.95; margin: 22px 0 22px; letter-spacing: -0.03em; }
.hero-title em { color: var(--wine); font-style: italic; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 520px; line-height: 1.6; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f0cdd9, #e9b4c5 40%, transparent 70%); filter: blur(10px); opacity: 0.9; }
.phone { position: relative; width: 300px; height: 600px; background: #14090d; border-radius: 46px; padding: 11px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b1a21; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 88px; height: 24px; background: #14090d; border-radius: 0 0 16px 16px; transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: var(--bg); padding: 44px 16px 16px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; letter-spacing: -0.01em; }
.ps-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); color: var(--ink-2); }
.ps-card { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); }
.ps-card .avatar { --s: 40px; }
.ps-card b { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.ps-card .v { color: var(--info); }
.ps-card span.code { font-size: 11.5px; color: var(--ink-3); }
.ps-card i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--wine); background: var(--blush); padding: 6px 12px; border-radius: 99px; }
.ps-bubble { background: #fff; padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: 12.5px; max-width: 80%; box-shadow: var(--shadow-sm); margin-top: 6px; }
.ps-bubble.mine { background: var(--wine); color: #fff; border-radius: 16px 16px 4px 16px; justify-self: end; margin-top: 0; }
.phone-screen { position: relative; }
.ps-tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 12px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); color: var(--ink-3); }
.ps-tabs .ico:first-child { color: var(--wine); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; }
.float small { display: block; color: var(--ink-3); font-size: 11.5px; }
.float b { font-size: 14px; }
.f-tee { left: -6%; bottom: 6%; animation: float 6s ease-in-out infinite 0.6s; }
.f-tee img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.f-unlock { right: -2%; top: 20%; color: var(--ok); animation: float 5.5s ease-in-out infinite 1.2s; }
.f-unlock b { color: var(--ink); display: block; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.f-tee, .f-unlock { --r: 0deg; }
.f-tee { animation-name: float-plain; }
.f-unlock { animation-name: float-plain; }
@keyframes float-plain { 50% { transform: translateY(-10px); } }

/* Strip */
.strip { overflow: hidden; background: var(--ink); color: #fff; padding: 18px 0; transform: rotate(-1deg); margin: 0 -2% ; }
.strip-track { display: flex; gap: 28px; width: max-content; animation: marquee 28s linear infinite; font-family: var(--display); font-size: 30px; align-items: center; white-space: nowrap; }
.strip-track i { color: var(--blush-2); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { width: min(1180px, 100% - 48px); margin: 0 auto; padding: 96px 0 0; }
.section.narrow { width: min(820px, 100% - 48px); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1; margin-top: 10px; letter-spacing: -0.025em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-n { position: absolute; right: 24px; top: 8px; font-size: 92px; color: var(--blush-2); line-height: 1; opacity: 0.7; }
.step-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--blush); color: var(--wine); display: grid; place-items: center; margin-bottom: 70px; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s; display: grid; align-content: start; gap: 8px; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card.wide { grid-column: span 2; background: linear-gradient(135deg, #fff, var(--blush)); }
.bento-card .step-ico { margin-bottom: 40px; }
.bento-card h3 { font-size: 20px; letter-spacing: -0.015em; }
.bento-card p { color: var(--ink-2); max-width: 420px; }

.unlock-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--wine), var(--wine-2) 60%, var(--wine-3)); border-radius: 40px; padding: clamp(32px, 5vw, 64px); color: #fff; position: relative; overflow: hidden; }
.unlock-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 70%); }
.unlock-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; position: relative; z-index: 1; }
.unlock-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 20px; padding: 16px 18px; counter-increment: s; }
.unlock-steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--wine); display: grid; place-items: center; font-weight: 800; align-self: center; }
.unlock-steps b { font-size: 16px; }
.unlock-steps span { color: #f0cdd9; font-size: 13.5px; }
.cta-band { text-align: center; background: var(--ink); color: #fff; border-radius: 40px; padding: clamp(44px, 7vw, 96px) 24px; display: grid; gap: 28px; justify-items: center; background-image: radial-gradient(circle at 20% 0, rgb(122 33 66 / 55%), transparent 55%); }
.cta-band h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.025em; }

/* FAQ (shared with in-app help) */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.25s; color: var(--ink-3); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 2px 20px; color: var(--ink-2); max-width: 640px; }

/* Footer */
.site-footer { margin-top: 110px; background: #17090f; color: #cdbcc3; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 16px; line-height: 1.6; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 13px; }

/* Public-page content wrapper used by shop/help in logged-out layout */
#publicView > .page-head, #publicView > .toolbar, #publicView > .grid, #publicView > .pdp, #publicView > .two-col, #publicView > .state, #publicView > button { width: min(1180px, 100% - 48px); margin-inline: auto; }
#publicView > .page-head { padding-top: 44px; }
#publicView > .grid, #publicView > .two-col, #publicView > .pdp { margin-top: 20px; }
#publicView:not(:has(.hero)) { min-height: 70vh; padding-bottom: 20px; }
#publicView > button { display: flex; margin-top: 24px; }

/* Legal documents */
.legal-page { background: var(--bg); }
.legal-hero { padding: 64px 0 36px; }
.legal-hero.container { width: min(820px, 100% - 48px); }
.legal-hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.025em; line-height: 1; margin-top: 10px; }
.legal-hero .updated { color: var(--ink-3); margin-top: 14px; font-size: 14px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); margin-bottom: 20px; width: min(820px, 100% - 48px); margin-inline: auto; }
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.015em; }
.legal h3 { font-size: 18px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 10px 0; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); background: var(--surface-2); }
.legal .btn { text-decoration: none; color: #fff; }
.legal-page .site-footer { margin-top: 60px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; text-align: left; }
  .hero-visual { min-height: 560px; }
  .steps, .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: auto; }
  .step-ico { margin-bottom: 36px; }
  .unlock-band { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav > a { padding: 14px 10px; font-size: 16px; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; flex-direction: column; }
  .nav-cta .btn { width: 100%; min-height: 50px; }
}
@media (max-width: 560px) {
  .container, .hero, .section, .legal-card, .legal-hero.container { width: calc(100% - 32px); }
  .hero-visual { min-height: 520px; transform: scale(0.92); }
  .phone { width: 270px; height: 540px; }
  .f-tee { left: -4px; } .f-unlock { right: -4px; }
  .section { padding-top: 72px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .strip-track { font-size: 24px; }
  .brand img, .brand-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
}

.legal .hl { background: var(--warn-bg); color: #8a5208; border-radius: 16px; padding: 16px 18px; margin: 18px 0; line-height: 1.6; }
