/* Home, fourth pass (2026-11-13). Light ground, large type, real screens big. The kit's own section heights are turned
   off on this page (sections take their content's height); one main button per screen. Class prefix x- is this page. */

.x {
  --ink: #0e1628; --ink2: #3c4657; --mute: #5b6474; --line: #e3e7ee; --soft: #f4f6fa; --blue: #2b6fe6; --blue-ink: #1f5bd0; --blue-soft: #e8f0ff;
  --pad: clamp(72px, 8vw, 120px);
  background: #fff;
}
.x main > section { height: auto !important; min-height: 0 !important; display: block !important; }
.x-wrap { width: min(100% - 2 * var(--gut, 24px), var(--container, 1280px)); margin-inline: auto; }
.x h1, .x h2, .x h3 { color: var(--ink); letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
.x-eyebrow { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--blue-ink); letter-spacing: 0; }
.x-sub { margin: 20px 0 0; font-size: 19px; line-height: 1.7; color: var(--ink2); max-width: 640px; }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- first screen */
.x-hero { padding: calc(var(--nav, 68px) + clamp(28px, 4vw, 56px)) 0 clamp(40px, 5vw, 72px); background: linear-gradient(180deg, #f4f7fd 0%, #fff 100%); }
.x-hero__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(24px, 3vw, 48px); align-items: center; min-height: min(640px, calc(100svh - var(--nav, 68px) - 80px)); }
.x-hero h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.18; font-weight: 800; }
.x-lead { margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--ink2); max-width: 600px; }
.x-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.x-promise { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; color: var(--mute); }
.x-promise li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin: 0 12px 2px 0; }

