/* Tutti — landing. Warm paper, tangerine accent, real app screenshots.
   Refined per design/JP-typography/craft review: correct 和文 tracking (no
   negative letter-spacing on kana/kanji), 1.8 行間, weight contrast, warm
   layered device shadows, part-colors reserved for the stage, restrained motion. */
:root {
  --paper: #faf7f3;
  --paper-2: #fffdfb;
  --ink: #1c1613;
  --ink-2: #6f6157;
  --faint: #ad9d8d;
  --line: #ece2d6;
  --line-2: #f3ebe1;
  --accent: #ff6b2c;
  --accent-2: #ff854d;
  --maxw: 1120px;
  --sp-section: clamp(84px, 11vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  line-break: strict;
  overflow-wrap: anywhere;
  text-autospace: normal;            /* 和欧間アキ */
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  /* Latin face first; it has no CJK glyphs, so 和文 always falls through to
     Hiragino/Noto. This elevates every Latin run (Tutti / AI / numerals) only. */
  font-family: "Hanken Grotesk", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;                  /* 和文本文の適正 */
  font-kerning: none;
  text-spacing-trim: normal;         /* 行頭・行末約物の半角トリム */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { line-height: 1.8; }
::selection { background: rgba(255, 107, 44, 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  margin: 0; font-weight: 700; letter-spacing: 0.01em; line-height: 1.34;
  font-kerning: normal; font-feature-settings: "palt";
  text-spacing-trim: normal;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
}
/* phrase lock: a chunk never splits internally; breaks fall only between chunks */
.nb { display: inline-block; }

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

.label {
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; row-gap: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--faint);
  font-feature-settings: normal;
}
.label .num { color: var(--accent); letter-spacing: 0.16em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; }
.mark { display: block; flex: none; }
.mark .bar { transform-box: fill-box; transform-origin: center bottom; }
.brand:hover .mark .bar { animation: eqtap 0.7s var(--ease) both; }
.brand:hover .mark .bar:nth-child(3) { animation-delay: 0.06s; }
.brand:hover .mark .bar:nth-child(4) { animation-delay: 0.12s; }
.brand:hover .mark .bar:nth-child(5) { animation-delay: 0.18s; }
@keyframes eqtap { 0%, 100% { transform: scaleY(1); } 42% { transform: scaleY(0.5); } }
@media (prefers-reduced-motion: reduce) { .brand:hover .mark .bar { animation: none; } }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color 0.18s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.go {
  color: #fff; background: var(--accent); padding: 9px 17px; border-radius: 100px;
  font-size: 13px; transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav a.go:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.nav a.go:focus-visible { outline-color: #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.35); }
@media (max-width: 680px) { .nav .nav-link { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 100px; border: 1px solid var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(28, 22, 19, 0.5); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 12px 26px -12px rgba(255, 107, 44, 0.6); }
.btn-accent:focus-visible { outline-color: #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.35); }
.link-u { font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 3px; transition: color 0.18s var(--ease); }
.link-u:hover { color: var(--accent); }

/* ---------- Device frame (holds a real screenshot) ---------- */
.device {
  border-radius: 38px; background: #0d0a08; padding: 7px;
  outline: 1px solid rgba(255, 255, 255, 0.04); outline-offset: -1px;
  box-shadow:
    0 1.5px 1px -1px rgba(40, 26, 16, 0.16),
    0 18px 36px -20px rgba(40, 26, 16, 0.30),
    0 44px 70px -40px rgba(40, 26, 16, 0.34);
}
/* The screen carries the phone aspect so the screenshot is shown in full — the
   image fills it exactly (matching aspect), never clipped at the bottom. */
.device .screen { position: relative; aspect-ratio: 1170 / 2532; width: 100%; border-radius: 31px; overflow: hidden; background: var(--paper); }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Dynamic Island — a centered pill sitting in the screenshot's top safe area.
   Reads as a modern phone (iOS/Android camera housing) without OS-specific chrome. */
.device .screen::before {
  content: ""; position: absolute; z-index: 3;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 13px; background: #0b0a0c; border-radius: 11px;
}
/* Home indicator — the gesture bar in the bottom safe area. */
.device .screen::after {
  content: ""; position: absolute; z-index: 3;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px; background: rgba(22, 17, 13, 0.34); border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px);
}
.kicker { margin: 0 0 24px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 14px; border-radius: 2px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; line-height: 1.16; letter-spacing: 0.005em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 28px 0 0; font-size: clamp(15.5px, 1.8vw, 17.5px); color: var(--ink-2); max-width: 27em; line-height: 1.8; }
.hero .lead strong { color: var(--ink); font-weight: 800; }
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 28em; }
.hero-points li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.hero-points li::after { content: ""; position: absolute; left: 5.5px; top: 6px; width: 7px; height: 3.5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hero .actions { margin-top: 38px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.signup { margin-top: 30px; display: flex; gap: 10px; max-width: 430px; flex-wrap: wrap; }
.signup-input { flex: 1 1 210px; min-width: 0; padding: 13px 17px; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 100px; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.signup-input::placeholder { color: var(--faint); }
.signup-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.16); }
.signup-btn { flex: 0 0 auto; white-space: nowrap; cursor: pointer; }
.signup.loading .signup-btn { opacity: 0.55; pointer-events: none; }
.signup-note { margin: 13px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.signup-thanks { margin: 30px 0 0; font-size: 15px; font-weight: 700; color: var(--accent); }
.hero .soon { margin-top: 14px; font-size: 12.5px; color: var(--faint); letter-spacing: 0.02em; }

/* hero art: a deliberate tangerine plane behind the real phone (collage) */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 296px; }
.hero-art::before {
  content: ""; position: absolute; z-index: 0;
  inset: 30px -20px -16px 0; background: var(--accent); border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-art .device { position: relative; z-index: 1; animation: float 7s 1.1s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* hero entrance */
.hero .kicker { animation: riseIn 0.7s 0.04s both var(--ease); }
.hero h1 { animation: riseIn 0.85s 0.12s both var(--ease); }
.hero .lead { animation: riseIn 0.85s 0.2s both var(--ease); }
.hero-points { animation: riseIn 0.85s 0.28s both var(--ease); }
.hero .signup { animation: riseIn 0.85s 0.36s both var(--ease); }
.hero .signup-note, .hero .soon { animation: riseIn 0.85s 0.44s both var(--ease); }
.hero-art { animation: riseIn 1s 0.22s both var(--ease); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .device { animation: none; }
  .hero .kicker, .hero h1, .hero .lead, .hero-points, .hero .signup, .hero .signup-note, .hero .soon, .hero-art { animation: none; }
}
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 52px; gap: 4px; }
  .hero-art { max-width: 244px; margin-top: 34px; }
}

/* ---------- Section base ---------- */
.section { padding: var(--sp-section) 0; border-bottom: 1px solid var(--line-2); }
.section.tight { padding-top: clamp(64px, 8vw, 96px); }
.section-head { margin-bottom: clamp(44px, 6vw, 60px); }
.section-head h2 { font-size: clamp(27px, 3.8vw, 42px); margin-top: 20px; max-width: 19em; line-height: 1.34; }
.section-head .sub { margin: 20px 0 0; color: var(--ink-2); max-width: 38em; font-size: 16px; line-height: 1.85; }

/* ---------- Stage: brand-world (Tutti = 総奏), part colors on dark ---------- */
.stage { background: var(--ink); color: #fff; text-align: center; border-bottom: none; padding: clamp(100px, 13vw, 156px) 0; }
.stage .label { color: rgba(255, 255, 255, 0.42); justify-content: center; }
.stage .label .num { color: var(--accent-2); }
.stage h2 { color: #fff; font-size: clamp(28px, 4.4vw, 47px); font-weight: 800; margin: 20px auto 0; max-width: 17em; letter-spacing: 0.012em; }
.stage .sub { margin: 24px auto 0; color: rgba(255, 255, 255, 0.66); max-width: 33em; font-size: 15.5px; line-height: 1.85; }
.tutti-bars {
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.7vw, 15px);
  height: 128px; max-width: 520px; margin: clamp(44px, 6vw, 60px) auto 0;
}
.tutti-bars span {
  flex: 1; height: 100%; max-width: 38px; background: var(--c);
  border-radius: 6px 6px 0 0; transform-origin: bottom; transform: scaleY(var(--h));
  box-shadow: 0 0 28px -7px var(--c);
  animation: eq calc(1.3s + var(--h) * 0.7s) var(--d) cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
@keyframes eq { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(0.55 + var(--h) * 0.5)); } }
@media (prefers-reduced-motion: reduce) { .tutti-bars span { animation: none; transform: scaleY(0.82); } }
.roster {
  margin: 38px auto 0; max-width: 38em; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px 24px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.roster span { color: var(--c); opacity: 0.92; }

/* ---------- Showcase: real screenshots in a row ---------- */
.showcase { background: var(--paper-2); }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px); align-items: start; }
.phones .shot .device { max-width: 300px; margin: 0 auto; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.phones .shot:hover .device { transform: translateY(-6px); }
.phones .cap { margin-top: 26px; text-align: center; }
.phones .cap h3 { font-size: 17px; font-weight: 700; }
.phones .cap p { margin: 8px auto 0; font-size: 13.5px; color: var(--ink-2); max-width: 21em; line-height: 1.7; }
.phones .shot:nth-child(2) { margin-top: 34px; }
@media (max-width: 820px) {
  .phones { grid-template-columns: 1fr; gap: 60px; max-width: 340px; margin: 0 auto; }
  .phones .shot:nth-child(2) { margin-top: 0; }
}

/* ---------- How-to steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 720px) { .step-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 44px; } }
.step { text-align: center; }
.step img { width: 132px; height: 132px; margin: 0 auto 18px; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 9px auto 0; font-size: 14px; color: var(--ink-2); max-width: 20em; line-height: 1.7; }

/* ---------- Features & scenes: illustrated cards ---------- */
.feat-cards, .scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3.5vw, 44px) clamp(20px, 3vw, 36px); }
@media (max-width: 820px) { .feat-cards, .scene-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-cards, .scene-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }
.fcard, .scene { text-align: center; }
.fcard img { width: 92px; height: 92px; object-fit: contain; margin: 0 auto 16px; }
.scene img { width: 124px; height: 124px; object-fit: contain; margin: 0 auto 14px; }
.fcard h3, .scene h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.fcard p, .scene p { margin: 9px auto 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.72; max-width: 19em; }

/* ---------- Guardian ---------- */
.guardian { background: var(--paper-2); }
.g-card {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  max-width: 760px; margin: 0 auto;
}
.g-art {
  width: clamp(108px, 16vw, 156px); height: clamp(108px, 16vw, 156px);
  flex-shrink: 0; object-fit: contain;
}
.g-body .label { margin-bottom: 18px; }
.g-body h2 { font-size: clamp(26px, 4vw, 36px); }
.g-body p { margin: 18px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.85; max-width: 30em; }
@media (max-width: 620px) {
  .g-card { flex-direction: column; text-align: center; gap: 22px; }
  .g-body .label { justify-content: center; }
  .g-body p { margin-inline: auto; }
}

/* ---------- Compare ---------- */
.compare-table { width: 100%; border-collapse: collapse; max-width: 760px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 16px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; padding-bottom: 14px; }
.compare-table thead th.them { color: var(--faint); }
.compare-table thead th.us { color: var(--accent); }
.compare-table td.c, .compare-table th.c { text-align: center; width: 20%; }
.compare-table td:first-child { color: var(--ink); font-weight: 600; }
.compare-table td.them { color: var(--faint); }
.compare-table .yes { color: var(--accent); font-weight: 800; }
.compare-table .no { color: var(--faint); }
.compare-table tr.row-price td { font-weight: 800; border-bottom: none; padding-top: 20px; }

/* ---------- Final CTA on tangerine ---------- */
.final { background: var(--accent); color: #fff; border-bottom: none; text-align: center; padding: clamp(100px, 13vw, 156px) 0; }
.final .free { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; opacity: 0.9; }
.final h2 { color: #fff; font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin: 10px 0 38px; letter-spacing: 0.012em; }
.final .btn { background: #fff; color: var(--ink); border-color: #fff; }
.final .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5); }
.final .link-u { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.final .soon { color: rgba(255, 255, 255, 0.82); }
.final h2 { margin: 10px 0 14px; }
.final .final-sub { color: rgba(255, 255, 255, 0.9); font-size: 15.5px; line-height: 1.85; max-width: 30em; margin: 0 auto 32px; }
.final .signup { justify-content: center; margin: 0 auto; }
.final .signup-input { background: #fff; border-color: #fff; color: var(--ink); }
.final .signup-input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.final .signup-thanks { color: #fff; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line-2); background: var(--paper-2); text-align: center; padding: clamp(42px, 6vw, 66px) 0; }
.trust-lead { font-size: clamp(18px, 2.4vw, 25px); font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.trust-lead strong { color: var(--accent); font-size: 1.18em; }
.trust-sub { margin: 14px auto 0; max-width: 36em; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ---------- Problem ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 26px); }
@media (max-width: 860px) { .prob-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prob-grid { grid-template-columns: 1fr; } }
.prob { padding: 26px 24px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 18px; }
.prob h3 { font-size: 16px; font-weight: 800; letter-spacing: 0.005em; }
.prob h3::before { content: ""; display: block; width: 26px; height: 3px; background: var(--accent); border-radius: 3px; margin-bottom: 14px; opacity: 0.85; }
.prob p { margin-top: 9px; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }

/* ---------- Safety ---------- */
.safety { background: var(--paper-2); }
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 26px); }
@media (max-width: 860px) { .safe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .safe-grid { grid-template-columns: 1fr; } }
.safe h3 { font-size: 15.5px; font-weight: 800; letter-spacing: 0.005em; }
.safe h3::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 9px; font-size: 12.5px; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 50%; vertical-align: -7px; }
.safe p { margin-top: 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.78; }

/* ---------- Mid CTA ---------- */
.mid-cta { margin-top: clamp(40px, 6vw, 56px); display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; text-align: center; }
.mid-cta-note { font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 4px; font-size: 16px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-65%) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq details p { margin: 0 4px 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .fbrand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.site-footer .fbrand .mark { opacity: 0.92; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.foot-links a { transition: color 0.18s var(--ease); }
.foot-links a:hover { color: var(--accent); }
.site-footer .copy { font-size: 12.5px; color: var(--faint); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* reduced-motion: also still hovers */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .nav a.go:hover, .phones .shot:hover .device { transform: none; }
}

/* ---------- Doc pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 76px 32px 112px; }
.doc h1 { font-size: 33px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.005em; }
.doc .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 48px; }
.doc h2 { font-size: 19px; font-weight: 700; margin: 46px 0 12px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink); font-size: 15px; line-height: 1.95; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.doc .back { display: inline-block; margin-bottom: 32px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color 0.18s var(--ease); }
.doc .back:hover { color: var(--accent); }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; font-size: 14px; color: var(--ink-2); margin: 24px 0; }

/* ---------- Header: solidify on scroll ---------- */
.site-header { transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 6px 22px -18px rgba(40, 26, 16, 0.55);
}

/* ---------- Hero device: auto cross-fade demo ---------- */
.hero-art .screen .cyc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: cyc 13.5s linear infinite; }
.hero-art .screen .cyc-0 { animation-delay: 0s; }
.hero-art .screen .cyc-1 { animation-delay: 4.5s; }
.hero-art .screen .cyc-2 { animation-delay: 9s; }
@keyframes cyc {
  0% { opacity: 0; }
  3% { opacity: 1; }
  31% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .screen .cyc { animation: none; }
  .hero-art .screen .cyc-0 { opacity: 1; }
  .hero-art .screen .cyc-1, .hero-art .screen .cyc-2 { display: none; }
}

/* ---------- Roles ---------- */
.role-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(16px, 2.2vw, 26px); align-items: stretch; }
@media (max-width: 880px) { .role-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.role { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 28px; }
.role-lead { background: var(--ink); border-color: var(--ink); color: #fff; }
.role-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 5px 13px; border-radius: 100px; }
.role-lead .role-tag { color: #fff; background: rgba(255, 255, 255, 0.18); }
.role h3 { font-size: 18px; font-weight: 800; margin: 16px 0 16px; line-height: 1.5; letter-spacing: 0.005em; }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.role li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.role-lead li { color: rgba(255, 255, 255, 0.84); }
.role li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.role-lead li::before { background: var(--accent-2); }

/* ---------- Hover micro-interactions ---------- */
.prob, .safe, .role { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.prob:hover, .safe:hover, .role:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -24px rgba(40, 26, 16, 0.34); }
.role-lead:hover { box-shadow: 0 24px 44px -24px rgba(40, 26, 16, 0.6); }
.fcard img, .scene img { transition: transform 0.3s var(--ease); }
.fcard:hover img, .scene:hover img { transform: translateY(-5px) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .prob:hover, .safe:hover, .role:hover, .role-lead:hover { transform: none; box-shadow: none; }
  .fcard:hover img, .scene:hover img { transform: none; }
}
