/* ============================================================
   taqt prototype-bw — strict black & white, sparse typography
   ============================================================ */

:root {
  --ink:           #000;
  --paper:         #fff;
  --mute-1:        #f5f5f5;
  --mute-2:        #e5e5e5;
  --mute-3:        #b2b2b2;
  --mute-4:        #767676;
  --hair:          #000;
  --accent:        #ff5a1f;
  --accent-strong: #e54a16;
  --container:     1240px;
  --gutter:        32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  text-transform: lowercase;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
em  { font-style: normal; font-weight: 700; }
code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--mute-1);
  padding: 1px 5px;
  border: 1px solid var(--mute-2);
}
sup { font-size: 0.65em; vertical-align: super; font-weight: 300; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}
.nav-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav-list a {
  color: var(--mute-4);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, font-weight 160ms ease, border-color 160ms ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}
.nav-checkout {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-checkout:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* burger — hidden on desktop, shown on mobile */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--gutter);
  }
  .nav-brand {
    margin-right: auto;
    font-size: 15px;
  }
  .nav-burger {
    display: flex;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 18px var(--gutter) 22px;
    gap: 18px;
    font-size: 16px;
    box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.18);
  }
  .nav-list.is-open {
    display: flex;
  }
  .nav-list a {
    color: var(--ink);
    font-weight: 400;
    padding-bottom: 4px;
  }
  .nav-checkout {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  border-bottom: 1px solid var(--ink);
  padding: 64px var(--gutter) 88px;
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: end;
}
/* katakana + romaji mark above the hero kicker — display:block forces
   the kicker onto its own line below the romaji */
.jp-mark {
  display: block;
  margin-bottom: 28px;
}
.jp-kana {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.jp-romaji {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--mute-4);
  text-transform: none;
  font-style: italic;
}

