/* Vayro design system — multi-theme shell + content surfaces
 * Themes: charcoal (default), daylight, forest, slate
 * See docs/plans/2026-07-24-theme-switcher-design.md
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root,
html[data-theme="charcoal"] {
  color-scheme: dark;
  --bg: #0e1114;
  --bg-elevated: #161b20;
  --surface: #f4efe6;
  --surface-muted: #ebe4d8;
  --ink: #1a1c1e;
  --ink-muted: #4a453c;
  --on-dark: #f7f4ee;
  --on-dark-muted: #c5ccd3;
  --accent: #d07848;
  --accent-hover: #c46a3a;
  --accent-soft: #f0d8c8;
  --amber: #b8860b;
  --amber-soft: #f3e6c0;
  --border-dark: #3a434c;
  --border-cream: #d9d0c2;
  --line: #d9d0c2;
  --success: #1f6b45;
  --success-fg: #14532d;
  --success-bg: #d8f0e4;
  --success-border: #6aaa88;
  --danger: #c43c32;
  --danger-bg: #f8d9d6;
  --warn: #9a6b08;
  --warn-bg: #f3e6c0;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Outfit", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.35);
  --nav-h: 4.25rem;
  --hero-grad: radial-gradient(120% 90% at 10% 0%, #1c242c 0%, #12161a 55%, #0e1114 100%);
  --header-bg: rgba(22, 27, 32, 0.92);
  --tabs-bg: rgba(22, 27, 32, 0.96);
  --locale-bg: rgba(14, 17, 20, 0.75);
  --chrome-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="daylight"] {
  color-scheme: light;
  --bg: #f3f0ea;
  --bg-elevated: #ebe6dc;
  --surface: #ffffff;
  --surface-muted: #f7f3ec;
  --ink: #1a1c1e;
  --ink-muted: #4a453c;
  --on-dark: #1a1c1e;
  --on-dark-muted: #4a453c;
  --accent: #a85328;
  --accent-hover: #934722;
  --accent-soft: #f3ddd0;
  --amber: #9a6b08;
  --amber-soft: #f3e6c0;
  --border-dark: #c9c2b4;
  --border-cream: #e5dfd3;
  --line: #e5dfd3;
  --success: #1f6b45;
  --success-fg: #14532d;
  --success-bg: #d8f0e4;
  --success-border: #6aaa88;
  --danger: #b5342b;
  --danger-bg: #f8d9d6;
  --warn: #9a6b08;
  --warn-bg: #f3e6c0;
  --shadow-card: 0 10px 28px rgba(26, 28, 30, 0.08);
  --shadow-elevated: 0 8px 20px rgba(26, 28, 30, 0.1);
  --hero-grad: radial-gradient(120% 90% at 10% 0%, #fff9f1 0%, #f3f0ea 55%, #ebe6dc 100%);
  --header-bg: rgba(243, 240, 234, 0.95);
  --tabs-bg: rgba(235, 230, 220, 0.98);
  --locale-bg: rgba(255, 255, 255, 0.88);
  --chrome-shadow: 0 -8px 24px rgba(26, 28, 30, 0.08);
}

html[data-theme="forest"] {
  color-scheme: dark;
  --bg: #0f1a14;
  --bg-elevated: #16241c;
  --surface: #f2efe6;
  --surface-muted: #e8e3d6;
  --ink: #14201a;
  --ink-muted: #3f4c44;
  --on-dark: #eef5f0;
  --on-dark-muted: #b7c8bd;
  --accent: #d08448;
  --accent-hover: #c4783a;
  --accent-soft: #f0dcc8;
  --amber: #b8860b;
  --amber-soft: #f3e6c0;
  --border-dark: #3a4f42;
  --border-cream: #d5cebf;
  --line: #d5cebf;
  --success: #1f6b45;
  --success-fg: #14532d;
  --success-bg: #d8f0e4;
  --success-border: #6aaa88;
  --danger: #c43c32;
  --danger-bg: #f8d9d6;
  --warn: #9a6b08;
  --warn-bg: #f3e6c0;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.38);
  --hero-grad: radial-gradient(120% 90% at 10% 0%, #1a2e24 0%, #132018 55%, #0f1a14 100%);
  --header-bg: rgba(22, 36, 28, 0.94);
  --tabs-bg: rgba(22, 36, 28, 0.97);
  --locale-bg: rgba(15, 26, 20, 0.78);
  --chrome-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="slate"] {
  color-scheme: dark;
  --bg: #12161c;
  --bg-elevated: #1a2028;
  --surface: #f2f4f7;
  --surface-muted: #e6eaef;
  --ink: #151a22;
  --ink-muted: #455060;
  --on-dark: #eef3f8;
  --on-dark-muted: #b6c1cd;
  --accent: #d07848;
  --accent-hover: #c46a3a;
  --accent-soft: #f0d8c8;
  --amber: #b8860b;
  --amber-soft: #f3e6c0;
  --border-dark: #3a4554;
  --border-cream: #d5dbe3;
  --line: #d5dbe3;
  --success: #1f6b45;
  --success-fg: #14532d;
  --success-bg: #d8f0e4;
  --success-border: #6aaa88;
  --danger: #c43c32;
  --danger-bg: #f8d9d6;
  --warn: #9a6b08;
  --warn-bg: #f3e6c0;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.36);
  --hero-grad: radial-gradient(120% 90% at 10% 0%, #1c2430 0%, #151a22 55%, #12161c 100%);
  --header-bg: rgba(26, 32, 40, 0.94);
  --tabs-bg: rgba(26, 32, 40, 0.97);
  --locale-bg: rgba(18, 22, 28, 0.78);
  --chrome-shadow: 0 -8px 24px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body.vayro-app {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-dark);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--nav-h);
}

@media (min-width: 768px) {
  body.vayro-app {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Shell ——— */
