:root {
  color-scheme: light;
  --ink: #101a2e;
  --muted: #68738a;
  --line: #dce3ee;
  --paper: #f5f7fb;
  --white: #ffffff;
  --navy: #0b1733;
  --blue: #2f7df6;
  --aqua: #6de0d1;
  --shadow: 0 18px 55px rgba(16, 26, 46, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: #dff8f3; display: inline-grid; place-items: center; position: relative; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; background: var(--blue); border-radius: 2px; }
.brand-mark::before { width: 19px; height: 5px; }
.brand-mark::after { width: 5px; height: 19px; }
.brand-mark span:first-child { width: 5px; height: 5px; left: 6px; top: 7px; }
.brand-mark span:last-child { width: 5px; height: 5px; right: 6px; bottom: 7px; }
.header-link { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.header-link:hover { color: var(--ink); }

.hero { padding: 108px 0 130px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.7rem, 9vw, 7.6rem); line-height: 0.98; letter-spacing: -0.075em; font-weight: 780; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 630px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-copy strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 22px rgba(47, 125, 246, 0.22); }
.button-primary:hover { box-shadow: 0 14px 28px rgba(47, 125, 246, 0.3); }
.button-quiet { background: var(--white); border: 1px solid var(--line); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 40px; color: var(--muted); font-size: 0.88rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39c690; box-shadow: 0 0 0 5px rgba(57, 198, 144, 0.14); }

.section { padding: 108px 0; }
.section-heading { max-width: 630px; }
.section-heading h2, .split-layout h2, .status-panel h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -0.055em; }
.section-heading p:last-child, .status-panel p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 52px; }
.feature-card { min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.feature-card-accent { background: linear-gradient(145deg, #e5fbf7, #fff); border-color: #c2eee5; }
.feature-number { color: var(--blue); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; }
.feature-card h3 { margin: 68px 0 9px; font-size: 1.28rem; letter-spacing: -0.025em; }
.feature-card p { margin: 0; color: var(--muted); }

.section-dark { background: var(--navy); color: var(--white); }
.split-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.eyebrow-light { color: var(--aqua); }
.split-copy { color: #b8c3d8; font-size: 1.08rem; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 30px 0 0; list-style: none; color: var(--white); font-size: 0.96rem; }
.check-list > li { display: flex; align-items: flex-start; gap: 9px; }
.check-list > li > span:first-child { display: inline-grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(109, 224, 209, .16); color: var(--aqua); font-size: 0.8rem; }

.status-section { padding-top: 90px; padding-bottom: 90px; }
.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.status-panel p:last-child { max-width: 590px; }
.site-footer { display: flex; justify-content: space-between; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

.manual-main { padding: 62px 0 110px; }
.manual-hero { max-width: 800px; margin-bottom: 54px; }
.manual-hero h1 { margin: 0; font-size: clamp(2.9rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.manual-lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.manual-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.manual-pill { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .78rem; font-weight: 700; }
.manual-notice { margin: 0 0 42px; padding: 24px; border: 1px solid #b9d2ff; border-radius: 22px; background: #eaf2ff; }
.manual-notice strong { display: block; margin-bottom: 5px; }
.manual-notice p { margin: 0; color: #3e5577; }
.manual-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; align-items: start; }
.manual-toc { position: sticky; top: 24px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.manual-toc strong { margin: 0 0 7px 10px; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; }
.manual-toc a { padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.manual-toc a:hover { background: var(--paper); color: var(--ink); }
.manual-content { min-width: 0; }
.manual-section { padding: 4px 0 54px; border-bottom: 1px solid var(--line); }
.manual-section + .manual-section { padding-top: 54px; }
.manual-section h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.manual-section h3 { margin: 30px 0 8px; font-size: 1.15rem; }
.manual-section p { margin: 10px 0; color: var(--muted); }
.manual-section a { color: #1f68d8; }
.manual-section ol, .manual-section ul { margin: 16px 0; padding-left: 1.35rem; }
.manual-section li { margin: 9px 0; }
.manual-section code { padding: 2px 6px; border-radius: 6px; background: #e9edf4; font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
.manual-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.manual-card h3 { margin: 0 0 7px; }
.manual-card p { margin: 0; }
.example-rule { margin: 20px 0; padding: 22px; border-radius: 20px; background: var(--navy); color: var(--white); }
.example-rule strong { color: var(--aqua); }
.example-rule p { margin: 5px 0; color: #c3cde0; }
.test-checklist { padding: 0; list-style: none; }
.test-checklist li { display: flex; gap: 10px; }
.test-checklist li::before { content: "□"; color: var(--blue); font-size: 1.2rem; line-height: 1.35; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: 10px 0 0; }
.feedback-template { padding: 20px; border: 1px dashed #9eb1ce; border-radius: 18px; background: #fbfcfe; }
.feedback-template p { margin: 3px 0; }

.app-nav { display: none; }

.update-banner {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(560px, calc(100% - 32px));
  margin-inline: auto;
  padding: 14px 16px 14px 19px;
  border: 1px solid #b9d2ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(16, 26, 46, .2);
  backdrop-filter: blur(14px);
}
.update-banner[hidden] { display: none; }
.update-banner-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.update-banner-copy strong { font-size: .94rem; }
.update-banner-copy span { color: var(--muted); font-size: .82rem; }
.update-action { min-height: 40px; padding-inline: 16px; white-space: nowrap; }
.update-dismiss { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.update-dismiss:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 760px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .shell, .site-header { width: min(100% - 32px, 560px); }
  .site-header { padding: 21px 0; }
  .header-link { display: none; }
  .hero { padding: 78px 0 88px; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5.6rem); }
  .hero-copy strong { white-space: normal; }
  .section { padding: 78px 0; }
  .feature-grid, .split-layout { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .feature-card h3 { margin-top: 50px; }
  .split-layout { gap: 30px; }
  .status-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
  .site-footer { flex-direction: column; gap: 6px; }
  .app-nav {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(520px, calc(100% - 24px));
    min-height: 66px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid rgba(220, 227, 238, .95);
    border-radius: 23px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 42px rgba(16, 26, 46, .2);
    backdrop-filter: blur(18px);
  }
  .app-nav-item {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-radius: 17px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .app-nav-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .app-nav-item[aria-current="page"] { background: #eaf2ff; color: var(--blue); }
  .app-nav-item:active { transform: scale(.96); }
  .update-banner { bottom: calc(88px + env(safe-area-inset-bottom)); align-items: flex-start; gap: 10px; padding: 14px; }
  .update-action { align-self: center; }
  .manual-main { padding-top: 42px; padding-bottom: 100px; }
  .manual-layout { grid-template-columns: 1fr; gap: 30px; }
  .manual-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-toc strong { grid-column: 1 / -1; }
  .manual-grid { grid-template-columns: 1fr; }
}
