:root {
  --ink: #171b1d;
  --muted: #5e696c;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #d9dfde;
  --brand: #086c68;
  --brand-dark: #064d4b;
  --brand-soft: #e8f3f2;
  --teal: #086c68;
  --teal-soft: #e8f3f2;
  --accent: #d95f3a;
  --code: #172527;
  --shadow: 0 18px 48px rgba(22, 40, 40, .1);
}

html { overflow-x: clip; }

body { overflow-x: clip; background: var(--paper); color: var(--ink); }
body.docs-page main :is(a, button, code, small, strong, b, span, p, th, td, figcaption, label, legend) { font-size: max(14px, 1em) !important; }
.wrap { width: min(1120px, calc(100% - 36px)); }

.site-header { border-bottom: 1px solid rgba(217, 221, 225, .9); background: rgba(245, 246, 247, .94); backdrop-filter: blur(14px); }
.nav { min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 32px; }
.nav-links { gap: 16px; }
.nav-links a { color: var(--ink); font-size: .86rem; font-weight: 750; }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links .lang { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f9fafb; color: var(--muted); }
.nav-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.family-page-nav { border-bottom: 1px solid var(--line); background: var(--card); }
.family-page-nav .wrap { display: flex; overflow-x: auto; }
.family-page-nav a { flex: 1 0 auto; padding: 14px 18px; border-right: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: 750; text-align: center; text-decoration: none; }
.family-page-nav a:first-child { border-left: 1px solid var(--line); }
.family-page-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.family-docs-nav a { flex: 1 1 25%; min-width: 150px; }
.family-docs-nav a.is-current { background: var(--brand-soft); color: var(--brand-dark); }
.legacy-docs-nav { display: none; }

body.fields-home .docs-hero { display: none; }
.hero { padding: 72px 0 64px; background: var(--card); }
.hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 72px; }
.hero .eyebrow { display: none; }
.hero h1.family-product-title { margin: 0; font-size: clamp(4.2rem, 8vw, 6rem); font-weight: 700; line-height: 1.02; }
.family-hero-statement { max-width: 720px; margin: 25px 0 0; font-size: clamp(1.55rem, 2.5vw, 1.85rem); font-weight: 700; line-height: 1.48; }
.family-hero-statement strong { color: var(--brand); }
.hero .lead { max-width: 710px; margin-top: 24px; color: var(--muted); font-size: 1.05rem; }
.hero-mark { aspect-ratio: 1; }
.hero-card { overflow: hidden; border-radius: 8px; background: #f9f5ef; transform: none; }
.notice { margin-top: 28px; border-left-color: var(--accent); background: #fff3ec; color: var(--muted); }

section { padding: 76px 0; }
section:nth-of-type(even):not(.hero):not(.docs-hero):not(.related-products) { background: var(--card); }
.section-head h2 { font-size: clamp(2.25rem, 4vw, 3.2rem); letter-spacing: 0; }
.feature, .shot-card, .step, .related-product, .reference-card, .guide-card, .privacy-card { border-color: var(--line); border-radius: 8px; background: var(--card); box-shadow: none; }
.feature { min-height: 210px; }
.feature .num { color: var(--brand); }
.button { min-height: 48px; border-radius: 6px; background: var(--brand); border-color: var(--brand); }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.secondary { background: var(--card); border-color: var(--line); color: var(--ink); }

.docs-hero { padding: 70px 0 48px; border-bottom: 1px solid var(--line); background: var(--card); }
.docs-hero h1 { font-size: clamp(3.1rem, 7vw, 5.25rem); letter-spacing: 0; }

.fields-page-footer { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); background: #f4f7f6; color: var(--muted); }
.fields-page-footer .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.fields-page-footer p { max-width: 720px; margin: 0; line-height: 1.75; }
.fields-page-footer .footer-links { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px 18px; }
.fields-page-footer a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.fields-page-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1120px) {
  .site-header { position: relative; z-index: 20; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); right: 18px; left: 18px; z-index: 30; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
  .nav-links.is-open { display: grid; gap: 0; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 4px; }
  .nav-links.is-open a:not(.lang) { display: block; }
  .nav-links a:hover { background: var(--brand-soft); }
  .nav-links .lang { margin-top: 6px; text-align: center; }
  .fields-page-footer .footer-grid { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .brand img { height: 28px; }
  .hero { padding: 54px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero h1.family-product-title { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .family-hero-statement { font-size: 1.35rem; }
  .guide-hero h1 { font-size: 38px; line-height: 1.08; }
  .guide-hero h1 span { white-space: normal; }
  .fields-page-footer .footer-links { width: 100%; }
}
