:root {
  --ink: #17202a;
  --muted: #52606d;
  --paper: #f7f9fb;
  --line: #dbe2e8;
  --accent: #e95d2a;
  --teal: #0f766e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header, main > section, footer {
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; padding: 2px; object-fit: contain; background: #fff; }
.header-actions { display: flex; align-items: center; gap: 24px; }
nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--accent); }
.language-picker select { min-height: 34px; padding: 5px 30px 5px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.language-picker select:focus-visible { outline: 3px solid rgba(15, 118, 110, .28); outline-offset: 2px; }
.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; }

.hero { min-height: 650px; position: relative; display: grid; align-items: center; overflow: hidden; background: #e9edef; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 1; max-width: 555px; padding: 88px 0; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.25; }
.hero-copy { max-width: 520px; margin-bottom: 30px; padding: 15px 18px; color: #243443; background: rgba(255, 255, 255, .88); border-left: 4px solid var(--teal); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 750; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #c9471a; }
.install-button { color: #fff; border: 0; background: var(--accent); cursor: not-allowed; opacity: .62; }
.secondary { border: 1px solid #9aa8b5; background: rgba(255,255,255,.75); }
.secondary:hover { border-color: var(--ink); background: #fff; }

.feature-section, .workflow { padding-top: 100px; padding-bottom: 100px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 255px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-number { display: inline-block; margin-bottom: 48px; color: var(--accent); font-size: 14px; font-weight: 800; }
.feature-grid p, .support p { color: var(--muted); }
.icon-state-guide { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 32px; margin-top: 28px; padding: 28px; border: 1px solid var(--line); background: #f7f9fb; }
.icon-state-guide h3 { margin-bottom: 12px; }
.icon-state-guide p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.icon-state-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 0; margin: 0; list-style: none; }
.icon-state-list li { display: grid; grid-template-columns: 12px auto; column-gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.icon-state-list strong { color: var(--ink); font-size: 14px; }
.icon-state-list span:last-child { grid-column: 2; }
.icon-state-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(23, 32, 42, .16); }
.icon-state-dot.off { background: #ffffff; }
.icon-state-dot.active { background: #0ea5e9; }
.icon-state-dot.temporary { background: #facc15; }
.icon-state-dot.current { background: #34d399; }
.icon-state-dot.complete { background: #8b5cf6; }
.icon-state-dot.fallback { background: #fb7185; }

.workflow { background: #12202c; color: #f7f9fb; }
.workflow .eyebrow { color: #7dd3c7; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 0; margin: 0; list-style: none; }
.steps li { min-height: 170px; padding-top: 20px; border-top: 2px solid #47606d; }
.steps strong { display: block; margin-bottom: 18px; color: #f6b04c; font-size: 30px; }
.steps span { display: block; max-width: 200px; font-size: 16px; }

.starter-guide { padding-top: 100px; padding-bottom: 100px; background: #fff; }
.section-summary { max-width: 400px; margin: 0; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-grid article { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-label { margin-bottom: 42px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.secondary-guide-label { margin-top: 32px; margin-bottom: 14px; }
.guide-grid article > p:not(.guide-label) { max-width: 470px; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; margin-top: 8px; color: var(--teal); font-size: 15px; font-weight: 750; }
.text-link:hover { color: var(--accent); }

.support { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding-top: 100px; padding-bottom: 100px; }
.support > div > p:not(.eyebrow) { max-width: 520px; margin-top: 20px; }
.provider-list { display: flex; align-content: start; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.provider-list span { padding: 8px 11px; border: 1px solid var(--line); background: #fff; color: #364454; font-size: 14px; font-weight: 650; }

.privacy-section { padding-top: 100px; padding-bottom: 100px; background: #edf5f3; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 72px; align-items: start; }
.privacy-copy { max-width: 610px; color: #334652; font-size: 17px; }
.privacy-copy p:last-child { margin-bottom: 0; }
.privacy-links { border-top: 1px solid #aecbc6; }
.privacy-links a { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #aecbc6; }
.privacy-links a:hover strong { color: var(--accent); }
.privacy-links span { color: var(--muted); font-size: 13px; font-weight: 700; }
.privacy-links strong { font-size: 16px; transition: color .15s ease; }

footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; color: #637381; background: #fff; border-top: 1px solid var(--line); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { color: var(--teal); font-weight: 700; }
.footer-links a:hover { color: var(--accent); }

.policy-body { background: #fff; }
.policy-header, .policy-page, .policy-footer {
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}
.policy-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.language-nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.language-nav a:hover, .language-nav a[aria-current="page"] { color: var(--accent); }
.language-nav a[aria-current="page"] { border-bottom: 2px solid currentColor; }
.policy-page { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 72px; justify-content: center; padding-top: 76px; padding-bottom: 120px; }
.policy-meta { align-self: start; position: sticky; top: 28px; color: var(--muted); font-size: 14px; }
.policy-meta strong { color: var(--ink); }
.policy-meta .text-link { margin-top: 20px; }
.policy-document { min-width: 0; }
.policy-title { padding-bottom: 58px; }
.policy-title h1 { max-width: 720px; margin-bottom: 26px; font-size: clamp(38px, 5vw, 66px); }
.policy-title > p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.policy-document section { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 22px; padding: 34px 0 38px; border-top: 1px solid var(--line); }
.policy-number { grid-row: 1 / span 3; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.policy-document section h2, .policy-document section p, .policy-document section ul { grid-column: 2; }
.policy-document section h2 { margin-bottom: 16px; font-size: 24px; }
.policy-document section p, .policy-document section ul { color: #435361; }
.policy-document section p:last-child, .policy-document section ul:last-child { margin-bottom: 0; }
.policy-document section ul { padding-left: 20px; }
.policy-document section li + li { margin-top: 9px; }
.policy-document section a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.policy-document section a:hover { color: var(--accent); }
.policy-document code { padding: 2px 5px; background: #eef2f5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.policy-footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; color: #637381; background: var(--paper); border-top: 1px solid var(--line); font-size: 13px; }
.policy-footer a { color: var(--teal); font-weight: 700; }
.policy-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .site-header { min-height: 0; align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .site-header nav { gap: 8px; font-size: 13px; }
  .site-header nav a, .brand { white-space: nowrap; }
  .brand { font-size: 14px; }
  .hero { min-height: 620px; align-items: end; }
  .hero-image { object-position: 63% center; }
  .hero-content { align-self: start; padding: 58px 0 48px; }
  .hero-copy { font-size: 16px; }
  .feature-section, .workflow, .starter-guide, .support, .privacy-section { padding-top: 68px; padding-bottom: 68px; }
  .feature-grid, .steps, .guide-grid, .support, .icon-state-guide, .icon-state-list { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .feature-number { margin-bottom: 22px; }
  .support { gap: 24px; }
  .privacy-grid { gap: 34px; }
  .privacy-links a { grid-template-columns: 82px 1fr; }
  footer { flex-direction: column; gap: 4px; }
  .footer-links { justify-content: flex-start; }
  .policy-header { min-height: 0; align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
  .language-nav { gap: 14px; }
  .policy-page { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; padding-bottom: 72px; }
  .policy-meta { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .policy-title { padding-bottom: 42px; }
  .policy-title > p:last-child { font-size: 16px; }
  .policy-document section { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; padding: 28px 0 32px; }
  .policy-document section h2 { font-size: 21px; }
  .policy-footer { flex-direction: column; gap: 4px; }
}
