/* Dubnative site. No web fonts, third-party scripts or trackers: pages make
   no third-party requests, which is also what the privacy policy promises. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526077;
  --line: #e3e8f0;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --player: #0b0f17;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-soft: #111827;
    --surface: #131b2a;
    --text: #e8edf5;
    --muted: #9aa7bb;
    --line: #243046;
    --accent: #4c8dff;
    --accent-ink: #06101f;
    --accent-soft: #15243d;
    --player: #000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Player mockup (pure HTML/CSS) */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--player);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18); }
.player .scene { position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 20%, #2a4d8f 0%, transparent 55%), radial-gradient(90% 80% at 85% 75%, #6b3fa0 0%, transparent 60%), #0e1424; }
.player .speaker { position: absolute; left: 14%; bottom: 0; width: 30%; height: 70%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background: rgba(255,255,255,.08); }
.player .speaker::before { content: ""; position: absolute; left: 50%; top: -32%; width: 52%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(255,255,255,.1); }
.player .panel { position: absolute; top: 5%; right: 3.5%; width: 36%; padding: 2.4% 3%; border-radius: 10px; background: rgba(28,28,28,.92); color: #fff; font-size: clamp(9px, 1.2vw, 12px); }
.player .panel b { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; margin-bottom: .5em; }
.player .panel b span { background: #2e7d32; border-radius: 5px; padding: 0 .6em; font-size: .85em; }
.player .panel div { display: flex; justify-content: space-between; color: #c9c9c9; padding: .2em 0; }
.player .panel div i { font-style: normal; color: #fff; }
.player .subs { position: absolute; left: 0; right: 0; bottom: 13%; text-align: center; }
.player .subs > span { display: inline-block; max-width: 78%; padding: .35em .8em; border-radius: 6px; background: rgba(8,8,8,.78); color: #fff; }
.player .subs .tr { display: block; font-size: clamp(12px, 1.9vw, 19px); }
.player .subs .orig { display: block; font-size: clamp(9px, 1.25vw, 13px); color: #cfcfcf; }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.player .bar::before { content: ""; position: absolute; left: 3%; right: 3%; top: 30%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.player .bar::after { content: ""; position: absolute; left: 3%; width: 38%; top: 30%; height: 3px; border-radius: 2px; background: #f00; }
.wave { position: absolute; left: 4%; top: 6%; display: flex; gap: 3px; align-items: center; height: 8%; padding: 0 .7em; border-radius: 999px; background: rgba(31,111,235,.9); color: #fff; font-size: clamp(9px, 1.1vw, 12px); }
.wave i { width: 3px; border-radius: 2px; background: #fff; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 35%; } .wave i:nth-child(2) { height: 70%; animation-delay: .15s; } .wave i:nth-child(3) { height: 50%; animation-delay: .3s; } .wave i:nth-child(4) { height: 80%; animation-delay: .45s; }
.wave em { font-style: normal; margin-left: .5em; }
@keyframes wave { 50% { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 40em; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.langs span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.langs span.ai { border-color: var(--accent); }
.legend { margin-top: 16px; font-size: 14px; color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin-right: 6px; vertical-align: -1px; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 40px; font-weight: 700; margin: 8px 0 4px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 16px 0 24px; padding: 0; list-style: none; }
.plan li { padding: 8px 0 8px 28px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.plan .btn { margin-top: auto; justify-content: center; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc .updated { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; }
}

/* Language menu (no script: a <details> dropdown of plain links) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--text); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
/* Closed <details> hides only the contents; the list's border and shadow would still show. */
.lang-menu:not([open]) ul { display: none; }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-menu li a:hover { background: var(--bg-soft); }
.lang-menu li a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.top nav { align-items: center; }

/* "View this page in …" offer on the English root */
.suggest { background: var(--accent-soft); font-size: 14px; }
.suggest .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.suggest a { font-weight: 600; }
.suggest button { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }

.legal-note { margin-top: 12px; font-size: 13px; }

/* Scripts with tall glyphs need more room than Latin text. */
:lang(th) h1, :lang(hi) h1, :lang(th) h2, :lang(hi) h2 { line-height: 1.4; }
:lang(th) body, :lang(hi) body { line-height: 1.75; }
:lang(ja) h1, :lang(ko) h1 { line-height: 1.25; letter-spacing: 0; word-break: keep-all; }
