/* twoyo website → desktop app. Scope stays on welcome, onboarding and home;
   the mobile app and live calls keep their existing appearance. */
@font-face { font-family: "Twoyo Display"; src: url("/assets/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Twoyo Sans"; src: url("/assets/fonts/dm-sans-latin-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 1000; font-display: swap; }

html.desktop:has(.welcome, .onboarding, .home) {
  --bg: #f8f8f2; --surface: #fff; --surface-raised: #eeefe5; --surface-pressed: #e4e7d8;
  --text: #252620; --text-2: #62655b; --text-3: #727569; --line: rgba(37,38,32,.14);
  --cell: #fff; --danger: #ba3737; --online: #687e38; --font: "Twoyo Sans", Arial, sans-serif;
  --brand-lime: #d5fa70; --brand-olive: #7b9341; --brand-lilac: #e9e5f2;
  --signature: #d5fa70;
  --rounded: "Twoyo Sans", Arial, sans-serif; color-scheme: light;
}
html.desktop :is(.welcome, .onboarding, .home) { color: var(--text); }
html.desktop .brand-wordmark { display: inline-flex; align-items: center; gap: 7px; font: 800 34px/1 "Twoyo Display", Arial, sans-serif; letter-spacing: -2px; }
html.desktop .brand-period { color: var(--brand-olive); }
html.desktop .brand-mark { display: inline-block; position: relative; flex: none; width: 38px; height: 34px; transform: rotate(-7deg); }
html.desktop .brand-mark i { position: absolute; width: 20px; height: 29px; background: currentColor; border-radius: 12px; top: 2px; left: 0; }
html.desktop .brand-mark i:last-child { left: 15px; top: 5px; }
html.desktop .brand-mark i::after { content: ""; width: 3px; height: 3px; border-radius: 50%; position: absolute; top: 9px; right: 6px; background: var(--brand-eye, #f8f8f2); }
html.desktop :is(.welcome-text h1, .onboarding-story h2, .step-head h1, .home-intro h1) { font-family: "Twoyo Display", Arial, sans-serif; font-weight: 750; }
html.desktop .brand-highlight { position: relative; z-index: 0; white-space: nowrap; }
html.desktop .brand-highlight::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .13em; background: var(--brand-lime); border-radius: 40%; transform: rotate(-1.5deg); z-index: -1; }
html.desktop :is(.welcome, .onboarding, .home) .btn { border-radius: 999px; font-size: 15px; }
html.desktop :is(.welcome, .onboarding, .home) .btn-primary { background: #252620; color: #f8f8f2; }
html.desktop :is(.welcome, .onboarding, .home) .btn-primary:not(:disabled):is(:hover, :active) { background: #404337; box-shadow: none; }
html.desktop :is(.welcome, .onboarding, .home) .btn-secondary { background: transparent; color: var(--text); border: 1px solid rgba(37,38,32,.24); }
html.desktop :is(.welcome, .onboarding, .home) .btn-secondary:not(:disabled):hover { background: var(--surface-raised); }
html.desktop :is(.welcome, .onboarding, .home) .btn:disabled { opacity: 1; background: #e7e9df; color: #777a6f; box-shadow: none; }
html.desktop :is(.welcome, .onboarding, .home) .spinner { border-color: #ffffff50; border-top-color: #fff; }

/* Welcome: same editorial voice and compact call preview as the website. */
html.desktop .screen.welcome { max-width: 1320px; column-gap: clamp(40px, 6vw, 88px); grid-template-columns: 1.05fr 1fr; }
html.desktop .welcome-top { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
html.desktop .welcome-top-note a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); border-radius: 40px; padding: 10px 18px; color: var(--text); }
html.desktop .welcome-text h1 { font-size: clamp(44px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -2.8px; }
html.desktop .welcome-eyebrow { font-size: 10px; letter-spacing: 1.3px; font-weight: 700; color: var(--text-2); }
html.desktop .welcome-visual { position: relative; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 50px #2526200c; max-width: 500px; }
html.desktop .welcome-visual-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; padding: 2px 0 18px; }
html.desktop .welcome-visual-head > :last-child { color: var(--text-2); font-weight: 400; }
html.desktop .welcome .face-grid { gap: 6px; background: #fff; border-radius: 18px; }
html.desktop .welcome-person { border-radius: 12px; }
html.desktop .welcome-person .tile-label { color: #fff; }
html.desktop .welcome .face-logo { width: 62px; height: 62px; background: var(--brand-lime); color: var(--text); border: 5px solid #fff; --brand-eye: var(--brand-lime); }
html.desktop .welcome .face-logo .brand-mark { transform: scale(.8) rotate(-7deg); }
html.desktop .duo-sticker { position: absolute; right: -20px; bottom: 44px; padding: 9px 15px; border: 2px solid var(--text); border-radius: 50%; background: var(--brand-lime); box-shadow: 0 3px 0 var(--text); font: 800 34px/1.2 "Twoyo Display", sans-serif; transform: rotate(12deg); }
html.desktop .welcome-photo-note { font-size: 10px; }
html.desktop .welcome-how { flex-direction: row; gap: 20px; margin: 26px 0; }
html.desktop .welcome-how li { flex: 1; align-items: flex-start; flex-direction: column; gap: 8px; }
html.desktop .welcome-step-number { width: 26px; height: 26px; background: #e9ecdd; color: var(--text); font-size: 11px; }
html.desktop .welcome-how .headline { font-size: 13px; }
html.desktop .welcome-how .caption { font-size: 12px; line-height: 1.45; }

/* Registration: recognisable app icon, quiet forms and soft green selection. */
html.desktop .onboarding-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
html.desktop .onboarding-phases .current .onboarding-phase-number { background: var(--brand-lime); color: var(--text); border-color: transparent; }
html.desktop .onboarding-phases .done .onboarding-phase-number { background: #e9ecdd; color: #465c23; }
html.desktop .onboarding-portraits { background: #fff; padding: 8px; gap: 6px; border: 1px solid var(--line); box-shadow: 0 16px 40px #25262009; }
html.desktop .onboarding-portraits > div { border-radius: 12px; }
html.desktop .onboarding-chat-mark { width: 60px; height: 60px; background: var(--brand-lime); border: 5px solid #fff; --brand-eye: var(--brand-lime); }
html.desktop .onboarding-chat-mark .brand-mark { transform: scale(.8) rotate(-7deg); }
html.desktop .onboarding-story h2 { font-size: 42px; line-height: 1.08; letter-spacing: -1.4px; }
html.desktop .onboarding-story > .sub { line-height: 1.65; }
html.desktop .onboarding-image-note { font-size: 11px; }
html.desktop .onboarding-app-icon { display: grid; place-items: center; width: 62px; height: 62px; background: var(--brand-lime); border-radius: 19px; --brand-eye: var(--brand-lime); margin-bottom: 8px; box-shadow: inset 0 0 0 1px #2526200a; }
html.desktop .step-head h1 { letter-spacing: -1.1px; font-size: 36px; }
html.desktop .step-head .sub { font-size: 15px; }
html.desktop .step-head { gap: 10px; padding-bottom: 24px; }
html.desktop .step .nav { margin-bottom: 24px; }
html.desktop .step :is(.big-field, .name-field, .date-trigger) { border-color: #d4d8ca; background: #fff; }
html.desktop .date-trigger:is(:hover, [aria-expanded="true"]) { border-color: #626f48; background: #fff; }
html.desktop .date-menu { background: #fff; border-color: #d4d8ca; box-shadow: 0 12px 40px #25262024; }
html.desktop .date-menu [role="option"]:is(:hover, :focus-visible, [aria-selected="true"]) { background: #eef4de; }
html.desktop .date-menu [role="option"]:focus-visible { box-shadow: inset 0 0 0 1px #687e38; }
html.desktop .gender-options .choice:hover { background: #f4f5ee; }
html.desktop .gender-options .choice.on { background: #eef4de; border-color: #82945c; }
html.desktop .gender-options .choice.on .choice-icon { background: var(--brand-lime); color: var(--text); }
html.desktop .gender-options .choice.on > .i:last-child { color: #526b29; }
html.desktop .gender-options .choice-icon { background: var(--brand-lilac); color: var(--text); }
html.desktop .step .perm-icon, html.desktop .step .rule-icon { background: var(--brand-lilac); color: var(--text); }
html.desktop .step .perm-row:nth-child(2) .perm-icon, html.desktop .step .rule:nth-child(2) .rule-icon { background: #e9ecdd; }
html.desktop .step .rule:nth-child(3) .rule-icon { background: #f5e8db; }
html.desktop .step .checkbox.on { background: var(--brand-lime); border-color: #718742; color: var(--text); }
html.desktop .step .code-boxes:focus-within .box.current { border-color: var(--text); }
html.desktop .step .code-boxes:focus-within .box.current::after { background: var(--text); }
html.desktop .photo-pick-big { background: #e9ecdd; color: #465c23; outline-color: #82945c; }
html.desktop .onboarding .photo-badge { background: var(--brand-lime); color: var(--text); box-shadow: 0 0 0 3px var(--bg); }

/* Home: video stays readable; surrounding UI belongs to the website. */
html.desktop .home { gap: 20px; }
html.desktop .home .home-header { height: 56px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
html.desktop .home-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex: none; padding-top: 8px; }
html.desktop .home-intro .welcome-eyebrow { margin: 0 0 8px; }
html.desktop .home-intro h1 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -1px; }
html.desktop .home:not(.solo-home) .home-intro .welcome-eyebrow { margin-bottom: 5px; font-size: 9px; }
html.desktop .home:not(.solo-home) .home-intro h1 { font-size: 25px; letter-spacing: -.6px; }
html.desktop .home-mode { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
html.desktop .home-mode .brand-mark { transform: scale(.55) rotate(-7deg); width: 26px; }
html.desktop .home > .hero { padding: 8px; gap: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px #25262009; }
html.desktop .home .hero > .tile { border-radius: 20px; color: #fff; --text: #fff; --text-2: #ffffffb3; }
html.desktop .home .tile:has(.sim-initial) { background: var(--brand-lilac); }
html.desktop .home .tile:has(.sim-initial) .vignette { display: none; }
html.desktop .home .sim-initial { color: #666174; }
html.desktop .home .hero::after { display: none; }
html.desktop .home .hero .partner-slot { --text: #252620; --text-2: #62655b; color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px #25262014; }
html.desktop .home .partner-slot .slot-faces .avatar { box-shadow: 0 0 0 2px #fff; }
html.desktop .home .partner-slot .slot-backdrop { display: none; }
html.desktop .home .partner-slot .slot-title { font-family: "Twoyo Display", sans-serif; font-size: 24px; text-shadow: none; }
html.desktop .home .partner-slot .slot-sub { color: #62655b; font-size: 14px; }
html.desktop .home .partner-slot .glass-circle { background: var(--brand-lime); box-shadow: none; }
html.desktop .home .live-pill { border: 1px solid var(--line); box-shadow: none; color: var(--text); }
html.desktop .home .live-pill .online-label { color: var(--text-2); }
html.desktop .home .pill-divider { background: var(--line); }
html.desktop .home .pick-link .pick-circle { background: var(--brand-lilac); }
html.desktop .home .pick-link:hover { background: #f4f5ed; }
html.desktop:has(.home) .desk-layout-switch { color: var(--text); background: #fff; border: 1px solid var(--line); }
/* Existing glass tabs remain dark, with readable labels in the light home. */
html.desktop:has(.home) .tab-bar { --text: #fff; --text-2: #ffffffb3; color: #fff; }
html.desktop:has(.welcome, .onboarding, .home) :is(.sheet, .dialog, .action-sheet) .btn-primary { background: #252620; color: #f8f8f2; }
html.desktop:has(.welcome, .onboarding, .home) .sheet { background: var(--bg); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 80px #25262030; }
html.desktop:has(.welcome, .onboarding, .home) .action-group { background: var(--surface); }
html.desktop:has(.welcome, .onboarding, .home) :is(.radio.on, .reason-icon.on) { color: #526b29; }
html.desktop:has(.welcome, .onboarding, .home) .nav-text { color: var(--text); }
html.desktop:has(.welcome, .onboarding, .home) :is(.composition.on, .chip.on) { background: var(--brand-lime); color: var(--text); }
html.desktop:has(.home) .filter-dot { background: #526b29; }
html.desktop:has(.welcome, .onboarding, .home) :is(.sheet, .dialog, .action-sheet) .btn-secondary { background: var(--surface-raised); color: var(--text); }
html.desktop:has(.welcome, .onboarding, .home) .dialog { background: var(--surface); }
html.desktop:has(.welcome, .onboarding, .home) .dialog-message { color: var(--text-2); }
html.desktop:has(.welcome, .onboarding, .home) .dialog-actions button { background: var(--surface-raised); }
html.desktop:has(.welcome, .onboarding, .home) .dialog-actions button.bold { background: #252620; color: #fff; }

@media (max-height: 760px) {
  html.desktop .welcome-text h1 { font-size: 46px; }
  html.desktop .welcome-visual { max-width: 400px; padding: 14px; }
  html.desktop .onboarding-app-icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 0; }
  html.desktop .onboarding-app-icon .brand-mark { transform: scale(.8) rotate(-7deg); }
  html.desktop .onboarding-story h2 { font-size: 34px; }
  html.desktop .home { gap: 14px; }
  html.desktop .home-intro h1 { font-size: 28px; }
  html.desktop .home:not(.solo-home) .home-intro h1 { font-size: 23px; }
}
@media (max-width: 1050px) {
  html.desktop .screen.welcome { column-gap: 36px; padding-inline: 32px; }
  html.desktop .welcome-text h1 { font-size: 46px; }
  html.desktop .welcome-how { gap: 12px; }
  html.desktop .welcome-how .caption { display: none; }
  html.desktop .duo-sticker { right: -12px; font-size: 28px; }
  html.desktop .home-mode { display: none; }
}

/* Originale Einstiegsillustration von Buraks twoyo-Website. Alle Namen sind
   gekapselt, damit die dekorativen Call-Elemente keine echten Video-UI ändern. */
html.desktop .welcome .brand-call-visual, html.desktop .onboarding-call-visual {
  position: relative; width: 100%; max-width: 510px; min-width: 0;
  padding: 50px 20px 18px 28px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
html.desktop .onboarding-call-visual { margin-bottom: 24px; }
:is(html.desktop, .welcome-solo) .call-art-window { position: relative; z-index: 2; padding: 13px; border: 1px solid #e8e8e2; border-radius: 25px; background: #fff; transform: rotate(3deg); box-shadow: 0 25px 65px #27272017, 0 4px 12px #27272008; }
:is(html.desktop, .welcome-solo) .call-art-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1px 6px 13px; }
:is(html.desktop, .welcome-solo) .call-art-wordmark { font: 800 23px/1.3 "Twoyo Display", Arial, sans-serif; letter-spacing: -1.2px; }
:is(html.desktop, .welcome-solo) .call-art-mode { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #62645b; }
:is(html.desktop, .welcome-solo) .call-art-mode i { width: 5px; height: 5px; border-radius: 50%; background: #88a55c; }
:is(html.desktop, .welcome-solo) .call-art-dots { letter-spacing: 2px; font-size: 14px; }
:is(html.desktop, .welcome-solo) .call-art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
:is(html.desktop, .welcome-solo) .call-art-person { position: relative; aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: #cdc6b7 url("/assets/welcome/call-portraits.png") 0 0 / 200% auto no-repeat; }
:is(html.desktop, .welcome-solo) .call-art-person.person-1 { background-position: 100% 0; }
:is(html.desktop, .welcome-solo) .call-art-person.person-2 { background-position: 0 80%; }
:is(html.desktop, .welcome-solo) .call-art-person.person-3 { background-position: 100% 80%; }
:is(html.desktop, .welcome-solo) .call-art-person-label { position: absolute; bottom: 9px; left: 9px; right: 9px; display: flex; justify-content: space-between; align-items: center; gap: 4px; color: #fff; font-size: 9px; }
:is(html.desktop, .welcome-solo) .call-art-person-label > span { padding: 3px 8px; border-radius: 20px; background: #22251f8c; backdrop-filter: blur(5px); }
:is(html.desktop, .welcome-solo) .call-art-person-label .i { width: 20px; height: 20px; padding: 4px; background: #22251f75; border-radius: 50%; }
:is(html.desktop, .welcome-solo) .call-art-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 13px 5px 1px; }
:is(html.desktop, .welcome-solo) .call-art-bottom > span { font-size: 9px; color: #77796e; }
:is(html.desktop, .welcome-solo) .call-art-controls { display: flex; gap: 6px; }
:is(html.desktop, .welcome-solo) .call-art-controls > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f2ed; }
:is(html.desktop, .welcome-solo) .call-art-controls .i { width: 13px; height: 13px; }
:is(html.desktop, .welcome-solo) .call-art-controls .call-art-end { background: #ffddd3; color: #bd6656; }
:is(html.desktop, .welcome-solo) .call-art-note { position: absolute; z-index: 3; top: -7px; right: 63px; font: italic 18px/1.3 Georgia, serif; transform: rotate(-6deg); }
:is(html.desktop, .welcome-solo) .call-art-note span { font-size: 15px; color: #77756c; }
:is(html.desktop, .welcome-solo) .call-art-note svg { position: absolute; right: -57px; top: 12px; height: 65px; width: 70px; fill: none; stroke: var(--text); stroke-width: 1.3; }
:is(html.desktop, .welcome-solo) .call-art-star { position: absolute; width: 43px; height: 43px; top: 24px; left: 28px; transform: rotate(17deg); fill: none; stroke: var(--text); stroke-width: 2.4; }
:is(html.desktop, .welcome-solo) .call-art-greeting { position: absolute; left: -9px; bottom: 61px; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 14px 19px; background: #fff; border: 1px solid #e3e4d9; border-radius: 16px; box-shadow: 0 9px 28px #292a2220; transform: rotate(-5deg); font-weight: 650; font-size: 13px; line-height: 1.5; }
:is(html.desktop, .welcome-solo) .call-art-greeting .wave { font-size: 26px; }
:is(html.desktop, .welcome-solo) .call-art-greeting small { display: block; font-weight: 400; font-size: 9px; color: #858579; }
:is(html.desktop, .welcome-solo) .call-art-sticker { position: absolute; right: 0; bottom: 102px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 2px; width: 97px; height: 78px; background: var(--brand-lime); color: var(--text); border: 2px solid var(--text); border-radius: 50%; transform: rotate(12deg); box-shadow: 3px 4px 0 var(--text); font: 800 38px/1 "Twoyo Display", Arial, sans-serif; }
:is(html.desktop, .welcome-solo) .call-art-sticker > span { font-size: 23px; }
:is(html.desktop, .welcome-solo) .call-art-sticker svg { position: absolute; right: -15px; top: -17px; width: 31px; height: 31px; fill: var(--brand-lime); stroke: var(--text); stroke-width: 1.5; }
:is(html.desktop, .welcome-solo) .call-art-caption { text-align: center; font-size: 8px; color: #696c60; margin: 23px 0 0; }
/* Text und Anmeldung bilden eine kompakte Einheit neben der Illustration. */
html.desktop .screen.welcome { grid-template-areas: "top top" "copy faces"; grid-template-rows: auto minmax(min-content, 1fr); row-gap: 40px; align-content: start; }
html.desktop .welcome-copy { grid-area: copy; display: block; align-self: center; width: 100%; min-width: 0; padding: 12px 0; }
html.desktop .welcome-copy .welcome-text { margin: 0; }
html.desktop .welcome-copy .welcome-text .sub { max-width: 370px; font-size: 17px; line-height: 1.5; }
html.desktop .welcome-copy .welcome-actions { margin-top: 28px; gap: 10px; max-width: 380px; }
html.desktop .welcome-copy .welcome-actions .btn-primary { font-size: 17px; justify-content: space-between; padding: 0 24px; }
html.desktop .welcome-copy .welcome-auth-note { margin-top: 2px; }
html.desktop .welcome-copy .legal { max-width: 390px; margin-top: 20px; font-size: 12px; line-height: 1.6; }
html.desktop .welcome-copy .welcome-test-link { min-height: 32px; }
@media (max-height: 760px) {
  html.desktop .screen.welcome { row-gap: 24px; }
  html.desktop .welcome-copy .welcome-actions { margin-top: 22px; }
  html.desktop .welcome-copy .welcome-text .sub { font-size: 15px; }
}
@media (max-width: 1050px) {
  html.desktop .call-art-greeting { left: 0; padding: 11px 14px; font-size: 12px; }
  html.desktop .call-art-sticker { width: 78px; height: 64px; font-size: 31px; }
  html.desktop .call-art-person-label { left: 6px; right: 6px; font-size: 8px; }
  html.desktop .call-art-person-label > span { padding: 3px 6px; }
}
@media (max-height: 760px) {
  html.desktop .onboarding-call-visual { max-width: 340px; padding: 42px 12px 12px 18px; margin-bottom: 18px; }
  html.desktop .onboarding-call-visual .call-art-window { padding: 10px; }
  html.desktop .onboarding-call-visual .call-art-note { font-size: 15px; right: 54px; }
  html.desktop .onboarding-call-visual .call-art-note span { font-size: 13px; }
  html.desktop .onboarding-call-visual .call-art-star { width: 32px; height: 32px; top: 17px; left: 17px; }
  html.desktop .onboarding-call-visual .call-art-greeting { left: 0; bottom: 55px; padding: 9px 12px; font-size: 11px; gap: 7px; }
  html.desktop .onboarding-call-visual .call-art-greeting .wave { font-size: 22px; }
  html.desktop .onboarding-call-visual .call-art-sticker { width: 72px; height: 59px; font-size: 29px; bottom: 92px; }
  html.desktop .onboarding-call-visual .call-art-person-label { left: 6px; right: 6px; font-size: 8px; }
  html.desktop .onboarding-call-visual .call-art-person-label > span { padding: 3px 5px; }
}
