/* PartPeek: product page. Self-hosted OFL fonts, no external requests.

   IDENTITY TOKENS, all derived from the app and its mark:
   - ground #121417 and panel greys from the app (colors.xml), amber #FFB020 = the mark's jaw,
     the selection and the measurements in the app
   - the cube greys of the mark for secondary surfaces
   - the JAW (an open bracket) is the atom: section labels, bullets, the measure ticks
   - type: Space Grotesk for display, Inter for body, JetBrains Mono for every number that is a
     dimension (as on a drawing) */

@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #121417;          /* app ground */
  --ink-2: #1c1f24;        /* app panel */
  --ink-3: #2a2f37;        /* view cube face */
  --cube-1: #5a6370; --cube-2: #48505b; --cube-3: #3a414b;
  --amber: #ffb020;
  --amber-on-light: #9a5f00; /* 5.6:1 on paper */
  --paper: #f5f4f0;        /* drawing paper */
  --paper-2: #ebe9e3;
  --on-dark: #e6e8eb; --on-dark-2: #9aa1aa;
  --on-light: #121417; --on-light-2: #4b5260;
  --rule-dark: rgba(230, 232, 235, 0.14); --rule-light: rgba(18, 20, 23, 0.14);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1240px; --gut: clamp(20px, 5vw, 64px);
  --part-cyan: #2ec4d6; --part-magenta: #d94fd0; --part-red: #e5484d; --part-green: #46b35a; --part-blue: #3b7ddd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.reduced { scroll-behavior: auto; }
