:root {
  --bg: #fff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-muted: #86868b;
  --line: #d2d2d7;
  --accent: #0071e3;
  --pill-bg: #ebf9ef;
  --pill-line: #c4f2d2;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.02);
  --content: 980px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Onest, "Segoe UI", sans-serif;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { width: 185px; height: 23px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.pill img { width: 8px; height: 8px; }

.hero {
  padding: 150px 0 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
}

.lede {
  width: min(680px, 100%);
  margin: 32px auto 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 24px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 100%);
  height: 52px;
  border-radius: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}

.bento-band {
  margin-top: 150px;
  background: var(--bg-soft);
  padding: 96px 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
}

.card p { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 24px; }

.card-ai { grid-column: 1 / span 5; grid-row: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; }
.card-platforms { grid-column: 6 / span 7; grid-row: 1 / span 4; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.card-unlimited { grid-column: 1 / span 4; grid-row: 5 / span 4; }
.card-split { grid-column: 5 / span 4; grid-row: 5 / span 4; }
.card-locations { grid-column: 9 / span 4; grid-row: 5 / span 4; display: flex; flex-direction: column; justify-content: space-between; }
.card-yt { grid-column: 1 / span 3; grid-row: 9 / span 3; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.card-why { grid-column: 4 / span 4; grid-row: 9 / span 3; padding: 20px; }
.card-block { grid-column: 8 / span 5; grid-row: 9 / span 3; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }

.ai-grid, .platforms, .apps {
  display: grid;
  gap: 16px 24px;
}

.ai-grid { grid-template-columns: 1fr 1fr; }
.ai-grid div, .app-name { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.ai-grid img { width: 28px; height: 28px; }

.link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.platforms {
  grid-template-columns: 1fr 1fr;
  align-content: center;
  justify-items: center;
}

.platforms img { height: 40px; width: auto; }

.metrics { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.metrics div { display: flex; justify-content: space-between; align-items: center; height: 40px; font-weight: 500; }
.metrics b { color: var(--accent); font-size: 32px; line-height: 40px; }

.apps { grid-template-columns: repeat(4, 1fr); opacity: 0.5; margin-top: 28px; justify-items: center; }
.apps img { width: 40px; height: 40px; border-radius: 10px; }

.yt-logo { height: 100px; display: grid; place-items: center; }
.yt-logo img { width: 96px; height: 68px; }

.loc { display: flex; flex-direction: column; gap: 8px; }
.loc div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 22px;
}
.loc span { display: flex; align-items: center; gap: 12px; }
.loc em { font-style: normal; color: var(--text-soft); font-size: 13px; font-weight: 500; }
.flag { width: 24px; height: 16px; border-radius: 2px; border: 0.7px solid var(--line); overflow: hidden; flex: none; }
.se { background: linear-gradient(#ffcd00, #ffcd00) center/100% 2.7px no-repeat, linear-gradient(#ffcd00, #ffcd00) 8px 0/2.7px 100% no-repeat, #006aae; }
.nl { background: linear-gradient(#ae1c2b 0 33%, #fff 33% 66%, #212e6a 66%); }
.de { background: linear-gradient(#000 0 33%, #dd1111 33% 66%, #ffce00 66%); }
.ro { background: linear-gradient(90deg, #002b7f 0 33%, #fcd113 33% 66%, #ce1026 66%); }

.apps-strip { padding: 96px 0 0; text-align: center; }
.apps-row {
  width: min(788px, 100%);
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
}
.apps-row div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.apps-row img { width: 40px; height: 40px; border-radius: 10px; }
.apps-strip p { margin: 0 auto; max-width: 980px; color: var(--text-soft); font-size: 14px; line-height: 20px; text-align: left; }

.section { padding-top: 96px; }
.section h2, .chart-head h2, .faq h2 {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.steps article { background: var(--bg-soft); border-radius: 12px; padding: 24px; min-height: 152px; }
.steps h3 { margin: 0 0 12px; font-size: 21px; line-height: 26px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 20px; }
.section .actions { margin-top: 0; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 96px 0 0; }

.chart-head, .hour {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.chart-head { margin-top: 96px; }
.hour { color: var(--text-soft); font-size: 13px; font-weight: 500; }
.hour i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; display: inline-block; }
.sub { margin: 24px 0; color: var(--text-soft); font-size: 15px; }

.chart {
  position: relative;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 16px;
}
.chart img.curve { width: 100%; height: 104px; object-fit: fill; margin-top: 16px; }
.times {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-soft); font-size: 14px; }
.legend i { width: 20px; height: 3px; border-radius: 2px; background: var(--accent); }

.faq { margin-top: 96px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 17px/24px Onest, sans-serif;
  text-align: left;
  cursor: pointer;
}
.faq-item button span { color: var(--text-muted); }
.faq-item p { display: none; margin: 16px 0 0; color: var(--text-soft); font-size: 14px; line-height: 20px; }
.faq-item.open p { display: block; }

.footer { padding: 40px 0 48px; color: var(--text-muted); font-size: 12px; line-height: 16px; }

.cabinet-page { background: var(--bg); }
.cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px 32px;
  padding: 28px 0 16px;
}
.banner {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ebf9ef;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 22px;
}
.banner[data-state="yellow"] { background: #fff6e0; }
.banner[data-state="red"] { background: #fdecec; }
.cabinet h1 {
  margin: 28px 0 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.link-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.cabinet-note { margin: 12px 0 0; color: var(--text-soft); font-size: 14px; line-height: 20px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice, .app-choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.choice { padding: 10px 14px; font: 500 15px/20px Onest, sans-serif; }
.choice[aria-pressed="true"], .app-choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.app-row { display: flex; flex-wrap: wrap; gap: 12px; }
.app-choice {
  width: 84px;
  padding: 10px 8px 8px;
  text-align: center;
  font: 500 12px/16px Onest, sans-serif;
}
.app-choice img { width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 10px; }
.cabinet-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.cabinet-steps li { margin: 0 0 18px; }
.cabinet-steps strong { display: block; margin-bottom: 4px; }
.cabinet-steps p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 20px; }
.cabinet-install {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.cabinet > section { grid-column: 1; grid-row: 2; }
.cabinet-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-soft);
}
.side-card h2 { margin: 0 0 12px; font-size: 15px; line-height: 20px; }
.side-card p { margin: 0 0 10px; color: var(--text-soft); font-size: 14px; line-height: 20px; }
.side-card .choice { display: block; width: 100%; margin-bottom: 8px; text-align: left; background: #fff; }
.side-card a { color: var(--accent); }
.qr-dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: 16px;
  padding: 20px;
}
.qr-dialog code { display: block; margin: 12px 0; word-break: break-all; }
@media (max-width: 860px) {
  .cabinet { grid-template-columns: 1fr; }
  .banner, .cabinet > section, .cabinet-side { grid-column: auto; grid-row: auto; }
  .cabinet-side { position: static; }
}
@media (min-width: 861px) {
  .cabinet-side { position: sticky; top: 72px; align-self: start; }
}

@media (max-width: 860px) {
  .hero { padding-top: 80px; }
  .hero h1 { font-size: 32px; line-height: 38px; }
  .bento-band { margin-top: 80px; padding: 48px 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card-ai, .card-platforms, .card-unlimited, .card-split, .card-locations, .card-yt, .card-why, .card-block {
    grid-column: auto;
    grid-row: auto;
  }
  .card-platforms { grid-template-columns: 1fr; }
  .steps, .apps-row { grid-template-columns: 1fr; display: grid; gap: 16px; }
  .chart-head, .hour { align-items: flex-start; flex-direction: column; }
  .logo { width: 140px; height: auto; }
}
