:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --text: #0f172a;
  --muted: #526079;
  --card: #ffffff;
  --border: #e3e9f3;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --ill-bar: #edf1f7;
  --radius: 12px;
  --width: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1829;
    --text: #e7edf7;
    --muted: #9fb0c9;
    --card: #111b2e;
    --border: #22314a;
    --accent: #6b9bff;
    --accent-ink: #0b1220;
    --accent-soft: #1a2a4a;
    --ill-bar: #1b2840;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 12px; }

.container { max-width: var(--width); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-intro { color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  min-height: 64px; padding-block: 10px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none;
}
.logo img { display: block; border-radius: 7px; }
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.site-header nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--card);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-soon { background: var(--accent-soft); border-color: transparent; color: var(--text); cursor: default; }
.btn-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); margin: 0 0 16px; }
.lede { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.hero-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.keys { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.keys span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
kbd {
  display: inline-block; min-width: 28px; padding: 3px 8px; text-align: center;
  font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 7px;
}

/* Illustration (colours follow the theme) */
.illustration svg { display: block; width: 100%; }
.ill-win { fill: var(--card); stroke: var(--border); stroke-width: 1.5; }
.ill-titlebar { fill: var(--bg-soft); }
.ill-bar { fill: var(--ill-bar); }
.ill-dot { fill: var(--border); }
.ill-label { fill: var(--muted); font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ill-text { fill: var(--text); font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ill-selected { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.ill-folder { fill: var(--ill-bar); }
.ill-folder-hot { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.ill-accent { fill: var(--accent); }
.ill-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 7 7; }
.ill-cursor { fill: var(--text); stroke: var(--bg); stroke-width: 1.5; }

/* Problem */
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 720px; }
.problem-list li { display: flex; gap: 12px; align-items: flex-start; }
.problem-list li::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 10px;
  border-radius: 50%; background: var(--muted); opacity: .5;
}

/* Steps, features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px;
}
.step-keys { margin-top: 12px; }
.table-title { margin: 36px 0 12px; font-size: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.shortcuts { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.shortcuts th, .shortcuts td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.shortcuts tbody tr:last-child th, .shortcuts tbody tr:last-child td { border-bottom: 0; }
.shortcuts thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.scope-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 16px; }
.chips li.soft { color: var(--muted); }

/* Supported drives (hero) */
.drives { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.drives li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600;
}
.drives li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; border: 2px solid var(--accent); }
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price strong { font-size: 46px; letter-spacing: -0.02em; }
.price span { color: var(--muted); }
.trial { font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-foot { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); font-size: 16px; padding-right: 32px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 15px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
.site-footer .langs { flex-basis: 100%; order: 3; font-size: 14px; }

/* Line breaking for translated pages: Japanese headings break between
   phrases, not mid-word; Korean keeps words whole (it uses spaces). */
:lang(ja) :is(h1, h2, h3, summary) { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
.site-footer .langs a[aria-current] { color: var(--text); font-weight: 600; }

/* Text pages (legal, thanks, 404) */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); font-size: 17px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc .summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.doc .summary p:last-child { margin: 0; }
.center { text-align: center; }

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

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
