/* Locket landing page. Storybook scroll. Mobile first; desktop layout from 1260px. */
:root {
  --sky: #BFDBF7;
  --ink: #022B3A;
  --teal: #1F7A8C;
  --teal-d: #17606F;
  --lav: #E1E5F2;
  --deep: #010E14;
  --gold: #F2C879;
  --panel: #C4DAF4;
  --tile: #0B2230;
  --tile-line: #1B3A4A;
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: 24px; }

/* header */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 21px/26px var(--display); letter-spacing: -.02em; min-height: 44px; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.logo-mark svg, .lock-badge svg { display: block; width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 36px; font: 500 16px/20px var(--body); }
.nav-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.nav-links .badge { padding: 0; }

/* app store badge */
.badge { display: inline-block; line-height: 0; border-radius: 14px; }
.badge svg { height: 64px; width: auto; aspect-ratio: 196 / 64; }
.badge.sm svg { height: 44px; }

.nav-links .dt { display: none; }

/* shared text */
.v { color: var(--teal); margin-right: .12em; }
.ln { display: block; }
.h2 { font: 800 clamp(32px, 9.7vw, 38px)/1.05 var(--display); letter-spacing: -.03em; }
.sub { font: 400 17px/26px var(--body); }
.chap { display: flex; align-items: center; gap: 12px; font: 700 15px/18px var(--display); letter-spacing: .08em; color: var(--teal-d); }
.pro { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 13px; background: var(--ink); color: #fff; font: 700 13px/16px var(--body); letter-spacing: .02em; }
.pro svg { width: 10px; height: 12px; color: var(--gold); }

/* hero */
.hero { padding-top: 20px; }
.kicker { font: 600 15px/18px var(--body); letter-spacing: .01em; }
.hero h1 { margin-top: 10px; font: 800 clamp(40px, 12.8vw, 50px)/1 var(--display); letter-spacing: -.035em; }
.hero .sub { margin-top: 14px; font-size: 18px; line-height: 27px; }
.cta { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.trust { font: 500 16px/24px var(--body); }
.panel.hero-panel { margin-top: 28px; aspect-ratio: 342 / 540; --r: 1.5deg; }

/* picture frames */
.panel {
  position: relative; z-index: 1; width: 100%; overflow: hidden;
  background: var(--panel); border: 3px solid var(--ink); border-radius: 36px;
  box-shadow: 8px 8px 0 var(--ink);
  aspect-ratio: 342 / 560; --r: -1.5deg; transform: rotate(var(--r));
}
.panel.tilt-r { --r: 1.5deg; }
.panel.bump { animation: bump .45s ease-out; }
@keyframes bump { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 40% { transform: translateY(4px) rotate(calc(var(--r) + .6deg)); } }
@media (prefers-reduced-motion: reduce) { .panel.bump { animation: none; } }
.panel img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* story sections */
.story { padding-top: 8px; }
.story.s01 { padding-top: 72px; padding-bottom: 8px; }
.copy { display: flex; flex-direction: column; gap: 12px; }
.copy .sub { padding-top: 4px; padding-bottom: 8px; }
.story .panel { margin-top: 12px; }
.story.last { padding-bottom: 80px; }
.story.s01 > .sub { padding-top: 16px; }
.rib { display: block; flex: none; width: 100%; max-width: 342px; aspect-ratio: 342 / 90; margin-inline: auto; }
#main { position: relative; }
.thread { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: visible; }
.thread circle { transition: opacity .25s, transform .25s; }
.thread .dot-s { opacity: 0; }
.thread .dot-s.on { opacity: 1; }
.thread .dot-e { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.thread .dot-e.on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .thread circle { transition: none; } }

/* pro band */
.pro-band { background: var(--deep); color: #fff; padding: 72px 0 80px; }
.pro-band .wrap { display: flex; flex-direction: column; gap: 32px; }
.pro-head { display: flex; flex-direction: column; gap: 12px; }
.pro-head .gold { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px; background: var(--gold); color: var(--deep); font: 700 13px/16px var(--body); }
.gold svg { width: 11px; height: 13px; }
.pro-head h2 { font: 800 40px/42px var(--display); letter-spacing: -.03em; }
.pro-head p { color: var(--lav); font: 400 17px/26px var(--body); }
.tiles { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--tile); border: 1px solid var(--tile-line); border-radius: 22px; }
.ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); }
.ico.gold-bg { background: var(--gold); }
.ico svg { width: 30px; height: 30px; }
.tile h3 { font: 800 21px/26px var(--display); letter-spacing: -.02em; }
.tile p { margin-top: 6px; color: var(--lav); font: 400 16px/24px var(--body); }
.tile .pro-o { display: none; }
.pro-o { align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 9px; border: 1px solid var(--sky); border-radius: 13px; color: var(--sky); font: 700 13px/16px var(--body); }
.pro-o svg { width: 10px; height: 12px; }

