/* YOURIO landing page. Palette = the apps' (lib/ui/theme.dart): ink green + mint, mint only for
   what is "live". Light and dark follow the system. */
:root {
  --ink: #173d35;
  --deep: #10231d;
  --mint: #ddeeaf;
  --mint-2: #c8e28a;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #eef1e7;
  --text: #10231d;
  --muted: #56665f;
  --line: rgba(16, 35, 29, 0.1);
  --line-strong: rgba(16, 35, 29, 0.18);
  --device: #2f7d4f;
  --device-bg: rgba(47, 125, 79, 0.1);
  --cloud: #3a64b5;
  --cloud-bg: rgba(58, 100, 181, 0.1);
  --shadow: 0 1px 2px rgba(16, 35, 29, 0.05), 0 12px 40px -12px rgba(16, 35, 29, 0.18);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1512;
    --surface: #13211c;
    --surface-2: #182a24;
    --text: #eef3e6;
    --muted: #9fb0a6;
    --line: rgba(238, 243, 230, 0.1);
    --line-strong: rgba(238, 243, 230, 0.2);
    --device: #8fd4a4;
    --device-bg: rgba(143, 212, 164, 0.12);
    --cloud: #9dbaf5;
    --cloud-bg: rgba(157, 186, 245, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1512; --surface: #13211c; --surface-2: #182a24; --text: #eef3e6; --muted: #9fb0a6;
  --line: rgba(238, 243, 230, 0.1); --line-strong: rgba(238, 243, 230, 0.2);
  --device: #8fd4a4; --device-bg: rgba(143, 212, 164, 0.12); --cloud: #9dbaf5; --cloud-bg: rgba(157, 186, 245, 0.12);
}
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
:lang(zh-Hant) body, :lang(zh-Hans) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
:lang(zh-Hant) h1, :lang(zh-Hans) h1, :lang(ja) h1, :lang(ko) h1,
:lang(zh-Hant) .h2, :lang(zh-Hans) .h2, :lang(ja) .h2, :lang(ko) .h2 { letter-spacing: 0; }
p { margin: 0; }
.sprite { position: absolute; }
.notfound { padding: 18vh 0; text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound p:last-child { margin-top: 28px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-in { width: min(1160px, 100% - 32px); margin-inline: auto; height: 58px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); background: var(--surface-2); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 168px;
}
.lang-menu a { text-decoration: none; padding: 8px 12px; border-radius: 9px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { font-weight: 600; color: var(--ink); background: var(--mint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, background .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(23, 61, 53, .6); }
.btn:active { transform: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--mint); color: var(--ink); } }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { background: transparent; color: var(--text); } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 36px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 78% 38%, color-mix(in srgb, var(--mint) 65%, transparent), transparent 70%),
              radial-gradient(30% 40% at 12% 10%, color-mix(in srgb, var(--mint) 30%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow, .kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--device); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.02; font-weight: 750; }
:lang(zh-Hant) .hero h1, :lang(zh-Hans) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { line-height: 1.15; font-size: clamp(40px, 6.4vw, 78px); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.tagline { padding-inline: 16px; text-align: center; margin-top: clamp(56px, 8vw, 96px); font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.01em; }

.store { position: relative; display: inline-block; border-radius: 10px; }
.store img { height: 46px; width: auto; }
.store.soon img { filter: grayscale(0.2); opacity: 0.55; }
.soon-pill {
  display: inline-block; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; margin-top: 10px;
}
.stores .soon-pill { display: none; }
.store.soon { display: inline-flex; flex-direction: column; align-items: flex-start; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::before {
    background: radial-gradient(40% 50% at 78% 38%, rgba(221, 238, 175, .14), transparent 70%),
                radial-gradient(30% 40% at 12% 10%, rgba(221, 238, 175, .06), transparent 70%);
  }
}
/* phone demo */
.hero-demo { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  width: 290px; height: 590px; border-radius: 48px; background: #0d0f0e; padding: 12px; position: relative;
  box-shadow: 0 0 0 2px #2a2d2c inset, 0 40px 80px -30px rgba(16, 35, 29, .55), 0 10px 30px -10px rgba(0, 0, 0, .3);
}
.phone-notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #0d0f0e; z-index: 2; }
.phone-screen { height: 100%; border-radius: 37px; background: #f2f3ef; overflow: hidden; display: flex; flex-direction: column; color: #10231d; }
.chat-head { padding: 56px 18px 12px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(0, 0, 0, .06); background: #fbfbf9; }
.chat-head .dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ddeeaf, #9cc27a); }
.chat { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; font-size: 14px; line-height: 1.45; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; }
.bubble.in { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: #173d35; color: #fff; border-bottom-right-radius: 6px; min-height: 40px; transition: background .4s; }
.bubble.out .raw-word { opacity: .55; }
.bubble.out.clean { background: #173d35; }
.bubble.out.magicking { background: linear-gradient(100deg, #173d35 30%, #3f7a5b 50%, #173d35 70%); background-size: 250% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.caret { display: inline-block; width: 2px; height: 1em; background: #ddeeaf; margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kbd { background: #e3e6df; padding: 12px 14px 26px; }
.kbd-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.kbd-chip { display: inline-flex; gap: 5px; align-items: center; background: #fff; border-radius: 999px; padding: 5px 10px; font-weight: 600; transition: background .3s, color .3s; }
.kbd-chip.on { background: #173d35; color: #ddeeaf; }
.kbd-status { color: #56665f; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 70px; }
.wave i { display: block; width: 6px; height: 12px; border-radius: 6px; background: #173d35; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .9s; }
.wave i:nth-child(3n) { animation-duration: 1.3s; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.5s; } .wave i:nth-child(4) { animation-delay: -.1s; }
.wave i:nth-child(5) { animation-delay: -.7s; } .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(7) { animation-delay: -.9s; }
.wave i:nth-child(8) { animation-delay: -.4s; } .wave i:nth-child(9) { animation-delay: -.6s; } .wave i:nth-child(10) { animation-delay: -.25s; }
.wave i:nth-child(11) { animation-delay: -.8s; } .wave i:nth-child(12) { animation-delay: -.15s; } .wave i:nth-child(13) { animation-delay: -.55s; }
.wave.idle i { animation-play-state: paused; height: 6px; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 46px; } }
.float-card {
  position: absolute; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.5;
}
.float-card small { display: flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.float-card.said { left: -12px; top: 60px; rotate: -3deg; }
.float-card.said p { color: var(--muted); }
.float-card.wrote { right: -16px; bottom: 70px; rotate: 2deg; }
.float-card.wrote small { color: var(--device); }

/* ---------- sections ---------- */
.band { padding: clamp(80px, 11vw, 140px) 0; }
.band.dark { background: var(--deep); color: #eef3e6; --muted: #a9bbb1; --line: rgba(238, 243, 230, .12); --surface: #152a23; --surface-2: #1b332b; }
.band.dark .kicker { color: var(--mint); }
.band.tint { background: var(--surface-2); }
.h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; font-weight: 720; }
:lang(zh-Hant) .h2, :lang(zh-Hans) .h2, :lang(ja) .h2, :lang(ko) .h2 { line-height: 1.25; font-size: clamp(30px, 4.4vw, 54px); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.badge-device { background: var(--device-bg); color: var(--device); }
.band.dark .badge-device { background: rgba(221, 238, 175, .12); color: var(--mint); }

.pillars { padding: 40px 0 clamp(80px, 10vw, 120px); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.pillar {
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 34px; transition: transform .25s ease, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-size: 30px; margin: 22px 0 8px; }
.pillar p { color: var(--muted); }
.pill-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--mint); font-size: 22px; flex: none; }

.cards { display: grid; gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card.feature { padding: 34px; display: flex; flex-direction: column; }
.card.feature h3 { font-size: 26px; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.tag-device { background: var(--device-bg); color: var(--device); }
.tag-cloud { background: var(--cloud-bg); color: var(--cloud); }

.translate-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-bottom: 40px; }
.td-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.td-side small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.td-side.out { background: var(--mint); color: var(--ink); border-color: transparent; }
.td-side.out small { color: var(--ink); opacity: .65; }
.wave.mini { height: 44px; gap: 4px; }
.wave.mini i { width: 4px; background: var(--mint); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.split .sec-head { margin-bottom: 0; }
.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.tl-day { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.tl-day:not(:first-child) { margin-top: 22px; }
.tl-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.tl-item time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; padding-top: 2px; }
.tl-item.hl p { background: var(--mint); color: var(--ink); border-radius: 10px; padding: 2px 8px; margin: -2px -8px; }

.ba, .edit-demo, .ask-demo, .style-demo { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; font-size: 15px; }
.ba p, .edit-demo p, .ask-demo p, .style-demo p { border-radius: 14px; padding: 12px 16px; }
.ba .before { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.ba .after, .edit-demo .after { background: var(--ink); color: #fff; }
.edit-demo .sel { background: color-mix(in srgb, var(--cloud) 22%, transparent); }
.edit-demo .cmd { display: flex; gap: 8px; align-items: center; color: var(--cloud); background: var(--cloud-bg); font-weight: 600; justify-self: start; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.ask-demo .q { justify-self: end; background: var(--ink); color: #fff; max-width: 90%; }
.ask-demo .a { background: var(--surface-2); max-width: 94%; }
.style-demo small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.style-demo p { background: var(--surface-2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }

.byok { margin-top: 18px; display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.byok h3 { font-size: 22px; margin-bottom: 8px; }
.byok p { color: var(--muted); }
.prov-block { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.prov-block h3 { font-size: 22px; }
.prov-sub { color: var(--muted); margin-top: 6px; }
.prov-group { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.prov { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; background: var(--bg); }
.prov b { font-size: 17px; }
.prov span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.bridge-demo { margin-top: auto; padding-top: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.bridge-demo .dev { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); font-size: 28px; color: var(--mint); }
.bridge-demo .dev.laptop { width: 96px; display: flex; gap: 10px; justify-content: center; font-size: 22px; }
.beam { display: flex; gap: 8px; }
.beam i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: beam 1.4s ease-in-out infinite; }
.beam i:nth-child(2) { animation-delay: .2s; } .beam i:nth-child(3) { animation-delay: .4s; }
@keyframes beam { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.band.dark .card .fine { text-align: center; }

/* ---------- matrix ---------- */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.matrix th, .matrix td { padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix tr:last-child td, .matrix tr:last-child th { border-bottom: 0; }
.matrix thead tr { background: var(--surface-2); }
.matrix thead th { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; background: var(--surface-2); }
.matrix tbody th { text-align: left; font-weight: 600; padding-left: 22px; }
.matrix thead th:first-child { text-align: left; padding-left: 22px; }
.matrix tbody th, .matrix thead th:first-child { position: sticky; left: 0; background: inherit; z-index: 1; }
.matrix tbody tr { background: var(--surface); }
.matrix tbody tr:hover { background: var(--surface-2); }
.matrix .ic { width: 22px; height: 22px; }
.ic.ok { color: var(--device); }
.ic.via { color: var(--muted); }
.ic.no { color: var(--line-strong); }
.where { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.where.device { background: var(--device-bg); color: var(--device); }
.where.cloud { background: var(--cloud-bg); color: var(--cloud); }
.where.e2e { background: var(--device-bg); color: var(--device); }
.where .ic { width: 15px; height: 15px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 70em; }
.note.center { margin-inline: auto; margin-top: 28px; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl h3 { font-size: 26px; }
.dl .req { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.dl .meta { font-size: 13px; color: var(--muted); }
.dl .fine { margin-top: auto; padding-top: 8px; }
.dl .store img { height: 44px; }

/* ---------- faq ---------- */
#faq .h2 { margin-bottom: 40px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--muted); transition: rotate .2s; }
.qa[open] summary::after { rotate: 45deg; }
.qa p { padding: 0 0 24px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; text-align: center; }
.foot-tag { font-size: 22px; font-weight: 650; }
.foot-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 6px; font-size: 14px; }
.foot-lang a { color: var(--muted); text-decoration: none; }
.foot-lang a:hover, .foot-lang a[aria-current] { color: var(--text); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave i, .beam i, .caret, .bubble.out.magicking { animation: none; }
  .wave i { height: 24px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards.four, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .cta, .stores { justify-content: center; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .pillar-grid, .cards.two { grid-template-columns: 1fr; }
  .translate-demo { grid-template-columns: 1fr; }
  .td-arrow { justify-self: center; rotate: 90deg; }
  .float-card { display: none; }
  .hero-demo { min-height: 0; }
  .phone { width: 260px; height: 520px; }
  .byok { flex-direction: column; }
}
@media (max-width: 560px) {
  .cards.four, .dl-grid { grid-template-columns: 1fr; }
  .card.feature { padding: 26px; }
  .cta .btn { width: 100%; }
  .lang summary span { display: none; }
}