.v-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.v-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.v-nav {
  display: none;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.v-nav a:hover {
  color: var(--on-dark);
}

.v-nav a.is-active {
  color: var(--accent);
}

@media (min-width: 768px) {
  .v-nav {
    display: flex;
  }
}

.v-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: var(--locale-bg);
}

.v-locale button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-dark-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.v-locale button.is-active {
  background: var(--accent);
  color: #fff;
}

.v-main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.v-footer {
  display: none;
  border-top: 1px solid var(--border-dark);
  background: var(--bg-elevated);
}

@media (min-width: 768px) {
  .v-footer {
    display: block;
  }
}

.v-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ——— Bottom tabs ——— */
.v-tabs {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--tabs-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-dark);
  box-shadow: var(--chrome-shadow);
}

@media (min-width: 768px) {
  .v-tabs {
    display: none;
  }
}

.v-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  padding: 0.35rem 0.2rem;
  position: relative;
}

.v-tabs a svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.v-tabs a.is-active {
  color: var(--accent);
}

.v-tabs a.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ——— Buttons ——— */
.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.v-btn:active {
  transform: translateY(1px);
}

.v-btn--primary {
  background: var(--accent);
  color: #fff;
}

.v-btn--primary:hover {
  background: var(--accent-hover);
}

.v-btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(244, 239, 230, 0.32);
}

.v-btn--ghost:hover {
  border-color: rgba(244, 239, 230, 0.55);
  background: rgba(244, 239, 230, 0.06);
}

.v-card .v-btn--ghost,
.v-panel .v-btn--ghost,
.v-feature-band .v-btn--ghost,
.v-promo .v-btn--ghost {
  color: var(--ink);
  border-color: var(--border-cream);
}

.v-card .v-btn--ghost:hover,
.v-panel .v-btn--ghost:hover,
.v-feature-band .v-btn--ghost:hover,
.v-promo .v-btn--ghost:hover {
  border-color: var(--ink-muted);
  background: rgba(26, 28, 30, 0.04);
}

.v-btn--soft {
  background: var(--surface-muted);
  color: var(--ink);
  border-color: var(--border-cream);
}

.v-btn--soft:hover {
  background: #e0d8ca;
}

.v-btn--block {
  width: 100%;
}

.v-btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* ——— Cards & surfaces ——— */
.v-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  color-scheme: light;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.v-card:hover,
.v-card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #c9bdaa;
}

.v-card__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.v-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.v-card__media {
  margin: -1.1rem -1.15rem 0.85rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ebe4d8, #d9d0c2);
  position: relative;
}