body { margin: 0; background: var(--ink); color: var(--on-dark); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--amber); }
.light em { color: var(--amber-on-light); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.num { font-family: var(--mono); font-feature-settings: "tnum"; }
.defs { position: absolute; width: 0; height: 0; }

/* the jaw: an open bracket, as label mark and bullet */
.jaw { display: inline-block; width: 0.85em; height: 0.62em; border: 0.17em solid var(--amber); border-top: 0; vertical-align: -0.02em; margin-right: 0.6em; }
.light .jaw { border-color: var(--amber-on-light); }
.label { font: 700 12px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); }
.light .label { color: var(--on-light-2); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { margin-top: 14px; }
h2 { font: 700 clamp(30px, 4.2vw, 48px)/1.08 var(--display); letter-spacing: -0.02em; }
h3 { font: 600 20px/1.3 var(--display); }
.lead { font-size: 20px; line-height: 1.5; }
.body-l { font-size: 18px; }
.light { background: var(--paper); color: var(--on-light); }
.dark { background: var(--ink); color: var(--on-dark); }
section.light, section.dark { padding: clamp(72px, 10vw, 128px) 0; }
.light a { color: var(--amber-on-light); }

/* reveal */
img { max-width: 100%; height: auto; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.reduced .rv, html:not(.js) .rv { opacity: 1; transform: none; transition: none; }

/* ---------- top nav ---------- */
.nav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); font: 600 13px/1 var(--body); letter-spacing: 0.02em; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.nav-brand img { width: 26px; height: 29px; }
.nav-brand em { color: var(--amber); }
.nav nav a { text-decoration: none; margin-left: 22px; opacity: 0.8; }
.nav nav a:hover { opacity: 1; }
@media (max-width: 560px) { .nav nav a:nth-child(-n+2) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 8px; font: 600 15px/1 var(--body); text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
span.btn { cursor: default; } span.btn:hover { transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-line { border: 1px solid var(--rule-dark); color: var(--on-dark); }
.light .btn-line { border-color: var(--rule-light); color: var(--on-light); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ================= HERO: live model that becomes the sheet ================= */
.hero { position: relative; height: 300vh; background: var(--ink); }
.reduced .hero, html:not(.js) .hero { height: auto; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.reduced .hero-stage, html:not(.js) .hero-stage { position: relative; min-height: 100svh; height: auto; padding: 96px 0 48px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--rule-dark) 1px, transparent 1px), linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.35; mask-image: radial-gradient(ellipse at 65% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 65% 50%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 68% 45%, rgba(255, 176, 32, 0.14), rgba(18, 20, 23, 0) 55%); }
.hero-paper { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; z-index: 2; }
.hero-canvas.grab { cursor: grabbing; }
.hero-still { position: absolute; z-index: 1; right: 4%; top: 50%; width: min(46vw, 760px); transform: translateY(-50%); display: none; }
.hero.nogl .hero-still, .reduced .hero-still, html:not(.js) .hero-still { display: block; }
.hero.nogl .hero-canvas, .reduced .hero-canvas, html:not(.js) .hero-canvas { display: none; }
.hero-title { position: relative; z-index: 3; padding: 0 var(--gut); max-width: 640px; pointer-events: none; }
.hero-title > * { pointer-events: auto; }
.lockup { display: flex; align-items: center; gap: 18px; }
.lockup .mark { width: 64px; height: 72px; }
.lockup h1, .lockup .name { font: 700 clamp(44px, 6vw, 76px)/1 var(--display); letter-spacing: -0.03em; }
.lockup em { color: var(--amber); }
.tagline { margin-top: 26px; font: 500 clamp(24px, 2.6vw, 34px)/1.2 var(--display); letter-spacing: -0.015em; }
.hero-sub { margin-top: 16px; font-size: 18px; color: var(--on-dark-2); max-width: 520px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 600 13px/1 var(--body); color: var(--on-dark-2); }
.hero-facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--amber); margin-right: 8px; vertical-align: 1px; }
.hero-btn { margin-top: 28px; }
.hero-drag { margin-top: 14px; font-size: 13px; color: var(--on-dark-2); }
.hero.nogl .hero-drag, .reduced .hero-drag, html:not(.js) .hero-drag { display: none; }
.hero-sheet { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; padding: 7vh 4vw; }
.hero-sheet img { max-height: 86vh; width: auto; height: auto; max-width: 100%; aspect-ratio: 1241 / 1754; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12); background: #fff; }
.reduced .hero-sheet, html:not(.js) .hero-sheet, .reduced .hero-paper, .reduced .hero-cap, html:not(.js) .hero-cap { display: none; }
.hero-cap { position: absolute; z-index: 5; left: 0; right: 0; bottom: 18px; text-align: center; font: 500 14px/1.4 var(--body); color: var(--on-light-2); opacity: 0; pointer-events: none; }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 11px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-2); }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--amber), transparent); animation: drop 1.6s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reduced .scroll-hint, html:not(.js) .scroll-hint { display: none; }
@media (max-width: 900px) {
  .hero { height: 260vh; }
  .hero-stage { grid-template-columns: 1fr; align-items: end; padding-bottom: 72px; }
  .hero-canvas { height: 48%; top: 4%; bottom: auto; }
  .scroll-hint { display: none; }
  .hero-still { position: relative; right: auto; top: auto; transform: none; width: 80%; margin: 0 auto 10px; }
  .hero-title { max-width: none; padding-bottom: 0; }
  .lockup .mark { width: 44px; height: 50px; }
  .tagline { margin-top: 16px; }
  .hero-sub { font-size: 16px; }
  .hero-sheet { padding: 12vh 4vw; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .hero-canvas { height: 46%; }
  .hero-sub { display: none; }
}

/* ================= WHY ================= */
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px 48px; }
.statement { font: 600 clamp(26px, 3.4vw, 40px)/1.15 var(--display); letter-spacing: -0.02em; }
.intro .lead { margin-top: 22px; max-width: 640px; }
.whom { margin-top: 32px; display: grid; gap: 12px; max-width: 700px; }
.whom li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline; font-size: 17px; }
.whom .label { padding-top: 3px; }
.whom strong { font-weight: 600; }
.footnote { margin-top: 26px; font: 500 14px/1.4 var(--body); color: var(--on-light-2); }
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ================= phone frames ================= */
.phone { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1080 / 2400; border-radius: 9% / 4%; background: #0b0c0f; padding: 2.4%; box-shadow: 0 0 0 1.5px #3a414b, 0 30px 70px rgba(0, 0, 0, 0.35); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 7% / 3.1%; background: var(--ink); }
.light .phone { box-shadow: 0 0 0 1.5px #c9c7c0, 0 30px 70px rgba(18, 20, 23, 0.18); }
.tablet { position: relative; width: 100%; aspect-ratio: 1752 / 2800; border-radius: 3%; background: #0b0c0f; padding: 1.8%; box-shadow: 0 0 0 1.5px #3a414b, 0 30px 70px rgba(0, 0, 0, 0.35); }
.tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: 2%; }

/* ================= DRAWINGS (first) ================= */
.draw-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: start; }
.sheet { background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3); }
.sheet img { width: 100%; height: auto; }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.sheet-row figcaption, .cap { margin-top: 10px; font: 500 13px/1.45 var(--body); color: var(--on-dark-2); }
.light .cap { color: var(--on-light-2); }
.draw-text .lead { margin-top: 18px; }
.steps { margin-top: 28px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps .n { font: 700 13px/1.6 var(--mono); color: var(--amber); }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 4px; color: var(--on-dark-2); font-size: 16px; }
.quote { margin-top: 30px; padding: 20px 22px; border-left: 3px solid var(--amber); font: 500 19px/1.4 var(--display); }
.quote small { display: block; margin-top: 8px; font: 500 13px/1.4 var(--body); color: var(--on-dark-2); }
.draw-phone { margin-top: 36px; display: flex; gap: 22px; align-items: flex-start; }
.draw-phone .phone { max-width: 200px; flex: none; }
@media (max-width: 960px) { .draw-grid { grid-template-columns: 1fr; gap: 40px; } .draw-text { order: -1; } }

