:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --link: #b8410b;
  --warm: #fff7ed;
  --paper: #fcf9f5;
  --face: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--face); color: var(--ink); background: #fff; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:where(a, summary):focus-visible { outline: 3px solid #0369a1; outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.site-head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { min-height: 68px; display: flex; align-items: center; gap: 22px; }
.brand img { width: auto; height: 30px; }
.head-sections, .head-auth { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.head-sections { margin-left: auto; }
.head-sections a, .head-auth a { padding-block: 8px; }
.head-sections a:hover, .head-auth a:hover { color: var(--ink); }
.head-auth .register, .action { background: var(--accent); border-radius: 999px; color: #fff; font-weight: 700; }
.head-auth .register { padding: 8px 15px; }
.head-auth .register:hover, .action:hover { color: #fff; background: var(--accent-dark); }

.hero-band { background: linear-gradient(180deg, var(--warm), #fffaf4 67%, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: clamp(44px, 5.3vw, 79px); }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 99px; background: #ffebd8; color: var(--link); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow:hover { text-decoration: underline; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--accent); }
.lead { max-width: 500px; margin: 20px 0 24px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero-art { width: 100%; border-radius: 22px; background: #f7ece0; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; font-size: 19px; }
.action span, .example-link span { font-size: 19px; line-height: 1; }

.guide-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 20px; border-block: 1px solid var(--line); }
.guide-index a { position: relative; display: grid; align-content: start; gap: 5px; padding: 8px 42px 8px 25px; }
.guide-index a:first-child { padding-left: 0; }
.guide-index a + a { border-left: 1px solid var(--line); }
.guide-index a::after { content: "↓"; position: absolute; right: 16px; top: 8px; color: var(--link); }
.guide-index a:hover strong { color: var(--link); }
.guide-index strong { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.guide-index span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.story, .faq { scroll-margin-top: 86px; padding-block: clamp(42px, 5.5vw, 70px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 43%); column-gap: clamp(35px, 7vw, 104px); align-items: start; }
.reading-band { background: var(--paper); border-block: 1px solid #f1eae1; }
h2 { font-size: clamp(27px, 3vw, 35px); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.narrative > p, .narrative li, .how p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.narrative > p { margin-top: 15px; }
.narrative ul { margin: 15px 0 18px; padding-left: 1.14em; }
.narrative li + li { margin-top: 8px; }
.narrative li::marker { color: var(--accent); }
.narrative strong { color: var(--ink); }
.how { border-block-start: 1px solid #d7dce4; }
.how:last-of-type { border-block-end: 1px solid #d7dce4; }
.how summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-inline-end: 5px; border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: translateY(-2px) rotate(45deg); }
.how[open] summary::after { transform: translateY(2px) rotate(225deg); }
.how summary:hover { color: var(--link); }
.how p { padding-bottom: 14px; }
.how p a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.example-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 9px; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.example-link:hover { color: var(--ink); }
.zoom { display: block; border-radius: 16px; overflow: hidden; background: #eaf1f7; cursor: zoom-in; }
.zoom img { width: 100%; }
.video-demo video { display: block; width: 100%; aspect-ratio: 1591 / 730; border-radius: 16px; background: #ebf1f7; object-fit: cover; }
.video-demo video:focus-visible { outline: 3px solid #0369a1; outline-offset: 4px; }
.video-demo figcaption strong { color: var(--ink); }
figcaption { margin-top: 9px; color: var(--muted); font-size: 14px; }
.sheet { padding: clamp(12px, 2.8vw, 28px); background: #ebf1f7; border-radius: 16px; }
.sheet-title { padding: 10px 12px; border-radius: 8px 8px 0 0; color: #143253; background: #dce7f2; font-weight: 700; }
table { width: 100%; border-collapse: collapse; background: #fff; color: #17334f; font-size: 14px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #e5ebf1; }
thead th { color: var(--muted); font-size: 13px; }
tbody th { font-weight: 600; }
.verify { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #fff0db; color: #963b11; font-size: 13px; }
.faq h2 { margin-bottom: 20px; }
.faq .how { max-width: 760px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 48px; padding: 32px 36px; background: var(--warm); border-radius: 20px; }
.closing p { margin-top: 7px; color: var(--muted); }
.closing .action { flex-shrink: 0; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .head-sections, .head-auth { gap: 12px; }
  .story { column-gap: 32px; }
  .guide-index a { padding-right: 30px; padding-left: 15px; }
  .guide-index a::after { right: 9px; }
}

@media (max-width: 760px) {
  .wrap { width: min(530px, calc(100% - 36px)); }
  .head-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 7px; }
  .brand img { height: 24px; }
  .head-auth { grid-column: 2; grid-row: 1; gap: 9px; }
  .head-auth .register { padding-inline: 11px; }
  .head-sections { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 5px; margin: 3px 0 0; font-size: clamp(10.5px, 3.2vw, 13px); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 31px 24px; }
  .hero-copy h1 { font-size: clamp(39px, 11.7vw, 57px); }
  .lead { margin: 15px 0 18px; font-size: 17px; }
  .hero-art { border-radius: 14px; }
  .guide-index { grid-template-columns: 1fr; padding: 0; }
  .guide-index a, .guide-index a:first-child { border: 0; padding: 12px 31px 12px 0; }
  .guide-index a + a { border-top: 1px solid var(--line); border-left: 0; }
  .guide-index a::after { top: 12px; right: 4px; }
  .story { display: flex; flex-direction: column; gap: 17px; padding-block: 38px; scroll-margin-top: 100px; }
  .narrative { display: contents; }
  .narrative h2, .narrative > p { order: 0; }
  .narrative > p, .narrative ul { margin: 0; }
  .narrative ul { order: 2; }
  .evidence { order: 1; width: 100%; }
  .video-demo video { aspect-ratio: 120 / 113; object-position: 48% center; }
  .narrative .how { order: 3; width: 100%; }
  .narrative .example-link { order: 4; margin-top: -9px; }
  .closing { flex-direction: column; align-items: start; margin-block: 32px; padding: 24px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