.v-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.v-chip--accent {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-cream));
}

.v-chip--amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 40%, var(--border-cream));
}

.v-chip--dark {
  background: var(--surface-muted);
  color: var(--ink);
  border-color: var(--border-cream);
}

/* ——— Heroes & intros ——— */
.v-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--hero-grad);
  border: 1px solid var(--border-dark);
  color: var(--on-dark);
  padding: 1.75rem 1.35rem;
  margin-bottom: 1.5rem;
  animation: v-fade-up 0.45s ease both;
}

.v-hero--bleed {
  margin-inline: -1rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 3.5rem 1.35rem 2.75rem;
}

@media (min-width: 768px) {
  .v-hero {
    padding: 2.5rem 2rem;
  }

  .v-hero--bleed {
    margin-inline: 0;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border-dark);
    padding: 4.5rem 3rem 3.5rem;
  }
}

.v-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.v-hero > * {
  position: relative;
  z-index: 1;
}

.v-hero h1,
.v-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--on-dark);
}

.v-hero--bleed h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
}

.v-hero p {
  color: var(--on-dark-muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
  line-height: 1.55;
}

.v-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Search / input + action button rows (Check, home ask, records, etc.) */
.v-search-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.v-search-row > input,
.v-search-row > select,
.v-search-row > textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
}

.v-search-row > .v-btn {
  flex-shrink: 0;
  min-height: 48px;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  .v-search-row {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .v-search-row--tight-bottom {
    margin-bottom: 1.25rem;
  }

  .v-search-row > .v-btn {
    width: auto;
  }
}

.v-hero .v-search-row {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.v-hero .v-search-row > input {
  background: rgba(14, 17, 20, 0.55);
  border: 1px solid var(--border-dark);
  color: var(--on-dark);
}

.v-hero .v-search-row > input::placeholder {
  color: var(--on-dark-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v-hero input[type="text"],
.v-hero input[type="email"],
.v-hero input[type="search"] {
  flex: 1;
  min-width: 0;
  background: rgba(14, 17, 20, 0.55);
  border: 1px solid var(--border-dark);
  color: var(--on-dark);
}

.v-hero input::placeholder {
  color: var(--on-dark-muted);
}

.v-hero input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.v-intro {
  margin-bottom: 1.25rem;
  animation: v-fade-up 0.4s ease both;
}

.v-intro h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.4rem;
  color: var(--on-dark);
}

.v-intro p {
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 40rem;
  line-height: 1.5;
}

.v-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--on-dark);
}

.v-muted {
  color: var(--on-dark-muted);
}

.v-ink-muted {
  color: var(--ink-muted);
}

.v-link {
  color: var(--accent);
  font-weight: 500;
}

.v-link:hover {
  text-decoration: underline;
}

.v-topic-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.v-topic-list a {
  display: block;
  line-height: 1.35;
}

/* cream text helpers when inside cards */
.v-card .v-muted,
.v-card .text-neutral-500,
.v-card .text-neutral-400,
.v-card .text-neutral-600 {
  color: var(--ink-muted) !important;
}

.v-card .font-semibold,
.v-card .font-bold,
.v-card .font-medium {
  color: var(--ink);
}

/* ——— Promo strip ——— */
.v-promo {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  color-scheme: light;
}

/* ——— Forms ——— */
.v-panel {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  color-scheme: light;
}

.v-panel--wide {
  max-width: 40rem;
}

.v-panel h1 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.v-form-intro {
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0.25rem 0.15rem 0.5rem;
}

.v-form-intro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.v-form-intro__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.v-form-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  line-height: 1.25;
  margin: 0;
  color: var(--on-dark);
  font-weight: 700;
}

.v-form-intro__lede {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.v-form-intro__ai {
  touch-action: manipulation;
  min-height: 44px;
}

.v-form-pricing {
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0.95rem 1.05rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}

.v-form-pricing__title {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.v-form-pricing__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.v-form-pricing__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(14, 17, 20, 0.45);
  color: var(--on-dark);
  font-size: 0.78rem;
}

.v-form-pricing__chips strong {
  color: var(--amber);
  font-weight: 600;
}

.v-form-pricing__link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v-form-shell {
  padding: 1.15rem 1.1rem 1.35rem;
}

.v-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.v-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-cream);
}

