@font-face {
  font-family: "Plex";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #141820;
  --ink-soft: #2a3140;
  --paper: #f4f5f7;
  --white: #ffffff;
  --gold: #d4af5a;
  --gold-deep: #8a6420;
  --swiss: #d52b1e;
  --rule: #d3d8e0;
  --muted: #56606f;
  --slip-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --radius-slip: 2px;
  --radius-control: 10px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Plex", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible + .choice-box, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-head {
  background: var(--ink);
  color: var(--white);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
}
.brand img { width: 2rem; height: 2rem; }
.head-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.head-nav a { text-decoration: none; opacity: .85; }
.head-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .25em; }
.head-nav .lang { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2rem .7rem; }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero p.lede {
  font-size: 1.2rem;
  color: #cfd5df;
  max-width: 32rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-bottom: 3.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e3c374; }
.btn-line { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-soft); }

/* The QR-bill slip: the page's one memorable object */
.slip {
  margin: 0;
  background: var(--white);
  color: #000;
  font-family: var(--slip-font);
  display: grid;
  grid-template-columns: 31% 69%;
  border-radius: var(--radius-slip) var(--radius-slip) 0 0;
  box-shadow: 0 -24px 60px rgba(0,0,0,.35);
  position: relative;
  min-height: 15rem;
}
.slip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 31%;
  border-left: 1px dashed #000;
}
.slip::after {
  content: "\2702";
  position: absolute;
  left: calc(31% - .55rem);
  top: .35rem;
  font-size: 1rem;
  transform: rotate(-90deg);
  background: var(--white);
  line-height: 1;
}
.slip-part { padding: 1.1rem 1.1rem 1.2rem; font-size: .8rem; line-height: 1.35; }
.slip h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .8rem; }
.slip dt { font-weight: 700; font-size: .66rem; margin-top: .55rem; }
.slip dd { margin: 0; }
.slip-pay { display: grid; grid-template-columns: 9.2rem 1fr; gap: 1rem; }
.slip-qr { width: 9.2rem; height: 9.2rem; display: block; }
.slip-amount { display: flex; gap: 1.6rem; margin-top: .9rem; }
.slip-amount strong { font-size: 1rem; }
.slip-note { font-size: .7rem; color: #3b3b3b; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .75rem;
  font-weight: 600;
}
.section-head p { margin: 0; color: var(--muted); }

/* Configurator */
.config {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.period {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .25rem;
  background: var(--white);
  margin-bottom: 1.25rem;
}
.period label { position: relative; }
.period input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.period span {
  display: block;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.period input:checked + span { background: var(--ink); color: var(--white); }
.period input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.choices { display: grid; gap: .75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: .9rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
}
.choice-box::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .15rem;
  border: 2px solid var(--muted);
  border-radius: 5px;
  background: var(--white);
}
.choice input:checked + .choice-box { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--gold); }
.choice input:checked + .choice-box::before {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23d4af5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.choice-name { font-weight: 600; display: block; }
.choice-text { color: var(--muted); font-size: .95rem; display: block; margin-top: .15rem; }
.choice-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice-complete .choice-box { background: #fbf8ef; }

.summary {
  position: sticky;
  top: 1.5rem;
}
.summary .slip { box-shadow: 0 18px 40px rgba(20,24,32,.14); border-radius: var(--radius-slip); grid-template-columns: 1fr; }
.summary .slip::before, .summary .slip::after { display: none; }
.summary-lines { list-style: none; padding: 0; margin: .35rem 0 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-size: .85rem; }
.summary-total { border-top: 1px solid #000; margin-top: .6rem; padding-top: .6rem; display: flex; justify-content: space-between; align-items: baseline; }
.summary-total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.summary-hint { margin: 1rem 0 0; font-size: .95rem; color: var(--ink); background: #fbf3dc; border-left: 4px solid var(--gold); padding: .75rem 1rem; }
.summary-hint[hidden] { display: none; }
.summary-cta { margin-top: 1.25rem; display: grid; gap: .6rem; }
.summary-cta small { color: var(--muted); font-size: .85rem; }

/* What each product does */
.products { background: var(--white); }
.product-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.product-list > div { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.product-list dt { font-weight: 600; font-size: 1.2rem; margin-bottom: .4rem; }
.product-list dd { margin: 0; color: var(--muted); }
.product-list ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ink); }

/* Swiss facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.facts h3 { font-size: 1.05rem; margin: 0 0 .4rem; font-weight: 600; }
.facts p { margin: 0; color: var(--muted); }
.cross {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--swiss);
  position: relative;
  vertical-align: -.15rem;
  margin-right: .45rem;
}
.cross::before, .cross::after { content: ""; position: absolute; background: #fff; }
.cross::before { left: 45%; top: 19%; width: 10%; height: 62%; transform: translateX(-5%); left: 41%; width: 18%; }
.cross::after { top: 41%; left: 19%; height: 18%; width: 62%; }

/* Where it runs */
.channels { background: var(--ink); color: var(--white); }
.channels .section-head p { color: #cfd5df; }
.channel-table { width: 100%; border-collapse: collapse; }
.channel-table th, .channel-table td { text-align: left; padding: 1rem .5rem 1rem 0; border-top: 1px solid rgba(255,255,255,.18); vertical-align: top; }
.channel-table th { font-weight: 600; width: 34%; }
.status-live { color: var(--gold); font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; max-width: 46rem; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 600; cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; }
.faq details p { margin: .5rem 0 0; color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: #cfd5df; padding: 2.5rem 0; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal article { max-width: 46rem; background: var(--white); padding: 2.5rem; border: 1px solid var(--rule); }
.legal h1 { font-size: 2rem; margin: 0 0 .5rem; line-height: 1.15; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .stand { color: var(--muted); margin-top: 0; }

@media (max-width: 900px) {
  .hero-grid, .config { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-actions { padding-bottom: 2rem; }
  .summary { position: static; }
  .product-list, .facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .head-nav a:not(.lang):not(.head-cta) { display: none; }
  .slip { grid-template-columns: 1fr; }
  .slip::before, .slip::after, .slip-receipt { display: none; }
  .slip-pay { grid-template-columns: 1fr; }
  .slip-qr { width: 7.5rem; height: 7.5rem; }
  .choice-box { grid-template-columns: 1.6rem 1fr; }
  .choice-price { grid-column: 2; }
  .channel-table th, .channel-table td { display: block; width: 100%; padding: .5rem 0; }
  .channel-table td { border-top: 0; padding-top: 0; }
  .legal article { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.slip .k { display: block; font-weight: 700; font-size: .66rem; }

/* 44px touch targets for the small header and footer links */
.head-nav a, .site-foot nav a, .brand { display: inline-flex; align-items: center; min-height: 44px; }
.head-nav .lang { min-height: 44px; padding: 0 .9rem; }
