@import url("/vehicle-picker.css?v=6");

.premium-home {
  --cockpit-ground: #0b1014;
  --cockpit-ink: #eef3f7;
  --cockpit-muted: #a8b6c2;
  --cockpit-surface: #17212b;
  --cockpit-accent: #45d6c8;
  --cockpit-accent-ink: #06201f;
  --cockpit-paper: #e8eeef;
  --cockpit-paper-ink: #0f161d;
  --premium-gutter: clamp(20px, 3.4vw, 56px);
  --cockpit-display: clamp(2.75rem, 8.2vw, 8rem);
  --cockpit-head: clamp(2.4rem, 5.8vw, 5.8rem);
  --cockpit-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --cockpit-small: .875rem;
  --cockpit-ease-out: cubic-bezier(.23,1,.32,1);
}
.premium-home :is(.premium-hero, .showcase, .premium-check) :is(h1, h2, p, figure, fieldset) { margin: 0; }
.premium-home :is(.premium-hero, .showcase, .premium-check) :is(h1, h2) { line-height: .96; letter-spacing: -.055em; font-weight: 690; }
.premium-home :is(.premium-hero, .showcase, .premium-check) a { color: inherit; text-decoration: none; }
.premium-home :is(.premium-hero, .showcase) img { display: block; width: 100%; height: auto; }
.premium-home .premium-wrap { width: min(calc(100% - 2 * var(--premium-gutter)), 1400px); margin-inline: auto; }
.premium-home .premium-hero { padding-block: clamp(40px, 6vw, 92px) clamp(80px, 9vw, 144px); }
.premium-home .hero-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.premium-home h1 { font-size: var(--cockpit-display); }
.premium-home .hero-model { font-size: var(--cockpit-lead); color: var(--cockpit-muted); padding-block-end: 5px; white-space: nowrap; }
.premium-home .hero-line { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-block: 27px 34px; }
.premium-home .hero-line p { max-width: 44ch; font-size: var(--cockpit-lead); }
.premium-home .action { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--cockpit-accent); color: var(--cockpit-accent-ink); min-height: 52px; padding: 12px 20px; font-weight: 700; white-space: nowrap; }
.premium-home .action:focus-visible { outline-color: var(--cockpit-accent); }
.premium-home .hero-frame { overflow: hidden; background: var(--cockpit-surface); padding: clamp(6px, 1vw, 14px); }
.premium-home .hero-frame img { width: 100%; aspect-ratio: 8/3; object-fit: contain; }
.premium-home :is(.premium-hero, .showcase) figcaption { display: flex; justify-content: space-between; gap: 8px 20px; padding-top: 14px; font-size: var(--cockpit-small); color: var(--cockpit-muted); }
.premium-home .showcase { color-scheme: light; background: var(--cockpit-paper); color: var(--cockpit-paper-ink); }
.premium-home .showcase-inner { padding-block: clamp(64px, 8vw, 128px); }
.premium-home .section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 28px; margin-bottom: clamp(26px, 4vw, 58px); }
.premium-home :is(.showcase, .premium-check) h2 { font-size: var(--cockpit-head); }
.premium-home .section-intro p { max-width: 41ch; font-size: var(--cockpit-lead); }
.premium-home .deck { display: flex; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 10px; }
.premium-home .deck fieldset { border: 0; padding: 0; min-inline-size: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.premium-home .deck legend { padding: 0; margin-bottom: 5px; font-size: var(--cockpit-small); }
.premium-home .deck fieldset label { position: relative; display: inline-flex; cursor: pointer; }
.premium-home .deck fieldset input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); margin: 0; }
.premium-home .deck fieldset span { display: block; padding: 9px clamp(8px, 2vw, 24px); min-height: 44px; background: #d7e1e4; }
.premium-home .deck fieldset label:hover span { text-decoration: underline; text-underline-offset: .22em; }
.premium-home .deck fieldset input:checked + span { color: var(--cockpit-ink); background: var(--cockpit-surface); font-weight: 700; }
.premium-home .demo-screen { display: grid; background: var(--cockpit-surface); overflow: hidden; }
.premium-home .demo-screen img { grid-area: 1 / 1; aspect-ratio: 8 / 3; object-fit: contain; }
.premium-home .demo figcaption { color: #42545e; }
.premium-home .demo figcaption a { font-weight: 650; color: var(--cockpit-paper-ink); }
.premium-home .premium-check { background: var(--cockpit-accent); color: var(--cockpit-accent-ink); }
.premium-home .check-link { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-block: clamp(36px, 6vw, 90px); align-items: end; }
.premium-home .check-link p { grid-column: 1 / -1; font-size: var(--cockpit-lead); }
.premium-home .check-link:focus-visible { outline-offset: -7px; }
.premium-home .check-link:hover h2 { text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .11em; }
@media (max-width: 900px) {
  .premium-home .hero-title { display: block; }
  .premium-home .hero-model { margin-top: 11px; padding: 0; }
}
@media (max-width: 650px) {
  .premium-home .premium-hero { padding-top: 37px; padding-bottom: 62px; }
  .premium-home h1 span { display: block; }
  .premium-home .hero-line { display: grid; margin-block: 20px 25px; gap: 17px; }
  .premium-home .hero-figure figcaption, .premium-home .demo figcaption { flex-wrap: wrap; }
  .premium-home .section-intro { grid-template-columns: 1fr; gap: 15px; }
  .premium-home .deck { display: grid; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes cockpit-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .premium-home .hero-title { animation: cockpit-enter 560ms var(--cockpit-ease-out) both; }
  .premium-home .hero-line { animation: cockpit-enter 620ms var(--cockpit-ease-out) 80ms both; }
  .premium-home .hero-figure { animation: cockpit-enter 700ms var(--cockpit-ease-out) 140ms both; }
  .premium-home .action { transition: transform 140ms var(--cockpit-ease-out); }
  .premium-home .action:active { transform: scale(.97); }
  @media (hover: hover) and (pointer: fine) {
    .premium-home .action:hover { transform: translateY(-2px); }
    .premium-home .action:hover:active { transform: scale(.97); }
  }
  .premium-home .hero-frame picture { display: block; animation: cockpit-focus-in 1500ms var(--cockpit-ease-out) both; }
  @keyframes cockpit-focus-in { from { transform: scale(1.025); } to { transform: scale(1); } }
}

.premium-home .site-header {
  max-width: none;
  padding-inline: max(var(--premium-gutter), calc((100% - 1400px) / 2));
  min-height: 76px;
  background: var(--cockpit-ground);
  color: var(--cockpit-ink);
}
.premium-home .site-nav, .premium-home .brand-name span { color: var(--cockpit-ink); }
.premium-home .site-nav a:hover { color: var(--cockpit-accent); }
.premium-home .site-header .button-primary { background: var(--cockpit-accent); color: var(--cockpit-accent-ink); }
.premium-home .site-header :focus-visible, .premium-home .premium-hero :focus-visible { outline-color: var(--cockpit-accent); }
.premium-home .premium-hero {
  width: auto;
  padding-inline: max(var(--premium-gutter), calc((100% - 1400px) / 2));
  background: var(--cockpit-ground);
  color: var(--cockpit-ink);
}
.premium-home .premium-hero .action { color: var(--cockpit-accent-ink); }
.premium-home .deck[hidden] { display: none; }
.premium-home .demo figcaption a:hover { text-decoration: underline; }
.premium-home .showcase :focus-visible, .premium-home .premium-check :focus-visible { outline-color: var(--cockpit-paper-ink); }
.premium-home .deck input:focus-visible + span { outline: 3px solid var(--cockpit-paper-ink); outline-offset: 3px; }

@media (max-width: 760px) {
  .premium-home .header-actions { flex-wrap: wrap; row-gap: 10px; }
}

.premium-home .nav-toggle {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  background: transparent;
  color: var(--cockpit-ink);
}

.premium-home .hero-vehicle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.premium-home .hero-vehicle-actions .hero-demo-link { text-decoration: underline; text-underline-offset: .2em; }
.premium-home .hero-vehicle-actions .hero-demo-link:hover { color: var(--cockpit-accent); }
@media (max-width: 650px) {
  .premium-home .hero-vehicle-actions { align-items: stretch; flex-direction: column; }
  .premium-home .hero-demo-link { padding-block: 8px; }
}

/* Widget tutorial on the home page: copy and screenshot side by side. */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
@media (max-width: 820px) {
  .section-grid { grid-template-columns: 1fr; }
}