.v-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.v-form-section__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.v-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.v-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.v-field label {
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--ink);
}

.v-field__help {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.v-field__error {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--danger);
}

.v-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  cursor: pointer;
  touch-action: manipulation;
}

.v-check input[type="checkbox"] {
  margin: 0.2rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.v-check strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}

.v-check .v-field__help {
  margin-top: 0.2rem;
}

.v-form-actions {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 0.35rem);
  padding-top: 0.35rem;
  z-index: 5;
}

.v-form-actions .v-btn {
  min-height: 48px;
  touch-action: manipulation;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 640px) {
  .v-form-intro__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .v-form-intro__ai {
    flex-shrink: 0;
  }

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

  .v-field--span {
    grid-column: 1 / -1;
  }

  .v-form-shell {
    padding: 1.5rem 1.5rem 1.65rem;
  }

  .v-form-actions {
    position: static;
    bottom: auto;
  }

  .v-form-actions .v-btn {
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .v-form-actions {
    position: static;
  }
}

.v-role-help {
  border-top: 1px solid var(--border-cream);
  padding-top: 0.85rem;
}

.v-role-help__title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.v-role-help__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.v-role-help__list strong {
  color: var(--ink);
  font-weight: 600;
}

.v-role-help__note {
  margin: 0.55rem 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* ——— Verification status ——— */
.v-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.v-status-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.v-status-row__label {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.v-status-row__value {
  margin: 0 0 0.45rem;
  font-weight: 550;
  color: var(--ink);
  word-break: break-word;
}

.v-status-row .v-btn {
  min-height: 44px;
  width: 100%;
  touch-action: manipulation;
}

.v-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.v-badge--ok {
  color: var(--success-fg);
  background: var(--success-bg);
  border-color: var(--success-border);
}

.v-badge--pending {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: color-mix(in srgb, var(--warn) 40%, var(--border-cream));
}

.v-badge--kb {
  color: var(--success-fg);
  background: var(--success-bg);
  border-color: var(--success-border);
}

.v-badge--community {
  color: var(--ink-muted);
  background: var(--surface-muted);
  border-color: var(--border-cream);
}

.v-feed-card--kb {
  background: color-mix(in srgb, var(--success-bg) 55%, var(--surface));
  border-color: var(--success-border);
  color: var(--ink);
  color-scheme: light;
}

.v-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color-scheme: light;
}

.v-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.v-chip-row .v-chip {
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-cream, var(--line));
  touch-action: manipulation;
}

.v-chip:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}

.v-chip-row .v-chip:hover {
  background: var(--surface-muted);
}

.v-chip-row .v-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v-chip.is-active {
  color: var(--success-fg);
  background: var(--success-bg);
  border-color: var(--success-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .v-chip-row .v-chip {
    min-height: 40px;
    padding: 0.35rem 0.85rem;
  }
}

.v-status-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.v-status-note--ok {
  color: var(--success-fg);
  font-weight: 550;
}

.v-status-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-cream);
}

.v-status-footer .v-btn {
  min-height: 44px;
  touch-action: manipulation;
}

.v-status-footer .v-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.v-panel .v-btn--block {
  min-height: 44px;
  touch-action: manipulation;
}

@media (min-width: 480px) {
  .v-status-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .v-status-row .v-btn {
    width: auto;
    flex-shrink: 0;
  }

  .v-status-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .v-status-footer .v-btn {
    width: auto;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface-muted);
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 0.35rem;
}

.v-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
}

.v-filter-bar select,
.v-filter-bar input {
  width: auto;
  background: rgba(14, 17, 20, 0.65);
  border-color: var(--border-dark);
  color: var(--on-dark);
}

.v-filter-bar select:focus,
.v-filter-bar input:focus {
  border-color: var(--accent);
}

/* ——— Alerts ——— */
.v-alert {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-dark);
  background: rgba(22, 27, 32, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-dark);
}

.v-alert--error {
  color: #f0a099;
  background: rgba(224, 90, 79, 0.14);
  border-color: rgba(224, 90, 79, 0.35);
}

.v-alert--success {
  color: #8fd4b0;
  background: rgba(76, 175, 130, 0.14);
  border-color: rgba(76, 175, 130, 0.35);
}

