:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #202124;
  --muted: #62666d;
  --line: #dfe2e7;
  --accent: #2d6658;
  --accent-strong: #214d43;
  --danger: #a0332c;
  --success: #276749;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid #d1a33b; outline-offset: 3px; }
main:focus { outline: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
nav a { min-height: 48px; display: inline-flex; align-items: center; font-size: 14px; }

.document-main { width: min(100% - 40px, 760px); margin: 0 auto; padding: 64px 0 32px; }

.page-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
h1 { margin: 0; font-size: 3rem; line-height: 1.14; letter-spacing: 0; overflow-wrap: anywhere; }
.summary { max-width: 68ch; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.table-of-contents {
  display: block;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.table-of-contents h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; }
.table-of-contents ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 24px; }
.table-of-contents li { break-inside: avoid; margin: 0 0 8px; }
.table-of-contents a { display: inline; min-height: auto; font-size: 15px; }
.content-section:focus { outline: 0; }
.content-section:target h2 { color: var(--accent); }

.content-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.content-section:last-child { padding-bottom: 0; border-bottom: 0; }
.content-section h2, .status h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: 0; }
.content-section p { margin: 12px 0 0; }
.content-section ul { margin: 16px 0 0; padding-left: 24px; }
.content-section li + li { margin-top: 8px; }

.status { margin: 32px 0 0; padding: 20px 0; border-bottom: 2px solid var(--danger); }
.status.success { border-color: var(--success); }
.status p { margin: 8px 0 0; }
code { overflow-wrap: anywhere; }

.delete-form { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 650; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #90959d;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirm { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 8px 0 24px; }
.confirm input { width: 22px; height: 22px; margin: 2px 0 0; }
button {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #812720; }

footer {
	width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 8px 20px; }

.home-main { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 0; }
.hero { min-height: min(740px, calc(100svh - 72px)); padding: 72px 0 88px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: 56px; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; max-width: 680px; }
.hero h1 { max-width: 13ch; font-size: 5.25rem; line-height: 1.02; font-weight: 760; }
.hero-summary { max-width: 59ch; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.button.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.button.primary:hover { color: #fff; background: var(--accent-strong); }
.button.secondary { color: var(--text); background: var(--surface); }
.hero-visual { min-height: 470px; display: grid; place-items: center; overflow: hidden; }
.ticker-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--surface) 86%, #d9f0e5); }
.ticker-stage::before, .ticker-stage::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; }
.ticker-stage::before { inset: 10%; }
.ticker-stage::after { inset: 24%; }
.ticker-stage img { position: relative; z-index: 2; width: 78%; height: auto; }
.signal { position: absolute; z-index: 3; width: 20px; height: 20px; border: 4px solid var(--bg); border-radius: 50%; }
.signal-mood { top: 17%; left: 18%; background: #e79abd; }
.signal-focus { top: 26%; right: 11%; background: #dfc05f; }
.signal-plan { bottom: 17%; left: 15%; background: #74b7a4; }
.home-section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.home-section:last-child { padding-bottom: 40px; border-bottom: 0; }
.section-intro { max-width: 650px; }
.home-section h2 { margin: 0; font-size: 3.4rem; line-height: 1.08; overflow-wrap: anywhere; }
.home-section p { color: var(--muted); }
.section-intro > p:not(.eyebrow) { margin: 20px 0 0; font-size: 18px; }
.feature-list { margin-top: 56px; border-top: 1px solid var(--line); }
.feature-item { min-height: 132px; padding: 28px 0; display: grid; grid-template-columns: 72px minmax(170px, .55fr) minmax(280px, 1fr); align-items: start; gap: 24px; border-bottom: 1px solid var(--line); }
.feature-item:last-child { border-bottom: 0; }
.feature-number { color: var(--accent); font-size: 13px; font-weight: 800; }
.feature-item h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.25; }
.feature-item p { max-width: 54ch; margin: 0; }
.split-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 80px; align-items: end; }
.principle-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principle-list li { min-height: 64px; padding: 16px 0; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.principle-list span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 14px; }
.guide-section { display: grid; grid-template-columns: 112px minmax(0, 720px); gap: 40px; align-items: start; }
.guide-mark { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--surface); font-size: 38px; font-weight: 780; }
.guide-section p:last-child { max-width: 65ch; margin: 20px 0 0; font-size: 18px; }
.privacy-section { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: center; }
.text-link { min-height: 48px; margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.privacy-symbol { width: 240px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.privacy-symbol span { width: 72px; height: 88px; position: relative; border: 8px solid var(--accent); border-radius: 14px; }
.privacy-symbol span::before { content: ""; position: absolute; width: 46px; height: 42px; left: 5px; top: -38px; border: 8px solid var(--accent); border-bottom: 0; border-radius: 28px 28px 0 0; }

@media (max-width: 980px) {
  .hero h1 { font-size: 4rem; }
  .home-section h2 { font-size: 3rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 32px; }
}

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 0; }
  nav { width: 100%; }
  .document-main { padding-top: 40px; }
  h1 { font-size: 2rem; }
  .table-of-contents { padding: 20px; }
  .table-of-contents ol { columns: 1; }
  footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .home-main { width: min(100% - 32px, 1120px); }
  .hero { min-height: auto; padding: 36px 0 40px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-visual { min-height: auto; }
  .ticker-stage { width: 160px; }
  .home-section { padding: 72px 0; }
  .feature-list { margin-top: 40px; }
  .feature-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .split-section, .privacy-section { grid-template-columns: 1fr; gap: 40px; }
  .guide-section { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  .guide-mark { width: 64px; height: 64px; font-size: 28px; }
  .privacy-symbol { width: 190px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.35rem; }
  .hero-summary { margin-top: 16px; font-size: 17px; }
  .hero-actions { margin-top: 20px; flex-wrap: nowrap; }
  .hero-actions .button { min-width: 0; padding-inline: 14px; font-size: 14px; }
  .hero-actions .primary { flex: 1 1 auto; }
  .guide-section { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151718;
    --surface: #202325;
    --text: #f2f3f4;
    --muted: #b4b9bf;
    --line: #3a3f43;
    --accent: #82c7b3;
    --accent-strong: #abe0d1;
    --danger: #d96b62;
    --success: #65bd8c;
  }
}
