/* Homepage only. Shared tokens and components live in site.css. */

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* Source kind chips used inside mock screens and tiles. */
.k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.k svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-off { color: var(--src-official); background: var(--src-official-soft); }
.k-gov { color: var(--src-government); background: var(--src-government-soft); }
.k-ind { color: var(--src-independent); background: var(--src-independent-soft); }

/* ---------- hero ---------- */

.hero { position: relative; z-index: 2; padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(1100px, 140vw); aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .display { max-width: 11em; }
.hero .lede { margin: 24px auto 0; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin: 16px 0 0; }

.showcase {
  position: relative; width: 100%; max-width: 980px;
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(16px, 3vw, 40px);
}
.phone {
  width: clamp(270px, 28vw, 330px); aspect-ratio: 9 / 19.2;
  border-radius: 52px; padding: 11px;
  background: #1E1917;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, var(--shadow-lg);
  margin-bottom: -64px;
  animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) 0.15s both;
}
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.showcase.has-shots .screen { display: none; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* HTML replica of the lookup screen, used until real screenshots are in place. */
.screen { height: 100%; padding: 12px 16px 16px; text-align: left; font-size: 12px; color: var(--ink); overflow: hidden; }
.scr-status { display: flex; align-items: center; justify-content: space-between; height: 30px; font-size: 13px; font-weight: 600; padding: 0 8px; }
.scr-island { width: 84px; height: 24px; border-radius: 14px; background: #000; }
.scr-bat { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); }
.scr-product { display: flex; gap: 12px; align-items: center; margin: 14px 0 6px; padding: 10px; border-radius: 18px; background: var(--surface); }
.scr-product img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.scr-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.scr-sub { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.scr-h { margin: 14px 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.scr-chain { background: var(--surface); border-radius: 16px; padding: 4px 12px; }
.scr-chain div { display: flex; flex-direction: column; padding: 8px 0 8px 16px; position: relative; }
.scr-chain div + div { border-top: 1px solid var(--line); }
.scr-chain div::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.scr-chain span { color: var(--ink-3); font-size: 11px; }
.scr-chain b { font-weight: 600; font-size: 14px; }
.scr-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.scr-chips span { background: var(--surface); border-radius: 999px; padding: 5px 9px; font-weight: 500; }
.scr-rec { background: var(--surface); border-radius: 16px; padding: 10px 12px; }
.scr-rec p { margin: 6px 0 0; line-height: 1.35; }
.scr-srcs { display: flex; flex-wrap: wrap; gap: 5px; }

.float { position: relative; z-index: 1; margin: 0 0 64px; animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) 0.35s both; }
.float-photo { justify-self: end; width: clamp(150px, 17vw, 210px); text-align: left; }
.float-photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.float-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.float-card { justify-self: start; width: clamp(200px, 21vw, 250px); text-align: left; background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); margin-bottom: 140px; }
.fc-label { margin: 0; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.fc-main { margin: 4px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.fc-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

/* ---------- three steps ---------- */

.steps3 { position: relative; background: var(--surface); padding: calc(64px + clamp(72px, 9vw, 120px)) 0 clamp(72px, 9vw, 120px); }
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.how-visual { height: 240px; border-radius: 24px; background: var(--bg); overflow: hidden; margin-bottom: 22px; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; }
.how-id, .how-layers { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.id-line { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.id-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.id-name { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.id-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.how-layers p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.how-layers p:first-child { border-top: 0; }
.how-layers span { color: var(--ink-3); }
.how-layers b { font-weight: 500; text-align: right; }
.how-layers .gapv { font-style: italic; color: var(--ink-3); }
.how-n { margin: 0 0 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.how3 .t3 { margin-bottom: 8px; }
.how3 .muted { margin: 0; font-size: 16px; }

/* ---------- real lookups ---------- */

.how { padding: clamp(80px, 10vw, 130px) 0 clamp(48px, 6vw, 80px); }
.how > .wrap > .section-head { margin-bottom: clamp(16px, 2vw, 24px); }
.lookup { padding: clamp(32px, 4vw, 56px) 0; }
.lookup + .lookup { border-top: 1px solid var(--line); }
.lookup-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.stage { position: relative; height: 100%; }
.stage-inner { position: sticky; top: calc(var(--header-h) + 28px); padding-bottom: 12px; }
.stage-photo { position: relative; width: 66%; }
.stage-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.stage-cat {
  position: absolute; left: 14px; top: 14px; margin: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-pill);
}
.result {
  position: relative; width: 78%; margin: -34% 0 0 22%;
  background: var(--surface); border-radius: var(--r-card);
  padding: 20px 22px 12px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.result-kicker { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--accent-text); }
.result-name { margin: 2px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.layers span { grid-column: 1; grid-row: 1; color: var(--ink-3); transition: color 0.3s; }
.layers b { grid-column: 2; grid-row: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.35s ease, transform 0.35s ease; }
.js .layers li:not(.on) b { opacity: 0; transform: translateY(4px); }
.js .layers li:not(.on)::after { content: ""; grid-column: 2; grid-row: 1; align-self: center; height: 12px; width: 70%; border-radius: 6px; background: var(--surface-muted); }
.layers li.on span { color: var(--ink-2); }
.layers li.current b { color: var(--accent-text); }
.layers li[data-layer="gap"] b { font-style: italic; color: var(--ink-2); }

.lookup-title { margin-bottom: 8px; max-width: 20em; }
.steps { min-width: 0; }
.step { padding: clamp(40px, 9vh, 96px) 0; min-height: 56vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.4s ease; }
/* The active question gets a rose rule; inactive steps stay fully readable (no dimming). */
.js .step { border-left: 2px solid transparent; padding-left: 22px; margin-left: -24px; transition: border-color 0.3s ease; }
.js .step.active { border-left-color: var(--accent); }
.step-q { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.step-a { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.step .srcs { margin-top: 18px; }
.count { margin: 0 0 18px; font-size: 18px; color: var(--ink-2); }
.count .num { font-size: 52px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); margin-right: 8px; line-height: 1; }
.chips-label { margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); padding: 9px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.chips.amber li { background: var(--accent-soft); box-shadow: none; color: var(--accent-text); }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.places span { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; padding: 14px 20px; border-radius: 18px; background: var(--surface); }
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain li { position: relative; padding: 0 0 22px 30px; display: flex; flex-direction: column; gap: 2px; }
.chain li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 8.25px; top: 24px; bottom: 2px; width: 1.5px; background: var(--line-strong); }
.chain li:first-child::before { background: var(--ink); }
.chain .role { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.chain strong { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.chain .meta { font-size: 15.5px; color: var(--ink-2); max-width: 32em; }
.chain .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.chain .pair > span { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.chain .pair strong { font-size: 17px; }
.record { background: var(--surface); border-radius: 18px; padding: 20px 22px; max-width: 36em; }
.record p { margin: 0; font-size: 16.5px; line-height: 1.55; }
.record p + p { margin-top: 10px; }
.record-date { display: flex; align-items: center; gap: 10px; margin-bottom: 10px !important; font-weight: 500; }
.tag-pill { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); background: var(--src-government-soft); color: var(--src-government); }
.gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.gaps li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.gaps li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--ink-3); }

/* ---------- bento ---------- */

.bento-sec { background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--bg); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.tile .t2 { margin-bottom: 10px; }
.tile .muted { margin: 0; font-size: 16.5px; line-height: 1.55; }
.tile-sources { grid-column: span 4; }
.tile-decide { grid-column: span 2; grid-row: span 2; }
.tile-gap { grid-column: span 2; }
.tile-noads { grid-column: span 2; background: var(--inverse); color: var(--on-inverse); }
.tile-noads .muted { color: var(--on-inverse-2); }
.tile-private, .tile-wait { grid-column: span 3; }
.tile-wait { background: var(--accent-soft); }
.kinds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kinds li { background: var(--surface); border-radius: 18px; padding: 16px; }
.kinds p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.tile .gaps { margin-top: 20px; }
.tile .gaps li { font-size: 15.5px; }
.prefs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.prefs button {
  border: 0; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500; background: var(--surface); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: background 0.15s, color 0.15s;
}
.prefs button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.prefs button[aria-pressed="true"] { background: var(--accent-text); color: var(--on-accent); box-shadow: none; }
.prefs-note { margin: auto 0 0; padding-top: 16px; }

/* ---------- compare ---------- */

.table-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--r-card); padding: 8px 24px; box-shadow: 0 0 0 1px var(--line); }
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.cmp th, .cmp td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; padding-top: 18px; }
.cmp tbody th { font-weight: 400; color: var(--ink-3); width: 22%; font-size: 15px; }
.cmp td { font-weight: 500; }
.cmp .gapcell { font-style: italic; font-weight: 400; color: var(--ink-3); }

/* ---------- anything ---------- */

.anything-sec { padding-top: 0; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cats img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; margin-bottom: 14px; }
.cats .t3 { margin: 0 0 4px; }
.cats .small { margin: 0; }

/* ---------- pricing ---------- */

.pricing { background: var(--surface); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; }
.plan { background: var(--bg); border-radius: 28px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.plan.pro { background: var(--inverse); color: var(--on-inverse); }
.plan { position: relative; }
.plan-tag { position: absolute; top: clamp(26px, 3vw, 40px); right: clamp(26px, 3vw, 40px); margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #1A1210; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.price { margin: 14px 0 4px; font-size: 48px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.price .per { font-size: 17px; font-weight: 400; letter-spacing: 0; opacity: 0.7; }
.alt-prices { margin: 0; font-size: 14px; color: var(--ink-3); }
.plan.pro .alt-prices { color: var(--on-inverse-2); }
.plan ul { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 26px; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.noads { text-align: center; margin: 32px 0 0; font-size: 16px; color: var(--ink-2); }

/* ---------- blog strip ---------- */

.blog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.blog-head .lede { margin-top: 12px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.posts a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; min-height: 190px; padding: 24px; border-radius: var(--r-card); background: var(--surface); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.15s ease; }
.posts a:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg); }
.posts .t3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.post-skel { min-height: 190px; border-radius: var(--r-card); background: var(--surface); }

/* ---------- faq ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40em; }

/* ---------- final ---------- */

.final { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.final-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2B2320 0%, #1E1917 55%, #161211 100%);
  color: #F6EFEB; border-radius: 36px;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.final-mark { width: clamp(96px, 10vw, 128px); height: auto; aspect-ratio: 1; margin-bottom: 32px; color: #F4EFEA; --point: #E3A08A; }
.final-h { font-size: clamp(36px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; max-width: 12em; }
.final-p { margin: 18px 0 32px; color: rgba(246, 239, 235, 0.66); font-size: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; justify-items: center; }
  .float { display: none; }
  .phone { margin-bottom: -48px; }
  .steps3 { padding-top: calc(48px + 64px); }
  .how3 { grid-template-columns: 1fr; gap: 40px; }
  .lookup-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage-inner { position: relative; top: auto; max-width: 480px; }
  .step { min-height: 0; padding: 28px 0; }
  .js .step { border-left: 0; padding-left: 0; margin-left: 0; }
  .js .layers li:not(.on) b { opacity: 1; transform: none; }
  .js .layers li:not(.on)::after { display: none; }
  .lookup-title { margin-top: 28px; }
  .bento { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .bento > .tile { grid-column: auto; grid-row: auto; }
  .kinds { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .posts a, .post-skel { min-height: 130px; }
  .blog-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .chain .pair { grid-template-columns: 1fr; }
  .stage-photo { width: 72%; }
  .result { width: 86%; margin-left: 14%; margin-top: -40%; padding: 16px 16px 8px; }
  .layers li { grid-template-columns: 6.6em minmax(0, 1fr); font-size: 13.5px; gap: 8px; }
  .table-scroll { padding: 4px 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .float { animation: none; }
  .js .step { border-left: 0; padding-left: 0; margin-left: 0; }
  .js .layers li:not(.on) b { opacity: 1; transform: none; }
  .js .layers li:not(.on)::after { display: none; }
}

/* ---------- real brand logos, always on a white tile like the app ---------- */

.logo { display: inline-grid; place-items: center; background: #FFFFFF; border-radius: 14px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); height: 56px; min-width: 96px; }
.logo img { max-height: 30px; max-width: 120px; width: auto; height: auto; }
.logo.sm { height: 34px; min-width: 0; padding: 6px 9px; border-radius: 10px; }
.logo.sm img { max-height: 18px; max-width: 72px; }
.logo.word { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #1A1614; }
.logo.small-word { font-size: 14px; font-weight: 500; }
.logo.chain-logo { height: 40px; padding: 8px 12px; margin: 4px 0 6px; justify-self: start; align-self: flex-start; }
.logo.chain-logo img { max-height: 22px; max-width: 110px; }
.scr-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); flex: none; }
.scr-logo img { max-width: 40px; max-height: 18px; }
.fc-chain { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; }
.fc-arrow { width: 18px; height: 1.5px; background: var(--line-strong); position: relative; }
.fc-arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line-strong); border-right: 0; }
.result-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.result-head .result-name { margin: 0; }
.cmp thead th .logo { margin-right: 10px; vertical-align: middle; }

.brands { position: relative; z-index: 1; background: var(--surface); padding: calc(64px + clamp(56px, 7vw, 88px)) 0 clamp(8px, 2vw, 16px); }
.brands-title { text-align: center; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); margin-bottom: 32px; }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brand-list li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--bg); }
.brand-list .by { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.brand-list .logo { flex: 1 1 0; min-width: 0; }
.brand-list .logo img { max-width: 100%; }
.steps3 { padding-top: clamp(64px, 8vw, 104px); }
@media (max-width: 960px) {
  .brand-list { grid-template-columns: 1fr; }
  .brands { padding-top: calc(48px + 56px); }
  .steps3 { padding-top: 64px; }
}

/* ---------- who owns what ---------- */

.owners { padding-top: clamp(40px, 5vw, 64px); }
.owners .t1 { max-width: 16em; }
.pf-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface-muted); margin-bottom: 28px; flex-wrap: wrap; }
.pf-tabs button { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 500; min-height: 48px; padding: 0 18px 0 8px; border-radius: 999px; }
.pf-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.pf-tabs .logo.sm { height: 32px; }
.pf-count { font-size: 13px; color: var(--ink-2); }
.pf-lead { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46em; }
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-grid li { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 0 1px var(--line); }
.pf-logo { height: 64px; display: grid; place-items: center; background: #FFFFFF; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--line); padding: 10px; }
.pf-logo img { max-height: 32px; max-width: 80%; width: auto; height: auto; }
.pf-word { font-size: 16px; font-weight: 600; color: #1A1614; letter-spacing: -0.01em; text-align: center; }
.pf-name { font-size: 15.5px; font-weight: 500; }
.pf-when { font-size: 13.5px; color: var(--ink-3); }
.owners .srcs { margin-top: 20px; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.float-left { justify-self: end; margin-bottom: 64px; }
.fc-time { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 10px; }
.fc-time li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); position: relative; }
.fc-time b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-time li:last-child b { color: var(--accent-text); }
.logo.word-sm { font-size: 11.5px; font-weight: 600; color: #1A1614; letter-spacing: -0.01em; white-space: nowrap; }
.float-card { width: clamp(230px, 24vw, 290px); }
.showcase-src { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 88px 0 -40px; }
@media (max-width: 960px) { .showcase-src { margin: 64px 0 -24px; } }
.fc-chain { gap: 6px; }
.fc-chain .fc-arrow { width: 12px; flex: none; }
.fc-chain .logo.sm { padding: 6px 8px; flex: none; }
.fc-chain .logo.sm img { max-width: 56px; }
.how-visual.how-layers { height: auto; min-height: 240px; }
/* Logos carry intrinsic width and height attributes (no layout shift); keep their aspect ratio under max constraints. */
.scr-logo img, .pf-logo img, .logo img { width: auto; height: auto; }

/* ---------- inside the app: App Store screens ---------- */

.inside { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); background: var(--surface); }
.inside-head { max-width: 760px; margin-bottom: 32px; }
.inside-head .lede { margin-top: 16px; }
/* Starts at the first screen, lined up with the heading. No visible
   scrollbar: it moves by drag (home.js), swipe, trackpad or arrow keys and
   settles smoothly on each screen. */
.inside-strip {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-behavior: smooth;
}
.inside-strip::-webkit-scrollbar { display: none; }
/* While a mouse drags or the strip glides to a screen, snapping waits. */
.inside-strip.is-dragging, .inside-strip.is-gliding { scroll-snap-type: none; }
.inside-strip.is-dragging { scroll-behavior: auto; }
.inside-strip li { scroll-snap-align: start; }
.inside-strip img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); background: #1E1917; -webkit-user-drag: none; user-select: none; }
@media (pointer: fine) {
  .inside-strip:not(.fits) { cursor: grab; }
  .inside-strip.is-dragging { cursor: grabbing; }
}
.inside + .steps3 { padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 600px) { .inside-strip { grid-auto-columns: 72vw; } }

/* The hero's sources: where every line on the screens comes from. */
.hero-sources { position: relative; z-index: 3; margin: 72px auto 0; max-width: 860px; text-align: center; }
.hero-sources ul { list-style: none; margin: 12px 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 960px) { .hero-sources { margin: 52px auto 0; } }
