:root {
  --ink: #172823;
  --muted: #52655f;
  --green: #08785d;
  --green-dark: #075744;
  --green-soft: #e7f4ef;
  --cream: #fbfaf5;
  --paper: #ffffff;
  --line: #d8e1dc;
  --gold: #d9a62e;
  --focus: #155eef;
  --shadow: 0 18px 50px rgba(23, 40, 35, .09);
  --radius: 1.25rem;
  --content: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: .18em; }
a:hover { color: var(--green); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .2rem solid var(--focus); outline-offset: .2rem; border-radius: .2rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.75rem); max-width: 14ch; }
h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { margin: 1.8rem 0 .55rem; font-size: 1.25rem; }
p, ul, ol { margin-top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); font-weight: 800; transform: translateY(-180%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(216,225,220,.9); background: rgba(251,250,245,.96); backdrop-filter: blur(14px); }
.nav-shell { width: min(calc(100% - 2rem), var(--content)); min-height: 4.6rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .76rem; }
.brand-mark { width: 2.15rem; height: 2.45rem; padding: .52rem .45rem; border-radius: .45rem .45rem .65rem .65rem; background: var(--green); box-shadow: 0 .28rem 0 #075744; }
.brand-mark span { display: block; height: 2px; margin: .25rem 0; background: white; border-radius: 2px; }
.primary-nav > ul { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .nav-dropdown-toggle { display: block; padding: .65rem .58rem; border: 0; border-radius: .45rem; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary-nav a:hover, .nav-dropdown-toggle:hover, .primary-nav [aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav-dropdown { position: relative; }
.nav-submenu { position: absolute; top: calc(100% + .45rem); left: 0; min-width: 13rem; margin: 0; padding: .45rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); box-shadow: var(--shadow); list-style: none; }
.nav-submenu[hidden] { display: none; }
.nav-submenu a { padding: .65rem .75rem; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .6rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: .25rem 0; background: var(--ink); }

main { width: min(calc(100% - 2rem), var(--content)); margin: auto; padding: 3.5rem 0 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 31rem; padding: clamp(2rem, 5vw, 4.5rem); overflow: hidden; border-radius: 2rem; background: linear-gradient(135deg, #dff3eb 0%, #f8f4e9 62%, #f0e4c7 100%); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; }
.hero-intro { max-width: 47rem; margin: 1.25rem 0 1.75rem; color: #344e45; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.eyebrow { margin-bottom: .65rem; color: var(--green-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .72rem 1.05rem; border: 2px solid var(--green-dark); border-radius: .65rem; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--green-dark); color: white; }
.button.primary:hover { background: var(--green); border-color: var(--green); color: white; }
.button.secondary { background: transparent; color: var(--green-dark); }
.button.secondary:hover { background: white; }
.hero-visual { display: grid; place-items: center; }
.receipt-card { width: min(15rem, 100%); aspect-ratio: 4 / 5; padding: 3rem 2rem 2rem; transform: rotate(4deg); border: 1px solid #c8d7d0; border-radius: .6rem .6rem 1.1rem 1.1rem; background: white; box-shadow: 1.4rem 1.5rem 0 rgba(8,120,93,.14); }
.receipt-card span { display: block; height: .55rem; margin-bottom: 1.15rem; border-radius: 1rem; background: #dce7e2; }
.receipt-card span:nth-child(2) { width: 72%; }
.receipt-card strong { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: 2.5rem auto 0; border-radius: 50%; background: var(--green); color: white; font-size: 1.7rem; }
.app-window { width: min(17rem, 100%); padding: 1rem; transform: rotate(2deg); border: 1px solid #c8d7d0; border-radius: 1.25rem; background: white; box-shadow: 1.4rem 1.5rem 0 rgba(8,120,93,.14); }
.app-window > span { display: block; width: 42%; height: .55rem; margin: .2rem 0 1rem; border-radius: 1rem; background: #b8d8cc; }
.app-window > div { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.app-window i { display: block; min-height: 4.6rem; border-radius: .85rem; background: var(--green-soft); }
.app-window i:nth-child(2) { background: #f0e4c7; }
.app-window i:nth-child(3) { background: #e7ece9; }
.app-window i:nth-child(4) { background: #d8eee6; }

.intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; padding: 5rem 1rem 2rem; }
.intro-band > p { color: var(--muted); font-size: 1.08rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid.compact article, .support-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card-grid.compact h2, .support-grid h2 { font-size: 1.35rem; }
.app-family { margin-top: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.55); scroll-margin-top: 6rem; }
.family-heading { max-width: 48rem; margin-bottom: 1.5rem; }
.family-heading h2 { margin-bottom: .6rem; }
.comparison h3 { margin-top: 0; font-size: 1.35rem; }
.catalog-note { margin: 1.25rem .25rem 0; color: var(--muted); }
.app-card, .content-section, .manual-header, .toc, .notice, .disclaimer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.app-card { position: relative; padding: 1.65rem; overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: .35rem; background: var(--green); }
.app-card.lite::before { background: #527665; }
.app-card.pro::before { background: var(--gold); }
.edition-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 1.5rem; border-radius: .8rem; background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.app-card h2 { font-size: 1.55rem; }
.app-card ul { padding-left: 1.25rem; color: var(--muted); }
.text-link { font-weight: 850; }
.content-section, .manual-header, .legal-header { margin-top: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); }
.legal-header { border-radius: var(--radius); background: linear-gradient(135deg, #dff3eb, #f8f4e9); }
.legal-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.content-section > :last-child, .notice > :last-child, .disclaimer > :last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.notice, .disclaimer { margin-top: 1.25rem; padding: 1.25rem 1.5rem; }
.notice { border-left: .4rem solid var(--green); background: var(--green-soft); }
.warning { border-left-color: #a66300; background: #fff3d3; }
.disclaimer { background: #f5f4ef; }
.disclaimer h2, .notice h2 { font-size: 1.3rem; }

.breadcrumbs { margin-bottom: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #899993; }
.manual-header { margin-top: 0; background: linear-gradient(135deg, var(--paper), var(--green-soft)); }
.manual-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.manual-header > p:not(.eyebrow) { max-width: 52rem; }
.manual-version { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.toc { margin: 1.25rem 0; padding: 1.5rem; }
.toc h2 { font-size: 1.35rem; }
.toc ol { columns: 2; padding-left: 1.25rem; }
.toc li { break-inside: avoid; margin-bottom: .35rem; }
.content-section section { scroll-margin-top: 6rem; }
.content-section ul, .content-section ol { padding-left: 1.35rem; }
.content-section li + li { margin-top: .35rem; }
.table-scroll, .table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: .2rem solid var(--focus); outline-offset: .2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--green-soft); }

.site-footer { padding: 3.5rem max(1rem, calc((100% - var(--content)) / 2)); background: #112b23; color: #eaf3ef; }
.site-footer a { color: #f2d47e; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: white !important; font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.footer-family { color: #bed0c9; font-size: .9rem; }
.site-footer h2 { font-size: 1rem; color: white; }
.site-footer ul { padding: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }

@media (max-width: 68rem) {
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; max-height: calc(100vh - 6rem); overflow: auto; border: 1px solid var(--line); border-radius: 0 0 .9rem .9rem; background: var(--paper); box-shadow: var(--shadow); }
  .primary-nav[hidden] { display: none; }
  .primary-nav > ul { display: block; padding: .7rem; }
  .primary-nav a, .nav-dropdown-toggle { width: 100%; padding: .8rem; text-align: left; }
  .nav-submenu { position: static; margin: .1rem .6rem .6rem; box-shadow: none; }
}

@media (max-width: 48rem) {
  main { padding-top: 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 2rem 1.35rem; border-radius: 1.25rem; }
  .hero-visual { display: none; }
  .intro-band, .split, .footer-grid { grid-template-columns: 1fr; gap: .8rem; }
  .intro-band { padding: 3.5rem .25rem 1.5rem; }
  .card-grid, .support-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.troubleshooting div { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.troubleshooting dt { font-weight: 850; }
.troubleshooting dd { margin: .2rem 0 0; color: var(--muted); }