.v-alert--warning {
  color: #e8c45a;
  background: rgba(212, 160, 23, 0.14);
  border-color: rgba(212, 160, 23, 0.35);
}

/* ——— Chat ——— */
.v-chat {
  max-width: 42rem;
  margin: 0 auto;
}

.v-bubble {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
  margin-bottom: 0.65rem;
}

.v-bubble--user {
  margin-left: auto;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-cream));
  color: var(--ink);
  color-scheme: light;
  border-bottom-right-radius: 4px;
}

.v-bubble--assistant {
  margin-right: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-cream);
  border-bottom-left-radius: 4px;
  white-space: pre-line;
  color-scheme: light;
}

.v-composer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .v-composer {
    flex-direction: row;
    align-items: flex-end;
  }
}

.v-composer input,
.v-composer textarea {
  flex: 1;
  background: rgba(14, 17, 20, 0.65);
  border-color: var(--border-dark);
  color: var(--on-dark);
}

.v-composer input::placeholder,
.v-composer textarea::placeholder {
  color: var(--on-dark-muted);
}

/* ——— Grid helpers ——— */
.v-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .v-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .v-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.v-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .v-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.v-feature-band {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  animation: v-fade-up 0.5s ease both;
  color-scheme: light;
}

@media (min-width: 768px) {
  .v-feature-band {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 1.75rem 1.75rem;
  }
}

.v-feature-band h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.v-feature-band p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

@keyframes v-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy teal / white card compatibility on dark shell */
.brand-grad {
  background: var(--hero-grad) !important;
  border: 1px solid var(--border-dark);
  color: var(--on-dark) !important;
}

main .bg-white {
  background: var(--surface) !important;
  color: var(--ink);
  border-color: var(--border-cream) !important;
}

main .bg-teal-700,
main .bg-teal-800,
main a.bg-teal-700,
main button.bg-teal-700 {
  background: var(--accent) !important;
  color: #fff !important;
}

main .text-teal-700,
main .text-teal-800,
main a.text-teal-700 {
  color: var(--accent) !important;
}

main .bg-neutral-100 {
  background: var(--surface-muted) !important;
  color: var(--ink) !important;
}

main .bg-neutral-900 {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-cream);
}

main .bg-neutral-900 .text-neutral-300,
main .bg-neutral-900 .text-neutral-400 {
  color: var(--ink-muted) !important;
}

main .text-neutral-500,
main .text-neutral-400,
main .text-neutral-600 {
  color: var(--on-dark-muted);
}

main .bg-white .text-neutral-500,
main .bg-white .text-neutral-400,
main .bg-white .text-neutral-600,
main .v-card .text-neutral-500 {
  color: var(--ink-muted) !important;
}

main .text-teal-50,
main .text-amber-100 {
  color: var(--on-dark-muted) !important;
}

/* ——— Theme switcher ——— */
.v-header__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.v-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: var(--locale-bg);
}

.v-theme__swatch {
  appearance: none;
  border: 2px solid transparent;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background-clip: content-box;
  background-color: var(--swatch, var(--bg));
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35);
  touch-action: manipulation;
}

.v-theme__swatch[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.v-theme__swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .v-theme {
    gap: 0.1rem;
    padding: 0.1rem;
  }
  .v-theme__swatch {
    min-width: 40px;
    min-height: 40px;
    width: 1.65rem;
    height: 1.65rem;
  }
}

.v-theme-settings {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-cream);
}

.v-theme-settings__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.v-theme-settings__lede {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.v-theme-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .v-theme-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.v-theme-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 0.9rem;
  text-align: left;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  font: inherit;
}

.v-theme-card[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.v-theme-card__dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: var(--swatch, var(--bg));
}

.v-theme-card__name {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

.v-theme-card__blurb {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Vayro Value */
.value-progress__steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.value-progress__steps li {
  color: var(--ink-muted);
}

.value-progress__steps li.is-active {
  color: var(--ink);
  font-weight: 600;
}

.value-comps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-comps__item {
  padding: 0 0 0.75rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--border-cream);
  font-size: 0.875rem;
}

.value-comps__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.value-money-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .value-money-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