.kicker {
  font-size: 11px;
  font-weight: 300;
  color: var(--mute-4);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  padding-right: 24px;
}
.display {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 100;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.display em { font-weight: 700; }
.lede {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--mute-4);
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.link-cta {
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-cta:hover { color: var(--mute-4); border-color: var(--mute-4); }

/* App Store badge — reused in hero (small) and final CTA (large) */
.badge-link {
  display: inline-block;
  line-height: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.badge-link img {
  display: block;
  width: auto;
}
.badge-link:hover { transform: translateY(-1px); opacity: 0.88; }
.badge-link:active { transform: translateY(0); opacity: 0.78; }
.badge-link--sm img { height: 44px; }
.badge-link--lg img { height: 64px; }
.meta-pill {
  font-size: 11px;
  font-weight: 300;
  color: var(--mute-4);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
}

.hero-figure { margin: 0; }
.hero-figure .iphone-frame {
  max-width: 280px;
  margin-left: auto;
}
.hero-figure figcaption {
  font-size: 11px;
  font-weight: 300;
  color: var(--mute-4);
  margin-top: 28px;
  text-align: right;
}
.cap-num { color: var(--ink); }

@media (max-width: 920px) {
  .hero { padding: 48px var(--gutter) 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure img { max-width: 320px; margin: 0 auto; }
  .hero-figure figcaption { text-align: center; }
}

/* ============================================================
   MANTRA STRIP
   ============================================================ */
.mantra {
  position: relative;
  text-align: center;
  padding: 160px var(--gutter);
  border-bottom: 1px solid var(--ink);
  background-color: #0a0a0a;
  background-image: url('assets/taqt-device.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax — stays put while content scrolls over it */
  isolation: isolate;
  overflow: hidden;
}
/* dark overlay so the white type stays legible against bright spots */
.mantra::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
  pointer-events: none;
}
.mantra > p:first-child {
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 100;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1;
  color: var(--paper);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.55);
}
.mantra > p:first-child em { font-weight: 700; }
.mantra-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 52ch;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* iOS Safari ignores background-attachment: fixed for performance —
   fall back to scroll so the section still looks intentional on touch */
@media (hover: none) {
  .mantra {
    background-attachment: scroll;
    background-position: center 30%;
  }
}

/* ============================================================
   TICKER (proof pills)
   ============================================================ */
.ticker {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px var(--gutter);
  font-size: 12px;
  font-weight: 300;
  color: var(--mute-4);
  border-bottom: 1px solid var(--ink);
}
.ticker .dot { color: var(--mute-3); }

/* ============================================================
   SECTION HEAD (reusable)
   ============================================================ */
.section-head {
  max-width: var(--container);
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  column-gap: 24px;
  align-items: baseline;
}
.section-num {
  font-size: 11px;
  font-weight: 300;
  color: var(--mute-4);
  border-top: 1px solid var(--ink);
  padding-top: 8px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 100;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.section-head h2 em { font-weight: 700; }
.section-head > p {
  grid-column: 2;
  font-size: 14px;
  color: var(--mute-4);
  margin-top: 12px;
  max-width: 52ch;
}
.section-head .deco {
  width: 32px;
  height: 32px;
  align-self: end;
  margin-bottom: 4px;
  opacity: 0.75;
}
/* invert decorations on the dark LCD-legend section */
.lcd-legend-head .deco { filter: invert(1); opacity: 0.55; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.feature-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}
.feature figure {
  margin: 0 0 24px 0;
  padding: 24px 0 8px;
  display: flex;
  justify-content: center;
}
.feature figure .iphone-frame {
  max-width: 200px;
}
.feature h3 {
  font-size: 22px;
  font-weight: 100;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.feature h3 em { font-weight: 700; }
.feature > p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--mute-4);
  margin-bottom: 10px;
}
.feature .caption {
  font-size: 10.5px;
  color: var(--mute-3);
  letter-spacing: 0.02em;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--mute-2);
}

@media (max-width: 960px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature figure img { max-width: 240px; }
}

/* ============================================================
   SPECS TABLE
   ============================================================ */
.specs {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.specs-table {
  max-width: var(--container);
  margin: 0 auto;
  width: calc(100% - var(--gutter) * 2);
  border-collapse: collapse;
  font-size: 13.5px;
  font-weight: 300;
}
.specs-table th,
.specs-table td {
  border: 1px solid var(--ink);
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
}
.specs-table th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.02em;
  width: 130px;
}
.specs-table td { color: var(--mute-4); }
.specs-table tr:hover td { background: var(--mute-1); color: var(--ink); }

@media (max-width: 760px) {
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table th, .specs-table td {
    display: block;
    width: 100%;
  }
  .specs-table th { border-bottom: 0; }
  .specs-table td { border-top: 0; }
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  text-align: center;
  padding: 96px var(--gutter);
  border-bottom: 1px solid var(--ink);
}
.quote blockquote p {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 100;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 32ch;
  margin: 0 auto 24px;
}
.quote-attr {
  font-size: 11px;
  font-weight: 300;
  color: var(--mute-4);
  letter-spacing: 0.04em;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.final-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.final-meta > p {
  font-size: 24px;
  font-weight: 100;
  line-height: 1.25;
  margin-bottom: 20px;
}
.final-list {
  list-style: none;
  font-size: 13.5px;
  color: var(--mute-4);
}
.final-list li {
  padding: 6px 0;
  border-top: 1px solid var(--mute-2);
}
.final-list li:last-child { border-bottom: 1px solid var(--mute-2); }
.final-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 300;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.final-cta:hover {
  background: var(--ink);
  color: var(--paper);
}
.final-cta .arrow { font-size: 18px; }

@media (max-width: 720px) {
  .final-row { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  text-align: center;
  padding: 64px var(--gutter);
  border-bottom: 1px solid var(--ink);
}
.newsletter h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 100;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.newsletter form {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  max-width: 460px;
  width: 100%;
}
.newsletter input {
  flex: 1;
  padding: 14px 18px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  text-transform: lowercase;
}
.newsletter input:focus { outline: none; background: var(--mute-1); }
.newsletter button {
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  padding: 0 22px;
  cursor: pointer;
  text-transform: lowercase;
  transition: background 160ms ease, color 160ms ease;
}
.newsletter button:hover { background: var(--ink); color: var(--paper); }
.newsletter button:disabled { background: var(--ink); color: var(--paper); cursor: default; }
.newsletter .fine {
  font-size: 11px;
  color: var(--mute-4);
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gutter) 40px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mute-4);
}
.footer-fine {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mute-3);
}
.footer ul { list-style: none; }
.footer ul li { margin: 6px 0; }
.footer ul a {
  font-size: 12px;
  color: var(--mute-3);
  font-weight: 300;
}
.footer ul a:hover { color: var(--paper); border-bottom: 1px solid var(--paper); padding-bottom: 1px; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   MARKDOWN PREVIEW — what the .md file looks like on disk
   ============================================================ */
.md-section {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.md-card-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.md-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
  max-width: 760px;
  margin: 0 auto;
}
.md-card-tabs {
  display: flex;
  align-items: stretch;
  gap: 1px;
  padding: 8px 14px 0;
  background: var(--mute-2);
  border-bottom: 1px solid var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.md-tab {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid transparent;
  border-bottom: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: var(--mute-4);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.md-tab.is-active {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
  padding-bottom: 7px;
}
.md-tab-more {
  margin-left: 8px;
  align-self: center;
  padding: 6px 4px;
  color: var(--mute-4);
  font-style: italic;
  white-space: nowrap;
}

.md-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--mute-1);
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  color: var(--mute-4);
}
.md-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.md-dot-r { background: #ff6058; }
.md-dot-y { background: #ffbd2e; }
.md-dot-g { background: #28c941; }
.md-card-name {
  margin-left: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
}
.md-card-meta {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.md-card-body {
  margin: 0;
  padding: 22px 26px 28px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  text-transform: none;
  overflow-x: auto;
  white-space: pre;
}
.md-card-body .md-h { font-weight: 700; color: var(--ink); }
.md-card-body .md-v { color: var(--accent); font-weight: 700; }
.md-card-body .md-c { color: var(--mute-4); font-style: italic; }
.md-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--mute-4);
  margin-top: 24px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .md-card-body { font-size: 11px; padding: 16px 18px 22px; }
  .md-card-bar { font-size: 11px; }
  .md-card-meta { display: none; }
}

/* ============================================================
   LCD LEGEND — black strip explaining every glyph on the LCD.
   To hide site-wide, add `hidden` to the <section class="lcd-legend">.
   ============================================================ */
.lcd-legend {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 96px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.lcd-legend-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.lcd-legend-head { margin-bottom: 56px; padding: 0; }
.lcd-legend-head .section-num {
  color: rgba(255, 255, 255, 0.42);
  border-top-color: var(--paper);
}
.lcd-legend-head h2 { color: var(--paper); }
.lcd-legend-head > p { color: rgba(255, 255, 255, 0.62); }

.lcd-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 40px 28px;
}
.lcd-glyph {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.lcd-glyph-art {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.lcd-glyph-art img {
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
}
.lcd-glyph h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 2px;
}
.lcd-glyph p {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  max-width: 28ch;
}

@media (max-width: 720px) {
  .lcd-legend { padding: 56px 0 64px; }
  .lcd-legend-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}

/* ============================================================
   LEGAL PAGES — privacy + contact (re-using nav + footer styles)
   ============================================================ */
.legal-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px var(--gutter) 60px;
  border-bottom: 1px solid var(--ink);
}
.legal-hero .display {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 100;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 24px;
}
.legal-hero .lede {
  font-size: 17px;
  color: var(--mute-4);
  max-width: 56ch;
  margin-bottom: 28px;
}
.legal-meta {
  font-size: 12px;
  color: var(--mute-4);
  letter-spacing: 0.04em;
  font-style: italic;
}
.legal-meta a { border-bottom: 1px solid var(--mute-4); padding-bottom: 1px; }
.legal-meta a:hover { color: var(--ink); border-color: var(--ink); }

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px var(--gutter) 88px;
  display: grid;
  gap: 40px;
}
.legal-section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--mute-2);
}
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section h2 {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  align-self: start;
  line-height: 1.3;
}
.legal-section p,
.legal-section ul {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mute-4);
}
.legal-section p + p,
.legal-section p + ul { margin-top: 12px; }
.legal-section ul { list-style: none; padding: 0; }
.legal-section li {
  padding: 4px 0;
  position: relative;
  padding-left: 18px;
}
.legal-section li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--ink);
}
.legal-section strong { color: var(--ink); font-weight: 700; }
.legal-section a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.legal-section a:hover { color: var(--mute-4); border-color: var(--mute-4); }

