/* Landing yourpair.ru — prototype C design in production. */

@font-face{font-family:Montserrat;src:url("/static/fonts/montserrat-regular.woff2?v=e06ab11e4925") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url("/static/fonts/montserrat-medium.woff2?v=bcf93bd3f2cb") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Montserrat;src:url("/static/fonts/montserrat-semibold.woff2?v=aa81e02010fa") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Montserrat;src:url("/static/fonts/montserrat-bold.woff2?v=d4741da7b097") format("woff2");font-weight:700;font-display:swap}

:root {
  --bg: var(--md-sys-color-background);
  --on: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --card: var(--md-sys-color-surface-container-lowest);
  --card-raised: var(--md-sys-color-surface-container-lowest);
  --hairline: var(--md-sys-color-outline-variant);
  --ease: var(--md-sys-motion-easing-emphasized);
  --gutter: 16px;
  --float-bg: rgba(255, 255, 255, .92);
  --band-bg: var(--pair-color-brand-navy);
  --band-on: #F1F1FB;
  --band-muted: #C3C6DB;
  --band-card: rgba(255, 255, 255, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --card: var(--md-sys-color-surface-container);
    --card-raised: var(--md-sys-color-surface-container-high);
    --float-bg: rgba(27, 30, 58, .92);
    --band-bg: var(--md-sys-color-surface-container-high);
  }
}
:root[data-theme="dark"] {
  --card: var(--md-sys-color-surface-container);
  --card-raised: var(--md-sys-color-surface-container-high);
  --float-bg: rgba(27, 30, 58, .92);
  --band-bg: var(--md-sys-color-surface-container-high);
}

.tone-quality, [data-tone="quality"] { --layer-bg: var(--pair-color-layer-quality-container); --accent: var(--pair-color-layer-quality-accent); --on-accent: var(--pair-color-on-layer-quality-accent); }
.tone-roles, [data-tone="roles"] { --layer-bg: var(--pair-color-layer-roles-container); --accent: var(--pair-color-layer-roles-accent); --on-accent: var(--pair-color-on-layer-roles-accent); }
.tone-spheres, [data-tone="spheres"] { --layer-bg: var(--pair-color-layer-spheres-container); --accent: var(--pair-color-layer-spheres-accent); --on-accent: var(--pair-color-on-layer-spheres-accent); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--on); font: 400 16px/1.6 var(--md-sys-typescale-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h3 { line-height: 1.25; }
p { text-wrap: pretty; }
a { color: var(--md-sys-color-primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--on); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.skip:focus { top: 12px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on); text-decoration: none; }
.brand-mark { position: relative; width: 34px; height: 24px; flex: 0 0 34px; }
.brand-mark::before, .brand-mark::after { position: absolute; top: 1px; width: 21px; height: 21px; border: 3px solid; border-radius: 50%; content: ""; }
.brand-mark::before { left: 0; border-color: var(--md-sys-color-primary-container); }
.brand-mark::after { right: 0; border-color: var(--pair-color-brand-sky); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-size: 20px; }
.brand-text small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hairline); }
.topnav { display: none; gap: 22px; margin-left: 12px; font-weight: 600; font-size: 14px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--on); }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-button { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: color-mix(in srgb, var(--on) 8%, transparent); }
.icon-button .sun { display: none; }
:root[data-theme="dark"] .icon-button .sun { display: inline; }
:root[data-theme="dark"] .icon-button .moon { display: none; }

