/* GEGENEREERD door tools/chrome.mjs uit src/styles/phone.css. Niet hier
   bewerken: pas de bron aan en draai node tools/to-pages.mjs. */

/* Het toestel met de app-preview — de ENIGE stijlbron, horend bij
   src/components/AppPreview.tsx (de enige markupbron). De homepage
   importeert dit bestand via de bundel; de generatoren kopiëren het
   naar public/to/phone.css en hangen er een inhoudshash aan. Nooit
   stijlen hiervan dupliceren in sections.css of to.css: die drift
   brak op 2026-09-21 productie (nieuwe HTML op een oude to.css).

   --ground-raised bestaat alleen in de bundel-tokens (global.css);
   de fallback hieronder is de letterlijke waarde voor de statische
   pagina's. */

/* Het podium draagt de perspective, zodat de pagina eromheen er niets
   van hoeft te weten. */
.toestel-podium {
  perspective: 1500px;
  width: fit-content;
}

/* Titanium rand (de gradient op de border), zwarte bezel (de padding),
   zijknoppen, en een lichte draai richting de paginakop. Alles CSS,
   zodat de demo live HTML blijft. */
.toestel {
  position: relative;
  width: fit-content;
  border: 3.5px solid transparent;
  border-radius: 55px;
  padding: 10px;
  background:
    linear-gradient(#0b0908, #0b0908) padding-box,
    linear-gradient(155deg, #6b655d 0%, #38332e 24%, #221f1b 48%, #191613 64%, #453f39 86%, #635d55 100%) border-box;
  transform: rotateY(-13deg) rotateX(3deg);
  /* De eerste vier schaduwen zijn de zijkant van het toestel (de kant
     die door de draai naar voren komt), de laatste de slagschaduw. */
  box-shadow:
    1.5px 1px 0 #221f1c,
    3px 2px 0 #1e1b18,
    4.5px 2.5px 0 #1a1815,
    6px 3.5px 1px rgba(8, 6, 5, 0.9),
    30px 44px 70px -22px rgba(0, 0, 0, 0.62);
}

.toestel-zijknop {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4a443e, #23201c);
  z-index: -1;
}

.toestel-knop-actie {
  left: -6.5px;
  top: 96px;
  height: 22px;
}

.toestel-knop-volplus {
  left: -6.5px;
  top: 136px;
  height: 42px;
}

.toestel-knop-volmin {
  left: -6.5px;
  top: 186px;
  height: 42px;
}

.toestel-knop-aanuit {
  right: -6.5px;
  top: 150px;
  height: 64px;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 640px;
  border-radius: 40px;
  background: var(--ground-raised, #171412);
  overflow: hidden;
}

/* Een vleug licht over het glas, van linksboven. */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(116deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 32%, rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
  z-index: 2;
}

/* iOS-statusbalk met Dynamic Island, puur decor boven de demo. */
.phone-statusbalk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 36px;
  padding: 4px 24px 0 30px;
}

.phone-tijd {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f7f4f0;
}

.phone-eiland {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 2px));
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #000;
}

.phone-signalen {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-signalen svg {
  display: block;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 22px;
}

.phone-top-pil {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 240, 0.12);
  margin-right: -6px;
}

.phone-veld {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  padding: 20px 22px 12px;
  min-height: 0;
}

.phone-invoer {
  display: block;
  max-width: 236px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.026em;
}

.phone-caret {
  display: inline-block;
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: -4px;
  animation: caret-blink 1.1s steps(1) infinite;
}

/* Tijdens het typen knippert een caret niet; hij staat vast achter
   het laatste teken en wrapt mee met de tekst. */
