/* MyAgInsight — site styles */
:root {
  --ink: #141a26;
  --ink-2: #1c2433;
  --ink-3: #2a3446;
  --text: #1d2330;
  --muted: #5b6475;
  --line: #dde2ea;
  --mist: #eceff4;
  --white: #fff;
  --purple: #8078b1;
  --purple-d: #635b98;
  --green: #a2c02f;
  --sky: #84bcdc;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(20, 26, 38, .06), 0 12px 32px -12px rgba(20, 26, 38, .18);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
main [id] { scroll-margin-top: 76px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--purple-d); color: var(--white); }
.btn-primary:hover { background: #544c87; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--purple-d); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 26, 38, .4); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 45px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; border-radius: 10px; }
.burger svg { width: 26px; height: 26px; }

.mobile-panel {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--white);
  padding: 18px 24px 32px; display: flex; flex-direction: column; gap: 28px;
  transform: translateY(-100%); transition: transform .35s ease; visibility: hidden;
}
.mobile-panel.open { transform: none; visibility: visible; }
.mobile-panel .top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.mobile-panel .brand img { height: 30px; }
.mobile-panel nav { display: flex; flex-direction: column; }
.mobile-panel nav a { text-decoration: none; font-size: 22px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-panel .btn { align-self: flex-start; }

/* ---------- sections ---------- */
section { padding: 112px 0; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: rgba(255, 255, 255, .78); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

.eyebrow { display: block; font-size: 18px; font-weight: 400; color: var(--muted); margin-bottom: 6px; letter-spacing: -0.01em; }
.bg-ink .eyebrow { color: rgba(255, 255, 255, .6); }
.h2 { font-size: clamp(32px, 4.2vw, 46px); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.bg-ink .lead { color: rgba(255, 255, 255, .72); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.bar { display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--green); margin-bottom: 18px; }
.bar.purple { background: var(--purple); }
.bar.sky { background: var(--sky); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(760px, calc(100vh - 76px)); display: flex; align-items: flex-end;
  padding: 140px 0 96px; color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 18, 28, .86) 0%, rgba(14, 18, 28, .62) 45%, rgba(14, 18, 28, .15) 100%),
              linear-gradient(0deg, rgba(14, 18, 28, .55) 0%, rgba(14, 18, 28, 0) 50%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 700px; }
.hero .kicker { display: block; font-size: 17px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -0.025em; }
.hero p.sub { margin-top: 22px; font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.page-hero { padding: 120px 0 88px; background: var(--ink); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.page-hero.has-photo .hero-bg { position: absolute; inset: 0; }
.page-hero.has-photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 18, 28, .9) 0%, rgba(14, 18, 28, .7) 50%, rgba(14, 18, 28, .35) 100%); }
.page-hero.has-photo .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 56px); max-width: 820px; }
.page-hero .lead { margin-top: 20px; color: rgba(255, 255, 255, .72); }

/* ---------- intro / platform split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
.split .copy p + p { margin-top: 16px; }
.split .copy p { color: var(--muted); }
.bg-ink .split .copy p { color: rgba(255, 255, 255, .72); }
.split .copy .btn, .split .copy .link-arrow { margin-top: 30px; }

.browser { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 rgba(20, 26, 38, .05), 0 30px 60px -24px rgba(20, 26, 38, .35); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f4f5f8; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d8e0; }
.browser img { width: 100%; }

/* ---------- operation photo tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); text-decoration: none; color: var(--white); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 18, 28, .82) 0%, rgba(14, 18, 28, .25) 45%, rgba(14, 18, 28, 0) 70%); }
.tile span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.tile strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tile small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 2px; }

.photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.programs { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.programs li { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.programs strong { display: flex; align-items: baseline; gap: 10px; color: var(--ink); font-weight: 600; }
.programs strong b { font-weight: 600; color: var(--purple-d); min-width: 40px; }
.programs span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- capability carousel ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, opacity .2s;
}
.carousel-nav button:hover { border-color: var(--ink); }
.carousel-nav button:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.carousel-nav svg { width: 18px; height: 18px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.cap {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  min-height: 340px; padding: 30px 26px 28px; border-radius: var(--radius-lg);
  background: var(--ink); color: rgba(255, 255, 255, .72); text-decoration: none; overflow: hidden;
  transition: transform .25s ease;
}
.cap:hover { transform: translateY(-4px); }
.cap .num { font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.cap h3 { color: var(--white); font-size: 22px; margin-top: auto; min-height: 2.3em; display: flex; align-items: flex-end; }
.cap p { margin-top: 10px; font-size: 15px; min-height: 6.6em; }
.cap .bar { margin: 18px 0 0; }
.cap .link-arrow { color: var(--white); margin-top: 22px; font-size: 14px; }
.cap::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(128, 120, 177, .32), rgba(128, 120, 177, 0));
}
.cap.g::before { background: radial-gradient(closest-side, rgba(162, 192, 47, .26), rgba(162, 192, 47, 0)); }
.cap.s::before { background: radial-gradient(closest-side, rgba(132, 188, 220, .28), rgba(132, 188, 220, 0)); }

/* ---------- why (dark) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.why-grid .h2 { font-size: clamp(32px, 4vw, 44px); }
.why-grid .lead { margin-top: 22px; }
.points { list-style: none; display: grid; gap: 14px; }
.points li { padding: 26px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .06); }
.points h3 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.points h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.points li:nth-child(2) h3::before { background: var(--sky); }
.points li:nth-child(3) h3::before { background: var(--purple); }
.points p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .68); }

/* ---------- screens ---------- */
.screens { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.screen-tabs { display: grid; gap: 10px; }
.screen-tab {
  text-align: left; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.screen-tab strong { display: block; font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.screen-tab span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.screen-tab[aria-selected="true"] { border-color: var(--purple); box-shadow: inset 3px 0 0 var(--purple), var(--shadow); }
.screen-tab:hover { border-color: #b7b2d6; }
.screen-frame .browser img { transition: opacity .25s; }
.screen-frame button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 13, 20, .9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 26px; cursor: pointer; }

/* ---------- get started card ---------- */
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.start-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px 44px 40px; box-shadow: var(--shadow); }
.start-card h3 { font-size: 26px; }
.start-card > p { margin-top: 10px; color: var(--muted); }
.start-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin: 28px 0 14px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.start-card .btn { margin-top: 32px; width: 100%; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact { border-radius: 32px; background: var(--ink); color: rgba(255, 255, 255, .75); padding: 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(128, 120, 177, .3), rgba(128, 120, 177, 0));
}
.contact > * { position: relative; }
.contact h2 { color: var(--white); }
.contact .lead { margin-top: 18px; color: rgba(255, 255, 255, .72); }
.contact .btn { margin-top: 32px; }
.contact-list { list-style: none; display: grid; gap: 12px; align-content: center; }
.contact-list li a, .contact-list li > div {
  display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .07); text-decoration: none; transition: border-color .2s;
}
.contact-list li a:hover { border-color: rgba(255, 255, 255, .25); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sky); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 13px; color: rgba(255, 255, 255, .55); }
.contact-list strong { display: block; color: var(--white); font-weight: 500; }

