@import "./design-system/tokens.css";
@import "./design-system/theme.css";
@import "./design-system/button.css";

@font-face {
  font-family: "Schibsted Grotesk Variable";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* the wordmark's face, bold only. self-hosted like the other two: nothing is fetched. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn {
  --control-h: var(--tap-min);
  --control-pad-x: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
}
.hero :where(.wrap) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero :where(.wrap) {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
}
.lede strong {
  color: var(--text);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── sections ────────────────────────────────────────────── */
main section {
  padding-block: clamp(56px, 8vw, 104px);
}
main section + section {
  border-top: var(--border-hairline) solid var(--line);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: var(--measure);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: 18px;
  color: var(--text-muted);
}

/* closing */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
}
@media (max-width: 760px) {
  .closing {
    grid-template-columns: 1fr;
  }
}
.closing h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.closing p {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 52ch;
}
footer {
  padding-block: 40px 56px;
  font-size: 13px;
  color: var(--text-muted);
}
footer .wordmark {
  --logo-height: 18px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }
}

/* ── header with menus ───────────────────────────────────── */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: var(--border-hairline) solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}
/* the product's name: bold, lowercase, -0.03em, 0.85 of the logo's height. the height comes in
   as --logo-height, so every place the name is set follows the same rule. only the wordmark
   uses --font-wordmark. */
.wordmark {
  --logo-height: 24px;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: calc(var(--logo-height) * 0.85);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
}
.brand {
  text-decoration: none;
  margin-right: 20px;
}
.brand span {
  color: var(--accent);
}
.menus {
  display: flex;
  gap: 2px;
}
.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: 500 15px / 1 var(--font-ui);
  cursor: pointer;
}
.menu-trigger:hover,
.menu-trigger[aria-expanded="true"] {
  background: var(--surface-sunken);
}
.menu-trigger svg {
  transition: transform 150ms cubic-bezier(0.2, 0, 0.2, 1);
}
.menu-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-actions .btn {
  min-height: 38px;
  font-size: 14px;
  padding-inline: 16px;
}
.panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: var(--border-hairline) solid var(--line);
  box-shadow: var(--shadow-overlay);
}
.panel-inner {
  padding-block: 28px 32px;
  display: grid;
  gap: 24px;
}
.panel-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.panel-cols.two {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.panel h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.panel :where(li a) {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  margin-inline: -12px;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.panel :where(li a):hover {
  background: var(--surface-raised);
}
.panel :where(li a strong) {
  font-size: 15px;
  font-weight: 600;
}
.panel :where(li a span) {
  font-size: 13px;
  color: var(--text-muted);
}
.price-rows {
  display: grid;
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-block: 10px;
  border-bottom: var(--border-hairline) solid var(--line);
  font-size: 14px;
}
.price-row:last-child {
  border-bottom: 0;
}
.price-row span:first-child {
  display: grid;
  gap: 2px;
}
.price-row small {
  color: var(--text-muted);
  font-size: 13px;
}
.tbd {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  white-space: nowrap;
}
.aside-box {
  background: var(--surface-raised);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14px;
  color: var(--text-muted);
}
.aside-box strong {
  color: var(--text);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.burger:hover {
  background: var(--surface-sunken);
}
.bars {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.bars span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 150ms cubic-bezier(0.2, 0, 0.2, 1),
    opacity 150ms cubic-bezier(0.2, 0, 0.2, 1);
}
.bars span:nth-child(1) {
  top: 0;
}
.bars span:nth-child(2) {
  top: 6px;
}
.bars span:nth-child(3) {
  top: 12px;
}
.burger[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.sheet {
  display: none;
}
@media (max-width: 860px) {
  .menus,
  .panel {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .top-actions .login {
    display: none;
  }
  .sheet[data-open="true"] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--surface);
    border-bottom: var(--border-hairline) solid var(--line);
    box-shadow: var(--shadow-overlay);
    padding-block: 8px 20px;
  }
  .sheet details {
    border-bottom: var(--border-hairline) solid var(--line);
  }
  .sheet summary {
    list-style: none;
    cursor: pointer;
    padding-block: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
  }
  .sheet summary::-webkit-details-marker {
    display: none;
  }
  .sheet summary::after {
    content: "+";
    color: var(--text-muted);
    font-weight: 400;
  }
  .sheet details[open] summary::after {
    content: "–";
  }
  .sheet ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
  }
  .sheet li a {
    display: grid;
    gap: 2px;
    padding-block: 8px;
    text-decoration: none;
  }
  .sheet li a span {
    font-size: 13px;
    color: var(--text-muted);
  }
  .sheet .btn {
    width: 100%;
    margin-top: 16px;
  }
}
@media (max-width: 1000px) {
  .panel-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── detail sections ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 48px;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.detail {
  display: grid;
  gap: 8px;
  padding-block: 20px;
  border-top: var(--border-hairline) solid var(--line);
  align-content: start;
}
.detail h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.detail p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: var(--measure);
}
.detail ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  display: grid;
  gap: 4px;
}
.pricing {
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow-x: auto;
}
.pricing table {
  min-width: 560px;
}
.pricing td:last-child,
.pricing th:last-child {
  text-align: right;
  white-space: nowrap;
}
.note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.tiles.benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .tiles.benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .tiles.benefits {
    grid-template-columns: 1fr;
  }
}
.tiles.benefits .tile {
  min-height: 0;
  padding: 28px 24px;
}
#vorteile .facts {
  margin-top: 20px;
}
.pricing table {
  min-width: 0;
}

/* ── image placeholders ──────────────────────────────────── */
.media {
  margin: 0;
  position: relative;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-hairline) solid var(--line);
  background: var(--surface-sunken);
}
.media.photo {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      color-mix(in srgb, var(--line-strong) 45%, transparent) 14px 15px
    ),
    var(--surface-sunken);
}
.media.shot {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.media.wide {
  border-radius: var(--radius-lg);
}
.band {
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* ── feature rows ───────────────────────────────────────── */
.feature {
  padding-block: clamp(48px, 7vw, 88px);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature.flip .feature-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-text p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 44ch;
}
.points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}
.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* devices, prices, demo */
.section-head.center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}
.device-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .device-row {
    grid-template-columns: 1fr;
  }
}
.price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .price-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .price-cards {
    grid-template-columns: 1fr;
  }
}
.price-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-lg);
}
.price-card h3 {
  font-size: 18px;
  font-weight: 600;
}
.price-card p {
  font-size: 14px;
  color: var(--text-muted);
}
.price-card .tbd {
  margin-top: 12px;
  font-size: 15px;
}
.closing.with-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 760px) {
  .closing.with-media {
    grid-template-columns: 1fr;
  }
}
.closing .actions {
  margin-top: 20px;
}
section.feature + section.feature {
  border-top: 0;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-product {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-overlay);
}
.hero-product img {
  display: block;
  width: 100%;
  height: auto;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.locale-links {
  display: inline-flex;
  gap: 10px;
  font-size: 13px;
}
.locale-links a {
  text-decoration: none;
  padding-block: 12px;
}
.locale-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--accent-strong);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s;
    scroll-behavior: auto;
  }
}

.media.shot img {
  object-fit: contain;
}