.x-stage { position: relative; height: clamp(460px, 42vw, 600px); border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #dbe8ff 0%, #eef3fc 52%, #f7f9fd 100%); }
.x-phone { position: absolute; width: 46%; padding: 7px; border-radius: 34px; background: #0b1220;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 34px 60px -28px rgba(14, 22, 40, .6); }
.x-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.x-phone--a { left: -2%; top: 27%; }
.x-phone--b { left: 24%; top: 6%; width: 52%; z-index: 2; }
.x-phone--c { right: -2%; top: 35%; }

/* figures */
.x-figs { border-block: 1px solid var(--line); background: #fff; }
.x-figs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-fig { padding: 30px 32px; border-left: 1px solid var(--line); }
.x-fig:first-child { border-left: 0; padding-left: 0; }
.x-fig__n { margin: 0; font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.x-fig__t { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink2); }

/* sections */
.x-sec { padding: var(--pad) 0; }
.x-sec--soft { background: var(--soft); }
.x-head { margin-bottom: clamp(36px, 4vw, 56px); }
.x-head h2, .x-who h2, .x-faq h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; font-weight: 800; }

/* services: four rows, picture left, words and the price ladder right */
.x-svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.x-svc__pic { min-height: 320px; border-radius: 28px; background: var(--soft); display: grid; place-items: center; padding: 32px; overflow: hidden; }
.x-svc__pic--phones { background: linear-gradient(160deg, #eaf1ff, #f5f8ff); }
.x-svc__pic--shop { background: linear-gradient(160deg, #f6ece0, #faf5ee); }
.x-svc__pic--store { background: #fff; border: 1px solid var(--line); }
.x-svc__pic--store img { display: block; width: 100%; height: auto; }
.x-duo { display: flex; gap: 16px; align-items: flex-start; justify-content: center; }
.x-duo img { display: block; width: calc(50% - 8px); max-width: 190px; height: auto; border-radius: 18px; box-shadow: 0 22px 40px -22px rgba(14, 22, 40, .6); }
.x-duo img:last-child { margin-top: 28px; }
.x-svc__for { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--blue-ink); }
.x-svc h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.25; }
.x-svc__body > p:not(.x-svc__for) { margin: 14px 0 0; font-size: 18px; line-height: 1.7; color: var(--ink2); }
.x-svc__body > p.x-svc__from { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.x-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.x-checks li { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 600; color: var(--ink); }
.x-ladder { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.x-ladder li { display: grid; gap: 4px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.x-ladder__tier { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--blue-ink); }
.x-ladder__name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.x-ladder__price { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.x-ladder__meta { font-size: 13px; color: var(--mute); }
.x-more { display: inline-flex; margin-top: 20px; font-size: 16px; font-weight: 700; color: var(--blue-ink); text-decoration: none; }
.x-more::after { content: "→"; margin-left: 8px; transition: transform .2s ease; }
.x-more:hover::after { transform: translateX(4px); }
.x-care { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.x-care:hover { border-color: var(--ink); transform: translateY(-2px); }
.x-care b { font-size: 20px; }
.x-care span { font-size: 16px; color: var(--ink2); }
.x-care em { font-style: normal; font-size: 18px; font-weight: 800; }

/* the repair list mock */
.x-todo { width: min(300px, 100%); background: #fff; border-radius: 22px; padding: 22px 24px 14px; box-shadow: 0 26px 46px -26px rgba(14, 22, 40, .5); }
.x-todo__h { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.x-todo__r { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 0; border-bottom: 1px solid #eef0f4; font-size: 16px; font-weight: 600; color: var(--ink2); }
.x-todo__r:last-child { border-bottom: 0; }
.x-todo__r i { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 3px solid #c9ced8; }
.x-todo__r.is-on i { border-color: #2fae74; background: #2fae74 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* work */
.x-site { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); background: #fff; border-radius: 28px; border: 1px solid var(--line); }
.x-site--demo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); margin-top: 24px; }
.x-site__pic--live { background: var(--tint, #f1e4d6); border-radius: 22px; padding: 32px 0 40px; }
.x-site h3, .x-game h3 { font-size: 26px; font-weight: 800; margin-top: 8px; }
.x-site__body > p, .x-game > p { margin: 12px 0 0; font-size: 17px; line-height: 1.7; color: var(--ink2); }
.x-tag { margin: 0; font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.x-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.x-link { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid #cfd6e2; background: #fff; transition: border-color .2s ease, transform .2s ease; }
.x-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.x-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.x-game { padding: 24px 24px 28px; background: #fff; border-radius: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.x-game__pic { display: flex; gap: 12px; justify-content: center; align-items: flex-start; padding: 26px 20px 0; margin-bottom: 22px; border-radius: 20px; background: var(--tint, #eee); overflow: hidden; height: 330px; }
.x-game__pic img { display: block; width: calc(50% - 6px); max-width: 200px; height: auto; border-radius: 16px 16px 0 0; box-shadow: 0 18px 36px -20px rgba(14, 22, 40, .55); }
.x-game__pic img:last-child { margin-top: 22px; }
.browser { width: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(14, 22, 40, .45); border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f1f3f7; border-bottom: 1px solid #e3e7ee; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5df; }
.browser__bar span { margin-left: 10px; font-size: 13px; color: #5b6474; }
.browser > img { display: block; width: 100%; height: auto; }

/* the booking example you can press without leaving the page (home.js; nothing loads before the press) */
.live { position: relative; display: flex; justify-content: center; }
.live__phone { width: 210px; padding: 8px; border-radius: 32px; background: #070b14; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 26px 50px -26px rgba(14, 22, 40, .7); }
.live__phone > img { display: block; width: 100%; height: auto; border-radius: 24px; }
.live__go { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(14, 22, 40, .7); transition: background .2s ease, transform .2s ease; }
.live__go:hover { background: #2563d6; transform: translateX(-50%) translateY(-2px); }
.live__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.live-dlg { padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; }
.live-dlg::backdrop { background: rgba(5, 9, 18, .72); backdrop-filter: blur(2px); }
.live-dlg__in { display: grid; justify-items: center; gap: 14px; }
.live-dlg__phone { width: min(390px, calc(100vw - 32px)); height: min(844px, calc(100dvh - 120px)); padding: 10px; border-radius: 40px; background: #070b14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .8); box-sizing: border-box; }
.live-dlg__phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 30px; background: #fff; }
.live-dlg__bar { display: flex; gap: 10px; }
.live-dlg__bar a, .live-dlg__bar button { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; cursor: pointer; }
.live-dlg__bar a:hover, .live-dlg__bar button:hover { background: rgba(255, 255, 255, .18); }

/* steps */
.x-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.x-steps li { padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.x-steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; }
.x-steps h3 { font-size: 21px; font-weight: 800; margin-top: 6px; }
.x-steps p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink2); }
.x-steps .x-steps__get { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue-ink); }

/* who */
.x-who { display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.x-who__card { padding: 40px 32px; border-radius: 28px; background: #fff; border: 1px solid var(--line); text-align: center; }
.x-who__mark { width: 84px; height: 84px; margin: 0 auto 20px; display: block; }
.x-who__name { margin: 0; font-size: 28px; font-weight: 800; color: var(--ink); }
.x-who__role { margin: 4px 0 0; font-size: 16px; color: var(--mute); }
.x-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #d9dee7; }
.x-facts li { padding: 16px 0; border-bottom: 1px solid #d9dee7; font-size: 18px; line-height: 1.55; color: var(--ink); }

/* questions */
.x-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.h-reads { margin-top: 36px; display: grid; gap: 12px; }
.h-reads p { margin: 0; font-size: 15px; font-weight: 700; color: var(--mute); }
.h-reads a { color: var(--ink); font-size: 17px; line-height: 1.55; text-decoration: underline; text-decoration-color: #c5ccd8; text-underline-offset: 4px; }
.h-reads a:hover { text-decoration-color: var(--ink); }
.h-reads .h-reads__all { color: var(--blue-ink); text-decoration: none; font-weight: 700; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0 12px; font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; margin-right: 12px; color: var(--blue-ink); font-weight: 800; }
.faq details p { margin: 0 0 24px; padding-left: 28px; font-size: 18px; line-height: 1.75; color: var(--ink2); }
.faq__more { margin: 24px 0 0; font-size: 17px; color: var(--ink2); }
.x-inline { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* closing */
.home footer.closing { height: auto !important; min-height: 0 !important; display: block; padding: clamp(72px, 8vw, 112px) 0 48px; background: #0b1222; }
.home footer.closing > .wrap { display: block !important; height: auto !important; }
.home footer.closing .closing__cta { margin-bottom: 72px; }
.x-toss { margin: 10px 0 0 !important; font-size: 15px !important; line-height: 1.5; color: var(--mute) !important; }
.x-toss b { color: var(--ink); }
.x-first { margin: 16px 0 0 !important; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); font-size: 15px !important; line-height: 1.6 !important; color: var(--ink) !important; }
.x-first b { color: var(--blue-ink); }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1099px) {
  .x-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-steps li:last-child { grid-column: 1 / -1; }
  .x-games { grid-template-columns: 1fr; }
  .x-game__pic { height: 300px; }
}
@media (max-width: 899px) {
  .x-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .x-stage { height: min(86vw, 480px); }
  .x-phone { width: 38%; }
  .x-phone--b { width: 44%; left: 28%; }
  .x-svc, .x-site, .x-site--demo, .x-who, .x-faq { grid-template-columns: 1fr; }
  .x-svc__pic { min-height: 0; padding: 28px 20px; }
  .x-who__card { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; text-align: left; padding: 24px; }
  .x-who__mark { grid-row: 1 / span 2; margin: 0; width: 56px; height: 56px; }
  .x-care { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 639px) {
  .x-wrap { width: calc(100% - 40px); }
  .x-stage { height: min(112vw, 440px); }
  .x-phone { width: 40%; }
  .x-phone--b { width: 46%; left: 27%; }
  .x-hero h1 { font-size: 34px; }
  .x-lead { font-size: 17px; margin-top: 20px; }
  .x-hero__btns { margin-top: 28px; }
  .x-hero__btns .btn { flex: 1 1 100%; }
  .x-figs__row { grid-template-columns: 1fr; }
  .x-fig, .x-fig:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .x-fig:first-child { border-top: 0; }
  .x-sub { font-size: 17px; }
  .x-ladder { grid-template-columns: 1fr; }
  .x-ladder li { grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 2px; }
  .x-ladder__tier { grid-column: 1; grid-row: 1; }
  .x-ladder__name { grid-column: 2; grid-row: 1; }
  .x-ladder__price { grid-column: 3; grid-row: 1; margin: 0; font-size: 21px; }
  .x-ladder__meta { grid-column: 1 / -1; grid-row: 2; }
  .x-steps { grid-template-columns: 1fr; }
  .x-steps li:last-child { grid-column: auto; }
  .x-svc__body > p:not(.x-svc__for) { font-size: 17px; }
  .faq summary { font-size: 18px; padding: 22px 0 8px; }
  .faq details p { padding-left: 0; font-size: 17px; }
  .home footer.closing { padding: 64px 0 40px; }
  .home footer.closing .closing__cta { margin-bottom: 56px; }
  .home footer.closing .btn--xl { width: 100%; }
}

/* the phone bar steps down while another main button is on screen (home.js) */
@media (max-width: 639px) {
  .home .actionbar { transition: transform .2s ease, opacity .2s ease; }
  .home .actionbar.is-yielding { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .x-care, .x-link, .x-more::after { transition: none; } }