/* Buttons */
.filled-button, .outlined-button, .tonal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; cursor: pointer; transition: transform var(--md-sys-motion-duration-short) var(--ease), box-shadow var(--md-sys-motion-duration-short) var(--ease); }
.filled-button { border: 0; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); box-shadow: 0 4px 12px rgba(255, 90, 159, .24); }
.filled-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 90, 159, .3); }
.outlined-button { border: 1.5px solid var(--md-sys-color-outline); color: var(--on); }
.outlined-button:hover { background: color-mix(in srgb, var(--on) 6%, transparent); }
.tonal-button { background: color-mix(in srgb, var(--md-sys-color-primary-container) 22%, var(--card)); color: var(--md-sys-color-primary); }
.tonal-button.small { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { display: grid; gap: 28px; width: min(100% - 2 * var(--gutter), 1180px); margin: 0 auto; padding: 24px 0 56px; }
.eyebrow { color: var(--md-sys-color-primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin-top: 12px; font-size: clamp(38px, 10vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero h1 em { display: block; font-style: normal; background: linear-gradient(90deg, var(--pair-color-female), var(--md-sys-color-tertiary) 55%, var(--pair-color-male)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { display: block; width: 100%; height: auto; object-fit: contain; justify-self: stretch; border-radius: 20px; }
.hero-map-example { width: min(100% - 2 * var(--gutter), 900px); margin: 28px auto 0; }
.hero-offer-details { width: min(100% - 2 * var(--gutter), 900px); margin: 0 auto; padding: 20px 0 8px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-offer-details > p + p { margin-top: 10px; }
.hero-offer-details .price-row { margin-top: 16px; }
.hero-offer-details .price-label { color: var(--on); font-weight: 600; }
.hero-offer-details .outlined-button { margin-top: 16px; }
.lead { max-width: 36em; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.price.big { font-size: clamp(44px, 9vw, 64px); }
.price-note { color: var(--muted); font-size: 14px; }
.old-price { color: var(--muted); font-size: 20px; font-weight: 600; text-decoration-thickness: 2px; white-space: nowrap; }
.old-price.big { font-size: clamp(24px, 4vw, 32px); vertical-align: middle; }
.promo-badge { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.promo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.assist-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.assist-row li { display: inline-flex; align-items: center; gap: 6px; }
.assist-row svg { width: 18px; height: 18px; color: var(--pair-color-good); stroke-width: 2.4; }

/* Map card */
.map-card { align-self: start; display: grid; gap: 14px; padding: 22px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 var(--hairline), 0 24px 60px rgba(16, 27, 77, .12); }
.map-card header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.kicker { color: var(--md-sys-color-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-card h2 { margin-top: 4px; font-size: 20px; line-height: 1.25; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.map-rows { display: grid; }
.map-row { display: grid; gap: 6px; padding: 12px 2px; }
.map-row + .map-row { border-top: 1px solid var(--hairline); }
.map-divider { padding: 14px 2px 0; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.map-divider + .map-row { border-top: 0; }
.row-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.row-head b { display: block; font-size: 15px; line-height: 1.35; }
.row-head small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.row-status { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-left: 48px; color: var(--muted); font-size: 12px; font-weight: 700; }
.row-status .pair-marker { display: inline-block; }

.icon-circle { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; flex: 0 0 auto; }
.icon-circle svg { width: 20px; height: 20px; }
.icon-circle.lg { width: 56px; height: 56px; }
.icon-circle.lg svg { width: 26px; height: 26px; }
.icon-circle.neutral { width: 36px; height: 36px; background: var(--md-sys-color-surface-container-high); color: var(--muted); }
.icon-circle.accent { background: var(--accent); color: var(--on-accent); }
.icon-circle.soft, .icon-circle.tone-roles, .icon-circle.tone-spheres, .icon-circle.tone-quality { background: color-mix(in srgb, var(--accent) 14%, var(--card-raised)); color: var(--accent); }

/* Tracks: thin axis, he above, she below, numbers in a column on the right */
.track-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 10px; align-items: center; margin-left: 48px; }
.track { position: relative; height: 36px; margin: 0 9px; }
.axis-line { position: absolute; left: -9px; right: -9px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--pair-color-axis); }
.marker-slot { position: absolute; top: 50%; line-height: 0; transition: left 600ms var(--ease); }
.marker-slot.he { transform: translate(-50%, -100%); }
.marker-slot.she { transform: translate(-50%, 0); }
.pair-marker { display: block; overflow: visible; }
.pair-rhombus { display: inline-flex; flex-direction: column; align-items: center; line-height: 0; }
.nums { display: grid; gap: 2px; font-size: 12px; font-weight: 700; line-height: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.num.he { color: var(--pair-color-male); }
.num.she { color: var(--pair-color-female-text); }
.zone-tick { position: absolute; top: calc(50% - 6px); width: 1px; height: 12px; background: var(--pair-color-axis); }
.track.zones3 { margin-left: 57px; }
.poles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.poles span:last-child { text-align: right; }
.poles.three { grid-template-columns: 1fr 1fr 1fr; }
.poles.three span:nth-child(2) { text-align: center; }
.poles.tiny { margin-left: 48px; margin-right: 40px; font-size: 11px; }
.map-row .poles.three.tiny { margin-right: 0; }
.map-foot { color: var(--muted); font-size: 12px; }

/* Sections */
.section { width: min(100% - 2 * var(--gutter), 1180px); margin: 0 auto; padding: 56px 0; }
.section-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -.015em; }

/* Parts of the test */
.layers { display: grid; gap: 18px; }
.layer { display: grid; gap: 18px; padding: 22px; border-radius: 28px; background: var(--layer-bg); color: var(--on); }
.layer-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.layer-n { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.layer-head h3 { margin-top: 6px; font-size: 24px; line-height: 1.2; }
.layer-text { margin-top: 12px; color: var(--muted); font-size: 15px; }
.facet-grid, .sphere-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.facet, .sphere { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 120px; height: var(--layer-card-height, auto); padding: 12px 10px 12px 12px; border: 0; border-radius: 20px; background: var(--card-raised); color: var(--on); text-align: left; cursor: pointer; font: inherit; transition: transform var(--md-sys-motion-duration-short) var(--ease), box-shadow var(--md-sys-motion-duration-short) var(--ease), background var(--md-sys-motion-duration-short) var(--ease); }
.facet:hover, .sphere:hover { box-shadow: 0 8px 20px rgba(16, 27, 77, .1); }
.facet:active, .sphere:active { background: color-mix(in srgb, var(--on) 10%, var(--card-raised)); }
.facet .icon-circle, .sphere .icon-circle { width: 44px; height: 44px; }
.facet b, .sphere-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.facet small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.facet small.compact-hook { font-size: 12px; }
.chev { color: var(--muted); line-height: 0; }
.chev svg { width: 18px; height: 18px; }
.facet.is-optional small { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; font-size: 12px; }
.safety { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 20px; background: var(--pair-color-caution-container); color: var(--pair-color-caution); font-size: 14px; }
.safety a { color: inherit; font-weight: 700; }

/* How we count: a dark band with a stepper */
.dark-band { width: 100%; padding-inline: max(var(--gutter), calc((100% - 1180px) / 2)); background: var(--band-bg); color: var(--band-on); }
.dark-band .eyebrow { color: #FF8FBF; }
.dark-band .muted, .dark-band .steps p { color: var(--band-muted); }
.steps { display: grid; gap: 0; max-width: 860px; }
.steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.steps li:not(:last-child)::before { position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, .18); content: ""; }
.step-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--pair-color-layer-roles-accent); color: var(--pair-color-on-layer-roles-accent); font-weight: 700; }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 4px; font-size: 15px; }

/* Demos */
.demo-grid { display: grid; gap: 16px; }
.demo { display: grid; gap: 16px; align-content: start; padding: 22px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 var(--hairline), 0 16px 40px rgba(16, 27, 77, .06); }
.demo-head { display: flex; gap: 12px; align-items: center; }
.demo-head h3 { font-size: 22px; }
.small-note { font-size: 13px; }
.questions { display: grid; gap: 16px; }
.q { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.q legend { padding: 0; font-weight: 600; line-height: 1.45; }
.q legend small { margin-left: 6px; padding: 1px 8px; border-radius: 8px; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-size: 11px; font-weight: 700; white-space: nowrap; }
.seven { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.seven label, .chips label { position: relative; }
.seven input, .chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seven span { display: grid; height: 46px; place-items: center; border-radius: 14px; background: var(--md-sys-color-surface-container-high); font-weight: 700; }
.seven input:checked + span { border-radius: 23px; background: var(--md-sys-color-secondary); color: var(--md-sys-color-on-secondary); }
.seven input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--on); outline-offset: 2px; }
.q-poles { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.scale-result { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.score-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.score { font-size: 36px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.score-meta { color: var(--muted); font-size: 14px; }
.axis-wrap { display: grid; gap: 6px; }
.axis { position: relative; height: 24px; margin: 0 8px; }
.axis::before { position: absolute; left: -8px; right: -8px; top: 10px; height: 3px; border-radius: 2px; background: var(--pair-color-axis); content: ""; }
.zones { position: relative; height: 0; margin: 0 8px; }
.axis-wrap .zones { position: absolute; }
.axis-wrap { position: relative; }
.axis-wrap .zones { left: 8px; right: 8px; top: 7px; height: 9px; margin: 0; }
.zones li { position: absolute; top: 0; height: 9px; border-radius: 5px; }
.zones li.active { background: color-mix(in srgb, var(--md-sys-color-secondary) 18%, transparent); }
.axis .band { position: absolute; top: 7px; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--md-sys-color-secondary) 32%, transparent); transition: left var(--md-sys-motion-duration-long) var(--ease), width var(--md-sys-motion-duration-long) var(--ease); }
.axis .dot { position: absolute; top: 11.5px; width: 18px; height: 18px; border: 3px solid var(--card); border-radius: 50%; background: var(--md-sys-color-secondary); transform: translate(-50%, -50%); transition: left 600ms var(--ease); }
.conclusion { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--md-sys-color-surface-container); font-size: 14px; line-height: 1.5; }
.conclusion svg { width: 20px; height: 20px; color: var(--muted); }
.conclusion[hidden] { display: none; }
.note { color: var(--muted); font-size: 12px; }
.chip-group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chip-group legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 8px; font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--md-sys-color-outline); border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13px; }
.chips input:checked + span { border-color: transparent; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.chips input:checked + span::before { margin-right: 6px; font-weight: 700; content: "✓"; }
.two-col { display: grid; gap: 16px; }
.sphere-out { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--md-sys-color-surface-container); }
.sphere-out .track.zones3 { margin-left: 9px; }
.sphere-out .poles.tiny { margin: 0; }
.scheme { font-size: 20px; font-weight: 700; line-height: 1.3; }
.banner { padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.banner[data-tone="good"] { background: var(--pair-color-good-container); color: var(--pair-color-good); }
.banner[data-tone="check"] { background: var(--pair-color-caution-container); color: var(--pair-color-caution); }
.banner[data-tone="talk"] { background: var(--pair-color-talk-container); color: var(--pair-color-talk); }
.mini-marker { display: inline-flex; }
.demo .tonal-button { justify-self: start; }

/* Price */
.price-card { display: grid; gap: 20px; padding: 26px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 var(--hairline), 0 20px 50px rgba(16, 27, 77, .1); }
.price-card h2 { margin: 6px 0 8px; }
.price-cta { justify-self: start; }
.included { display: grid; gap: 10px; }
.included li { position: relative; padding-left: 30px; }
.included li::before { position: absolute; left: 6px; top: 6px; width: 7px; height: 12px; border: solid var(--pair-color-good); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); content: ""; }
.footer { width: min(100% - 2 * var(--gutter), 1180px); margin: 0 auto; padding: 28px 0 calc(96px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }

/* Floating bottom bar (like Telegram's floating tab bar) */
.float-bar { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 8px 8px 8px 20px; border: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); border-radius: 999px; background: var(--float-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 36px rgba(16, 27, 77, .18); animation: float-in var(--md-sys-motion-duration-long) var(--ease); }
.float-bar[hidden] { display: none; }
.float-price { display: grid; line-height: 1.1; }
.float-price b { font-size: 18px; white-space: nowrap; }
.float-price small { color: var(--muted); font-size: 12px; }
.float-bar .filled-button { min-height: 48px; box-shadow: none; }
@keyframes float-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 999px) { body.bar-on .header-cta { display: none; } }

/* Floating sheet: detached from the edges; the head stays, the body scrolls */
.sheet { position: fixed; inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; max-width: 560px; max-height: min(86dvh, 760px); margin: 0 auto; padding: 0; border: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent); border-radius: 28px; background: var(--md-sys-color-surface-container-low); color: var(--on); overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in var(--md-sys-motion-duration-long) var(--ease); }
.sheet::backdrop { background: rgba(10, 12, 31, .4); }
.sheet-head { position: relative; flex: none; padding: 0 20px 12px; border-bottom: 1px solid var(--hairline); }
.sheet-handle { width: 36px; height: 4px; margin: 10px auto 8px; border-radius: 2px; background: var(--muted); opacity: .4; }
.sheet-close { position: absolute; top: 8px; right: 8px; margin: 0; }
.sheet-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-right: 44px; }
.sheet-top .icon-circle.lg { width: 48px; height: 48px; }
.sheet-top h2 { font-size: 22px; line-height: 1.25; }
.sheet-top p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.sheet-body { flex: 1 1 auto; min-height: 0; padding: 16px 24px 28px; overflow: auto; overscroll-behavior: contain; }
.sheet dl { display: grid; gap: 16px; margin: 0; }
.sheet dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.sheet dd { margin: 4px 0 0; font-size: 16px; line-height: 1.55; }
.sheet .example { padding: 14px 16px; border-radius: 18px; background: var(--card-raised); }
.sheet .source { color: var(--muted); font-size: 12px; }
.see-axis { position: relative; height: 14px; margin: 6px 0 4px; }
.see-axis .axis-line { left: 0; right: 0; }
.see-bar { margin-top: 10px; }
.see-bar b { font-size: 14px; }
.q-list { display: grid; gap: 6px; padding-left: 20px; list-style: decimal; }
@keyframes sheet-in { from { transform: translateY(40px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .sheet-handle { visibility: hidden; height: 0; margin: 10px 0 0; } }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr 1fr; grid-template-areas: "main list" "cta list"; align-items: center; padding: 36px; }
  .price-main { grid-area: main; }
  .included { grid-area: list; }
  .price-cta { grid-area: cta; }
}
@media (max-width: 719px) {
  .brand-text small { font-size: 9px; letter-spacing: .02em; }
  .tonal-button.small { min-height: 40px; padding: 0 14px; white-space: nowrap; font-size: 13px; }
  .topbar { gap: 8px; }
  .demo { padding: 18px 14px; }
}
@media (max-width: 399px) { .topbar-actions .icon-button { display: none; } }
@media (min-width: 1000px) {
  .float-bar { display: none !important; }
  .topnav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding-top: 48px; }
  .layer { grid-template-columns: minmax(240px, .9fr) minmax(0, 2fr); align-items: start; padding: 28px; }
  .demo-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .sheet { inset: 0; margin: auto; max-height: 82vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .float-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Production additions to prototype C (29.09.2026) ---------- */
.cabinet-link { padding: 8px 10px; color: var(--on); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cabinet-link:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .topbar .header-cta { display: none; }
  .cabinet-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--card); }
}

.free-line { margin: 20px 0 0; font-size: 16px; line-height: 1.5; }
.free-line b { color: var(--on); }
.price-label { flex-basis: 100%; color: var(--muted); font-size: 14px; font-weight: 600; }
.price-note { margin: 8px 0 0; }
.price-note a, .promo-note a { color: inherit; text-decoration: underline; }
.price-main h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

.optional-row { margin-top: 10px; }

.principles { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles article { border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 20px; }
.method-sources { margin-top: 16px; }
.method-sources summary { cursor: pointer; font-weight: 700; padding-block: 8px; }
.method-sources ul { display: grid; gap: 14px; margin: 12px 0; }
.method-sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.method-sources li p { margin-top: 4px; }
.principles h3 { margin: 0 0 8px; font-size: 18px; }
.principles p { margin: 0; color: var(--band-muted); font-size: 15px; line-height: 1.55; }
.principles .text-button { margin-top: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

.footer-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.footer .footer-brand { color: var(--on); font-size: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.footer a { color: inherit; font-size: 14px; }

/* Analytics question: readable sizes (the old landing used 8–9 px). */
.analytics-consent { position: fixed; z-index: 60; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); display: block; width: min(400px, calc(100% - 24px)); border: 1px solid var(--line, rgba(0, 0, 0, .12)); border-radius: 24px; padding: 14px 16px; background: var(--surface, #fff); color: var(--on); box-shadow: 0 24px 80px rgba(4, 9, 35, .25); }
.analytics-consent[hidden] { display: none; }
/* The opt-in prompt is offered after the first screen, never over its CTA or caveats. */
body.hero-active .analytics-consent { display: none; }
body.hero-active .pair-feedback-trigger { display: none; }
.analytics-consent summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.analytics-consent summary:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 4px; }
.analytics-consent p { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.analytics-consent a { color: inherit; font-size: 14px; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 8px; margin-top: 12px; }
.analytics-consent-actions .filled-button, .analytics-consent-actions .outlined-button { min-height: 44px; }
@media (max-width: 719px) {
  .analytics-consent-actions { margin-top: 12px; }
  .analytics-consent-actions > * { flex: 1; }
}

/* The feedback button never covers the bottom bar or the analytics question. */
body.bar-on .pair-feedback-trigger,
body.analytics-consent-open .pair-feedback-trigger { visibility: hidden; opacity: 0; pointer-events: none; }
body.analytics-consent-open .float-bar { display: none; }

/* Feedback is available without occupying a permanent landing section. */
body > .pair-feedback-trigger { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; }
.preview-notice { width: min(100% - 2 * var(--gutter), 1180px); margin: 18px auto 0; padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--card); font-size: 14px; }
.preview-notice a { font-weight: 600; }
/* Grid children and narrow consent buttons must be allowed to shrink. */
.hero > *, .demo-grid > *, .layer > *, .price-card > *, .principles > *, .footer-grid > * { min-width: 0; }
.filled-button, .outlined-button, .tonal-button { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 430px) {
  .analytics-consent-actions { flex-direction: row; }
  .analytics-consent-actions > * { flex: 1 1 0; width: auto; padding: 8px 10px; }
  .float-bar { padding-left: 14px; gap: 8px; }
  .float-bar .filled-button { padding: 8px 16px; font-size: 13px; }
  .float-price small { font-size: 11px; }
  .facet, .sphere { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 8px; }
  .facet .icon-circle, .sphere .icon-circle { width: 36px; height: 36px; }
}
@media (max-width: 350px) {
  .facet, .sphere { min-height: 120px; }
}

/* Owner round 5: preserve prototype C typography exactly. Only the layout
   moves the original full-width illustration between the title and lead. */
.hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
.hero-copy { display: contents; }
.hero-copy > * { min-width: 0; }
.hero .hero-art { margin-top: 18px; }
.hero .actions { margin-top: 12px; }
.hero .free-line { margin-top: 12px; }
.hero .assist-row { margin-top: 10px; }
@media (max-width: 719px) {
  .hero { padding-bottom: 14px; }
  .hero .hero-art { margin-top: 12px; }
  .hero-offer-details { padding-top: 10px; }
}
.facet, .sphere { min-height: 96px; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 350px) { .facet, .sphere { min-height: 120px; } }
.analytics-consent.analytics-consent-inline { position: static; width: min(100% - 2 * var(--gutter), 1180px); max-width: none; margin: 20px auto; box-shadow: none; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 48px; }
  .hero-copy > :not(.hero-art) { grid-column: 1; }
  .hero .hero-art { grid-column: 2; grid-row: 1 / span 9; width: 100%; align-self: center; margin-top: 0; }
}

/* Owner-approved four-section candidate. Typography and illustration are unchanged. */
#map .map-card { max-width: 900px; margin: 0 auto; }
.result-documents { display: grid; gap: 16px; margin-top: 24px; }
.result-documents article { padding: 20px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--card); }
.result-documents h3 { font-size: 18px; }
.result-documents p { margin-top: 8px; color: var(--muted); }
.map-interactive { margin-top: 32px; }
#layers .principles { margin-top: 32px; }
.purchase-steps { margin-bottom: 32px; }
/* Owner-approved restoration: one navy area spans the last two cards and
   the three purchase steps, while retaining the four existing sections.
   Paint-only full bleed does not add viewport-width layout overflow. */
#layers.has-owner-blue-band { padding-bottom: 0; }
#price.has-owner-blue-band { padding-top: 0; }
.owner-blue-band {
  --band-bg: var(--pair-color-brand-navy);
  position: relative;
  isolation: isolate;
  display: flow-root;
  padding-bottom: 32px;
  color: var(--band-on);
}
.owner-blue-band::before {
  position: absolute;
  z-index: -1;
  inset: -1px 0;
  background: var(--band-bg);
  box-shadow: 0 0 0 100vmax var(--band-bg);
  clip-path: inset(0 -100vmax);
  content: "";
}
.owner-blue-band-start { margin-top: 32px; padding-top: 32px; }
.owner-blue-band-end { margin-bottom: 32px; }
#layers .owner-blue-band .principles { margin-top: 0; }
.owner-blue-band .principles article { background: var(--band-card); }
.owner-blue-band .purchase-steps { margin-bottom: 0; }
.owner-blue-band .principles p,
.owner-blue-band .steps p { color: var(--band-muted); }
.owner-blue-band a { color: var(--band-on); }
.owner-blue-band :focus-visible { outline-color: var(--band-on); }
@media (min-width: 720px) { .result-documents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .hero { padding-top: 18px; padding-bottom: 0; }
  .hero h1 em { display: inline; }
  .hero .hero-art { margin-top: 8px; }
  .hero .lead { margin-top: 12px; }
  .hero .actions { gap: 8px; margin-top: 10px; flex-wrap: nowrap; }
  .hero .actions a, .hero .actions button { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .hero .free-line { margin-top: 10px; }
  .hero .assist-row { margin-top: 6px; }
}
@media (max-width: 350px) {
  .topbar { gap: 4px; flex-wrap: wrap; }
  .brand { gap: 6px; }
  .cabinet-link { padding-left: 8px; padding-right: 8px; }
}
/* Updated reference: only the two local, non-persistent demonstrations. */
#try .demo { padding: 24px; min-width: 0; }
#try .seven { display: flex; justify-content: space-between; gap: 0; position: relative; }
#try .seven::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--md-sys-color-outline-variant); }
#try .seven label { width: 48px; height: 48px; position: relative; display: grid; place-items: center; }
#try .seven label span { width: 36px; height: 36px; border-radius: 50%; padding: 0; display: grid; place-items: center; border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container-lowest); font-size: 14px; }
#try .seven input:checked + span { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: var(--md-sys-color-secondary); box-shadow: none; }
#try .seven input:focus-visible + span,#try .try-sphere-question input:focus-visible + span { outline: 2px solid var(--md-sys-color-secondary); outline-offset: 2px; }
#try .scale-result,#try .sphere-out { border-radius: 16px; background: var(--md-sys-color-surface-container); padding: 16px; }
#try .axis .dot { background: var(--pair-color-self); border-color: var(--pair-color-self); }
#try .axis::before { content: none; }
#try .zones li { background: var(--md-sys-color-surface-container-high); border-right: 2px solid var(--md-sys-color-surface-container); border-radius: 0; }
#try .zones li.active { background: color-mix(in srgb, var(--pair-color-self) 30%, transparent); }
#try .axis .dot { z-index: 1; }
#try .try-person-tabs { display: flex; gap: 4px; }
#try .try-person-tabs button { min-height: 40px; border: 1px solid var(--md-sys-color-outline-variant); background: transparent; color: var(--md-sys-color-on-surface); border-radius: 999px; padding: 6px 18px; font-size: 14px; }
#try .try-person-tabs button[aria-pressed=true] { background: var(--md-sys-color-secondary-container); }
#try .try-sphere-question { border: 0; padding: 0; margin: 14px 0; min-width: 0; }
#try .try-sphere-question legend { font-size: 15px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
#try .try-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#try .try-wide { grid-column: 1 / -1; }
#try .try-sphere-question label { position: relative; min-width: 0; }
#try .try-sphere-question input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#try .try-sphere-question label > span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 10px; font-size: 13px; line-height: 16px; box-sizing: border-box; background: var(--md-sys-color-surface-container-lowest); }
#try .try-options i { width: 16px; height: 16px; border: 1px solid var(--md-sys-color-outline); border-radius: 50%; flex: none; }
#try .try-sphere-question input:checked + span { background: var(--md-sys-color-secondary-container); border-color: var(--md-sys-color-secondary); }
#try .try-options input:checked + span i { border: 5px solid var(--md-sys-color-secondary); }
#try .try-segments { display: grid; grid-template-columns: 1fr 1fr 1fr; }
#try .try-segments label > span { min-height: 48px; justify-content: center; text-align: center; border-radius: 0; padding: 6px; }
#try .try-segments label:first-child > span { border-radius: 10px 0 0 10px; }
#try .try-segments label:last-child > span { border-radius: 0 10px 10px 0; }
#try .try-desired { background: var(--pair-color-layer-spheres-container); border-radius: 12px; padding: 12px; }
#try .try-desired legend { float: left; width: 100%; }
#try .try-desired .try-options { clear: both; }
#try [data-sphere-axis] { position: relative; height: 64px; margin: 0 10px; overflow: visible; background: transparent; display: block; }
#try [data-sphere-axis]::before { content: ""; height: 2px; background: var(--md-sys-color-outline-variant); position: absolute; top: 25px; left: 0; right: 0; }
#try .try-axis-point { position: absolute; transform: translateX(-50%); top: 9px; display: flex; }
#try .try-axis-point.she { top: 27px; }
#try .try-axis-point.desired { top: 27px; }
#try .try-axis-labels { display: flex; justify-content: space-between; font-size: 11px; line-height: 16px; gap: 4px; }
#try .try-axis-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; line-height: 18px; }
#try .try-entry { display: flex; margin: 24px auto 0; }
@media (max-width:599px) {
  #try .demo { padding: 16px; }
  #try .seven label { width: 40px; height: 48px; }
  #try .seven label span { width: 32px; height: 32px; }
  #try .seven::before { left: 20px; right: 20px; }
}