/* faq */
.faq { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.faq-head { display: flex; flex-direction: column; gap: 10px; }
.faq-head h2 { font: 800 40px/42px var(--display); letter-spacing: -.03em; }
.faq-head .note { display: none; }
.acc { border-top: 2px solid var(--ink); }
.acc details { border-bottom: 2px solid var(--ink); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 16px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc h3 { font: 700 19px/25px var(--display); }
.tg { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); }
.tg svg { width: 14px; height: 14px; }
details[open] .tg { background: var(--ink); color: var(--sky); }
details[open] .tg .vert { display: none; }
.acc .ans { padding-bottom: 22px; font: 400 16px/25px var(--body); }
details[open] > summary { padding-bottom: 8px; }

/* closing card */
.final { padding-bottom: 8px; }
.final-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--lav); border: 3px solid var(--ink); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink);
  padding: 36px 0 0 28px;
}
.final-card h2 { font: 800 clamp(32px, 10.2vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.final-card .sub { padding: 12px 0 22px; }
.final-char { margin-top: 0; width: 233px; margin-left: 35px; aspect-ratio: 848 / 1025; }
.final-char img { width: 100%; height: auto; }

/* footer */
.foot { display: flex; flex-direction: column; gap: 20px; padding-top: 64px; padding-bottom: 140px; font: 500 16px/20px var(--body); }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a.mail { text-decoration: underline; text-underline-offset: 3px; }
.foot .copy-r { display: flex; align-items: center; gap: 10px; font: 400 15px/18px var(--body); }
.foot .logo-mark { display: none; }

/* mobile sticky bar */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(88px + env(safe-area-inset-bottom, 0px)); padding: 0 24px env(safe-area-inset-bottom, 0px);
  background: var(--sky); border-top: 2px solid var(--ink);
  transform: translateY(100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.sticky.on { transform: none; visibility: visible; }
.sticky b { display: block; font: 800 18px/22px var(--display); letter-spacing: -.01em; }
.sticky span { display: block; font: 500 15px/21px var(--body); }
.sticky .badge svg { height: 52px; }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }

/* 404 */
.nf { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nf h1 { font: 800 clamp(40px, 12.8vw, 72px)/1.02 var(--display); letter-spacing: -.035em; }
.nf p { font-size: 20px; line-height: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/22px var(--body); }

/* sub pages: privacy, terms, support, invite link */
.nav-links.sub { gap: 20px; }
.page { padding-top: 32px; padding-bottom: 24px; }
.page h1 { font: 800 clamp(38px, 11vw, 52px)/1.02 var(--display); letter-spacing: -.035em; }
.page .kicker { margin-bottom: 10px; }
.page .last-updated, .page .lede { margin-top: 14px; font: 600 15px/22px var(--body); color: var(--teal-d); }
.page .lede { font: 400 18px/27px var(--body); color: var(--ink); }
.prose { max-width: 680px; margin-top: 28px; font: 400 17px/1.65 var(--body); }
.prose h2 { margin-top: 52px; font: 800 clamp(26px, 7.4vw, 32px)/1.1 var(--display); letter-spacing: -.025em; }
.prose h3 { margin-top: 30px; font: 700 20px/1.25 var(--display); letter-spacing: -.01em; }
.prose h2 + h3 { margin-top: 20px; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--teal-d); }
.prose strong { font-weight: 700; }
.prose a { color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--ink); }
.highlight-box { margin: 28px 0 0; padding: 20px 22px; background: var(--lav); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
.highlight-box p { margin: 0; }
.highlight-box p + p { margin-top: 12px; }
.prose .highlight-box + h2, .prose .highlight-box:last-child { margin-top: 36px; }
.prose h2 + .highlight-box { margin-top: 20px; }
.contact-card { margin-top: 28px; padding: 24px 22px 26px; background: var(--ink); color: #fff; border-radius: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-card h2 { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -.025em; }
.contact-card p { margin: 0; color: var(--lav); }
.contact-card a.contact-email { display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; padding: 0 22px; border-radius: 24px; background: var(--gold); color: var(--deep); font: 700 17px/22px var(--body); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a.contact-email:hover { background: #fff; }
.contact-card a.contact-email:focus-visible { outline-color: #fff; }
.page .acc { margin-top: 20px; }
.page .acc h3 { margin: 0; }
.page .acc .ans { margin: 0; padding-right: 8px; }
.page .acc .ans + .ans { margin-top: -10px; }
.invite { max-width: 560px; margin-inline: auto; padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.invite .lock-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.code-card { width: 100%; padding: 20px 22px; background: var(--lav); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.code-label { font: 600 15px/18px var(--body); color: var(--teal-d); }
.code-value { margin-top: 8px; font: 800 clamp(40px, 13vw, 56px)/1 var(--display); letter-spacing: .12em; word-break: break-all; }
.code-copy { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 22px; background: transparent; color: var(--ink); font: 700 16px/20px var(--body); cursor: pointer; }
.code-copy svg { width: 18px; height: 18px; }
.code-copy:hover, .code-copy.copied { background: var(--ink); color: var(--sky); }
.invite h1 { font: 800 clamp(34px, 10vw, 48px)/1.04 var(--display); letter-spacing: -.035em; }
.invite .lede { font: 400 18px/27px var(--body); }
.invite .how { font: 400 17px/26px var(--body); }

/* ---------- desktop ---------- */
@media (min-width: 1260px) {
  .wrap { max-width: 1248px; padding-inline: 24px; }
  .nav-links .dt { display: inline-flex; }
  .nav { padding-block: 28px; }
  .logo { font-size: 24px; line-height: 30px; gap: 10px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
  .badge svg { height: 64px; }
  .sub { font-size: 22px; line-height: 32px; }
  .chap { font-size: 16px; line-height: 20px; }
  .pro { height: 28px; padding: 0 12px 0 10px; }
  .pro svg { width: 11px; height: 13px; }

  .hero { display: flex; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 96px; }
  .hero-copy { flex: none; width: 680px; }
  .kicker { font-size: 17px; line-height: 22px; }
  .hero h1 { margin-top: 18px; font-size: 100px; line-height: 96px; }
  .hero h1 .ln { white-space: nowrap; }
  .hero .sub { width: 500px; margin-top: 28px; font-size: 22px; line-height: 32px; }
  .cta { margin-top: 40px; flex-direction: row; align-items: center; gap: 20px; }
  .trust { width: 200px; font-size: 15px; line-height: 21px; }
  .panel { flex: none; width: 420px; height: 700px; aspect-ratio: auto; border-radius: 40px; box-shadow: 10px 10px 0 var(--ink); margin-top: 0; }
  .panel.hero-panel { width: 500px; height: 760px; aspect-ratio: auto; border-radius: 44px; box-shadow: 12px 12px 0 var(--ink); margin-top: 0; --r: 2deg; }
  .story .panel { margin-top: 0; }

  .h2 { font-size: 74px; line-height: 76px; }
  .story { display: flex; align-items: center; padding-top: 0; padding-bottom: 24px; }
  .story .copy { gap: 16px; flex: none; }
  .story .copy .sub { padding: 8px 0 0; width: 470px; }
  .story.l { flex-direction: row-reverse; justify-content: flex-end; gap: 120px; }
  .story.r { justify-content: space-between; }
  .story .copy .sub.w { width: 480px; }
  .story.last { padding-bottom: 120px; }
  .story.s01 { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; background: linear-gradient(var(--ink), var(--ink)) no-repeat 24px 0 / calc(100% - 48px) 3px; }
  .story.s01 .h2 { font-size: 72px; line-height: 72px; }
  .story.s01 .ln { display: inline; }
  .story.s01 .copy { gap: 16px; }
  .story.s01 .sub { flex: none; width: 400px; font-size: 20px; line-height: 30px; padding: 0; }
  .rib { width: 1200px; max-width: none; height: 140px; aspect-ratio: auto; }

  .pro-band { padding: 112px 0 120px; }
  .pro-band .wrap { gap: 0; }
  .pro-head { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 56px; gap: 24px; }
  .pro-head .left { display: flex; flex-direction: column; gap: 16px; }
  .pro-head .gold { height: 30px; padding: 0 13px 0 11px; border-radius: 15px; gap: 7px; font-size: 14px; line-height: 18px; }
  .gold svg { width: 12px; height: 14px; }
  .pro-head h2 { font-size: 74px; line-height: 76px; }
  .pro-head p { flex: none; width: 420px; font-size: 20px; line-height: 30px; }
  .tiles { flex-direction: row; gap: 24px; }
  .tile { flex: 1 1 0; flex-direction: column; gap: 20px; padding: 32px 28px 36px; border-radius: 28px; }
  .ico { width: 56px; height: 56px; border-radius: 16px; }
  .tile h3 { font-size: 26px; line-height: 30px; }
  .tile p { margin-top: 10px; font-size: 17px; line-height: 26px; }
  .tile .pro-o { display: inline-flex; position: absolute; right: 24px; top: 28px; }

  .faq { flex-direction: row; justify-content: space-between; align-items: flex-start; padding-top: 128px; padding-bottom: 120px; gap: 40px; }
  .faq-head { flex: none; width: 380px; gap: 16px; }
  .faq-head .label { font: 700 16px/20px var(--display); letter-spacing: .08em; color: var(--teal-d); }
  .faq-head h2 { font-size: 60px; line-height: 62px; }
  .faq-head .note { display: block; padding-top: 8px; font-size: 18px; line-height: 28px; }
  .acc { flex: none; width: 700px; }
  .acc summary { padding: 24px 0; }
  .acc h3 { font-size: 26px; line-height: 32px; letter-spacing: -.01em; }
  .tg svg { width: 16px; height: 16px; }
  details[open] > summary { padding-top: 28px; padding-bottom: 12px; }
  .acc .ans { width: 600px; padding-bottom: 32px; font-size: 18px; line-height: 28px; }

  .final-card { flex-direction: column; justify-content: center; height: 560px; padding: 0 0 0 88px; border-radius: 48px; box-shadow: 12px 12px 0 var(--ink); }
  .final-card .txt { width: 560px; }
  .final-card h2 { font-size: 72px; line-height: 74px; }
  .final-card .sub { padding: 24px 0 36px; font-size: 20px; line-height: 30px; }
  .final-char { position: absolute; right: 69px; bottom: -6px; width: 404px; margin: 0; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding-top: 96px; padding-bottom: 56px; }
  .foot-links { gap: 32px; flex-wrap: nowrap; align-items: center; }
  .foot a { min-height: 44px; }
  .foot a.mail { min-height: 44px; color: var(--teal-d); }
  .foot .copy-r { order: -1; }
  .foot .logo-mark { display: grid; width: 32px; height: 32px; border-radius: 9px; }
  .sticky { display: none; }

  .nav-links.sub { gap: 32px; }
  .page { padding-top: 56px; padding-bottom: 48px; }
  .page h1 { font-size: 80px; line-height: 80px; }
  .page .lede { font-size: 22px; line-height: 32px; max-width: 680px; }
  .prose { font-size: 18px; margin-top: 40px; }
  .prose h2 { margin-top: 64px; font-size: 38px; }
  .prose h3 { font-size: 22px; }
  .page .acc { max-width: 760px; width: auto; }
  .page .acc .ans { width: auto; }
  .contact-card { max-width: 680px; flex-direction: column; padding: 32px 36px 36px; }
  .invite { padding-top: 56px; padding-bottom: 80px; }
}