@media (max-width: 720px) {
  .legal-section { grid-template-columns: 1fr; gap: 12px; }
  .legal-section h2 { border-top: 0; padding-top: 0; padding-bottom: 4px; }
}

/* ============================================================
   IPHONE FRAME — uses the user's iPhone 17 Pro Silver mockup PNG
   as a transparent overlay. Screen content sits below, visible
   through the transparent screen area inside the PNG.
   Frame PNG is 1350 × 2760 with the screen rect at
   top: 7.97%, left: 5.56%, right: 5.19%, bottom: 2.36% (measured
   from the alpha channel boundaries of the asset).
   ============================================================ */
.iphone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1350 / 2760;
  margin: 0 auto;
  isolation: isolate;
}

/* PNG overlay — sits on top, drop-shadow applies only to its opaque pixels.
   Shadows are halved in Y and tightened in blur — feels more like an iPhone
   resting on a surface with overhead light, less like floating in mid-air. */
.iphone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/iphone-frame.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  filter:
    drop-shadow(0 13px 17px rgba(0, 0, 0, 0.14))
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.12))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.10));
}

/* noisy shadow underlay — narrower, rectangle-with-rounded-corners
   (matching the iPhone silhouette) instead of an ellipse. Light from above. */
.iphone-frame::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  top: 94%;
  height: 18%;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  filter: blur(10px);
  opacity: 0.42;
  border-radius: 22% / 45%;
  z-index: -1;
  pointer-events: none;
}