.phone-caret-typend {
  animation: none;
  margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .phone-caret {
    animation: none;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.phone-placeholder {
  color: var(--text-placeholder);
  margin-left: 2px;
}

.phone-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.phone-status svg {
  flex-shrink: 0;
}

/* De wielrij (app: destination-wheel.tsx, Paper QTN-0): altijd boven de
   balk, van rand tot rand met een fade aan weerszijden. Gekozen is de
   accentrand, ongekozen de haarlijn; verder geen selectiestaat. */
.phone-wiel {
  position: relative;
  overflow: hidden;
  padding: 8px 0 6px;
}

.phone-wiel::before,
.phone-wiel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 1;
}

.phone-wiel::before {
  left: 0;
  background: linear-gradient(to right, var(--ground-raised, #171412), rgba(23, 20, 18, 0));
}

.phone-wiel::after {
  right: 0;
  background: linear-gradient(to left, var(--ground-raised, #171412), rgba(23, 20, 18, 0));
}

.phone-wielrij {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 15px;
  width: max-content;
}

.phone-wielchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 240, 0.16);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(247, 244, 240, 0.75);
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease;
}

.phone-wielchip img,
.phone-wielchip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.phone-wielchip img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.phone-wielchip-aan {
  border: 1.5px solid var(--accent);
  padding: 0 11.5px 0 9.5px;
  font-weight: 500;
  color: var(--text);
}

.phone-wielchip-aan img {
  opacity: 1;
}

.phone-wielchip-plus {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.phone-balk {
  padding: 0 15px 12px;
}

/* Eén omrande balk waar camera, mic en verstuurknop in zitten; de
   knoppen zelf hebben geen eigen rand. Tijdens het verzenden dekt één
   accentcel de hele balk (app: sending-overlay.tsx). */
.phone-balk-cel {
  position: relative;
  height: 52px;
  border: 1px solid rgba(247, 244, 240, 0.16);
  border-radius: 14px;
}

.phone-balk-inhoud {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px;
  gap: 10px;
}

.phone-verzendt {
  position: absolute;
  inset: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.008em;
}

.phone-balk-iconen {
  display: flex;
  gap: 4px;
}

.phone-balk-ruimte {
  flex: 1;
}

.phone-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.phone-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent);
  flex-shrink: 0;
}

.phone-keys {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 7px 3px 0;
  background: #1a1714;
}

.phone-keyrow {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 0 3px;
}

.phone-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 33px;
  border-radius: 4px;
  background: #35302c;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 17px;
  color: #f6f3ef;
}

.phone-key-special {
  background: #25211e;
  width: 32px;
  font-size: 13px;
}

.phone-key-wide {
  width: 34px;
  font-size: 12px;
}

.phone-key-return {
  width: 70px;
  font-size: 12px;
}

.phone-key-space {
  flex: 1;
}

.phone-home {
  display: flex;
  justify-content: center;
  padding: 10px 0 7px;
}

.phone-home::after {
  content: "";
  width: 108px;
  height: 4px;
  border-radius: 2px;
  background: #f6f3ef;
}

/* De telefoon iets compacter op smalle schermen, zodat de sectie erna
   eerder in beeld komt; de demo blijft volledig zichtbaar. */
@media (max-width: 640px) {
  .toestel {
    border-radius: 50px;
    padding: 9px;
  }

  .toestel-knop-actie {
    top: 88px;
    height: 20px;
  }

  .toestel-knop-volplus {
    top: 124px;
    height: 38px;
  }

  .toestel-knop-volmin {
    top: 170px;
    height: 38px;
  }

  .toestel-knop-aanuit {
    top: 138px;
    height: 58px;
  }

  .phone {
    width: 272px;
    height: 588px;
    border-radius: 36px;
  }

  .phone-statusbalk {
    height: 33px;
    padding: 3px 21px 0 27px;
  }

  .phone-eiland {
    width: 80px;
    height: 23px;
  }

  .phone-invoer {
    max-width: 212px;
    font-size: 21px;
  }

  /* De balkinhoud en de wielrij een maat kleiner in de smallere
     telefoon, zodat niets de balk uit schuift. */
  .phone-balk {
    padding: 0 12px 10px;
  }

  .phone-balk-cel {
    height: 46px;
  }

  .phone-balk-inhoud {
    gap: 6px;
    padding: 4px;
  }

  .phone-knop,
  .phone-send {
    width: 36px;
    height: 36px;
  }

  .phone-wielrij {
    padding-left: 12px;
  }

  .phone-wielchip {
    height: 30px;
    font-size: 12px;
  }

  .phone-key {
    width: 22px;
    height: 31px;
    font-size: 15px;
  }

  .phone-key-special {
    width: 29px;
  }

  .phone-key-wide {
    width: 30px;
  }

  .phone-key-return {
    width: 62px;
  }
}
