:root {
  color-scheme: light;
  --site-bg: #f4fbf6;
  --site-surface: #ffffff;
  --site-surface-2: #e8f7ed;
  --site-ink: #142019;
  --site-muted: #53675a;
  --site-line: #cfe3d5;
  --site-accent: #128746;
  --site-accent-strong: #0b6d38;
  --site-accent-ink: #ffffff;
  --site-focus: #0b6d38;
  --site-shadow: 0 24px 70px rgba(20, 74, 43, 0.14);
  --site-glow: rgba(72, 225, 104, 0.17);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --site-bg: #090d0b;
  --site-surface: #111713;
  --site-surface-2: #17211b;
  --site-ink: #f4f8f5;
  --site-muted: #aebcb3;
  --site-line: #2a3a31;
  --site-accent: #55ef62;
  --site-accent-strong: #70f77a;
  --site-accent-ink: #071009;
  --site-focus: #70f77a;
  --site-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --site-glow: rgba(72, 255, 94, 0.13);
}

html { background: var(--site-bg); }

body.public-theme-page {
  color: var(--site-ink);
  background: var(--site-bg);
}

.public-theme-page a:focus-visible,
.public-theme-page button:focus-visible,
.public-theme-page input:focus-visible,
.public-theme-page select:focus-visible,
.public-theme-page textarea:focus-visible,
.public-shell-theme a:focus-visible,
.public-shell-theme button:focus-visible,
.owner-public-shell a:focus-visible,
.owner-public-shell button:focus-visible {
  outline: 3px solid var(--site-focus);
  outline-offset: 3px;
}

.theme-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: var(--site-ink);
  background: var(--site-surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 41, 25, 0.1);
}

.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.theme-toggle:not(:has(svg)) { font-size: 0; }
.theme-toggle:not(:has(svg))::before { content: "☾"; font-size: 23px; line-height: 1; }
:root[data-theme="dark"] .theme-toggle:not(:has(svg))::before { content: "☀"; }

.transition-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.public-theme-page .brand img,
.public-shell-theme .brand img,
.owner-public-shell .brand-mark {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.public-theme-page .brand,
.public-shell-theme .brand,
.owner-public-shell .brand {
  color: var(--site-ink);
}

.public-theme-page .page {
  background:
    radial-gradient(circle at 82% 7%, var(--site-glow), transparent 34rem),
    radial-gradient(circle at 10% 32%, rgba(69, 205, 105, 0.08), transparent 26rem),
    var(--site-bg);
}

.public-theme-page .site-header {
  position: relative;
  z-index: 20;
  padding-block: 22px;
}

.public-theme-page .nav-link { color: var(--site-muted); }
.public-theme-page .nav-link:hover { color: var(--site-ink); }

.public-theme-page .button-primary,
.public-theme-page .checkout-button,
.public-theme-page .primary {
  color: var(--site-accent-ink);
  background: var(--site-accent);
  border-color: var(--site-accent);
  box-shadow: 0 12px 30px var(--site-glow);
}

.public-theme-page .button-secondary,
.public-theme-page .button:not(.button-primary):not(.primary) {
  color: var(--site-ink);
  background: var(--site-surface);
  border-color: var(--site-line);
}

.public-theme-page .hero-copy,
.public-theme-page .section-copy,
.public-theme-page .pricing-note,
.public-theme-page .hero-note,
.public-theme-page .product p,
.public-theme-page .product li,
.public-theme-page .signup-body,
.public-theme-page .card p,
.public-theme-page .copy,
.public-theme-page .step p { color: var(--site-muted); }

.public-theme-page.home-page .hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(46px, 5.5vw, 76px);
  margin-top: 14px;
  padding: clamp(40px, 5vw, 64px);
  border-radius: 20px;
}

.public-theme-page .section,
.public-theme-page .footer { border-color: var(--site-line); }