/* ================= MEASURE / SECTION / PARTS: triptych ================= */
.tri-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.panel .phone { margin: 0 auto 26px; max-width: 280px; }
.panel-no { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 12px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-light-2); }
.panel-no .num { color: var(--amber-on-light); }
.panel h3 { font-size: 22px; }
.panel p { margin-top: 10px; color: var(--on-light-2); }
.panel ul { margin-top: 12px; display: grid; gap: 6px; font-size: 15px; }
.panel ul li::before { content: ""; display: inline-block; width: 0.55em; height: 0.4em; border: 2px solid var(--amber-on-light); border-top: 0; margin-right: 0.6em; vertical-align: 0.05em; }
.free-tag, .pro-tag { display: inline-block; padding: 3px 7px; border-radius: 4px; font: 700 11px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
.pro-tag { background: var(--amber); color: var(--ink); }
.free-tag { border: 1px solid currentColor; color: inherit; }
@media (max-width: 960px) { .tri-grid { grid-template-columns: 1fr; gap: 56px; } .panel { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 0 28px; align-items: center; } .panel .phone { grid-row: 1 / 6; margin: 0; } }
@media (max-width: 560px) { .panel { grid-template-columns: 1fr; } .panel .phone { grid-row: auto; margin: 0 auto 22px; max-width: 240px; } }

/* ================= FORMATS ================= */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { font: 600 14px/1 var(--mono); padding: 10px 12px; border: 1px solid var(--rule-light); border-radius: 6px; background: #fff; }
.chip.ex { background: transparent; }
.formats p { margin-top: 12px; color: var(--on-light-2); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; gap: 32px; } }

/* ================= TABLET ================= */
.tab-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tab-grid .tablet { max-width: 520px; margin: 0 auto; }
@media (max-width: 860px) { .tab-grid { grid-template-columns: 1fr; } }

/* ================= PRO ================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.plan { padding: 28px 26px; border: 1px solid var(--rule-dark); border-radius: 12px; background: var(--ink-2); }
.plan-pro { border-color: rgba(255, 176, 32, 0.55); }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 24px; }
.plan h3 .label { font-size: 11px; }
.plan ul { margin-top: 18px; display: grid; gap: 10px; font-size: 15.5px; color: var(--on-dark); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 7px; border: 2px solid var(--amber); border-top: 0; }
.plan-next li::before { border-color: var(--on-dark-2); }
.plan .foot { margin-top: 22px; font: 600 14px/1.4 var(--body); color: var(--on-dark-2); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ================= STORY + PRIVACY ================= */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.story-grid h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 14px; }
.story-grid p { margin-top: 16px; }
.plain { margin-top: 16px; display: grid; gap: 10px; }
.plain li { padding-left: 20px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 7px; border: 2px solid var(--amber-on-light); border-top: 0; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ================= FAQ ================= */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule-light); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule-light); }
.faq summary { cursor: pointer; font: 600 17px/1.4 var(--body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--display); color: var(--amber-on-light); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--on-light-2); }

/* ================= GET ================= */
.get { position: relative; overflow: hidden; }
.get-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.lockup-s .mark { width: 40px; height: 45px; }
.lockup-s .name { font-size: 38px; }
.get-line { margin-top: 18px; font-size: 20px; color: var(--on-dark-2); }
.get .actions { margin-top: 22px; }
.questions h2 { font-size: 28px; }
.questions p { margin-top: 12px; color: var(--on-dark-2); }
.fineprint { margin-top: 56px; font: 500 13px/1.4 var(--body); color: var(--on-dark-2); }
@media (max-width: 760px) { .get-grid { grid-template-columns: 1fr; } }

/* ================= FOOTER ================= */
.foot-bar { background: #0b0c0f; padding: 24px 0; font-size: 14px; color: var(--on-dark-2); }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.foot-bar .nav-brand { font-size: 15px; letter-spacing: 0.14em; color: var(--on-dark); }
.foot-bar p a { margin-right: 18px; text-decoration: none; }
.foot-bar p a:hover { text-decoration: underline; }
.mt18 { margin-top: 18px; }
.mt16 { margin-top: 16px; }