/* ---------- platform page ---------- */
.subnav { position: sticky; top: 76px; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 0; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--green); }
main .feature[id] { scroll-margin-top: 128px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.bg-mist + .feature, .feature + .feature.bg-mist { border-top: 0; }
.feature .h2 { font-size: clamp(28px, 3.4vw, 38px); }
.feature .copy .lead { margin-top: 18px; }
.feature ul.checks { margin-top: 28px; }
.feature ul.checks li { color: var(--text); }
.panel-card { border-radius: var(--radius-lg); background: var(--ink); padding: 36px; color: rgba(255, 255, 255, .75); }
.panel-card h3 { color: var(--white); font-size: 20px; }
.panel-card .rows { margin-top: 22px; display: grid; gap: 10px; }
.panel-card .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; background: var(--ink-2); font-size: 15px; }
.panel-card .row span:last-child { color: var(--white); font-weight: 500; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--ink-3); color: rgba(255, 255, 255, .8); }

.cta-band { text-align: center; }
.cta-band .h2 { max-width: 760px; margin: 0 auto; }
.cta-band .lead { margin: 18px auto 0; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 80px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand img { height: 32px; }
.site-footer .by { margin-top: 18px; max-width: 280px; font-size: 14px; }
.site-footer .by a { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--white); }
.foot-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a, .foot-legal button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--white); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 250; width: min(460px, calc(100vw - 32px));
  background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px -12px rgba(20, 26, 38, .35); border: 1px solid var(--line);
  padding: 24px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.cookie.show { opacity: 1; transform: none; }
.cookie h2 { font-size: 18px; }
.cookie p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.cookie p a { color: var(--purple-d); }
.cookie-prefs { margin-top: 16px; display: grid; gap: 8px; }
.cookie-prefs[hidden] { display: none; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--mist); position: relative; cursor: pointer; }
.pref strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.pref span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pref .always { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pref input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #c5cad4; position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.pref input:checked + .switch { background: var(--purple-d); }
.pref input:checked + .switch::after { transform: translateX(18px); }
.pref input:focus-visible + .switch { outline: 2px solid var(--purple); outline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie-actions [hidden] { display: none; }
.cookie-actions .btn-primary { margin-left: auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; }
  .tile:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 10; }
  .split, .split.flip, .why-grid, .start { gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact { padding: 56px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  section { padding: 84px 0; }
  .split, .split.flip, .why-grid, .start, .screens, .contact { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .track { grid-auto-columns: calc((100% - 20px) / 2); }
  .screen-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-tab span { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .brand img { height: 37px; }
  .subnav { top: 64px; }
  section { padding: 68px 0; }
  .hero { padding: 120px 0 64px; min-height: 620px; }
  .hero p.sub { font-size: 17px; }
  .track { grid-auto-columns: 84%; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile, .tile:nth-child(n+4) { grid-column: auto; aspect-ratio: 4 / 5; }
  .tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .tile span { left: 14px; right: 14px; bottom: 12px; }
  .tile strong { font-size: 16px; }
  .cap { min-height: 300px; }
  .carousel-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .screen-tabs { grid-template-columns: 1fr; }
  .start-card { padding: 32px 24px; }
  .contact { padding: 40px 22px; border-radius: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cookie { left: 16px; bottom: 16px; padding: 20px; }
  .cookie-actions .btn { flex: 1 1 auto; }
  .cookie-actions .btn-primary { margin-left: 0; }
  .panel-card { padding: 24px; }
}
