:root {
  --green: #0b6e4f;
  --green-dark: #07523c;
  --green-soft: #e9f6f1;
  --blue: #155ea8;
  --ink: #17211d;
  --muted: #5b6863;
  --surface: #ffffff;
  --background: #f4f7f5;
  --border: #dce6e1;
  --shadow: 0 12px 30px rgba(18, 48, 37, 0.08);
  --radius: 18px;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
.site-shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--green), #23a074); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.hero { padding: clamp(46px, 8vw, 88px) 0 38px; background: radial-gradient(circle at 88% 12%, #d7f1e7 0, transparent 34%), linear-gradient(180deg, #fff, var(--background)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 44px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; }
h1 { margin: 0 0 16px; font-size: clamp(38px, 6vw, 64px); max-width: 16ch; }
.hero p.lead { margin: 0 0 24px; max-width: 66ch; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-panel { padding: 26px; border: 1px solid var(--border); background: rgba(255,255,255,.86); border-radius: 24px; box-shadow: var(--shadow); }
.hero-panel h2 { margin-top: 0; font-size: 22px; }
.hero-panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.button-row, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; text-decoration: none; text-align: center; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { color: #fff; background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border-color: var(--green); background: #fff; }
.button-secondary:hover { background: var(--green-soft); }
.button-unavailable { color: #5e6864; border-color: #c9d2ce; background: #edf1ef; cursor: not-allowed; }
.section { padding: 42px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.section-heading p { max-width: 62ch; margin: 7px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.category-card { display: block; padding: 22px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(18,48,37,.04); }
.category-card:hover { border-color: #9ecfbd; box-shadow: var(--shadow); }
.category-card h3 { margin: 0 0 8px; }
.category-card p { margin: 0; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.app-card { display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 20px rgba(18,48,37,.05); }
.app-icon-link { display: block; background: #edf2ef; }
.app-icon-link img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; aspect-ratio: 1; }
.app-card-body { padding: 18px; }
.app-card h3 { margin: 0 0 7px; font-size: 21px; }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card-body > p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.card-actions .button { min-height: 42px; padding: 9px 12px; font-size: 13px; }
.breadcrumbs { padding-top: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; padding-left: 7px; color: #9ba7a2; }
.app-hero { padding: 28px 0 34px; }
.app-hero-grid { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 34px; align-items: center; }
.app-hero-icon { width: 210px; height: 210px; object-fit: cover; border-radius: 25%; box-shadow: var(--shadow); background: #fff; }
.app-hero h1 { max-width: 18ch; font-size: clamp(34px, 5vw, 58px); }
.app-hero .lead { max-width: 68ch; color: var(--muted); font-size: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 28px; align-items: start; }
.content-card { padding: clamp(22px, 4vw, 34px); margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.content-card h2 { margin-top: 0; font-size: 28px; }
.content-card h3 { margin-top: 26px; }
.feature-list, .steps-list { padding-left: 22px; }
.feature-list li, .steps-list li { margin-bottom: 9px; }
.side-card { position: sticky; top: 94px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.side-card .button { width: 100%; }
.side-card dl { margin: 18px 0 0; }
.side-card dt { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.side-card dd { margin: 2px 0 0; }
.faq details { padding: 16px 0; border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { color: var(--muted); }
.notice { padding: 16px 18px; border-left: 4px solid var(--blue); background: #eef5fc; border-radius: 8px; color: #274760; }
.site-footer { margin-top: 42px; padding: 38px 0; color: #dfeae5; background: #17362b; }
.footer-inner { display: grid; gap: 6px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.fine-print { color: #b9ccc4; font-size: 13px; }
.empty-state { padding: 30px; border: 1px dashed #aebdb6; border-radius: var(--radius); background: #fff; text-align: center; }
.app-store-help { position: fixed; z-index: 1000; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(430px, calc(100% - 32px)); padding: 20px 50px 20px 20px; border: 1px solid #9ecfbd; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 18px 50px rgba(18,48,37,.22); }
.app-store-help[hidden] { display: none; }
.app-store-help strong { display: block; margin-bottom: 5px; font-size: 17px; }
.app-store-help p { margin: 0 0 13px; color: var(--muted); font-size: 14px; }
.app-store-help .button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.app-store-help-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.app-store-help-close:hover, .app-store-help-close:focus-visible { color: var(--ink); background: var(--green-soft); }

@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 640px) {
  .site-shell { width: min(calc(100% - 22px), var(--shell)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 10px; gap: 8px; }
  .site-header { position: static; }
  .site-header nav { width: 100%; overflow-x: auto; }
  .site-header nav a { white-space: nowrap; }
  .hero { padding-top: 38px; }
  h1 { font-size: 38px; }
  .category-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 112px minmax(0,1fr); }
  .app-icon-link img { min-height: 112px; }
  .app-card-body { padding: 14px; }
  .card-actions { flex-direction: column; }
  .card-actions .button { width: 100%; }
  .app-hero-grid { grid-template-columns: 92px minmax(0,1fr); gap: 18px; align-items: start; }
  .app-hero-icon { width: 92px; height: 92px; border-radius: 22%; }
  .app-hero h1 { font-size: 32px; }
  .app-hero .lead, .app-hero .button-row { grid-column: 1 / -1; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .app-store-help { right: 11px; bottom: max(11px, env(safe-area-inset-bottom)); width: calc(100% - 22px); }
}

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