/* palu website. Farben wie ios/Palu/Theme.swift. Regel: Flächen 12px, Bedienelemente rund. */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #08090C;
  --dark: #0F1115;
  --graphite: #14161C;
  --slate: #1A1D24;
  --cyan: #00C8F0;
  --violet: #B090FF;
  --text: #E4E7EC;
  --muted: #A4ABB6;
  --sent: #0E3A48;
  --line: rgba(228, 231, 236, .1);
  --radius: 12px;
  --font: "DM Sans", "Thonburi", "Noto Sans Thai", "Leelawadee UI", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 17px/1.55 var(--font); overflow-wrap: break-word; display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1 0 auto; min-width: 0; width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

/* Sprachwahl: ohne JavaScript bleibt Deutsch sichtbar */
html:not([lang="de"]) [data-lang="de"], html:not([lang="en"]) [data-lang="en"], html:not([lang="th"]) [data-lang="th"], html:not([lang="fil"]) [data-lang="fil"], html:not([lang="es"]) [data-lang="es"], html:not([lang="fr"]) [data-lang="fr"], html:not([lang="ja"]) [data-lang="ja"], html:not([lang="zh-Hans"]) [data-lang="zh-Hans"] { display: none !important; }
html[lang="th"] .demo-def, html:not([lang="th"]) .demo-th { display: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 12, .88); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.switch { display: flex; padding: 3px; border-radius: 999px; background: var(--slate); }
.switch button { min-width: 40px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--void); }

