/* Backseat site - static, no external fonts or CDNs. Colours match the app. */
:root {
  --bg: #1B1B1F;
  --panel: #2A2A30;
  --panel-2: #3A3A42;
  --text: #E6E6E6;
  --muted: #94949F; /* 4.75:1 on --panel, 5.72:1 on --bg (small text needs 4.5:1) */
  --accent: #E5484D;
  --accent-hover: #EE5A5F;
  --focus: #8AB4FF;
  --ok: #3DD68C;
  --warn: #F5B13D;
  --line: #3A3A42;
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ko"] body { word-break: keep-all; line-break: strict; }

img, video, svg { max-width: 100%; display: block; }

a { color: var(--focus); text-underline-offset: 3px; }
a:hover { color: #B4CDFF; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--panel); color: var(--text);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(27, 27, 31, 0.94); backdrop-filter: blur(8px); }
section, .hero { scroll-margin-top: 76px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang-switch {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  border: 1px solid var(--panel-2); border-radius: 999px; padding: 6px 14px; background: var(--panel);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--muted); color: var(--text); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 24px; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 10px 40px rgba(229, 72, 77, 0.25); }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.hero h1 small { display: block; margin-top: 6px; font-size: 0.4em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tagline { margin: 18px auto 0; max-width: 34em; font-size: clamp(1.15rem, 3.2vw, 1.5rem); line-height: 1.4; font-weight: 600; }
.subline { margin: 14px auto 0; max-width: 40em; color: var(--muted); font-size: 1.05rem; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 26px; border-radius: 12px;
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.25; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--panel-2); font-weight: 600; font-size: 1.1rem; }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }
.hint { margin: 14px auto 0; max-width: 40em; color: var(--muted); font-size: 0.9rem; }

/* ---------- Video frames ---------- */
.frame {
  position: relative; margin: 0; width: 100%;
  aspect-ratio: 16 / 9; /* all site videos are 16:9; a wider box cropped their captions */
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.frame video { width: 100%; height: 100%; object-fit: cover; background: #111114; }
.hero-video { max-width: 960px; margin: 40px auto 0; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }

/* ---------- Sections ---------- */
section { padding: 64px 0 8px; }
h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; }
.lead { margin: 0 0 32px; color: var(--muted); max-width: 44em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.step .frame { border-radius: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; flex: none;
}
.step h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.step p { margin: 0; color: #CFCFD6; font-size: 0.97rem; }
.step p.small, .small { color: var(--muted); font-size: 0.88rem; }
kbd {
  font-family: inherit; font-size: 0.85em; background: var(--panel-2); border: 1px solid #4A4A54; border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}

/* Safe by default */
.safe { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.safe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.safe li {
  position: relative; padding: 14px 16px 14px 48px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.safe li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.6 14.4L4.4 10.4l1.4-1.4 2.6 2.6 5.8-5.8 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.6 14.4L4.4 10.4l1.4-1.4 2.6 2.6 5.8-5.8 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.safe li strong { display: block; }
.safe li span { color: #CFCFD6; font-size: 0.95rem; }

/* Intro videos */
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.intro-item h3 { margin: 0 0 10px; font-size: 1.1rem; }
.intro-item .frame video { object-fit: contain; }

/* Works with */
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--panel); border: 1px solid var(--panel-2); border-radius: 999px; padding: 8px 18px; font-weight: 600; }

.note-box { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 16px; color: #CFCFD6; font-size: 0.95rem; max-width: 52em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer p { margin: 0 0 12px; max-width: 52em; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.site-footer .honest { color: var(--text); }

/* ---------- Copy-first hero, page nav, video controls, install, FAQ (Korean page; additive) ---------- */
.top-nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a:not(.lang-switch) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top-nav a:not(.lang-switch):hover { color: var(--text); }

.hero--copy { padding-top: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 700; color: var(--text); }
.eyebrow img { width: 28px; height: 28px; border-radius: 7px; }
.eyebrow span { color: var(--muted); font-weight: 600; }
.headline { margin: 0; font-size: clamp(2.1rem, 6.2vw, 3.6rem); line-height: 1.18; letter-spacing: -0.02em; }
.lede { margin: 18px auto 0; max-width: 32em; font-size: clamp(1.08rem, 2.8vw, 1.3rem); line-height: 1.5; color: #D6D6DD; }
.example { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 20px auto 0; padding: 10px 18px;
  border: 1px solid var(--panel-2); border-radius: 999px; background: var(--panel); font-size: 1.05rem; color: #FFD08A; }
.example-label { font-size: 0.82rem; color: var(--muted); }
.facts { margin: 16px auto 0; color: var(--muted); font-size: 0.95rem; }
.hero--copy .hint { margin-top: 6px; }
.figcap { margin: 10px auto 0; max-width: 46em; color: var(--muted); font-size: 0.88rem; }
.hero--copy .figcap { text-align: center; }

.vid-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: rgba(20, 20, 24, 0.82); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.vid-toggle:hover { background: rgba(40, 40, 46, 0.92); }

.steps--rows { grid-template-columns: 1fr; gap: 24px; }
.steps--rows .step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; }
.steps--rows .step-body { display: flex; flex-direction: column; gap: 12px; }
.step p.keys { color: var(--muted); font-size: 0.95rem; }
.step p.keys kbd, .faq kbd, .compare kbd, .lead kbd { font-size: 0.92em; }

.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.compare-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.compare-card h3 { margin: 0; font-size: 1.12rem; }
.compare-eg { margin: 4px 0 12px; color: var(--muted); font-size: 0.88rem; }
.compare-card dl { margin: 0; }
.compare-card dt { margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.compare-card dd { margin: 2px 0 0; color: #CFCFD6; font-size: 0.95rem; }

.intro-main { max-width: 960px; }
.intro-main video { object-fit: contain; }

.install { list-style: none; counter-reset: inst; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 52em; }
.install li { min-width: 0; counter-increment: inst; position: relative; padding: 16px 18px 16px 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.install li::before { content: counter(inst); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-2); font-weight: 700; font-size: 0.9rem; }
.install h3 { margin: 0 0 6px; font-size: 1.05rem; }
.install p { margin: 0 0 8px; color: #CFCFD6; font-size: 0.95rem; }
.install p:last-child { margin-bottom: 0; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.9em; background: #1F1F24; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { margin: 0 0 8px; overflow-x: auto; background: #141417; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
pre code { background: none; border: 0; padding: 0; white-space: pre; }
code.hash { word-break: break-all; }

.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p { margin: 0 0 14px; color: #CFCFD6; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .safe { grid-template-columns: 1fr; }
  .steps--rows .step { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-nav .nav-wide { display: none; }
  .top-nav { gap: 6px 14px; }
  .top-nav a:not(.lang-switch) { font-size: 0.9rem; }
  .brand span { display: none; }
  .headline br { display: none; }
  .example { border-radius: 16px; }
}
@media (max-width: 700px) {
  .intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .hero-logo { width: 80px; height: 80px; }
  section { padding-top: 48px; }
  .btn { width: 100%; }
  .cta { flex-direction: column; }
  .hero-video { margin-top: 28px; }
}

/* Video buttons need site.js; without it the native controls are shown. */
.vid-toggle { display: none; }
.js .vid-toggle { display: inline-flex; }

/* ---------- Round 2 (Korean page): sound link, result, tools table, details, end download ---------- */
.sound-link { margin: 8px 0 0; text-align: center; font-weight: 600; }
.sound-link a::before { content: "\25B6"; display: inline-block; margin-right: 8px; font-size: 0.8em; }

.result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.result figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result img { width: 100%; height: auto; }
.result figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; }
.result figcaption strong { font-size: 1.05rem; }
.result figcaption span { color: #CFCFD6; font-size: 0.95rem; }
#result .figcap { margin: 14px 0 0; max-width: 52em; }

.tools { width: 100%; max-width: 60em; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools th, .tools td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.tools thead th { border-top: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.tools tbody th { font-weight: 700; }
.tools tbody th small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.tools td { color: #CFCFD6; }
.status { display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status.ok { color: var(--ok); border-color: rgba(61, 214, 140, 0.45); background: rgba(61, 214, 140, 0.08); }
.status.part { color: var(--warn); border-color: rgba(245, 177, 61, 0.45); background: rgba(245, 177, 61, 0.08); }
.status.todo { color: var(--muted); border-color: var(--panel-2); background: transparent; }

.keypoints { margin: 18px 0 0; padding-left: 1.2em; max-width: 52em; color: #CFCFD6; font-size: 0.97rem; }
.keypoints li + li { margin-top: 4px; }

.more { margin-top: 18px; max-width: 52em; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.more summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--text); }
.more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.more-body { padding-bottom: 16px; min-width: 0; }
.more-body h3 { margin: 18px 0 6px; font-size: 1rem; }
.more-body h3:first-child { margin-top: 4px; }
.more-body ul { margin: 0; padding-left: 1.2em; color: #CFCFD6; font-size: 0.95rem; }
.more-body li + li { margin-top: 4px; }
.more-body p { margin: 0 0 8px; color: #CFCFD6; font-size: 0.95rem; }
.more-body .frame { margin-top: 18px; }

.faq details ul { margin: 0 0 12px; padding-left: 1.2em; color: #CFCFD6; font-size: 0.95rem; }

.end-cta { text-align: center; padding-top: 72px; }
.end-cta .cta { margin-top: 16px; }

@media (max-width: 700px) {
  .result { grid-template-columns: 1fr; }
  .tools, .tools tbody, .tools tr, .tools th, .tools td { display: block; }
  .tools thead { display: none; }
  .tools tbody tr { border-top: 1px solid var(--line); padding: 12px 16px; }
  .tools tbody tr:first-child { border-top: 0; }
  .tools tbody th, .tools td { border-top: 0; padding: 0; }
  .tools td { margin-top: 8px; }
  .tools td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
}
.legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; max-width: 60em; color: #CFCFD6; font-size: 0.93rem; }
.legend .status { margin-right: 8px; }
.tools td:last-child { font-size: 0.93rem; }
.table-note { margin: 10px 0 0; max-width: 60em; }
.result { max-width: 960px; }

/* ---------- Round 4: text steps with folded clips, enlarge button, tray hint, tighter phone hero ---------- */
.steps--text { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps--text .step { padding: 18px; gap: 10px; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 4px; }
.clips figure { margin: 0; min-width: 0; }
.clips figcaption { margin-top: 8px; color: #CFCFD6; font-size: 0.9rem; }
.more .clips + * { margin-top: 0; }
#how .more { max-width: none; }

.vid-enlarge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text);
  background: rgba(20, 20, 24, 0.82); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}
.vid-enlarge:hover { background: rgba(40, 40, 46, 0.92); }

.verified-summary { margin: -16px 0 14px; font-size: 1rem; }
.verified-summary strong { color: var(--ok); }

.tray-line img { display: inline-block; width: 32px; height: 32px; vertical-align: middle; margin: 0 10px 4px 0; border-radius: 6px; }

@media (max-width: 900px) {
  .steps--text, .clips { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero--copy { padding-top: 22px; }
  .eyebrow { margin-bottom: 10px; }
  .headline { font-size: 2rem; }
  .lede { margin-top: 12px; font-size: 1.02rem; }
  .example { margin-top: 12px; padding: 6px 12px; font-size: 0.92rem; gap: 2px 8px; }
  .cta { margin-top: 16px; gap: 8px; }
  .btn { min-height: 46px; padding: 10px 18px; font-size: 1.08rem; }
  .facts { margin-top: 10px; font-size: 0.88rem; }
  .hero--copy .hint { font-size: 0.85rem; }
  .hero-video { margin-top: 16px; }
  .site-header .wrap { min-height: 52px; }
  .verified-summary { margin-top: -20px; }
}
.js .vid-toggle[hidden] { display: none; } /* touch screens use the native controls instead */

/* macOS / Linux preview block in the install section */
.preview { margin-top: 22px; max-width: 52em; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 16px 18px; }
.preview h3 { margin: 0 0 8px; font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.preview h3 .status { margin: 0; }
.preview p, .preview li { color: #CFCFD6; font-size: 0.95rem; }
.preview p { margin: 0 0 10px; }
.preview ul { margin: 0 0 10px; padding-left: 1.2em; }
.preview li + li { margin-top: 6px; }
.preview p.small { margin: 0; color: var(--muted); font-size: 0.88rem; }
