:root {
  --teal: #49b39c;
  --teal-deep: #1f6e5d;
  --navy: #1a2c30;
  --cream: #fffcd5;
  --paper: #f5f1e7;
  --white: #fffef9;
  --coral: #ec765d;
  --muted: #6f7f81;
  --line: rgba(26,44,48,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--navy); font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.manual-hero { position: relative; min-height: 560px; overflow: hidden; padding: 0 clamp(24px,7vw,110px) 75px; background: var(--navy); color: white; }
.manual-hero::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: url('../assets/network-pattern.png'); background-size: 520px; }
.manual-hero::after { content: ''; position: absolute; width: 590px; height: 590px; right: -240px; bottom: -360px; border: 1px solid rgba(73,179,156,.26); border-radius: 50%; box-shadow: 0 0 0 58px rgba(73,179,156,.025), 0 0 0 116px rgba(73,179,156,.018); }
.manual-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 104px; border-bottom: 1px solid rgba(255,255,255,.12); }
.manual-nav img { width: 148px; filter: brightness(0) invert(1); }
.manual-nav > div { display: flex; align-items: center; gap: 20px; }
.manual-nav a { padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); color: white; font-size: 9px; font-weight: 600; text-decoration: none; }
.version { color: #8ce3cd; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); align-items: end; gap: 80px; max-width: 1350px; margin: 92px auto 0; }
.eyebrow { margin: 0 0 9px; color: var(--teal-deep); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.manual-hero .eyebrow { color: #8ce3cd; }
.hero-grid h1 { max-width: 830px; margin: 0; font-family: 'Fredoka'; font-size: clamp(52px,6.5vw,92px); font-weight: 600; letter-spacing: -.055em; line-height: .92; }
.hero-grid h1 span { color: var(--teal); }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.8; }
.hero-note { position: relative; padding: 27px; border-left: 4px solid var(--teal); background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.note-number { position: absolute; top: -32px; right: 0; color: rgba(255,255,255,.1); font-family: 'Fredoka'; font-size: 88px; font-weight: 700; }
.hero-note p { margin: 0 0 7px; color: #8ce3cd; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-note strong { position: relative; display: block; font-family: 'Fredoka'; font-size: 24px; font-weight: 600; line-height: 1.1; }
.hero-note small { display: block; margin-top: 11px; color: rgba(255,255,255,.48); font-size: 9px; line-height: 1.6; }

.manual-layout { display: grid; grid-template-columns: 230px minmax(0,980px); justify-content: center; gap: clamp(45px,7vw,110px); padding: 78px clamp(24px,5vw,70px) 100px; }
.manual-index { position: sticky; top: 30px; align-self: start; display: grid; border-top: 3px solid var(--navy); }
.manual-index > p { margin: 18px 0 15px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.manual-index > a { padding: 11px 0; border-top: 1px solid var(--line); color: #627174; font-size: 9px; text-decoration: none; transition: color .2s, padding .2s; }
.manual-index > a:hover { padding-left: 7px; color: var(--teal-deep); }
.index-status { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 13px; background: var(--cream); }
.index-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(73,179,156,.14); }
.index-status span { display: grid; color: var(--muted); font-size: 7px; }
.index-status strong { color: var(--navy); font-size: 9px; }

.manual-content { min-width: 0; }
.manual-section { padding: 75px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.manual-section:first-child { padding-top: 0; }
.manual-section h2 { max-width: 720px; margin: 0 0 18px; font-family: 'Fredoka'; font-size: clamp(34px,4vw,50px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.lead { max-width: 750px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.status-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 36px 0; }
.status-flow > div { min-height: 125px; padding: 17px; border: 1px solid var(--line); background: var(--white); }
.status-flow span { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 17px; border-radius: 50%; background: var(--teal); color: var(--navy); font-family: 'Fredoka'; font-size: 10px; font-weight: 700; }
.status-flow small { display: block; color: var(--teal-deep); font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-flow strong { display: block; margin-top: 4px; font-size: 9px; }
.status-flow > i { color: var(--teal-deep); font-style: normal; }
.quick-steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.step { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 19px; background: var(--navy); color: white; }
.step b { color: var(--teal); font-family: 'Fredoka'; font-size: 25px; }
.step strong { font-family: 'Fredoka'; font-size: 16px; }
.step p { margin: 5px 0 0; color: rgba(255,255,255,.52); font-size: 8px; line-height: 1.6; }
code { padding: 2px 5px; background: rgba(73,179,156,.12); color: var(--teal-deep); font-family: monospace; }
.step code { background: rgba(73,179,156,.15); color: #9ae8d3; }

.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 30px; }
.feature { min-height: 180px; padding: 20px; border-top: 3px solid var(--teal); background: var(--white); }
.feature > span { display: grid; place-items: center; width: 34px; height: 34px; background: rgba(73,179,156,.12); color: var(--teal-deep); font-family: 'Fredoka'; }
.feature h3 { margin: 24px 0 7px; font-family: 'Fredoka'; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.field-callout { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 12px; padding: 20px; border-left: 4px solid var(--coral); background: #eee9dc; }
.field-callout strong { font-family: 'Fredoka'; font-size: 16px; }
.field-callout p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }

.action-table { margin-top: 30px; border: 1px solid var(--line); background: var(--white); }
.action-row { display: grid; grid-template-columns: .7fr 1fr 1.35fr; gap: 20px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.action-row:first-child { border-top: 0; }
.action-row strong { color: var(--teal-deep); font-size: 10px; }
.action-row p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.action-head { background: var(--navy); color: white; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.safety-note { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 18px 20px; background: var(--cream); }
.safety-note > span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--coral); color: white; font-family: 'Fredoka'; font-size: 19px; }
.safety-note strong { font-family: 'Fredoka'; font-size: 15px; }
.safety-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }

.two-columns { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
.two-columns > div { padding: 25px; border: 1px solid var(--line); background: var(--white); }
.two-columns h3 { margin: 0 0 15px; font-family: 'Fredoka'; font-size: 19px; }
.two-columns ul, .two-columns ol { margin: 0; padding-left: 19px; color: var(--muted); font-size: 9px; line-height: 2; }
.two-columns strong { color: var(--navy); }

.app-bridge { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 30px; }
.app-bridge > div { min-height: 170px; padding: 22px; background: var(--teal); }
.app-bridge > div:nth-of-type(2) { background: var(--cream); }
.app-bridge > div:nth-of-type(3) { background: var(--navy); color: white; }
.app-bridge span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%; background: rgba(255,255,255,.4); font-family: 'Fredoka'; font-size: 9px; font-weight: 700; }
.app-bridge strong { display: block; font-family: 'Fredoka'; font-size: 16px; }
.app-bridge p { margin: 6px 0 0; color: rgba(26,44,48,.63); font-size: 8px; line-height: 1.6; }
.app-bridge > div:nth-of-type(3) p { color: rgba(255,255,255,.52); }
.app-bridge > i { color: var(--teal-deep); font-style: normal; }
.app-link { display: inline-flex; gap: 8px; margin-top: 15px; padding: 12px 16px; background: var(--teal-deep); color: white; font-size: 9px; font-weight: 600; text-decoration: none; }

details { border-top: 1px solid var(--line); background: rgba(255,254,249,.62); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: 18px 5px; cursor: pointer; font-family: 'Fredoka'; font-size: 15px; }
details p { max-width: 750px; margin: -4px 0 20px; padding: 0 30px 0 5px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.demo-warning { margin-top: 26px; padding: 24px; background: var(--navy); color: white; }
.demo-warning strong { color: var(--teal); font-family: 'Fredoka'; font-size: 18px; }
.demo-warning p { margin: 7px 0 0; color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.7; }

footer { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 30px; background: var(--navy); color: rgba(255,255,255,.5); font-size: 8px; }
footer img { width: 32px; }
footer a { margin-left: 20px; color: #8ce3cd; text-decoration: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-index { position: static; grid-template-columns: repeat(3,1fr); gap: 0 12px; }
  .manual-index > p, .index-status { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .manual-hero { min-height: auto; padding-bottom: 55px; }
  .manual-nav { align-items: flex-start; padding: 24px 0; }
  .manual-nav img { width: 112px; }
  .manual-nav .version { display: none; }
  .hero-grid { margin-top: 45px; }
  .hero-grid h1 { font-size: 49px; }
  .manual-layout { padding: 45px 18px 70px; }
  .manual-index { display: none; }
  .manual-section { padding: 55px 0; }
  .status-flow { grid-template-columns: 1fr; }
  .status-flow > i { transform: rotate(90deg); text-align: center; }
  .quick-steps, .feature-grid, .two-columns { grid-template-columns: 1fr; }
  .action-row { grid-template-columns: 1fr; gap: 5px; }
  .action-head { display: none; }
  .field-callout { grid-template-columns: 1fr; gap: 5px; }
  .app-bridge { grid-template-columns: 1fr; }
  .app-bridge > i { transform: rotate(90deg); text-align: center; }
  footer { flex-wrap: wrap; }
}

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