/* Homepage components. */
.page-home .btn {
  border-radius: 9px;
  height: auto;
  min-height: 44px;
  padding: 10px 18px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}
.page-home :is(.btn:not(.btn-ghost, .btn-light), .top .btn) {
  background: var(--accent);
  color: #201624;
  box-shadow: 0 8px 24px -10px #ffb66e85;
}
.page-home :is(.btn:not(.btn-ghost, .btn-light), .top .btn):hover { background: var(--accent-dark); }
.page-home .btn-ghost { color: var(--primary-light); }
.page-home .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.page-home .btn-lg { min-height: 52px; }
.page-home :is(.top, main, .foot) .btn::after,
.page-home main .btn .i:has(use[href="#i-arrow"]) { display: none; }

.page-home .hero {
  overflow: visible;
  padding: clamp(36px, 5vw, 76px) 0 32px;
  background:
    radial-gradient(ellipse at 77% 31%, #20294c 0%, transparent 59%),
    radial-gradient(ellipse at 62% 78%, #202038 0%, transparent 49%),
    #0b1020;
}
.page-home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#a4b3ff0c 1px, transparent 1px), linear-gradient(90deg, #a4b3ff0c 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 76% 30%, #000 10%, transparent 72%);
}
.page-home .hero > .wrap { position: relative; }
.page-home .hero-grid {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}
.page-home .hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.25vw, 66px);
  line-height: 1.02;
  letter-spacing: -.053em;
  text-wrap: initial;
}
.page-home .hero h1 span {
  display: block;
  margin-bottom: .38em;
  color: var(--primary-light);
  font-size: .57em;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.page-home .hero h1 em { color: var(--accent); white-space: normal; }
.page-home .hero h1 em::after { content: none; }
.page-home .hero .lead { max-width: 34ch; margin-bottom: 19px; }
.page-home .hero-delivery {
  margin: 12px 0 0;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid #8b6a49;
  border-radius: 15px;
  background: linear-gradient(135deg, #302531, #1b2037 80%);
  box-shadow: 0 16px 34px -20px #02040d;
}
.page-home .hero-delivery h2 {
  margin: 0 0 11px;
  color: #ffe3c0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.25;
}
.page-home .hero-delivery ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.page-home .hero-delivery a {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  height: 100%;
  min-height: 58px;
  padding: 7px 4px;
  border: 1px solid #685a66;
  border-radius: 9px;
  color: #e0e7fa;
  background: #191e32;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}
.page-home .hero-delivery a strong {
  color: #ffdda9;
  font-size: clamp(17px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
}
.page-home .hero-delivery a small {
  color: var(--primary-light);
  font-size: 11px;
  text-align: center;
  white-space: normal;
}
@media (max-width: 540px) {
  .page-home .hero-delivery ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-home .hero-delivery a:hover {
  border-color: var(--accent);
  background: #302735;
  text-decoration: none;
}
.page-home .hero #hero-search {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-color: var(--line-2);
  border-radius: 14px;
  background: #101729;
  box-shadow: 0 12px 32px -18px #000b;
}
.page-home .hero #hero-search label { padding: 8px 12px; border: 0; border-radius: 8px; background: #192239; }
.page-home .hero #hero-search label:focus-within { box-shadow: inset 0 0 0 1px var(--primary); }
.page-home .hero #hero-search small { font: 600 12px var(--home-mono); letter-spacing: .06em; }
.page-home .hero #hero-search input:focus-visible { outline: none; }
.page-home .hero #hero-search > button { margin-top: 2px; min-height: 48px; }
.page-home .hero-access { margin: 12px 0 4px; color: var(--ink-2); font-size: 14px; }
.page-home .hero-manual { min-height: 36px; margin: 0; color: var(--primary-light); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.page-home .hero-manual:hover { color: var(--accent); }

.page-home .hero-visual { min-width: 0; }
.page-home .hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 11vw, 154px);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.page-home .hero-intro h1 { font-size: clamp(32px, 3.5vw, 54px); }
.page-home .hero-intro .lead { margin: 0; }
.page-home .hero-assistant {
  position: relative;
  min-width: 0;
}
.page-home .hero-assistant .ai-sphere-controls {
  position: absolute;
  right: 0;
  top: 0;
}
.page-home .hero-assistant .ai-sphere-control {
  border-color: transparent;
  background: #11192cba;
}
.page-home .hero-assistant .ai-sphere-label {
  justify-content: center;
  width: 100%;
  padding: 6px;
  text-align: center;
  white-space: normal;
  font-size: 12px;
  line-height: 1.2;
}
.page-home .hero-media {
  min-width: 0;
  margin: 0;
  padding: 8px 8px 0;
  border: 1px solid #637498;
  border-radius: 17px;
  background: linear-gradient(135deg, #2b3c5b, #131b2c 47%, #242338);
  box-shadow: 0 26px 62px -20px #000c, 0 0 54px -18px #6a92d567;
}
.page-home .hero-media-screen { position: relative; overflow: hidden; border-radius: 10px; background: #060b14; }
.page-home .hero-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.page-home .hero-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding-inline: 10px 2px;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: .015em;
}
.page-home .hero-media figcaption > span { display: flex; align-items: center; gap: 9px; }
.page-home .hero-media figcaption > span .i { color: var(--accent); }
.page-home .hero-media-sound-action {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #101729;
  color: var(--accent-dark);
  font: 600 14px var(--font);
  cursor: pointer;
}
.page-home .hero-media-sound-action:hover {
  background: var(--accent);
  color: #201624;
}
.page-home .hero-media-controls { display: flex; flex: none; gap: 6px; }
.page-home .hero-media-toggle:not([hidden]) { display: grid; place-items: center; }
.page-home .hero-media-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #101729;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.page-home .hero-media-toggle:hover { background: var(--sky-light); color: var(--accent); }
.page-home .hero-media-play span { border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; margin-left: 2px; }
.page-home .hero-media-play.is-playing span { width: 10px; height: 12px; margin: 0; border: solid currentColor; border-width: 0 3px; }
.page-home .hero-media-toggle .i { width: 20px; height: 20px; }
.page-home .hero-media-toggle .sound-off,
.page-home .hero-media-toggle.is-muted .sound-waves { display: none; }
.page-home .hero-media-toggle.is-muted .sound-off { display: initial; }
.page-home .hero-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .43fr);
  align-items: stretch;
  margin-top: clamp(24px, 3.5vw, 48px);
  gap: 14px;
}
.page-home .hero-extras .quick { grid-column: 1 / -1; margin-bottom: 5px; }
.page-home .quick a { background: #141c30; border-radius: 7px; }
.page-home .hero-extras .hero-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
}
.page-home .hero-stats div {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #3c4c6b;
  border-radius: 11px;
  background: #151e33;
}
.page-home .hero-stats .hero-stat-total {
  border-color: #826449;
  background: linear-gradient(145deg, #2b2432, #1b243d);
}
.page-home .hero-stats b {
  display: block;
  height: auto;
  color: #f4f6ff;
  font: 700 clamp(20px, 2.2vw, 28px)/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  white-space: normal;
}
.page-home .hero-stats .hero-stat-total b { color: #ffdaa8; }
.page-home .hero-stats .live b { font-size: 16px; }
.page-home .hero-stats small {
  display: block;
  margin-top: 5px;
  color: #d2dcf3;
  font-size: 13px;
  line-height: 1.3;
}
.page-home .hero-extras .resume-banner {
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151c30;
  color: var(--ink);
  font-size: 15px;
}
.page-home .resume-banner small { color: var(--ink-2); line-height: 1.4; }
.page-home .resume-banner .i { width: 24px; height: 24px; color: var(--accent); }
.page-home .resume-banner:hover { border-color: var(--primary); }

.page-home .trust { background: #0e1527; }
.page-home .trust-item .i,
.page-home .tile-icon {
  border-radius: 9px;
  background: #1a2541;
  color: var(--primary-light);
  box-shadow: inset 0 0 0 1px #46567a;
}
.page-home .trust-item .i { width: 36px; height: 36px; }
.page-home .hero-preview { margin-top: clamp(38px, 5.2vw, 72px); }
.page-home .ai-preview {
  max-width: none;
  padding: clamp(18px, 3.4vw, 36px);
  background: linear-gradient(140deg, #18223a, #11182a 52%);
  border-color: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.page-home .ai-example-card {
  background: #101628;
  border: 1px solid var(--line-2);
  border-top-color: var(--primary);
}
.page-home .ai-example-card > strong { color: var(--accent); }
.page-home .ai-preview-steps button { min-height: 44px; font-size: 14px; }
.page-home .ai-preview-steps button[aria-pressed="true"] { background: #27375d; color: var(--primary-light); border-color: var(--primary); }
.page-home :is(.ai-preview-detail, .ai-demo-label, .ai-preview-foot) { font-size: 14px; }
.page-home .eyebrow { padding-inline: 10px; border-radius: 7px; }
.page-home .eyebrow::before { content: none; }

.page-home .section:not(.section-tight) { padding-block: clamp(40px, 5vw, 72px); }
.page-home :is(.section-alt, .section-night) { border-block: 1px solid var(--line); }
.page-home .section-alt { background: #10172a; }
.page-home .section-night { background: radial-gradient(ellipse at 84% 40%, #1b2541, #0d1426 62%); }
.page-home .section h2 { font-size: clamp(28px, 3.2vw, 42px); }
.page-home .kicker { font-family: var(--home-mono); }
.page-home .kicker::before { width: 16px; height: 1px; }
.page-home .flow-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sky-light);
  border: 1px solid var(--line-2);
  color: var(--primary-light);
  font: 600 17px var(--home-mono);
}
.page-home .mini-chips i.on,
.page-home .compare-row:not(.compare-head) > div:nth-child(3)::before { color: #0b1020; }
.page-home .report,
.page-home .tile-dark {
  background: linear-gradient(145deg, #232e4d, #141c31 65%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.page-home .report, .page-home .post { transform: none; }
.page-home .report::before, .page-home .tile-dark::after { content: none; }
.page-home .match { border: 1px solid var(--line); border-radius: 10px; }
.page-home :is(.report, .legend, .mini-mail) .tick {
  border: 1px solid #416b75;
  background: #1b3440;
  color: #c0f0e6;
  font-weight: 600;
}
.page-home :is(.report, .legend, .mini-mail) .tick.warn {
  border-color: #836345;
  background: #3a2c24;
  color: #ffdfaf;
}
.page-home :is(.report, .legend, .mini-mail) .tick.risk {
  border-color: #854f61;
  background: #432a3a;
  color: #ffd0cb;
}
.page-home :is(.mini-field small, .match-src) { color: #d0d9ed; }
.page-home .tile-wide { grid-area: auto; }
.page-home .tile-figure { flex-wrap: wrap; gap: 12px 20px; }
.page-home .tile-figure b { font: 700 clamp(24px, 3vw, 38px)/1.1 var(--home-mono); }
.page-home .tile-amber { background: #201d2a; border-color: #484054; }
.page-home .compare-head > div:nth-child(3) { background: #28375d; }
.page-home .cta { background: #18233b; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.page-home .cta::before {
  background: radial-gradient(ellipse at 88% 20%, #404273 0%, transparent 68%);
}
.page-home .vcard-foot { padding-right: 0; }
.page-home .vcard-foot::after { content: none; }
.page-home .city-options { background: #18223a; color: var(--ink); }

@media (min-width: 821px) {
  .page-home .ai-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    column-gap: 32px;
    align-items: start;
  }
  .page-home .ai-preview > :not(.ai-example-card, .ai-preview-cta, .ai-preview-foot) { grid-column: 1; }
  .page-home .ai-example-card {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
    align-content: center;
    padding: 28px;
  }
  .page-home .ai-preview-cta { grid-column: 2; grid-row: 5; align-self: center; justify-self: start; }
  .page-home .ai-preview-foot { grid-column: 2; grid-row: 6; margin: 14px 0; }
}

@media (max-width: 980px) {
  .page-home .hero-grid { gap: 24px; }
  .page-home .report { max-width: none; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .page-home .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .page-home .flow-step { padding: 15px 15px 0; }
  .page-home .mini { padding: 10px; }
  .page-home .mini-chips { flex-wrap: wrap; }
  .page-home .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .page-home .plan-main { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .page-home .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .hero h1 { font-size: clamp(34px, 6.8vw, 53px); max-width: 22ch; }
  .page-home .hero .lead { max-width: 44ch; }
  .page-home .hero-extras { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .page-home { --top-h: 56px; }
  .page-home .hero { padding-top: 20px; }
  .page-home .hero-grid { gap: 18px; }
  .page-home .hero h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.07; margin-bottom: 12px; }
  .page-home .hero .lead { font-size: 16px; margin-bottom: 14px; }
  .page-home .hero #hero-search label { padding: 6px 9px; }
  .page-home .hero #hero-search > button { padding-inline: 8px; font-size: 16px; }
  .page-home .hero-access { margin-top: 9px; }
  .page-home .hero-intro { grid-template-columns: minmax(0, 1fr) clamp(94px, 28vw, 120px); gap: 7px; }
  .page-home .hero-intro h1 { font-size: clamp(28px, 7.6vw, 39px); }
  .page-home .hero-extras .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 12px 0; }
  .page-home .hero-extras .hero-stats div:nth-child(3) { border-left: 0; }
}

@media (max-width: 360px) {
  .page-home .mini-chips { flex-wrap: wrap; }
  .page-home .report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .report-stats div { padding-inline: 6px; }
  .page-home .report-stats small { overflow-wrap: anywhere; }
  .page-home .foot-grid { column-gap: 12px; }
}