/* dynamic island is part of the PNG — hide the CSS one */
.iphone-island { display: none; }

/* screen — fills the full iphone-frame; the mask carries Apple's
   exact screen curve (generated by flood-filling the iphone-frame.png
   transparent screen region). Screenshot/video inside is positioned
   absolute with 72px insets so the iOS status bar lands flush with
   the top of the device. */
.iphone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  /* no background — keeps everything outside the PNG screen window
     transparent so the page bg shows through (or nothing if we're
     beyond the device shape) */
}
.iphone-screen img,
.iphone-screen video {
  position: absolute;
  /* Screenshot over-fills the PNG's squircle screen window. The
     bezel hides the overflow on the inner sides, and the
     border-radius below clips the OUTER rect corners so they
     don't poke past the device silhouette either. */
  top: 2%;
  left: 5%;
  width: 90%;
  height: 96%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Round corners on the image itself, ~120 px radius at native
     1350×2760 scale (well past the device outer curve at ~90 px,
     well inside the screen window's inner curve at ~165 px). */
  border-radius: 10% / 4.5%;
}

/* stacked hero videos: main loops by default; tilt overlays when triggered.
   They inherit the screen positioning rules above (top/left/width/height). */
.iphone-screen .hero-video-main { z-index: 1; }
.iphone-screen .hero-video-tilt {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.iphone-screen .hero-video-tilt.is-active { opacity: 1; }