/* Sprachwähler, von site.js aufgebaut */
.picker { position: relative; flex: none; }
.top nav + .picker { margin-left: 0; }
.picker-btn { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.picker-btn:hover, .picker-btn[aria-expanded="true"] { background: var(--slate); }
.picker-btn svg { flex: none; color: var(--muted); }
.picker-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.picker-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 180px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); list-style: none; }
.picker-list[hidden] { display: none; }
.picker-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--slate); color: var(--text); }
.picker-list button[aria-current="true"] { color: var(--text); font-weight: 500; }
.picker-list button[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 90% at 90% 0, rgba(176, 144, 255, .1), transparent 70%), radial-gradient(50% 80% at 40% 100%, rgba(0, 200, 240, .08), transparent 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(36px, 3.6vw, 46px); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero h1 em + em, .hero h1 .two { color: var(--violet); }
.lead { margin-top: 18px; max-width: 34em; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }

.store { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px dashed rgba(228, 231, 236, .4); border-radius: 999px; color: var(--text); font-weight: 500; cursor: not-allowed; }

/* Chat-Beispiel */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.demo figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.phone { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--dark); }
.phone + .phone { margin-top: 44px; border-color: rgba(176, 144, 255, .35); }
.phone:first-of-type { border-color: rgba(0, 200, 240, .35); }
.who { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.who span { color: var(--muted); font-weight: 400; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { display: block; width: fit-content; max-width: 92%; padding: 9px 11px; border: 0; border-radius: var(--radius); background: var(--slate); text-align: left; font-size: 16px; line-height: 1.4; }
.bubble.mine { align-self: flex-end; background: var(--sent); }
button.bubble { cursor: pointer; }
button.bubble:hover { background: #222631; }
.bubble.mine:hover { background: #124656; }
.bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.bubble .orig { display: none; }
.bubble[aria-pressed="true"] .orig { display: block; }
.bubble[aria-pressed="true"] .tr { display: none; }
.react { align-self: flex-start; margin: -12px 0 0 10px; padding: 1px 6px; border-radius: 999px; background: var(--graphite); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .phone { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
  .hero .phone + .phone { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .switch button, .bubble { transition: background-color .15s, transform .1s; }
  button.bubble:active { transform: scale(.98); }
}

/* Abschnitte */
section { padding: 56px 0; }
section > .wrap > h2 { font-size: clamp(28px, 3.4vw, 40px); }
section > .wrap > h2 + p { margin-top: 12px; max-width: 40em; color: var(--muted); }

/* Ton */
.tone { background: var(--dark); }
.tone .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 16px 56px; }
.tone h2 { font-size: clamp(28px, 3.4vw, 40px); }
.tone .text p { margin-top: 14px; color: var(--muted); }
.thanks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.thanks div { padding: 12px 14px; border-radius: var(--radius); background: var(--slate); font-size: 14px; color: var(--muted); }
.thanks b { display: block; color: var(--text); font-size: 22px; font-weight: 500; line-height: 1.5; }
.opts h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.opts h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }

/* Funktionen */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.cell { grid-column: span 2; min-width: 0; padding: 20px; border-radius: var(--radius); background: var(--graphite); }
.cell h3 { font-size: 20px; letter-spacing: -.01em; }
.cell p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.cell.wide { grid-column: span 4; }
.cell.half { grid-column: span 3; }
.cell.langs { background: linear-gradient(150deg, rgba(0, 200, 240, .13), var(--graphite) 55%); }
.cell.explain { background: linear-gradient(200deg, rgba(176, 144, 255, .16), var(--graphite) 60%); }
.big { display: block; font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--cyan); }
.names { margin-top: 14px; color: var(--text); font-size: 15px; line-height: 1.8; }
.names bdi { display: inline-block; margin-right: 12px; white-space: nowrap; }
.sample { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--slate); color: var(--muted); font-size: 14px; }
.sample b { display: block; color: var(--text); font-size: 17px; font-weight: 500; }
.emoji { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 24px; line-height: 1; }

/* Datenschutz kurz */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 24px; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts h3 { font-size: 18px; letter-spacing: 0; }
.facts p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.more { margin-top: 16px; }

/* Download */
.get { background: var(--dark); }
.get .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.get img { width: 96px; height: 96px; border-radius: 22px; }
.get .txt { flex: 1 1 320px; min-width: 0; }
.get h2 { font-size: clamp(26px, 3vw, 34px); }
.get p { margin-top: 6px; color: var(--muted); }

/* Fußzeile */
.foot { background: var(--void); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.foot a { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }

/* Textseiten */
.doc { padding: 28px 0 48px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { margin-top: 28px; font-size: 21px; letter-spacing: -.01em; }
.doc p, .doc ul { margin: 10px 0 0; color: #C9CED6; }
.doc ul { padding-left: 20px; }
.doc li { margin-top: 5px; }
.draft { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(176, 144, 255, .5); border-radius: var(--radius); background: rgba(176, 144, 255, .08); color: var(--text); font-size: 16px; }
.doc .draft { color: var(--text); }
.ph { padding: 0 5px; border-radius: 5px; background: rgba(176, 144, 255, .18); color: var(--violet); white-space: normal; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 16px; }
summary { min-height: 48px; padding: 11px 0; font-weight: 500; cursor: pointer; }
details p { margin: 0 0 14px; }

/* Tablet */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 32px; }
  .tone .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cell, .cell.half { grid-column: span 3; }
  .cell.wide { grid-column: span 6; }
}

/* Smartphone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .top .wrap { gap: 12px; justify-content: space-between; }
  .top nav { display: none; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 17px; margin-top: 12px; }
  .actions { margin-top: 20px; }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .phone + .phone { margin-top: 0; }
  section { padding: 36px 0; }
  .bento { grid-template-columns: minmax(0, 1fr); margin-top: 18px; gap: 10px; }
  .cell, .cell.half, .cell.wide { grid-column: auto; padding: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .big { font-size: 46px; }
  .foot nav { margin-left: 0; }
}

.germany { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.germany p { margin: 0; }
.germany .flag { flex: none; border-radius: 2px; }

.list { margin: 16px 0 28px; padding-left: 20px; columns: 2; column-gap: 40px; color: var(--muted); }
.list li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 720px) { .list { columns: 1; } }

/* Schriften je Schriftsystem. DM Sans bleibt vorn, damit palu und lateinische Wörter gleich aussehen.
   Für CJK und Thai genügen Systemschriften, die Seite lädt nichts von außen. */
:lang(th) { font-family: "DM Sans", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
:lang(ja) { font-family: "DM Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
:lang(zh) { font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }

html:lang(th) body { line-height: 1.7; }
html:lang(ja) body, html:lang(zh) body { line-height: 1.75; line-break: strict; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.4; letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { line-height: 1.38; letter-spacing: .01em; }
html:lang(th) .hero h1, html:lang(ja) .hero h1, html:lang(zh) .hero h1 { font-size: clamp(32px, 3.3vw, 42px); }
html:lang(th) .big, html:lang(ja) .big, html:lang(zh) .big { letter-spacing: -.03em; line-height: 1.1; }
.bubble:lang(th), .bubble :lang(th), .thanks b, .sample b { line-height: 1.6; }
html:lang(ja) .cell h3, html:lang(zh) .cell h3, html:lang(ja) .facts h3, html:lang(zh) .facts h3 { font-weight: 600; }
@supports (word-break: auto-phrase) { html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; } }
html:lang(th) .hero h1 .two { display: inline-block; }

.upbyte-logo { display: inline-block; height: 1.15em; width: auto; max-width: none; vertical-align: -0.22em; margin: 0 .1em; }
.foot .trust { flex-basis: 100%; }
