/* Shared marketing chrome: tokens, header, theme, scroll reveals, footer.
   Light values match the existing homepage. Dark values are the brand pine palette. */

:root {
  --bg: #F9FBF9;
  --surface: #fff;
  --ink: #2D4030;
  --muted: #4A5D4E;
  --primary: #8DAA91;
  --primary-2: #2D4030;
  --accent: #FF7096;
  --line: #DCE4DC;
  --hero: linear-gradient(135deg, #4A5D4E, #6f9475 45%, #8DAA91);
  --nav-bg: rgba(36, 52, 40, 0.88);
  --chip-bg: rgba(141, 170, 145, 0.18);
  --chip-ink: var(--primary-2);
  --quote-bg: rgba(141, 170, 145, 0.1);
  --code-bg: rgba(141, 170, 145, 0.18);
  --badge-shipped-bg: rgba(102, 187, 106, 0.2);
  --badge-shipped-ink: #2E7D32;
  --badge-progress-bg: rgba(255, 167, 38, 0.2);
  --badge-progress-ink: #EF6C00;
  --badge-planned-bg: rgba(141, 170, 145, 0.25);
  --badge-planned-ink: var(--muted);
  --ok-bg: #E8F5E9;
  --ok-ink: #1B5E20;
  --ok-line: #C8E6C9;
  --danger-bg: #FFEBEE;
  --danger-ink: #C62828;
  --danger-line: #FFCDD2;
  --earth: #4A3728;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B2A1E;
    --surface: #243428;
    --ink: #F7FBF7;
    --muted: #B7CBBA;
    --primary: #8FCB93;
    --primary-2: #E4F3E7;
    --accent: #FF7096;
    --line: #3A5344;
    --hero: linear-gradient(135deg, #142018, #24382A 55%, #3D5A45);
    --nav-bg: rgba(12, 22, 15, 0.92);
    --chip-bg: rgba(143, 203, 147, 0.16);
    --chip-ink: #E4F3E7;
    --quote-bg: rgba(143, 203, 147, 0.12);
    --code-bg: rgba(143, 203, 147, 0.16);
    --badge-shipped-bg: rgba(143, 203, 147, 0.18);
    --badge-shipped-ink: #C8E6C9;
    --badge-progress-bg: rgba(255, 183, 77, 0.18);
    --badge-progress-ink: #FFCC80;
    --badge-planned-bg: rgba(183, 203, 186, 0.14);
    --badge-planned-ink: #D5E6D8;
    --ok-bg: #1A3322;
    --ok-ink: #C8E6C9;
    --ok-line: #2E7D32;
    --danger-bg: #3A2224;
    --danger-ink: #FFCDD2;
    --danger-line: #8E3B3B;
    --earth: #E7D5C6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1B2A1E;
  --surface: #243428;
  --ink: #F7FBF7;
  --muted: #B7CBBA;
  --primary: #8FCB93;
  --primary-2: #E4F3E7;
  --accent: #FF7096;
  --line: #3A5344;
  --hero: linear-gradient(135deg, #142018, #24382A 55%, #3D5A45);
  --nav-bg: rgba(12, 22, 15, 0.92);
  --chip-bg: rgba(143, 203, 147, 0.16);
  --chip-ink: #E4F3E7;
  --quote-bg: rgba(143, 203, 147, 0.12);
  --code-bg: rgba(143, 203, 147, 0.16);
  --badge-shipped-bg: rgba(143, 203, 147, 0.18);
  --badge-shipped-ink: #C8E6C9;
  --badge-progress-bg: rgba(255, 183, 77, 0.18);
  --badge-progress-ink: #FFCC80;
  --badge-planned-bg: rgba(183, 203, 186, 0.14);
  --badge-planned-ink: #D5E6D8;
  --ok-bg: #1A3322;
  --ok-ink: #C8E6C9;
  --ok-line: #2E7D32;
  --danger-bg: #3A2224;
  --danger-ink: #FFCDD2;
  --danger-line: #8E3B3B;
  --earth: #E7D5C6;
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { border: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

::selection { background: rgba(255, 112, 150, 0.28); color: inherit; }

.nav-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: -72px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}
.nav-sticky-wrap.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  transition: padding 0.3s ease;
}
.nav-sticky-wrap.scrolled nav { padding: 10px 0; }
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; }
.logo { font-weight: 800; font-size: 22px; color: var(--primary); transition: transform 0.2s ease; }
.logo:hover { transform: scale(1.02); }
.logo span { color: var(--accent); }
.nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  min-width: 0;
}
.nav .logo img { height: 32px; width: 32px; display: block; flex: 0 0 auto; }
.nav .logo span {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 22px;
}
footer .logo span { color: var(--primary-2); }
.nav a.l {
  margin-left: 18px;
  color: #e6fbf5;
  font-size: 14px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.nav a.l:hover { opacity: 0.8; }
.nav a.l[aria-current="page"] { font-weight: 700; }
.nav .logo,
.nav a.l { color: #e6fbf5; }
.nav .logo span { color: #fff; }

.theme-toggle {
  margin-left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-1px) scale(1.04); background: rgba(255, 255, 255, 0.18); }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle .icon { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

.nav .nav-cta {
  margin-left: 18px;
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  overflow: clip;
  background: var(--hero);
  color: #fff;
  border-radius: 0 0 28px 28px;
  padding-top: 72px;
}
.hero.hero-bar {
  min-height: 72px;
  padding-top: 72px;
  padding-bottom: 0;
  border-radius: 0 0 22px 22px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn.p { background: var(--accent); color: #fff; }
.btn.p:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 22px rgba(255, 112, 150, 0.4); }
.btn.p:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 8px rgba(255, 112, 150, 0.3); }
.btn.o { border: 1.5px solid var(--primary-2); color: var(--primary-2); background: transparent; }
.btn.o:hover { transform: translateY(-2px) scale(1.02); background: rgba(141, 170, 145, 0.15); }
.btn.o:active { transform: translateY(0) scale(0.97); }
.hero .btn.o, .cta-box .btn.o { border: 1.5px solid #fff; color: #fff; }
.hero .btn.o:hover, .cta-box .btn.o:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.hero .btn.o:active, .cta-box .btn.o:active { background: rgba(255, 255, 255, 0.08); }

.nav a:focus-visible,
.theme-toggle:focus-visible,
.btn:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.hero :focus-visible,
.nav-sticky-wrap :focus-visible { outline-color: #fff; }

@keyframes reveal-failsafe {
  to { opacity: 1; transform: none; }
}

html.js .hero-line,
html.js .hero-sub,
html.js .hero-cta,
html.js .phone-container {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
/* Show the hero even if the load class never arrives. */
html.js:not(.hero-loaded) .hero-line,
html.js:not(.hero-loaded) .hero-sub,
html.js:not(.hero-loaded) .hero-cta,
html.js:not(.hero-loaded) .phone-container {
  animation: reveal-failsafe 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
html.js .phone-container { transform: translateY(24px); transition-duration: 0.8s; }
html.js.hero-loaded .hero-line:nth-of-type(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
html.js.hero-loaded .hero-line:nth-of-type(2) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
html.js.hero-loaded .hero-sub { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
html.js.hero-loaded .hero-cta { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
html.js.hero-loaded .phone-container { opacity: 1; transform: translateY(0); transition-delay: 180ms; }
html.js .hero-line { display: inline-block; }

html.js .reveal {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
html.js .reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(24px);
  /* Visible on its own if the observer never runs or the script fails later. */
  animation: reveal-failsafe 0.65s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}
html.js .reveal.revealed { opacity: 1; transform: translateY(0) rotate(0deg); }
html.js .reveal-delay-1 { transition-delay: 0.08s; }
html.js .reveal-delay-2 { transition-delay: 0.16s; }
html.js .reveal-delay-3 { transition-delay: 0.24s; }
html.js .reveal-delay-4 { transition-delay: 0.32s; }

footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  margin-top: 52px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg);
}
.fg { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fg a { display: block; margin-bottom: 6px; transition: color 0.2s ease; }
.fg a:hover { color: var(--primary); }
.fg b { color: var(--ink); display: block; margin-bottom: 8px; }
.soc { display: flex; gap: 10px; }
.soc a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(141, 170, 145, 0.22);
  display: grid;
  place-items: center;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.soc a:hover { transform: scale(1.1); background: rgba(141, 170, 145, 0.38); }
.soc svg { width: 18px; height: 18px; fill: currentColor; }
.copy { margin-top: 20px; font-size: 12px; }

.bmc-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  font-family: "Roboto", sans-serif;
}
.bmc-panel {
  width: 280px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  padding: 18px;
  margin-bottom: 12px;
  color: var(--ink);
  border: 1px solid transparent;
}
:root[data-theme="dark"] .bmc-panel { border-color: var(--line); }
.bmc-panel-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.bmc-panel-copy { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.bmc-panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFDD00;
  color: #000;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
}
.bmc-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFDD00;
  border: 2px solid #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 26px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.bmc-launcher:hover { transform: scale(1.08); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.bmc-launcher:active { transform: scale(0.95); }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-banner-card {
  pointer-events: auto;
  width: min(720px, 100%);
  padding: 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(141, 170, 145, 0.3);
  background: #F9FBF9;
  color: #334435;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
:root[data-theme="dark"] .cookie-banner-card { background: #2C3E30; color: #d5ddd6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cookie-banner-card { background: #2C3E30; color: #d5ddd6; }
}
.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #2D4030;
  margin-bottom: 8px;
}
:root[data-theme="dark"] .cookie-banner-title { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cookie-banner-title { color: #fff; }
}
.cookie-banner-icon { font-size: 18px; line-height: 1; }
.cookie-banner-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.35;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.cookie-policy {
  font-size: 12px;
  color: #8DAA91;
  text-decoration: underline;
  margin-right: auto;
}
:root[data-theme="dark"] .cookie-policy { color: #8FCB93; }
.cookie-essential,
.cookie-accept {
  font: inherit;
  font-size: 12px;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
}
.cookie-essential {
  background: transparent;
  border: 1px solid rgba(141, 170, 145, 0.5);
  color: #2D4030;
}
:root[data-theme="dark"] .cookie-essential { color: #fff; }
.cookie-accept {
  background: #8DAA91;
  border: 1px solid #8DAA91;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
}
@media (max-width: 800px) {
  body.consent-open .bmc-widget { opacity: 0; pointer-events: none; }
}

:root[data-theme="dark"] .f:hover,
:root[data-theme="dark"] .shot:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

@media (max-width: 800px) {
  .nav a.l { display: none; }
  .nav .nav-cta { margin-left: 10px; padding: 8px 12px; }
  .theme-toggle { margin-left: 8px; }
}
@media (max-width: 380px) {
  .nav .logo span { font-size: 18px; }
  .nav .nav-cta { padding: 8px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .phone, .hero-bg-shapes .shape { animation: none !important; }
  html.js .hero-line,
  html.js .hero-sub,
  html.js .hero-cta,
  html.js .phone-container,
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
