:root {
  color-scheme: light;
  /* Core neutral palette */
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #15171a;
  --text-strong: #04050b;
  --muted: #626a73;
  --line: #d8dde3;

  /* Brand greens — full scale (Relume "Surfie Green") */
  --accent: #0d7a5f;
  --accent-strong: #075f49;
  --accent-deep: #053026;
  --accent-soft-1: #e6f1ef;
  --accent-soft-2: #cee4df;
  --accent-mid: #55a18f;

  /* Secondary signals */
  --danger: #a83232;
  --warning: #9a6500;

  /* Shadows — generic + brand-tinted variants */
  --shadow: 0 12px 30px rgba(22, 29, 37, 0.08);
  --shadow-soft: 0 8px 24px rgba(13, 122, 95, 0.08);
  --shadow-lift: 0 24px 56px rgba(13, 122, 95, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-cta: 0 12px 28px rgba(13, 122, 95, 0.28);

  /* Radii — pill for buttons (modern SaaS aesthetic), 12-20px for cards */
  --radius-pill: 100px;
  --radius-card: 16px;
  --radius-card-lg: 20px;
  --radius-card-sm: 10px;

  /* Fluid type scale (Relume sizing) — clamp(min, fluid, max) */
  --font-h1: clamp(40px, 5vw + 1rem, 80px);
  --font-h2: clamp(32px, 3.5vw + 0.75rem, 56px);
  --font-h3: clamp(24px, 2.4vw + 0.5rem, 38px);
  --font-h4: clamp(20px, 1.5vw + 0.5rem, 28px);
  --font-lead: clamp(17px, 1vw + 0.5rem, 21px);

  /* Section padding — generous vertical rhythm */
  --section-py: clamp(64px, 8vw, 112px);
  --section-py-sm: clamp(40px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #e9edf1;
  color: var(--text);
}

button.secondary:hover {
  background: #dce2e8;
}

/* Modern pill-style primary CTA — used on public-facing pages (.button-link).
 * Soft brand-green shadow gives it gravity without looking heavy. Lifts on
 * hover. Pairs with .button-link.secondary which uses an outline treatment. */
.button-link {
  align-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 48px;
  padding: 0 26px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease,
              transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.button-link.primary {
  background: var(--accent);
  box-shadow: var(--shadow-cta);
  color: #ffffff;
}

.button-link.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 16px 36px rgba(13, 122, 95, 0.34);
  transform: translateY(-1px);
}

.button-link.secondary {
  background: #ffffff;
  border: 1.5px solid var(--text-strong);
  color: var(--text-strong);
}

.button-link.secondary:hover {
  background: var(--text-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

button.danger {
  background: #ffffff;
  color: var(--danger);
  border: 1px solid var(--danger);
}

button.danger:hover {
  background: var(--danger);
  color: #fff;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
}

label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.app-shell {
  margin: 0;
  padding: 0;
  width: 100%;
}

.app-shell > .dashboard {
  margin: 32px auto;
  width: min(1180px, calc(100vw - 32px));
}

.admin-topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 24px;
}

.admin-topbar h1 {
  font-size: 20px;
  font-weight: 700;
}

.admin-topbar p {
  font-size: 13px;
  margin-top: 2px;
}

.admin-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-nav a {
  border-radius: 6px;
  color: #2c5282;
  font-size: 13px;
  font-weight: 700;
  min-height: 32px;
  padding: 7px 10px;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  background: #eef2f7;
  color: var(--text);
}

.admin-nav button {
  font-size: 13px;
  min-height: 32px;
  padding: 0 10px;
}

/* TextMg unread badge inside the admin nav. Updated live by
 * /admin-nav-badge.js. Hidden when the count is zero. */
.textmg-nav-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 6px;
  background: #c0392b;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}
.textmg-nav-badge[hidden] {
  display: none;
}

.admin-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
}

.admin-actions button {
  font-size: 13px;
  min-height: 34px;
  padding: 0 12px;
}

.dashboard-page {
  background: #f7f8fa;
}

.dashboard-page .admin-shell {
  margin: 14px auto;
  padding: 0 24px;
}

.admin-shell {
  margin: 24px auto;
  max-width: 1180px;
  padding: 0 24px;
}

.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.money {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  white-space: nowrap;
}

.payments-status {
  margin: 0;
  min-height: 20px;
  padding: 12px 14px 0;
}

.balance-cell {
  cursor: text;
}

.balance-cell:hover,
.balance-cell:focus {
  background: rgba(13, 122, 95, 0.05);
  outline: 2px solid rgba(13, 122, 95, 0.18);
  outline-offset: -2px;
}

.balance-edit-form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.balance-edit-form input {
  min-height: 32px;
  padding: 4px 8px;
  width: 110px;
}

.balance-edit-form button {
  font-size: 12px;
  min-height: 32px;
  padding: 0 10px;
}

.auth-view {
  display: grid;
}

.landing-page {
  background:
    linear-gradient(115deg, rgba(13, 122, 95, 0.12), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.22), transparent 30%),
    radial-gradient(circle at 16% 72%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 42%, #f6f9ff 100%);
  min-height: 100vh;
  /* `overflow-x: clip` instead of `hidden` so we still clip any rogue
   * horizontal overflow (hero radial gradients, etc.) WITHOUT creating
   * a new scrolling-containing-block — which would break
   * `position: sticky` on .site-header. Modern browsers only (Chrome
   * 90+ / Firefox 81+ / Safari 15.4+); older browsers fall back to
   * the legacy `hidden` declaration which kept sticky broken anyway. */
  overflow-x: hidden;
  overflow-x: clip;
  padding: 14px clamp(14px, 3vw, 34px) 34px;
}

/* Single-row header: brand on the left; nav + flag switcher + Login/Create
 * Account on the right, all on the same line. The old grid layout had only
 * 3 tracks but the markup has 4 children (brand, nav, lang slot, actions),
 * so the lang slot wrapped to row 2. Flexbox handles any number of children
 * and only wraps when the viewport actually can't fit them. */
.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  /* Slight blur on content scrolling under the (semi-transparent) header
   * — makes the floating bar feel like a modern glass surface instead
   * of a flat white block. -webkit- prefix for older Safari. */
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(13, 122, 95, 0.15);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 10px 14px;
  position: sticky;
  top: 10px;
  width: 100%;
  z-index: 20;
}

.site-header .brand-lockup {
  margin-right: auto;
}

.brand-lockup {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #0d7a5f, #0ea5e9 58%, #f59e0b);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(13, 122, 95, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

/* Stacked brand text: product name on top, tagline beneath. The .brand-name
 * inherits .brand-lockup typography; .brand-tagline is a smaller, lighter
 * line clearly demoted from the brand name. */
.brand-text {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font: inherit;
  letter-spacing: inherit;
}

.brand-tagline {
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.site-nav a {
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  background: rgba(13, 122, 95, 0.08);
  color: #075f49;
}

.site-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
}

/* Flag-based language switcher. Three small buttons in a row, each a
 * 24×16 SVG flag. The active flag gets a green outline so the user can
 * tell what's selected without text. Tooltip carries the language name
 * for the curious; aria-label carries it for screen readers. */
.site-header [data-slot="lang-switcher"] {
  flex: 0 0 auto;
}

.lang-switcher {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.lang-flag {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.lang-flag svg {
  border-radius: 2px;
  display: block;
  height: 18px;
  width: 28px;
}

.lang-flag:hover {
  background: rgba(13, 122, 95, 0.08);
  transform: scale(1.04);
}

/* Active state: solid green pill around the flag. The flag SVG retains its
 * own colors and sits centered inside the pill; the pill itself signals
 * "this is what you're seeing right now". Box-shadow gives it a small lift
 * so it reads as the foregrounded item even without hover. */
.lang-flag.is-active {
  background: var(--accent, #0d7a5f);
  border-color: var(--accent, #0d7a5f);
  box-shadow: 0 4px 10px rgba(13, 122, 95, 0.22);
  padding: 3px 6px;
}

.lang-flag.is-active:hover {
  transform: none;
  cursor: default;
}

.landing-hero {
  display: grid;
  gap: 16px;
  margin: 16px auto 0;
  max-width: 1240px;
  width: 100%;
}

.hero-carousel {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  display: grid;
  min-height: min(660px, calc(100vh - 132px));
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-slide {
  animation: heroSlide 25s infinite;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: grid;
  grid-area: 1 / 1;
  min-height: inherit;
  opacity: 0;
  position: relative;
  transform: translateX(24px) scale(0.98);
}

.hero-slide.active,
.hero-slide:nth-child(1) {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  animation-delay: 10s;
}

.hero-slide:nth-child(4) {
  animation-delay: 15s;
}

.hero-slide:nth-child(5) {
  animation-delay: 20s;
}

.hero-slide img {
  height: 100%;
  grid-area: 1 / 1;
  filter: saturate(1.08) contrast(1.04) brightness(0.86);
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(3, 11, 23, 0.9) 0%, rgba(5, 15, 28, 0.74) 46%, rgba(5, 15, 28, 0.18) 78%, rgba(5, 15, 28, 0.02) 100%),
    linear-gradient(180deg, rgba(13, 122, 95, 0.16), rgba(14, 165, 233, 0.12));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-slide-content {
  align-content: center;
  display: grid;
  gap: 18px;
  inset: 0 auto 0 0;
  max-width: 700px;
  padding: clamp(28px, 6vw, 76px);
  position: absolute;
  z-index: 2;
}

.hero-slide h1,
.hero-slide h2 {
  color: #ffffff;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-shadow: 0 3px 24px rgba(3, 11, 23, 0.42);
}

.hero-slide p {
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  max-width: 620px;
  text-shadow: 0 2px 18px rgba(3, 11, 23, 0.35);
}

@keyframes heroSlide {
  0%,
  16% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  20%,
  96% {
    opacity: 0;
    transform: translateX(-24px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .hero-slide:not(:first-child) {
    display: none;
  }
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link {
  align-items: center;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

button.button-link {
  cursor: pointer;
}

.button-link.primary {
  background: #0d7a5f;
  box-shadow: 0 14px 26px rgba(13, 122, 95, 0.2);
  color: #fff;
}

.button-link.primary:hover {
  background: #075f49;
}

.button-link.secondary {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

.button-link.secondary:hover {
  border-color: rgba(13, 122, 95, 0.4);
  color: #075f49;
}

.hero-copy {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1fr);
}

.trial-banner {
  align-content: center;
  background: linear-gradient(135deg, #fff3c4 0%, #a7f3d0 48%, #bae6fd 100%);
  border: 1px solid rgba(13, 122, 95, 0.22);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.trial-banner strong {
  color: #075f49;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.trial-banner span {
  color: #263241;
  font-size: 14px;
  font-weight: 800;
}

.hero-proof {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.hero-proof div {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 122, 95, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  align-content: center;
  display: grid;
  justify-items: center;
  min-height: 112px;
  padding: 12px;
  text-align: center;
}

.hero-proof dt {
  color: #0d7a5f;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.hero-proof dd {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  margin: 6px 0 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.auth-legal {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
  margin: 24px auto 0;
  max-width: 820px;
  text-align: center;
}

.auth-legal a {
  color: #0369a1;
  font-weight: 800;
}

.site-footer {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 22px;
  margin: 34px auto 0;
  max-width: 1240px;
  padding: clamp(20px, 3vw, 30px);
  width: 100%;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.footer-brand p,
.footer-bottom {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.footer-brand a,
.site-footer a,
.site-footer button {
  color: #0b6f59;
  font-weight: 800;
}

.footer-grid {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 20px;
}

.footer-grid section {
  display: grid;
  gap: 8px;
}

.footer-grid h2 {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid button {
  background: transparent;
  border: 0;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: #0d7a5f;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding-top: 16px;
}

.public-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, 0.16), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(14, 165, 233, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3fff9 48%, #f4fbff 100%);
  min-height: 100vh;
  padding: 14px clamp(14px, 3vw, 34px) 34px;
}

.public-main {
  display: grid;
  gap: 28px;
  margin: 18px auto 0;
  max-width: 1240px;
  width: 100%;
}

.public-hero {
  background:
    linear-gradient(125deg, rgba(13, 122, 95, 0.96), rgba(14, 165, 233, 0.86)),
    #0d7a5f;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  color: #fff;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}

.public-hero h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 860px;
}

.public-hero p {
  color: #e7fff8;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  max-width: 760px;
}

.public-content-grid,
.public-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-detail-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding-bottom: 18px;
}

.public-card,
.public-panel {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  padding: 20px;
}

.public-card span {
  color: #0ea5e9;
  font-size: 12px;
  font-weight: 900;
}

.public-card h2,
.public-panel h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.public-card p,
.public-panel p,
.public-panel li {
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.pricing-detail-grid .public-card {
  min-height: 210px;
}

.pricing-detail-grid .public-card:nth-child(2),
.pricing-detail-grid .public-card:nth-child(3) {
  transform: translateY(18px);
}

.public-panel ul,
.public-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.pricing-table {
  border-collapse: collapse;
  margin: 12px 0 18px;
  width: 100%;
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  padding: 10px 12px;
  text-align: left;
}

.pricing-table th {
  color: #0f172a;
  font-weight: 700;
}

.pricing-table td:last-child {
  font-weight: 700;
  text-align: right;
}

.public-split {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.contact-panel a {
  color: #0d7a5f;
  font-weight: 900;
}

.auth-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.auth-modal-backdrop {
  background: rgba(15, 23, 42, 0.56);
  inset: 0;
  position: absolute;
}

.auth-modal-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 14px;
  max-height: min(92vh, 760px);
  max-width: 560px;
  overflow-y: auto;
  padding: 16px;
  position: relative;
  width: min(560px, 100%);
  z-index: 1;
}

.auth-modal-card header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.auth-modal-card header h2 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.auth-modal-card header p {
  margin-top: 6px;
}

.auth-modal-close {
  flex: 0 0 auto;
}

.auth-tabs {
  background: #eef6f5;
  border: 1px solid rgba(13, 122, 95, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
}

.auth-tabs button {
  background: transparent;
  color: #475569;
  min-height: 38px;
}

.auth-tabs button[aria-selected="true"] {
  background: #0d7a5f;
  color: #ffffff;
}

.auth-panel {
  align-content: start;
  display: grid;
  gap: 12px;
}

.auth-panel.hidden {
  display: none;
}

.auth-panel h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.auth-panel p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}

.stack {
  display: grid;
  gap: 10px;
}

.auth-panel input {
  min-height: 36px;
  padding: 7px 9px;
}

.consent-checkbox {
  align-items: start;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  font-size: 12px;
  line-height: 1.32;
}

.consent-checkbox input {
  height: 18px;
  margin: 2px 0 0;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.home-visual-card {
  --float-y: 0px;
  --tilt: 0deg;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.15);
  display: grid;
  gap: 12px;
  margin: 0;
  overflow: hidden;
  transform: translateY(var(--float-y)) rotate(var(--tilt));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-visual-card:hover {
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  transform: translateY(calc(var(--float-y) - 5px)) rotate(var(--tilt));
}

.home-visual-card img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-visual-card figcaption {
  display: grid;
  gap: 4px;
  padding: 0 14px 14px;
}

.home-visual-card strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.home-visual-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.home-visual-card.featured {
  --float-y: -6px;
  --tilt: -1.5deg;
  grid-row: span 2;
}

.home-visual-card.featured img {
  aspect-ratio: 1 / 1;
}

.home-visual-card[data-visual="transcription"] {
  --float-y: 16px;
  --tilt: 1.25deg;
}

.home-visual-card[data-visual="translation"] {
  --float-y: -10px;
  --tilt: -1deg;
}

.home-visual-card[data-visual="ai-agent"] {
  --float-y: 20px;
  --tilt: 1.5deg;
}

.home-visual-card[data-visual="wallet"] {
  --float-y: 2px;
  --tilt: -0.75deg;
}

.section-intro {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.section-intro h2 {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
}

.section-intro p {
  color: #475569;
  font-size: 17px;
  line-height: 1.55;
}

.value-section,
.use-case-section,
.pricing-section {
  margin: 34px auto 0;
  max-width: 1240px;
  width: 100%;
}

/* Big alternating image+text showcase blocks. Each block is two
 * columns on desktop (image | copy), stacking to single-column on
 * narrow viewports. .showcase-block--reverse swaps the image to the
 * RIGHT column so the layout zigzags down the page. Generous gap
 * between blocks (clamp 48-96px) gives each one room to breathe and
 * announces "this is its own section" without needing a separator. */
.showcase {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
}

.showcase-block {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.showcase-block--reverse .showcase-image {
  order: 2;
}

@media (max-width: 880px) {
  .showcase-block,
  .showcase-block--reverse {
    grid-template-columns: 1fr;
  }
  .showcase-block--reverse .showcase-image {
    order: 0;
  }
}

/* Showcase image card — generous radius, brand-tinted shadow, subtle
 * decorative frame that hints at the brand color. The ::before adds a
 * faint mint-tinted aura behind the image so it doesn't sit on white
 * like a flat snapshot. Hover lifts the whole block and intensifies
 * both the shadow and the aura. */
.showcase-image {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lift);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease;
}

.showcase-image::before {
  background: linear-gradient(135deg, rgba(13, 122, 95, 0.0), rgba(13, 122, 95, 0.10));
  border-radius: inherit;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 280ms ease;
  z-index: 2;
}

.showcase-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 82px rgba(13, 122, 95, 0.22), 0 8px 22px rgba(0, 0, 0, 0.08);
}

.showcase-image:hover::before {
  opacity: 1;
}

.showcase-image img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: clamp(4px, 1vw, 12px);
}

.showcase-badge {
  align-self: flex-start;
  background: var(--accent-soft-1);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--radius-pill);
  color: var(--accent-strong);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  text-transform: uppercase;
}

.showcase-copy h3 {
  color: var(--text-strong);
  font-size: var(--font-h3);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.showcase-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

.showcase-copy code {
  background: var(--accent-soft-1);
  border-radius: 6px;
  color: var(--accent-strong);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.92em;
  padding: 1px 6px;
}

/* Wider gap between consecutive showcase blocks — each one is its own
 * "section" within the larger Personal & Business section, so they
 * deserve room to breathe. */
.showcase {
  display: grid;
  gap: clamp(56px, 8vw, 112px);
  margin-top: clamp(40px, 5vw, 64px);
}

/* =============================================================
 * FAQ section — accordion using native <details>/<summary> for
 * accessibility (keyboard nav, screen reader announce, no JS).
 * Borrowed visual treatment from Webflow's generated output (one
 * of the few things it nailed) — clean rows separated by hairlines,
 * green accent on the open state, comfortable vertical rhythm.
 * ============================================================= */
.landing-page .faq-section {
  margin: 0 auto;
  max-width: 920px;
  padding: var(--section-py) clamp(16px, 3vw, 24px);
  width: 100%;
}

.landing-page .faq-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.landing-page .faq-item {
  border-bottom: 1px solid var(--line);
}

.landing-page .faq-item summary {
  align-items: center;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  letter-spacing: -0.01em;
  list-style: none;
  padding: 22px 4px;
  transition: color 180ms ease;
}

.landing-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-page .faq-item summary::after {
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--accent-strong);
  content: "+";
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 18px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms ease;
  width: 28px;
}

.landing-page .faq-item summary:hover {
  color: var(--accent-strong);
}

.landing-page .faq-item summary:hover::after {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-page .faq-item[open] summary {
  color: var(--accent-strong);
}

.landing-page .faq-item[open] summary::after {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  content: "−";
  transform: rotate(180deg);
}

.landing-page .faq-answer {
  padding: 0 4px 24px;
}

.landing-page .faq-answer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

.landing-page .faq-answer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-color: var(--accent-soft-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.landing-page .faq-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
}

.landing-page .faq-foot p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.landing-page .faq-foot-link {
  background: var(--accent-soft-1);
  border-radius: var(--radius-pill);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 18px;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.landing-page .faq-foot-link:hover {
  background: var(--accent-soft-2);
}

/* section-intro--centered is used by the use-cases section heading
 * so the title centers above the alternating blocks instead of
 * sitting flush-left like other sections. */
.section-intro--centered {
  text-align: center;
  margin-inline: auto;
  max-width: 720px;
}

.value-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.value-grid article {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.value-grid span {
  color: #0ea5e9;
  font-size: 12px;
  font-weight: 900;
}

.value-grid h3 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  margin: 8px 0 0;
}

.value-grid p {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
}

/* GET STARTED section — dark-green band that matches the brand instead of
 * a cold navy. Two-column grid on desktop (title on the left, step list on
 * the right). The earlier .flow-list span rule was too broad and gave the
 * step TEXT the same cyan badge treatment as the step NUMBER — every span
 * inside an <li> got a 30px cyan square. Fixed by targeting
 * .flow-step-number and .flow-step-text explicitly so the badge stays
 * compact and the text reads cleanly next to it. */
.flow-section {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-strong, #075f49), var(--accent, #0d7a5f));
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(7, 95, 73, 0.22);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  margin: 34px auto 0;
  max-width: 1240px;
  padding: clamp(28px, 5vw, 48px);
  width: 100%;
}

@media (max-width: 880px) {
  .flow-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.flow-section h2 {
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0 0;
}

.flow-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 38ch;
}

.flow-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list li {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  transition: background-color 200ms ease, transform 200ms ease;
}

.flow-list li:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.flow-list .flow-step-number {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: var(--accent-strong, #075f49);
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 14px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.flow-list .flow-step-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  padding-top: 5px;
}

.visual-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
  perspective: 1200px;
}

/* Legacy .pricing-section / .pricing-panel block removed — the old
 * design turned the section itself into a 2-col grid (1fr auto) with a
 * teal gradient bg and white headings, which placed .section-head and
 * .pricing-grid side-by-side and made the dark $0.01 card overlap the
 * heading column. Marketing.css now owns the pricing layout via the
 * .pricing-grid container; the section is a plain block. */

@media (max-width: 1100px) {
  /* Header is flex (was grid); the grid-template-columns line that used to
   * live here is now obsolete. Flex-wrap on .site-header already handles
   * the narrow-viewport case by stacking children onto new lines. */
  .site-nav,
  .site-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .visual-grid,
  .public-content-grid,
  .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-visual-card.featured {
    grid-column: span 2;
    grid-row: auto;
  }

  .home-visual-card.featured img {
    aspect-ratio: 16 / 7;
  }

  .public-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .landing-page {
    padding: 16px 14px 28px;
  }

  .landing-hero {
    margin-top: 16px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(5, 15, 28, 0.22), rgba(5, 15, 28, 0.92));
  }

  .hero-slide-content {
    align-content: end;
    padding: 22px;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .hero-slide p {
    font-size: 16px;
  }

  .value-grid,
  .visual-grid,
  .flow-section,
  .public-content-grid,
  .public-card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-detail-grid {
    padding-bottom: 0;
  }

  .pricing-detail-grid .public-card:nth-child(2),
  .pricing-detail-grid .public-card:nth-child(3) {
    transform: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .home-visual-card.featured {
    grid-column: auto;
  }

  .home-visual-card.featured img,
  .home-visual-card img {
    aspect-ratio: 16 / 10;
  }

  .auth-modal {
    padding: 10px;
  }

  .auth-modal-card {
    max-height: calc(100vh - 20px);
  }
}

.dashboard {
  display: grid;
  gap: 18px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.panel-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.account-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
}

.checkbox {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: flex;
  min-height: 40px;
  padding: 8px 10px;
}

.checkbox input {
  height: 16px;
  width: 16px;
}

.account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-card header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.status {
  align-self: start;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 0 0;
  text-transform: uppercase;
}

.status.connected {
  background: transparent;
  color: var(--accent-strong);
}

.status.qr,
.status.authenticated {
  background: transparent;
  color: var(--warning);
}

.status.auth_failed,
.status.disconnected {
  background: transparent;
  color: var(--danger);
}

.qr {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 180px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-form-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.account-form-compact button {
  padding: 10px 22px;
}

.account-form-compact input[type="tel"] {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 280px;
  padding: 10px 12px;
}

/* Admin-only columns/rows: hidden by default, revealed when body has .is-admin */
.admin-only {
  display: none;
}

body.is-admin .admin-only {
  display: revert;
}

.panel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-controls input[type="search"] {
  width: 240px;
  padding: 8px 12px;
}

.muted {
  color: var(--muted);
  font-size: 11px;
}

.thread-link {
  cursor: pointer;
}

.thread-link:hover {
  background: rgba(13, 122, 95, 0.04);
}

.view-as-banner {
  background: #fff3d6;
  color: var(--warning);
  border: 1px solid #f0d68a;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: var(--panel);
  border-radius: 10px;
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-card header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.system-message-card {
  width: min(520px, 92vw);
}

.system-message-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.thread-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef1f4;
}

.bubble.mine {
  align-self: flex-end;
  background: #d1ead7;
}

.bubble-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bubble-body {
  font-size: 14px;
  white-space: pre-wrap;
}

.cost-card {
  background: linear-gradient(120deg, #e6f4ee 0%, #d1ead7 100%);
  color: var(--accent-strong);
  border: 1px solid #b9dfc8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.billing-header {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.wallet-balance {
  min-width: 170px;
  text-align: center;
}

.wallet-balance span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-balance strong {
  color: var(--accent-strong);
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.billing-alert {
  background: #fff3d9;
  border: 1px solid #e3c884;
  border-radius: 6px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.add-money-card {
  max-width: 480px;
}

#paypal-button-container {
  min-height: 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-grid > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  padding: 12px;
  background: #fbfcfd;
}

.info-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-section-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.account-view-grid {
  align-items: stretch;
}

.account-edit-form {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.account-profile-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-password-field {
  grid-column: 1 / -1;
}

.account-edit-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.account-profile-form > .success,
.account-profile-form > .error {
  grid-column: 1 / -1;
  margin: 0;
}

#employee-phone {
  white-space: pre-line;
}

.language-summary {
  display: grid;
  gap: 8px;
}

.language-summary label {
  margin: 0;
}

.language-summary .language-select {
  width: min(100%, 360px);
  max-width: 360px;
}

.language-check-dropdown {
  position: relative;
  width: min(100%, 360px);
  max-width: 360px;
}

.language-check-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.language-check-trigger::after {
  content: "v";
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-left: 10px;
}

.language-check-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(14, 25, 38, 0.16);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 250px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.language-check-dropdown:not(.open) .language-check-panel {
  display: none;
}

.language-check-option {
  align-items: center;
  border-radius: 4px;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 400;
  gap: 8px;
  letter-spacing: normal;
  margin: 0;
  padding: 7px 8px;
  text-transform: none;
}

.language-check-option:hover {
  background: #f5f8fa;
}

/*
 * Pin the checkbox to a normal form-control size and reset margins so it
 * sits cleanly next to the language name. Without this, font-size cascading
 * from a parent form rule scales the native checkbox up disproportionately.
 */
.language-check-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.language-summary .form-status p {
  margin: 0;
  min-height: 0;
}

.language-summary .form-status p:empty {
  display: none;
}

.cost-cell {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.tab {
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover {
  background: rgba(13, 122, 95, 0.05);
  color: var(--text);
}

.tab.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
  background: transparent;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: var(--text);
}

.chat-row:hover {
  background: rgba(13, 122, 95, 0.04);
  border-color: rgba(13, 122, 95, 0.15);
}

.chat-avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d7a5f, #075f49);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.chat-avatar.group {
  background: linear-gradient(135deg, #5a3da8, #3c2873);
}

.chat-main {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.chat-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
}

.chat-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.chat-preview {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-meta {
  flex: 0 0 auto;
  font-size: 11px;
  white-space: nowrap;
}

.audio-icon {
  font-size: 12px;
}

.badge {
  display: inline-block;
  background: rgba(90, 61, 168, 0.12);
  color: #5a3da8;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty {
  color: var(--muted);
  padding: 16px 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.transcript-text {
  max-width: 520px;
  white-space: pre-wrap;
}

.error {
  color: var(--danger);
  min-height: 20px;
}

.success {
  color: var(--accent-strong);
  min-height: 20px;
}

@media (max-width: 800px) {
  .app-shell > .dashboard {
    width: min(100vw - 20px, 1180px);
    margin: 16px auto;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px;
  }

  .admin-nav {
    justify-content: flex-start;
  }

  .admin-shell {
    margin: 16px auto;
    padding: 0 16px;
  }

  .topbar,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .account-profile-form {
    grid-template-columns: 1fr;
  }

  .billing-header {
    align-items: stretch;
  }

  .wallet-balance {
    text-align: left;
  }
}

/* Setup wizard banner — Portal v1 (2026-05-09) */
.setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin: 0 0 16px;
  background: #fef9e7;
  border: 1px solid #f4d35e;
  border-radius: 8px;
  font-size: 14px;
  color: #5b4500;
}
.setup-banner button {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #b58900;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.setup-banner button:hover {
  background: #94700a;
}

/* Setup Wizard — Phase 3 (2026-05-09) */
.setup-wizard {
  max-width: 720px;
  margin: 32px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.setup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.setup-topbar h1 {
  margin: 0;
  font-size: 22px;
}
.setup-topbar p {
  margin: 4px 0 0;
  color: #666;
  font-size: 14px;
}
.setup-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  gap: 8px;
  font-size: 12px;
}
.setup-steps li {
  flex: 1;
  padding: 8px 12px;
  background: #f5f5f7;
  border-radius: 6px;
  color: #999;
  text-align: center;
  font-weight: 500;
}
.setup-steps li.active {
  background: #2c5282;
  color: #fff;
}
.setup-steps li.complete {
  background: #68d391;
  color: #1a4d2e;
}
.setup-screen h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.setup-screen p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #333;
}
.setup-screen button {
  margin-top: 16px;
  padding: 10px 20px;
  background: #2c5282;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.setup-screen button:hover { background: #1e3a5f; }
.setup-screen button:disabled { opacity: 0.5; cursor: wait; }
.setup-policy {
  margin: 8px 0 16px 20px;
  padding: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}
.setup-qr-container {
  margin: 16px 0;
  padding: 24px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  text-align: center;
}
.setup-qr {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.setup-status {
  margin-top: 12px;
  color: #666;
  font-size: 13px;
}
.setup-pair-code {
  margin-top: 16px;
}
.setup-pair-code-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.setup-pair-code-row input[type="tel"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
}
.setup-code {
  margin-top: 12px;
}
.setup-code.hidden { display: none; }

/* Inline WhatsApp link-code box (shared: setup wizard, dashboard, command center) */
.linkcode-panel {
  margin-top: 12px;
  padding: 18px 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  max-width: 420px;
}
.linkcode-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0369a1;
}
.linkcode-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.linkcode-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 46px;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 26px;
  font-weight: 700;
  color: #0c4a6e;
}
.linkcode-for {
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
}
.linkcode-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
}
.linkcode-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  min-height: 18px;
}
.setup-watch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 16px;
  color: #0c4a6e;
}
.setup-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #bae6fd;
  border-top-color: #0c4a6e;
  border-radius: 50%;
  display: inline-block;
  animation: setup-spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes setup-spin {
  to { transform: rotate(360deg); }
}

/* Marketing landing additions: 4-weapon hero, comparison strip, referral teaser */

.hero-weapons {
  list-style: none;
  padding: 0;
  margin: 24px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.hero-weapons li {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-weapons strong {
  font-size: 18px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-weapons span {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-cta .button-link {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-fineprint {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.hero-fineprint a {
  color: var(--accent);
  font-weight: 600;
}

.compare-section {
  margin: 64px auto;
  max-width: 960px;
  padding: 0 24px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table thead th {
  background: #eef3f1;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  background: #fafbfc;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table td.yes {
  color: var(--accent-strong);
  font-weight: 700;
}

.compare-table td.no {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.referral-section {
  margin: 64px auto 96px;
  max-width: 800px;
  padding: 0 24px;
}

.referral-card {
  position: relative;
  padding: 32px 36px;
  background: linear-gradient(135deg, #f4fbf8 0%, #e8f5ef 100%);
  border: 1px solid #cfe7dc;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.referral-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  margin-bottom: 14px;
}

.referral-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.referral-card p {
  margin: 0 auto 20px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .hero-weapons {
    grid-template-columns: 1fr;
  }
  .compare-table {
    font-size: 13px;
  }
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }
  .referral-card {
    padding: 24px 20px;
  }
  .referral-card h2 {
    font-size: 22px;
  }
}

/* Dashboard "Refer & earn" panel */

.referral-panel .panel-header p {
  max-width: 640px;
}

.referral-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.referral-row input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: #fafbfc;
}

.referral-row button {
  flex-shrink: 0;
  padding: 0 18px;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
}

.referral-stats > div {
  padding: 12px 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.referral-stats dt {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.referral-stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 520px) {
  .referral-row {
    flex-direction: column;
    align-items: stretch;
  }
  .referral-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LANDING PAGE — WHITE-BG MINIMALIST REFRESH
   All rules scoped to .landing-page to avoid admin bleed.
   ============================================================ */

/* Override the gradient bg with clean white */
.landing-page {
  background: #ffffff;
  padding: 14px clamp(14px, 3vw, 34px) 0;
}

/* Hero — clean, spacious, two-column */
.landing-page .landing-hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 1240px;
  padding: 0 clamp(0px, 2vw, 20px) clamp(48px, 7vw, 96px);
  width: 100%;
}

/* Remove the green radial pulse overlay — white bg doesn't need it */
.landing-page .landing-hero::before {
  display: none;
}

.landing-page .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-template-columns: unset;
}

/* Hero H1 — biggest typographic moment on the site. Uses the Relume-scale
 * fluid size token (~40px mobile -> ~80px wide desktop). Tight line-height
 * and slight negative tracking give it the confident Stripe/Linear feel.
 * Color is --text-strong (#04050b) for maximum contrast with the white bg. */
.landing-page .hero-copy h1 {
  font-size: var(--font-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 14px 0 18px;
}

/* Hero subtitle — substantially bigger and lighter than before so the
 * lead paragraph reads like a real opening, not a footer. */
.landing-page .hero-copy > p {
  font-size: var(--font-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 28px;
}

/* Spacious weapons list */
.landing-page .hero-weapons {
  margin: 0 0 24px;
  gap: 10px 20px;
}

.landing-page .hero-weapons li {
  border-radius: 12px;
}

/* Section shared spacing */
.landing-page .section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 4vw, 52px);
}

.landing-page .section-intro h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.landing-page .section-intro p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Compare section — cleaner spacing */
.landing-page .compare-section {
  margin: clamp(60px, 8vw, 120px) auto;
  max-width: 960px;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* Features value grid — white cards, subtle */
.landing-page .value-section {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 24px);
}

.landing-page .value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.landing-page .value-grid article {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.landing-page .value-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.landing-page .value-grid span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-page .value-grid h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 0;
  color: var(--text);
}

.landing-page .value-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

/* How it works — clean cards on white */
.landing-page .flow-section {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 64px);
}

.landing-page .flow-section h2 {
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
}

.landing-page .flow-section p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

.landing-page .flow-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  padding: 14px 16px;
}

.landing-page .flow-list span:first-child {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  flex: 0 0 30px;
  height: 30px;
}

/* Referral section */
.landing-page .referral-section {
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 24px);
  max-width: 800px;
}

/* Pricing section — keep accent bg but cleaner */
.landing-page .pricing-section {
  margin: 0 auto clamp(60px, 8vw, 120px);
  max-width: 1240px;
  border-radius: 20px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.landing-page .trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(32px, 4vw, 52px) auto 0;
  max-width: 1240px;
  padding: 0 clamp(16px, 3vw, 24px);
}

.landing-page .trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(22, 29, 37, 0.05);
}

.landing-page .trust-chip svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */
.landing-page .coming-soon-section {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 24px) 0;
}

.landing-page .coming-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Legacy 3-col centering rule removed — marketing.css now owns the
 * 12-column Coming Soon grid (featured span 8 + 4 cards span 4). The
 * old :nth-child(4){grid-column:1} forced the URL transcription card
 * into a 1-col-wide slot, wrapping its text letter-by-letter. */

.landing-page .coming-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.landing-page .coming-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.coming-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.coming-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(13, 122, 95, 0.08);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.coming-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(13, 122, 95, 0.1);
  color: var(--accent-strong);
  border-radius: 999px;
}

.landing-page .coming-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.landing-page .coming-card h3 code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: rgba(13, 122, 95, 0.08);
  color: var(--accent-strong);
  padding: 1px 5px;
  border-radius: 4px;
}

.landing-page .coming-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   SECOND BRAIN TEASER
   ============================================================ */
.landing-page .second-brain-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: clamp(48px, 6vw, 96px) auto 0;
  max-width: 1240px;
  background: var(--accent-strong);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 72px) clamp(32px, 5vw, 64px);
}

.brain-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  margin-bottom: 16px;
}

.brain-copy h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 14px;
}

.brain-copy p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 420px;
}

.brain-cta {
  background: #ffffff !important;
  color: var(--accent-strong) !important;
  font-weight: 800;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

.brain-cta:hover {
  background: #f0faf6 !important;
}

.brain-phone {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  max-width: 380px;
  width: 100%;
}

.brain-query {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(13, 122, 95, 0.07);
  border: 1px solid rgba(13, 122, 95, 0.18);
  border-radius: 10px;
  margin-bottom: 14px;
}

.brain-query-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
}

.brain-query-text {
  font-size: 13px;
  color: var(--text);
}

.brain-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brain-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.brain-result-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brain-result-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  font-style: italic;
}

/* ============================================================
   USE-CASE VISUAL GRID — cleaner
   ============================================================ */
.landing-page .use-case-section {
  padding: clamp(60px, 8vw, 120px) clamp(16px, 3vw, 24px) 0;
}

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 1100px) {
  .landing-page .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-page .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .coming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .second-brain-teaser {
    grid-template-columns: 1fr;
  }

  .brain-phone {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .landing-page .trust-strip {
    gap: 8px;
  }

  .landing-page .coming-grid {
    grid-template-columns: 1fr;
  }

  .landing-page .value-grid {
    grid-template-columns: 1fr;
  }

  .landing-page .flow-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LANDING COLOR + LIFE REFRESH  (2026-05-18)
   All rules scoped to .landing-page — zero admin bleed.
   New token: --mint  (#e8f5ef, derived from --accent)
   ============================================================ */

/* Mint tint token */
.landing-page {
  --mint: #e8f5ef;
  --mint-border: #c6e3d5;
}

/* ---- Fade-up scroll animation ---- */
.fade-up-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s cubic-bezier(.22,.68,0,1.2), transform 0.52s cubic-bezier(.22,.68,0,1.2);
}
.fade-up-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-up-ready { opacity: 1; transform: none; transition: none; }
}

/* ---- Section eyebrow labels ---- */
.landing-page .section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 4px;
}
.landing-page .section-eyebrow::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Light variant for dark-bg section (How it works) */
.landing-page .section-eyebrow--light {
  color: rgba(255,255,255,0.75);
}
.landing-page .section-eyebrow--light::after {
  background: rgba(255,255,255,0.5);
}

/* ---- Section consistent vertical rhythm ---- */
.landing-page .compare-section,
.landing-page .value-section,
.landing-page .flow-section,
.landing-page .use-case-section {
  padding-block: clamp(64px, 8vw, 112px);
}
.landing-page .compare-section {
  padding-inline: clamp(16px, 3vw, 24px);
}

/* ---- Section intro — bigger H2, capped line length ---- */
.landing-page .section-intro h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.landing-page .section-intro p {
  max-inline-size: 60ch;
  margin-inline: auto;
}

/* ---- Hero headline tightening ---- */
.landing-page .hero-copy h1 {
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* ---- Hero bullets — deliberate 2-col grid with green accent ---- */
.landing-page .hero-weapons li {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf8 100%);
  padding: 14px 16px;
  gap: 4px;
}
.landing-page .hero-weapons strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--accent-strong);
}
.landing-page .hero-weapons strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Primary CTA — confident weight ---- */
.landing-page .button-link.primary {
  box-shadow: 0 6px 20px rgba(13, 122, 95, 0.32);
  font-size: 15px;
  padding: 0 24px;
  min-height: 48px;
  border-radius: 10px;
}
.landing-page .button-link.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(13, 122, 95, 0.38);
  transform: translateY(-1px);
  transition: background 150ms, box-shadow 150ms, transform 150ms;
}

/* ---- Animated demo card — stronger presence ---- */
.landing-page .hero-demo {
  box-shadow:
    0 0 0 1px rgba(13, 122, 95, 0.12),
    0 32px 64px rgba(13, 122, 95, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ---- Trust strip — mint tint background ---- */
.landing-page .trust-strip {
  background: var(--mint);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 3vw, 40px);
  margin-block: clamp(32px, 4vw, 52px);
  border: 1px solid var(--mint-border);
}
.landing-page .trust-chip {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--mint-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  padding: 10px 18px;
  box-shadow: none;
}
.landing-page .trust-chip svg {
  color: var(--accent);
}

/* ---- Compare table — color-coded cells ---- */
.landing-page .compare-section .section-intro {
  text-align: center;
}
.landing-page .compare-table thead th:nth-child(2) {
  color: var(--accent-strong);
  background: rgba(13, 122, 95, 0.06);
}
.landing-page .compare-table td.yes {
  background: rgba(13, 122, 95, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}
.landing-page .compare-table td.yes::before {
  content: "✓ ";
  font-weight: 900;
  color: var(--accent);
}
.landing-page .compare-table td.no {
  background: rgba(168, 50, 50, 0.06);
  color: #9a3333;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---- Features grid — 3-col, card lift, green number badges ---- */
.landing-page .value-section {
  background: #ffffff;
}
.landing-page .value-grid {
  align-items: stretch;
}
.landing-page .value-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
  padding: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.landing-page .value-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 122, 95, 0.12), 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--mint-border);
}
/* Number badge — solid green circle */
.landing-page .value-grid > article > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.landing-page .value-grid h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.landing-page .value-grid p {
  margin-top: 0;
  line-height: 1.6;
}

/* ---- How it works — green dark bg, bold step badges ---- */
.landing-page .flow-section {
  background: var(--accent-strong);
  border: none;
  border-radius: 24px;
  margin-inline: auto;
  max-width: 1240px;
  padding-inline: clamp(24px, 5vw, 72px);
}
.landing-page .flow-section h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.landing-page .flow-section > div:first-child p {
  color: rgba(255,255,255,0.72);
}
.landing-page .flow-section > div:first-child a {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}
.landing-page .flow-section > div:first-child code {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.landing-page .flow-list li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  padding: 16px 18px;
  gap: 14px;
}
/* Step number badge — large solid green circle */
.landing-page .flow-list li > span:first-child {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ---- Responsive adjustments for new rules ---- */
@media (max-width: 900px) {
  .landing-page .trust-strip {
    border-radius: 12px;
    padding: 16px 20px;
  }
}
@media (max-width: 720px) {
  .landing-page .hero-weapons li {
    border-left-width: 2px;
  }
  .landing-page .flow-list li > span:first-child {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 14px;
  }
}

/* ============================================================
   PUBLIC PAGES REFRESH  (2026-05-18)
   All rules scoped to .public-page — zero admin bleed.
   Applies to features / how-it-works / pricing / contact / privacy.
   ============================================================ */

/* Section eyebrow on public pages (same pattern as landing-page) */
.public-page .section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 4px;
}
.public-page .section-eyebrow::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Light variant for dark-bg sections */
.public-page .section-eyebrow--light {
  color: rgba(255, 255, 255, 0.8);
}
.public-page .section-eyebrow--light::after {
  background: rgba(255, 255, 255, 0.5);
}

/* Hero eyebrow on public pages sits above the h1 */
.public-page .public-hero .section-eyebrow {
  margin-bottom: 14px;
  display: block;
}

/* Section wrapper: generous vertical padding between sections */
.public-page .public-section-wrap {
  padding-block: clamp(48px, 7vw, 96px);
}

/* Section intro block: centered, capped width */
.public-page .section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}
.public-page .section-intro h2 {
  color: #0f172a;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.public-page .section-intro p {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  max-inline-size: 60ch;
  margin-inline: auto;
}

/* Card-level number badge: solid green circle */
.public-page .public-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
  padding: 0 8px;
}

/* Card hover-lift — applies to .public-card--lift */
.public-page .public-card--lift {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.public-page .public-card--lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 122, 95, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(13, 122, 95, 0.28);
}

/* Command badge variant (replaces number badges on how-it-works) */
.public-page .public-card-cmd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  background: rgba(13, 122, 95, 0.08);
  color: var(--accent-strong);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
  letter-spacing: 0;
}

/* Tinted panel variant (mint bg for "what you don't get", "included", etc.) */
.public-page .public-panel--tinted {
  background: #f4fbf8;
  border: 1px solid rgba(13, 122, 95, 0.16);
}

/* ---- HOW IT WORKS — dark-green flow section ---- */
.public-page .public-flow-section {
  background: var(--accent-strong);
  border-radius: 24px;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  width: 100%;
  align-items: start;
}

.public-page .public-flow-intro h2 {
  color: #ffffff;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.public-page .public-flow-intro p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.public-page .public-flow-cards {
  display: grid;
  gap: 16px;
}

/* Four-card variant for the GET STARTED flow on how-it-works.html — lays
 * out as a 2x2 grid on desktop, single column on mobile. Default
 * .public-flow-cards (no modifier) stays single-column for any number
 * of cards. */
.public-page .public-flow-cards--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .public-page .public-flow-cards--four {
    grid-template-columns: 1fr;
  }
}

.public-page .public-flow-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 20px 22px;
  color: #ffffff;
}
.public-page .public-flow-card h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
}
.public-page .public-flow-card ol,
.public-page .public-flow-card ul {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
  padding-left: 18px;
}
.public-page .public-flow-card li + li {
  margin-top: 6px;
}
.public-page .public-flow-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 8px 0 0;
  line-height: 1.45;
}
.public-page .public-flow-card a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.public-page .public-flow-card code {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}

.public-page .public-flow-step {
  margin-bottom: 14px;
}
.public-page .public-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ---- Compare table on public pages: same color cells as landing ---- */
.public-page .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.public-page .compare-table th,
.public-page .compare-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.public-page .compare-table thead th {
  background: #eef3f1;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.public-page .compare-table thead th:nth-child(2) {
  color: var(--accent-strong);
  background: rgba(13, 122, 95, 0.06);
}
.public-page .compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  background: #fafbfc;
}
.public-page .compare-table tbody tr:last-child th,
.public-page .compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.public-page .compare-table td.yes {
  background: rgba(13, 122, 95, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}
.public-page .compare-table td.yes::before {
  content: "✓ ";
  font-weight: 900;
  color: var(--accent);
}
.public-page .compare-table td.no {
  background: rgba(168, 50, 50, 0.06);
  color: #9a3333;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---- Public page responsive ---- */
@media (max-width: 1100px) {
  .public-page .public-flow-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .public-page .public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-page .public-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .public-page .compare-table th,
  .public-page .compare-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .public-page .public-card-grid {
    grid-template-columns: 1fr;
  }
}
