/* Self-hosted fonts (no third-party font requests). DM Sans is a variable
   font (weights 400-700) split into latin and latin-ext like Google serves it. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/DMSans-LatinExt.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/DMSans-Latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/DMSans-Italic-LatinExt.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/DMSans-Italic-Latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/SpaceMono-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/SpaceMono-Bold.woff2) format("woff2");
}

:root,
:root[data-theme="light"] {
  --color-bark-50: #2f2016;
  --color-bark-100: #3d2a1c;
  --color-bark-200: #4d3524;
  --color-bark-300: #6f4a2e;
  --color-bark-400: #8c5f38;
  --color-bark-500: #a67748;
  --color-bark-600: #b89064;
  --color-bark-700: #ccb08a;
  --color-bark-800: #e0cfb5;
  --color-bark-900: #f5ede3;
  --color-bark-950: #faf6f1;

  --theme-card-bg: #fefcf9;
  --theme-card-border: rgba(224, 207, 181, 0.8);
  --theme-control-bg: rgba(255, 255, 255, 0.92);
  --theme-control-bg-hover: #f5ede3;
  --theme-control-border: rgba(224, 207, 181, 0.95);
  --theme-control-text: #3d2a1c;
  --theme-bar-bg: rgba(254, 252, 249, 0.97);

  /* WhatsApp-style chat palette — mirrors dashboard/css/theme.css so the
     marketing inbox demo matches the real inbox in both modes. */
  --color-wa-panel: #fefcf9;
  --color-wa-bubble: #d9fdd3;
  --color-wa-incoming: #efe4d5;
  --color-wa-input: #ffffff;
  --theme-chat-bg: #f5ede3;
  --theme-chat-border: rgba(224, 207, 181, 0.8);
  --theme-chat-bubble-in-text: #3d2a1c;
  --theme-chat-bubble-out-text: #1f3a24;
  --theme-chat-muted: #8c7558;
  --theme-chat-reaction-bg: #ffffff;
  --theme-chat-reaction-border: rgba(224, 207, 181, 0.95);
}

:root[data-theme="dark"] {
  --color-bark-50: #faf6f1;
  --color-bark-100: #f0e8db;
  --color-bark-200: #e0cfb5;
  --color-bark-300: #ccb08a;
  --color-bark-400: #b89064;
  --color-bark-500: #a67748;
  --color-bark-600: #8c5f38;
  --color-bark-700: #6f4a2e;
  --color-bark-800: #5a3d28;
  --color-bark-900: #3d2a1c;
  --color-bark-950: #221710;

  --theme-card-bg: rgba(30, 24, 16, 0.7);
  --theme-card-border: rgba(247, 185, 85, 0.16);
  --theme-control-bg: rgba(34, 23, 16, 0.9);
  --theme-control-bg-hover: rgba(61, 42, 28, 0.92);
  --theme-control-border: rgba(90, 61, 40, 0.5);
  --theme-control-text: #f0e8db;
  --theme-bar-bg: rgba(34, 23, 16, 0.97);

  --color-wa-panel: #111b21;
  --color-wa-bubble: #005c4b;
  --color-wa-incoming: #1f2c34;
  --color-wa-input: #2a3942;
  --theme-chat-bg: #0b141a;
  --theme-chat-border: rgba(90, 61, 40, 0.4);
  --theme-chat-bubble-in-text: #f0e8db;
  --theme-chat-bubble-out-text: #d1fae5;
  --theme-chat-muted: #6f5a42;
  --theme-chat-reaction-bg: #202c33;
  --theme-chat-reaction-border: rgba(255, 255, 255, 0.18);
}

/* Amber fills (Sign up, primary CTAs) carry dark text in both themes.
   text-bark-950 is the page background token, which is light in light mode;
   #221710 on #f6ad55 is about 9:1. */
.bg-amber-400.text-bark-950 {
  color: #221710;
}

.guide-card {
  border-color: var(--theme-card-border) !important;
  background: var(--theme-card-bg) !important;
}

.theme-toggle {
  position: fixed;
  right: 0.85rem;
  bottom: calc(0.85rem + var(--sticky-offset, 0px));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--theme-control-border);
  background: var(--theme-control-bg);
  color: var(--theme-control-text);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.15s ease;
}

.theme-toggle:hover {
  background: var(--theme-control-bg-hover);
}

.theme-toggle-icon {
  font-size: 0.8rem;
}

@media (max-width: 639px) {
  .theme-toggle {
    right: 0.65rem;
    bottom: calc(0.65rem + var(--sticky-offset, 0px));
    padding: 0.36rem 0.62rem;
  }
}

/* The sticky mobile CTA publishes its height as --sticky-offset; the page pads
   its end so the bar never covers the footer. */
body {
  padding-bottom: var(--sticky-offset, 0px);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--theme-control-border);
  background: var(--theme-bar-bg);
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: #f6ad55;
  color: #221710;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 640px) {
  .sticky-cta,
  .sticky-cta:not([hidden]) {
    display: none;
  }
}

/* Amber text on the light page is about 1.9:1; light mode darkens it to a
   burnt amber (about 5:1 on the page background). Fills and the header
   wordmark, which sits beside the amber logo, keep #f6ad55. */
:root[data-theme="light"] .text-amber-400:not(.brand-wordmark),
:root[data-theme="light"] .hover\:text-amber-400:hover {
  color: #a8521a;
}

/* ---------- Marketing sections (landing, pricing) ---------- */
:root,
:root[data-theme="light"] {
  --theme-accent-text: #a8521a;
  --theme-accent-wash: rgba(221, 107, 32, 0.08);
  --theme-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a8521a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --theme-accent-text: #f6ad55;
  --theme-accent-wash: rgba(246, 173, 85, 0.07);
  --theme-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f6ad55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

.section-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--theme-accent-text);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  color: var(--color-bark-100);
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title-sm {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.section-title-sm {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.section-lead {
  color: var(--color-bark-300);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.feature-card {
  border: 1px solid var(--theme-card-border);
  border-radius: 1rem;
  background: var(--theme-card-bg);
  padding: 1.6rem 1.6rem 1.75rem;
}

.step {
  border-top: 1px solid var(--theme-card-border);
  padding-top: 1.4rem;
}

.step-number {
  color: var(--theme-accent-text);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.price-panel {
  overflow: hidden;
  border: 1px solid var(--theme-card-border);
  border-radius: 1.25rem;
  background: radial-gradient(
      120% 90% at 0% 0%,
      var(--theme-accent-wash),
      transparent 60%
    ),
    var(--theme-card-bg);
  box-shadow: 0 30px 60px -40px rgba(34, 23, 16, 0.45);
}

.price-panel-list {
  border-top: 1px solid var(--theme-card-border);
}

@media (min-width: 1024px) {
  .price-panel-list {
    border-top: 0;
    border-left: 1px solid var(--theme-card-border);
  }
}

.check-item {
  position: relative;
  padding-left: 2rem;
  color: var(--color-bark-200);
  line-height: 1.5;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background:
    var(--theme-check) center / 0.8rem no-repeat,
    var(--theme-accent-wash);
}

.check-item strong {
  color: var(--color-bark-100);
  font-weight: 600;
}

.feature-card-accent {
  border-color: rgba(246, 173, 85, 0.45);
  background: linear-gradient(
      var(--theme-accent-wash),
      var(--theme-accent-wash)
    ),
    var(--theme-card-bg);
}

.faq-list > div + div {
  border-top: 1px solid var(--theme-card-border);
}
