:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #58677a;
  --paper: #ffffff;
  --surface: #ffffff;
  --mist: #edf3f2;
  --teal: #146c63;
  --teal-dark: #0f554e;
  --yellow: #f2c45c;
  --coral: #df6b57;
  --line: #cdd9d7;
  --field: #ffffff;
  --shadow: 0 24px 60px rgba(20, 54, 50, .16);
  --soft-shadow: 0 18px 44px rgba(20, 54, 50, .1);
  --footer-bg: #f8faf9;
  --feature-line: #3a776f;
  --feature-text: #cfe2df;
  --status-text: #60480f;
  --status-border: #b28622;
  --hero-bg: var(--mist);
  --hero-text: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #aab3c2;
  --paper: #111827;
  --surface: #1f2937;
  --mist: #16212f;
  --teal: #2dd4bf;
  --teal-dark: #0f554e;
  --yellow: #f2c45c;
  --coral: #f87171;
  --line: #344054;
  --field: #111827;
  --shadow: 0 24px 60px rgba(0, 0, 0, .34);
  --soft-shadow: 0 18px 44px rgba(0, 0, 0, .26);
  --footer-bg: #151f2c;
  --feature-line: #2e665f;
  --feature-text: #d7ebe8;
  --status-text: #3c2a04;
  --status-border: #ad8424;
  --hero-bg: #083a35;
  --hero-text: #f8fafc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; text-decoration: none; }
.site-brand img { width: 36px; height: 36px; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-cta, .primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border-radius: 6px; background: var(--teal); color: white; font-weight: 800; text-decoration: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--teal);
}

.hero {
  min-height: min(760px, calc(100vh - 70px));
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 5vw;
  overflow: hidden;
  padding: 70px 5vw;
  background: var(--hero-bg);
  color: var(--hero-text);
}

.hero-image {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  grid-column: 2;
  grid-row: 1;
  object-fit: contain;
  object-position: center;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}
.hero-overlay h1 { margin: 0; font-size: 48px; letter-spacing: 0; }
.hero-overlay p { margin: 4px 0 20px; font-size: 20px; }

.feature-band { padding: 90px 6vw 100px; background: var(--teal-dark); color: white; }
.section-heading { max-width: 700px; margin-bottom: 48px; }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: 12px; font-weight: 900; }
.section-heading h2, .product-copy h2, .premium-copy h2, .tabicide-copy h2, .install-section h2 { margin: 0; font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--feature-text); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--feature-line); border: 1px solid var(--feature-line); }
.feature-grid article { min-height: 260px; padding: 34px; background: var(--teal-dark); }
.feature-number { color: var(--yellow); font-size: 13px; font-weight: 900; }
.feature-grid h3 { margin: 54px 0 10px; font-size: 23px; }
.feature-grid p { margin: 0; color: var(--feature-text); }

.product-section, .premium-section { display: grid; grid-template-columns: 38% 62%; align-items: center; min-height: 700px; padding: 80px 5vw; gap: 5vw; overflow: hidden; }
.product-copy { max-width: 500px; }
.product-copy .eyebrow { color: var(--teal); }
.product-copy > p:not(.eyebrow), .premium-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.product-copy ul { padding: 0; margin: 28px 0 0; list-style: none; }
.product-copy li { margin: 11px 0; padding-left: 22px; position: relative; font-weight: 700; }
.product-copy li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.product-section img, .premium-section img { width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow); }

.premium-section { grid-template-columns: 62% 38%; background: var(--mist); }
.premium-copy { max-width: 480px; }
.premium-copy .eyebrow { color: var(--teal); }
.premium-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.premium-points span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 800; }

.tabicide-section {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 6vw;
  padding: 80px 6vw;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabicide-preview {
  width: min(100%, 460px);
  aspect-ratio: 600 / 560;
  overflow: hidden;
  filter: drop-shadow(0 22px 24px rgba(17, 24, 39, .2));
  clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 97%, 91% 93%, 85% 98%, 78% 94%, 71% 99%, 64% 93%, 56% 98%, 49% 94%, 42% 99%, 35% 93%, 28% 98%, 21% 94%, 14% 99%, 7% 94%, 0 97%);
}
.tabicide-preview img { width: 100%; height: auto; }
.tabicide-copy { max-width: 620px; }
.tabicide-copy .eyebrow { color: var(--teal); }
.tabicide-copy > p:not(.eyebrow) { margin: 16px 0 26px; color: var(--muted); font-size: 18px; }

.install-section { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 72px 6vw; background: var(--yellow); }
.install-section img { width: 82px; height: 82px; }
.install-section .eyebrow { color: var(--teal-dark); }
.install-section p:not(.eyebrow) { margin-bottom: 0; }
.store-status { padding: 11px 14px; border: 1px solid var(--status-border); border-radius: 6px; color: var(--status-text); font-size: 13px; font-weight: 850; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 34px 5vw; border-top: 1px solid var(--line); background: var(--footer-bg); }
footer div { display: flex; gap: 24px; }
footer div a { font-size: 14px; font-weight: 700; }
footer p { justify-self: end; color: var(--muted); font-size: 13px; }

.document { max-width: 820px; margin: 0 auto; padding: 72px 24px 110px; }
.document h1 { margin: 0 0 12px; font-size: 46px; line-height: 1.1; }
.document h2 { margin: 42px 0 8px; font-size: 24px; }
.document p, .document li { color: var(--muted); }
.document .updated { margin-bottom: 42px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 48px 6vw; }
  .hero-image { grid-column: 1; grid-row: 2; height: auto; object-fit: contain; }
  .hero-overlay { grid-column: 1; grid-row: 1; }
  .hero-overlay h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 210px; }
  .feature-grid h3 { margin-top: 32px; }
  .product-section, .premium-section { grid-template-columns: 1fr; min-height: 0; padding: 70px 6vw; }
  .premium-section img { order: 2; }
  .tabicide-section { grid-template-columns: 1fr; gap: 28px; }
  .tabicide-preview { width: min(100%, 420px); }
  .install-section { grid-template-columns: auto 1fr; }
  .store-status { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr; }
  footer p { justify-self: start; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 18px; }
  .site-header nav { gap: 0; }
  .section-heading h2, .product-copy h2, .premium-copy h2, .tabicide-copy h2, .install-section h2 { font-size: 32px; }
  .feature-band { padding: 64px 20px; }
  .product-section, .premium-section { padding: 58px 20px; }
  .tabicide-section { padding: 58px 20px; }
  .install-section { padding: 50px 20px; }
}