.public-theme-page .product,
.public-theme-page .pricing-card,
.public-theme-page .support-band,
.public-theme-page .card,
.public-theme-page .hero,
.public-theme-page .step,
.public-theme-page .signup-card {
  color: var(--site-ink);
  background: var(--site-surface);
  border-color: var(--site-line);
  box-shadow: var(--site-shadow);
}

.public-theme-page .product-time,
.public-theme-page .pricing-card-featured,
.public-theme-page .step { background: var(--site-surface-2); }

.public-theme-page .early-access-email,
.public-theme-page .note,
.public-theme-page .status { border-color: var(--site-line); background: var(--site-surface-2); color: var(--site-ink); }
.public-theme-page .price-row { border-color: transparent; border-top-color: var(--site-line); color: var(--site-ink); background: transparent; }
.public-theme-page .price-row:hover { background: var(--site-surface-2); }
.public-theme-page .price-row[aria-checked="true"] {
  border-color: var(--site-accent-strong);
  background: var(--site-surface-2);
  box-shadow: inset 3px 0 0 var(--site-accent-strong);
}
.public-theme-page .price-row span { color: var(--site-ink); }
.public-theme-page .price-row strong { color: var(--site-accent-strong); }
.public-theme-page .price-row small { color: var(--site-muted); }
.public-theme-page .pricing-card-action { margin-top: auto; padding-top: 0; }
.public-theme-page .product ul { color: var(--site-muted); }
.public-theme-page .product li::before,
.public-theme-page .product-time li::before,
.public-theme-page .product-bundle li::before { background: var(--site-accent); }
.public-theme-page .checkout-status { color: var(--site-muted); background: var(--site-surface-2); border-color: var(--site-line); }
.public-theme-page .checkout-status.checkout-status-error { color: #b42323; border-color: #e8a2a2; }
:root[data-theme="dark"] .public-theme-page .checkout-status.checkout-status-error { color: #ffb4b4; border-color: #8f4545; }
.public-theme-page .support-band h2 { color: var(--site-ink); }
.public-theme-page .support-band p { color: var(--site-muted); }
.public-theme-page .footer-brand { color: var(--site-ink); }

.public-theme-page .signup-modal { background: rgba(2, 8, 4, 0.72); }
.public-theme-page .signup-head,
.public-theme-page .signup-actions { border-color: var(--site-line); }
.public-theme-page .signup-plan { color: var(--site-muted); }
.public-theme-page .signup-body p { color: var(--site-muted); }
.public-theme-page .early-access-email strong { color: var(--site-ink); }
.public-theme-page .icon-button { color: var(--site-ink); background: var(--site-surface-2); border-color: var(--site-line); }
.public-theme-page .footer a { color: var(--site-muted); }
.public-theme-page .footer a:hover { color: var(--site-ink); }

.product-showcase {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: center;
  padding: 28px 22px 36px;
}

.laptop-frame {
  width: min(100%, 620px);
  margin: 0 auto;
  border: 10px solid #171c19;
  border-bottom-width: 18px;
  border-radius: 20px 20px 12px 12px;
  background: #171c19;
  box-shadow: var(--site-shadow);
  overflow: hidden;
}

.laptop-frame img { display: block; width: 100%; aspect-ratio: 1.52; object-fit: cover; object-position: top; }
.laptop-base { width: 72%; height: 10px; margin: 0 auto; border-radius: 0 0 18px 18px; background: #4c5750; }

.phone-frame {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: clamp(138px, 29%, 184px);
  border: 7px solid #171c19;
  border-radius: 32px;
  overflow: hidden;
  background: #0b0f14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.phone-frame img { display: block; width: 100%; aspect-ratio: 0.48; object-fit: cover; object-position: top; }
.showcase-caption { margin: 18px 0 0; max-width: 78%; color: var(--site-muted); font-size: 13px; }

.contact-address { color: var(--site-accent-strong); font-weight: 850; text-underline-offset: 3px; }

.public-theme-page.secondary-page .secondary-header,
.public-theme-page.secondary-page header.shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-theme-page.secondary-page main { color: var(--site-ink); }

.public-shell-theme {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 82% 7%, var(--site-glow), transparent 34rem),
    radial-gradient(circle at 10% 32%, rgba(69, 205, 105, 0.08), transparent 26rem),
    var(--site-bg);
}

.public-shell-theme .topbar { color: var(--site-ink); }
.public-shell-theme .auth-card { color: var(--site-ink); background: var(--site-surface); border-color: var(--site-line); }
.public-shell-theme .top-actions { align-items: center; }

.public-shell-theme.signed-out-shell .copy,
.public-shell-theme.signed-out-shell .tool-card p,
.public-shell-theme.signed-out-shell .notice,
.public-shell-theme.signed-out-shell .status { color: var(--site-muted); }
.public-shell-theme.signed-out-shell .auth-card,
.public-shell-theme.signed-out-shell .tool-card,
.public-shell-theme.signed-out-shell .notice {
  color: var(--site-ink);
  background: var(--site-surface);
  border-color: var(--site-line);
}
.public-shell-theme.signed-out-shell .auth-card,
.public-shell-theme.signed-out-shell .tool-card { box-shadow: var(--site-shadow); }
.public-shell-theme.signed-out-shell .input {
  color: var(--site-ink);
  background: var(--site-surface-2);
  border-color: var(--site-line);
}
.public-shell-theme.signed-out-shell .input::placeholder { color: var(--site-muted); }
.public-shell-theme.signed-out-shell .btn {
  color: var(--site-ink);
  background: var(--site-surface);
  border-color: var(--site-line);
  box-shadow: none;
}
.public-shell-theme.signed-out-shell .btn:hover { border-color: var(--site-accent-strong); }
.public-shell-theme.signed-out-shell .btn-primary {
  color: var(--site-accent-ink);
  background: var(--site-accent);
  border-color: var(--site-accent);
  box-shadow: 0 12px 30px var(--site-glow);
}
.public-shell-theme.signed-out-shell .btn-disabled,
.public-shell-theme.signed-out-shell .pill.off {
  color: var(--site-muted);
  background: var(--site-surface-2);
  border-color: var(--site-line);
}

.owner-public-shell #ownerAuthScreen { color: var(--site-ink); background: var(--site-bg); }
.owner-public-shell #ownerAuthScreen .auth-card { color: var(--site-ink); background: var(--site-surface); border-color: var(--site-line); }
.owner-auth-theme-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }

@media (max-width: 980px) {
  .public-theme-page .site-header { align-items: flex-start; }
  .public-theme-page .nav { justify-content: flex-end; }
  .public-theme-page.home-page .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 38px;
  }
  .product-showcase { min-height: 450px; }
}

@media (max-width: 720px) {
  .public-theme-page .site-header { display: grid; grid-template-columns: 1fr auto; }
  .public-theme-page .nav { grid-column: 1 / -1; justify-content: flex-start; }
  .public-theme-page .nav .theme-toggle { position: absolute; right: 0; top: 20px; }
  .public-theme-page .brand img,
  .public-shell-theme .brand img { width: 52px; height: 52px; }
  .public-theme-page.home-page .hero { padding: 30px; }
  .product-showcase { min-height: 390px; padding-inline: 0; }
  .phone-frame { right: -3px; width: 31%; }
  .showcase-caption { max-width: 70%; }
}

@media (max-width: 390px) {
  .public-theme-page .shell { width: min(100% - 24px, 1180px); }
  .public-theme-page .brand { gap: 8px; letter-spacing: 0.055em; font-size: 14px; }
  .public-theme-page .brand img { width: 44px; height: 44px; }
  .public-theme-page .nav { gap: 7px; }
  .public-theme-page .nav-link { min-height: 38px; padding-inline: 9px; }
  .public-theme-page .nav .button { flex: 1 1 auto; }
  .public-theme-page .nav .theme-toggle { flex: 0 0 44px; }
  .public-theme-page.home-page .hero { padding: 24px 20px; }
  .phone-frame { width: 35%; }
  .showcase-caption { max-width: 62%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
