/* BoardPeek product page. Builds on /style.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html:lang(en) [data-lang-only="zh"], html:not(:lang(en)) [data-lang-only="en"] { display: none; }

/* Device frame */
.phone { position: relative; aspect-ratio: 1000 / 2174; padding: 10px; border-radius: 15% / 7%; background: #1c1c1e; box-shadow: 0 0 0 1px #ffffff2e, inset 0 0 0 1px #000, 0 40px 120px #000c; }
/* Resolve the screen from the frame edges, avoiding percentage-height
   sizing against an intrinsic aspect-ratio box in WebKit. */
.screen { position: absolute; inset: 10px; border-radius: 13% / 6%; overflow: hidden; background: #000; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ipad img { height: auto; }

/* Hero */
.bp-hero { position: relative; background: #000; overflow: hidden; padding-top: clamp(64px, 10vh, 112px); }
.bp-hero .hero-copy { text-align: center; display: grid; justify-items: center; position: relative; z-index: 2; }
.hero-icon { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 0 0 1px #ffffff1f; }
.bp-hero h1 { margin-top: 26px; font-size: clamp(64px, 11vw, 148px); line-height: 1; letter-spacing: -.055em; font-weight: 600; }
.split { display: inline-block; }
.split .ch { display: inline-block; will-change: transform; }
.hero-sub { margin-top: 18px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.02em; color: var(--grey); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 36px; }
.hero-stage { position: relative; height: clamp(440px, 72vh, 760px); margin-top: clamp(48px, 8vh, 88px); display: grid; justify-items: center; }
.dot-field { position: absolute; inset: 0; background-image: radial-gradient(#ffffff2e 1.2px, transparent 1.6px); background-size: 16px 16px; mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 75%); }
.hero-phone { position: relative; width: clamp(240px, 26vw, 340px); height: auto; align-self: start; transform-origin: 50% 0; }

/* Intro statement */
.intro { padding-block: clamp(112px, 16vw, 200px); }
.statement { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; max-width: 22em; }
.statement .w, .reveal .w { display: inline; }

/* Story */
.story { background: #000; }
.stage { padding-block: clamp(96px, 12vw, 160px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 56px; }
.step h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.03em; font-weight: 600; }
.step p { margin-top: 12px; color: #a1a1a6; font-size: 17px; line-height: 1.65; max-width: 28em; }
.step-shot { display: block; width: min(280px, 70%); height: auto; margin-top: 28px; border-radius: 32px; box-shadow: 0 0 0 1px #ffffff26; }
.story-phone, .count { display: none; }
.story.pinned .stage { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: 0; }
.story.pinned .steps { position: relative; margin-top: 32px; gap: 0; }
.story.pinned .step { grid-area: 1 / 1; opacity: 0; }
.story.pinned .step-shot { display: none; }
.story.pinned .count { display: block; margin-top: 40px; font: 500 13px/1 var(--mono); letter-spacing: .16em; color: #fff; }
.story.pinned .count-total { color: #6e6e73; }
.story.pinned .story-phone { display: grid; justify-items: center; gap: 28px; perspective: 1600px; }
.story-phone .phone { height: min(72vh, 680px); height: min(72svh, 680px); width: auto; }
.story-phone .shot { position: absolute; inset: 0; opacity: 0; }
.story-phone .shot:first-child { opacity: 1; }
.meter { width: 160px; height: 2px; background: #ffffff26; border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: #fff; border-radius: 28px; padding: 32px; min-height: 300px; display: flex; flex-direction: column; }
.tile h3 { margin-top: auto; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.03em; font-weight: 600; }
.tile p { margin-top: 10px; color: var(--grey-dark); font-size: 16px; line-height: 1.6; }
.tile-span { grid-column: span 2; }
.tile-wide { grid-column: 1 / -1; min-height: 0; padding: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; }
.tile-text { padding: 40px; display: flex; flex-direction: column; }
.tile-text h3 { margin-top: auto; font-size: clamp(32px, 3.4vw, 48px); }
.ipad { align-self: end; padding: 48px 48px 0; }
.ipad img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; border: 10px solid #1d1d1f; border-bottom: 0; border-radius: 28px 28px 0 0; }

/* Privacy */
.privacy { background: #000; }
.reveal { margin-top: 28px; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(64px, 9vw, 120px) 0 56px; border-top: 1px solid var(--line); }
.facts > div { padding-top: 28px; display: grid; gap: 18px; align-content: start; }
.fact-label { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.dm { --d: clamp(7px, 1.1vw, 13px); --g: calc(var(--d) * .45); display: grid; grid-auto-flow: column; justify-content: start; gap: var(--g); }
.dm .glyph { display: grid; grid-template-columns: repeat(5, var(--d)); gap: var(--g); }
.dm .glyph + .glyph { margin-left: var(--g); }
.dm i { width: var(--d); height: var(--d); border-radius: 50%; background: #ffffff14; }
.dm i.on { background: #fff; }

/* Footer */
.app-icon { display: block; width: 80px; height: 80px; border-radius: 22.5%; margin-bottom: 8px; }
.footer-note { margin-top: 14px; color: var(--grey-dark); font-size: 19px; }
.legal { margin-top: 40px; font-size: 12px; color: var(--grey-dark); max-width: 46em; line-height: 1.6; }

@media (max-width: 899px) {
  .story-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-template-columns: 1fr; }
  .ipad { padding: 0 32px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-span { grid-column: auto; }
  .tile { min-height: 220px; }
  .hero-stage { height: 420px; }
  .hero-phone { width: 230px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts > div { padding-block: 24px; border-bottom: 1px solid var(--line); }
}

