/* Twelve Volt site — one stylesheet for every page. Teal palette shared with the app (PRD R-U1). */
:root {
  --bg: #F3F4F2;
  --surface: #FFFFFF;
  --surface-2: #E9EEEC;
  --ink: #1B2321;
  --muted: #4E5B59;
  --teal: #0A5553;
  --teal-deep: #073B3A;
  --teal-ink: #0A5553;
  --teal-soft: #DDEDEB;
  --accent: #9FE3DB;
  --amber: #B86E00;
  --line: #D5DBD9;
  --shadow: 0 1px 2px rgba(27,35,33,.06), 0 10px 28px rgba(27,35,33,.08);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1A19;
    --surface: #122524;
    --surface-2: #0F2120;
    --ink: #F3F4F2;
    --muted: #B4C2BF;
    --teal-deep: #082726;
    --teal-ink: #7FD4CC;
    --teal-soft: #163A38;
    --amber: #F2B45A;
    --line: #244341;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", "Noto Sans", sans-serif;
}
:lang(ja) body, body:lang(ja) { line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.brand b { font-size: 1.1rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-size: .95rem; }
.nav a { color: inherit; text-decoration: none; opacity: .92; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; opacity: 1; }
.nav .links { display: flex; gap: 4px 18px; flex-wrap: wrap; }
@media (max-width: 599px) { .nav .links { display: none; } }
.lang { display: flex; gap: 2px; border: 1px solid currentColor; border-radius: 999px; padding: 2px; font-size: .86rem; }
.lang a, .lang span { padding: 3px 11px; border-radius: 999px; text-decoration: none; color: inherit; opacity: 1; }
.lang span { background: var(--ink); color: var(--bg); font-weight: 600; }
.hero .lang { border-color: rgba(243,244,242,.5); background: rgba(4,30,29,.35); backdrop-filter: blur(6px); }
.hero .lang span { background: #F3F4F2; color: var(--teal-deep); }
.subnav { display: none; gap: 6px 16px; flex-wrap: wrap; font-size: .92rem; padding-bottom: 10px; }
.subnav a { color: inherit; }
@media (max-width: 599px) { .subnav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #F3F4F2; background: var(--teal-deep); display: flex; flex-direction: column; }
.hero > .wrap { width: 100%; }
.hero .top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.hero .subnav { position: absolute; left: 0; right: 0; top: 64px; z-index: 2; }
.hero-media { position: relative; height: clamp(400px, 125vw, 580px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* The hero image is shown as is, never darkened: on phones the text sits below it, on wide screens
   it stands on the image with a text shadow only. */
.hero-body { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 40px; }
.hero-body > * { max-width: 600px; }
.kicker { font-size: .92rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; color: var(--accent); }
.hero h1 { font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.7rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(0,0,0,.35); text-wrap: balance; }
.hero .kicker, .hero h1, .hero p.sub, .cta small, .hero .nav .links a, .hero .subnav a, .hero .brand b { text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 2px 18px rgba(0,0,0,.55); }
.hero h1:lang(ja) { line-height: 1.3; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
/* The headline is three sentences: each starts its own line and wraps on its own, never joined to the next. */
.hero h1 > span, .hero h1 > em { display: block; }
.hero-body > h1 { max-width: 680px; }
.hero p.sub { margin: 0 0 20px; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); max-width: 50ch; color: rgba(243,244,242,.93); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
@media (min-width: 901px) {
  .hero { min-height: 600px; height: 90vh; max-height: 820px; }
  .hero-media { position: absolute; inset: 0; height: auto; z-index: -1; }
  .hero-media img { object-position: 50% 50%; }
  .hero-body { margin-top: auto; padding-top: 140px; padding-bottom: 52px; }
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-weight: 650; font-size: .95rem;
  background: rgba(4,30,29,.6); border: 1px solid rgba(159,227,219,.6); backdrop-filter: blur(4px); }
.pills svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.play { display: inline-block; line-height: 0; margin-left: -10px; }
.play img { height: 72px; width: auto; }
.play:focus-visible { outline-color: var(--accent); }
.cta small { color: rgba(243,244,242,.85); font-size: .88rem; }

/* ---------- Page header (inner pages) ---------- */
.pagehead { background: var(--teal-deep); color: #F3F4F2; }
.pagehead .lang { border-color: rgba(243,244,242,.5); }
.pagehead .lang span { background: #F3F4F2; color: var(--teal-deep); }
.pagehead .intro { padding: 18px 0 44px; }
.pagehead h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.pagehead p { margin: 0; max-width: 62ch; color: rgba(243,244,242,.9); font-size: 1.08rem; }
.pagehead .kicker { margin-bottom: 8px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.tight { padding-top: 0; }
.eyebrow { color: var(--teal-ink); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; text-wrap: balance; }
h2:lang(ja) { line-height: 1.4; letter-spacing: 0; }
.lead { margin: 0 0 30px; color: var(--muted); max-width: 62ch; font-size: 1.06rem; }

/* Privacy trio */
.trio { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-soft); margin-bottom: 14px; }
.tile .ico svg { width: 30px; height: 30px; stroke: var(--teal-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tile p { margin: 0; color: var(--muted); }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--teal-soft); border-left: 4px solid var(--teal-ink); color: var(--ink); }
.callout p { margin: 0; }
.callout b { color: var(--teal-ink); }

/* Feature list: problem → fix */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; gap: 20px; } }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--teal-soft); stroke: var(--teal-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 4px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.feature .was { display: block; font-size: .85rem; color: var(--amber); font-weight: 600; margin-bottom: 4px; }
.more { margin-top: 22px; }

/* Use-case photo cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Screenshots */
.band { background: var(--teal-deep); color: #F3F4F2; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 500px at 85% 0%, rgba(127,212,204,.18), transparent 60%); }
.band .wrap { position: relative; z-index: 1; }
.band .eyebrow { color: var(--accent); }
.band h2 { color: #FFF; }
.band .lead { color: rgba(243,244,242,.85); }
.band a { color: var(--accent); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; margin: 0; list-style: none; }
.shots li { scroll-snap-align: start; margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.shots picture { display: block; }
.shots b { display: block; margin-top: 12px; color: #FFF; }
.shots span { display: block; color: rgba(243,244,242,.8); font-size: .92rem; }
.shots-note { font-size: .85rem; color: rgba(243,244,242,.7); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.chips li b { color: #FFF; }

/* Models */
.models { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.model h3 { margin: 0 0 4px; font-size: 1.35rem; color: var(--teal-ink); }
.model p { margin: 0; color: var(--muted); font-size: .96rem; }
.model ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }

/* Final call */
.final { text-align: center; }
.final .cta { justify-content: center; }
.final .play { margin-left: 0; }
.final p { color: var(--muted); }

/* ---------- Article pages ---------- */
.doc { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 44px 64px; } /* padding-block: keeps .wrap's side gutter */
@media (min-width: 960px) { .doc { grid-template-columns: 240px 1fr; gap: 48px; } }
.toc { font-size: .93rem; }
.toc b { display: block; margin-bottom: 8px; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
@media (min-width: 960px) { .toc nav { position: sticky; top: 20px; } }
.prose { max-width: 70ch; min-width: 0; } /* a wide table scrolls inside .table instead of widening the page */
.prose h2 { margin-top: 44px; scroll-margin-top: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 6px; font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose .note { padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); border-left: 4px solid var(--teal-ink); }
.prose details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 16px; margin: 10px 0; }
.prose summary { cursor: pointer; padding: 14px 0; font-weight: 650; }
.prose details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.prose details p { margin: 10px 0 14px; }
.table { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
caption { padding-bottom: 6px; color: var(--muted); font-size: .9rem; text-align: left; }
@media (max-width: 480px) { th, td { padding: 8px 7px; } table { font-size: .9rem; } }
code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* ---------- Footer ---------- */
footer { padding: 34px 0 44px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer .credits { margin-top: 20px; font-size: .8rem; line-height: 1.6; }
footer .credits h2 { font-size: .8rem; margin: 0 0 6px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
footer .credits ul { margin: 0; padding: 0; list-style: none; }
footer .copy { margin-top: 16px; }
/* Japanese headings break between phrases, not inside words (ignored by browsers without support). */
h1:lang(ja), h2:lang(ja), h3:lang(ja) { word-break: auto-phrase; }
/* A soft dark patch only behind the hero's menu and language switch, about 20–30 px past them with
   blurred edges, in a warm sunset brown, so they read on a bright sky without darkening the image. */
.hero .nav { isolation: isolate; position: relative; }
.hero .subnav { isolation: isolate; }
.hero .nav::before, .hero .subnav::before {
  content: ""; position: absolute; inset: -20px -30px; z-index: -1; pointer-events: none;
  background: rgba(112,64,20,.5); border-radius: 40px; filter: blur(14px);
}
.hero .subnav { width: fit-content; margin: 0; }
/* Between phone and desktop the whole wide hero image is shown, uncropped. */
@media (min-width: 561px) and (max-width: 900px) {
  .hero-media { height: auto; }
  .hero-media img { height: auto; aspect-ratio: 1672 / 941; }
}
