/*
  frontend/static/css/viewola.css

  WHAT: Viewola's own look, layered on top of Bootstrap. Bootstrap gives the
  grid, buttons, cards, and forms. This file only changes what makes Viewola
  look like Viewola. Loaded by base.html right after bootstrap.min.css.

  SECTIONS:
    1. Brand colors     Bootstrap's variables, pointed at Viewola's palette
    2. Page basics      background, type, the skip link, focus rings
    3. Frame            the top bar, the logo, the footer
    4. Components       cards, stat cards, status pills, tables, the budget
                        bar, choice cards, chips, forms, the Google button
    5. Landing page     hero, product shots, the money flow, last call
    6. Explainer pages  checks, steps, FAQ, legal column
    7. Dashboards       page headers and the "start here" steps
    8. Sign in pages    the two column layout with the brand panel
*/

/* 1. Brand colors ----------------------------------------------------------
   Ink for text, teal for the one main action on each screen, and a bright
   cyan used only for decoration (the logo, the hero wash), never for text.

   LIGHT AND DARK: every color the two themes don't share is a variable
   below. :root holds the light set, [data-bs-theme="dark"] right after it
   holds the dark set. base.html sets data-bs-theme on <html> before the
   page paints, and Bootstrap 5.3 switches its own colors on the same
   attribute. This file loads after Bootstrap, so the dark block here must
   repeat any --bs-* value that :root changed. */
:root {
  --viewola-night: #0b1324;        /* fixed dark surfaces (closing band, sign in panel) */
  --viewola-heading: #0b1324;      /* headings and strong text */
  --viewola-slate: #475569;        /* small labels */
  --viewola-line: #e6ebf1;         /* card and table borders */
  --viewola-line-soft: #eef2f6;    /* lines between table rows */
  --viewola-line-strong: #cbd5e1;  /* outline buttons, screenshot frames */
  --viewola-line-hover: #94a3b8;
  --viewola-input-line: #cfd8e3;
  --viewola-surface: #ffffff;      /* cards */
  --viewola-surface-2: #f8fafc;    /* table headers, the screenshot frame's bar */
  --viewola-page: #f6f8fb;         /* the page behind the cards */
  --viewola-hover: #f1f5f9;
  --viewola-track: #e8eef4;        /* the empty part of a budget bar */
  --viewola-nav-bg: rgba(255, 255, 255, 0.86);
  --viewola-nav-text: #334155;
  --viewola-accent-line: #cdeef5;  /* soft teal borders */
  --viewola-hero-top: #f3fbfd;
  --viewola-teal: #0e7490;
  --viewola-teal-dark: #155e75;
  --viewola-teal-soft: #ecfeff;
  --viewola-on-teal: #ffffff;      /* text on a teal fill */
  --viewola-cyan: #06b6d4;
  --viewola-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.14);
  --viewola-shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 32px 64px -24px rgba(8, 47, 73, 0.35);

  --bs-primary: var(--viewola-teal);
  --bs-primary-rgb: 14, 116, 144;
  /* Bootstrap colors links from these number versions, not the hex ones. */
  --bs-link-color-rgb: 14, 116, 144;
  --bs-link-hover-color-rgb: 21, 94, 117;
  --bs-body-color: #1e293b;
  --bs-body-color-rgb: 30, 41, 59;
  --bs-secondary-color: #5b6b80;
  --bs-border-color: var(--viewola-line);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-body-font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The dark set. Deep ink page, cards lifted one step, and a brighter cyan
   for the main action, with dark text on it so it stays readable.
   Contrast checked at 4.5:1 or better for every text pair. */
[data-bs-theme="dark"] {
  --viewola-heading: #f1f5f9;
  --viewola-slate: #a3b1c4;
  --viewola-line: #1e2a3d;
  --viewola-line-soft: #172235;
  --viewola-line-strong: #2a3a52;
  --viewola-line-hover: #4a5f80;
  --viewola-input-line: #2f405a;
  --viewola-surface: #0f1829;
  --viewola-surface-2: #131e31;
  --viewola-page: #0a1120;
  --viewola-hover: #1a2639;
  --viewola-track: #1e2a3d;
  --viewola-nav-bg: rgba(10, 17, 32, 0.82);
  --viewola-nav-text: #c3cede;
  --viewola-accent-line: rgba(34, 211, 238, 0.28);
  --viewola-hero-top: #0b1a2a;
  --viewola-teal: #22d3ee;
  --viewola-teal-dark: #67e8f9;
  --viewola-teal-soft: rgba(34, 211, 238, 0.12);
  --viewola-on-teal: #04131c;
  --viewola-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --viewola-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -24px rgba(0, 0, 0, 0.75);

  --bs-primary: var(--viewola-teal);
  --bs-primary-rgb: 34, 211, 238;
  --bs-link-color-rgb: 103, 232, 249;
  --bs-link-hover-color-rgb: 165, 243, 252;
  --bs-body-bg: #0a1120;
  --bs-body-bg-rgb: 10, 17, 32;
  --bs-body-color: #dbe3ee;
  --bs-body-color-rgb: 219, 227, 238;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #9aa9bd;
  --bs-secondary-bg: #172235;
  --bs-tertiary-bg: #131e31;
  --bs-border-color: var(--viewola-line);
}

/* Cards, lists, and menus sit on the surface color in both themes. */
.card {
  --bs-card-bg: var(--viewola-surface);
}

.list-group {
  --bs-list-group-bg: var(--viewola-surface);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--viewola-surface);
  --bs-dropdown-border-color: var(--viewola-line);
  --bs-dropdown-link-active-bg: var(--viewola-teal-soft);
  --bs-dropdown-link-active-color: var(--viewola-heading);
  --bs-dropdown-link-hover-bg: var(--viewola-hover);
  box-shadow: var(--viewola-shadow);
}

/* In dark mode the main button is bright cyan with dark text on it. */
[data-bs-theme="dark"] .btn-primary {
  --bs-btn-color: var(--viewola-on-teal);
  --bs-btn-hover-color: var(--viewola-on-teal);
  --bs-btn-active-color: var(--viewola-on-teal);
  --bs-btn-disabled-color: var(--viewola-on-teal);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 8px 24px -10px rgba(34, 211, 238, 0.45);
}

/* The round icon button in the top bar (the theme switch). */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  color: var(--viewola-nav-text);
  border: 1px solid var(--viewola-line);
  background: var(--viewola-surface);
}

.btn-icon:hover,
.btn-icon[aria-expanded="true"] {
  color: var(--viewola-heading);
  background: var(--viewola-hover);
  border-color: var(--viewola-line-strong);
}

/* Screenshots come in a light and a dark copy. Show the one for the theme. */
[data-bs-theme="dark"] .only-light,
html:not([data-bs-theme="dark"]) .only-dark {
  display: none !important;
}

/* Bootstrap's buttons keep their own colors, so point them at the teal too. */
.btn-primary {
  --bs-btn-bg: var(--viewola-teal);
  --bs-btn-border-color: var(--viewola-teal);
  --bs-btn-hover-bg: var(--viewola-teal-dark);
  --bs-btn-hover-border-color: var(--viewola-teal-dark);
  --bs-btn-active-bg: var(--viewola-teal-dark);
  --bs-btn-active-border-color: var(--viewola-teal-dark);
  --bs-btn-disabled-bg: var(--viewola-teal);
  --bs-btn-disabled-border-color: var(--viewola-teal);
  box-shadow: 0 1px 2px rgba(8, 47, 73, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-outline-secondary {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: var(--viewola-line-strong);
  --bs-btn-hover-color: var(--viewola-heading);
  --bs-btn-hover-bg: var(--viewola-hover);
  --bs-btn-hover-border-color: var(--viewola-line-hover);
  --bs-btn-active-color: var(--viewola-heading);
  --bs-btn-active-bg: var(--viewola-hover);
  --bs-btn-active-border-color: var(--viewola-line-hover);
  background-color: var(--viewola-surface);
}

.btn {
  font-weight: 600;
}

.btn-lg {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-font-size: 1.05rem;
}

/* 2. Page basics ---------------------------------------------------------- */
body {
  color: var(--bs-body-color);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.bg-app {
  background-color: var(--viewola-page);
}

h1, h2, h3, .h1, .h2, .h3, .h4, .h5 {
  color: var(--viewola-heading);
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1100;
  padding: 0.5rem 1rem;
  background: var(--viewola-surface);
  border-radius: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--viewola-teal);
  outline-offset: 2px;
}

/* Small uppercase labels above headings. Tracked out so they breathe. */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--viewola-slate);
}

.text-pre-wrap {
  white-space: pre-wrap;
}

/* 3. Frame: top bar, logo, footer ----------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--viewola-nav-bg);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
}

.site-nav .nav-link {
  color: var(--viewola-nav-text);
  font-weight: 500;
  border-radius: 0.5rem;
}

.site-nav .nav-link:hover {
  color: var(--viewola-heading);
}

.site-nav .nav-link.active {
  color: var(--viewola-heading);
  background: var(--viewola-hover);
}

@media (min-width: 768px) {
  .site-nav .nav-link {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
}

.public-link {
  color: var(--viewola-nav-text);
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
}

.public-link:hover,
.public-link[aria-current="page"] {
  color: var(--viewola-heading);
}

/* The logo: the wave mark plus the word. */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--viewola-heading);
}

.brand-mark:hover {
  color: var(--viewola-heading);
}

.brand-mark svg {
  flex: none;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--viewola-slate);
}

.account-chip .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--viewola-slate);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--viewola-heading);
  text-decoration: underline;
}

/* 4. Components ----------------------------------------------------------- */
.card {
  border-color: var(--viewola-line);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--viewola-shadow);
}

/* Cards and lists inside a card sit flat, one shadow per stack. */
.card .card,
.card .list-group {
  box-shadow: none;
}

/* A card that is also a link gets a quiet lift on hover. */
a.card {
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

a.card:hover {
  border-color: var(--viewola-line-hover);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  a.card,
  a.card:hover {
    transition: none;
    transform: none;
  }
}

/* Stat cards: a small label, then one big number. */
.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--viewola-slate);
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--viewola-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

/* Status pills: soft fill and a dot, so they inform without shouting. */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-live { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.status-pill.is-wait { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.status-pill.is-bad { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.status-pill.is-off { background: #f2f4f7; color: #344054; border-color: #e4e7ec; }

[data-bs-theme="dark"] .status-pill.is-live { background: rgba(74, 222, 128, 0.1); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
[data-bs-theme="dark"] .status-pill.is-wait { background: rgba(250, 204, 21, 0.1); color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
[data-bs-theme="dark"] .status-pill.is-bad { background: rgba(248, 113, 113, 0.1); color: #fca5a5; border-color: rgba(248, 113, 113, 0.35); }
[data-bs-theme="dark"] .status-pill.is-off { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }

/* Tables inside cards: quiet headers, roomy rows, numbers that line up.
   The card clips the table so the header keeps the rounded corners. */
.card:has(> .table-responsive) {
  overflow: hidden;
}

.card .table a {
  text-decoration: none;
  font-weight: 500;
}

.card .table a:hover {
  text-decoration: underline;
}

.card .table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.card .table thead th {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--viewola-slate);
  background: var(--viewola-surface-2);
  border-bottom-color: var(--viewola-line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.card .table td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: var(--viewola-line-soft);
}

.card .table th:first-child,
.card .table td:first-child {
  padding-left: 1.25rem;
}

.card .table th:last-child,
.card .table td:last-child {
  padding-right: 1.25rem;
}

.table .text-end {
  font-variant-numeric: tabular-nums;
}

.budget-bar {
  height: 0.5rem;
  background-color: var(--viewola-track);
  border-radius: 999px;
}

.budget-bar .progress-bar {
  background: linear-gradient(90deg, var(--viewola-teal), var(--viewola-cyan));
  border-radius: 999px;
}

.list-group {
  --bs-list-group-border-color: var(--viewola-line);
  --bs-list-group-border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--viewola-shadow);
}

/* Radio and checkbox cards (account type, content type, platforms).
   The whole card is clickable, and the chosen one turns teal. */
.choice-card {
  cursor: pointer;
  box-shadow: none;
}

.choice-card:has(input:checked) {
  border-color: var(--viewola-teal);
  background-color: var(--viewola-teal-soft);
  box-shadow: 0 0 0 1px var(--viewola-teal);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--viewola-teal);
  outline-offset: 2px;
}

/* Amount chips on the funding form. viewola.js sets aria-pressed. */
.chip[aria-pressed="true"] {
  border-color: var(--viewola-teal);
  background-color: var(--viewola-teal-soft);
  color: var(--viewola-heading);
}

.form-control,
.form-select {
  border-color: var(--viewola-input-line);
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--viewola-teal);
  box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.15);
}

/* Continue with Google: white button with Google's colored G (auth pages). */
.btn-google {
  --bs-btn-bg: #fff;
  --bs-btn-color: #1f1f1f;
  --bs-btn-border-color: #747775;
  --bs-btn-hover-bg: #f2f2f2;
  --bs-btn-hover-color: #1f1f1f;
  --bs-btn-hover-border-color: #747775;
  --bs-btn-active-bg: #e8e8e8;
  --bs-btn-active-border-color: #747775;
  font-weight: 500;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* "or use your email" with a line on each side. */
.or-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--bs-border-color);
}

/* One icon style everywhere: thin outline strokes in a soft teal tile. */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--viewola-teal-soft);
  color: var(--viewola-teal);
  flex: none;
}

/* 5. Landing page --------------------------------------------------------- */

/* The hero sits on a soft teal and sky wash that fades into white. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(50rem 28rem at -10% 10%, rgba(6, 182, 212, 0.16), transparent 60%),
    linear-gradient(180deg, var(--viewola-hero-top) 0%, var(--bs-body-bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-accent-line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--viewola-teal-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.hero-badge .tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--viewola-teal);
  color: var(--viewola-on-teal);
  font-size: 0.72rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--viewola-heading);
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--viewola-teal) 0%, #0e7490 35%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-bs-theme="dark"] .hero-title .accent {
  background-image: linear-gradient(90deg, #22d3ee 0%, #67e8f9 45%, #7dd3fc 100%);
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--viewola-slate);
}

/* A product screenshot inside a simple browser window. */
.shot {
  border-radius: 1rem;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-line-strong);
  box-shadow: var(--viewola-shadow-lg);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: var(--viewola-surface-2);
  border-bottom: 1px solid var(--viewola-line);
}

.shot-bar .shot-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--viewola-line-strong);
}

.shot-bar .shot-url {
  flex: 1;
  margin-left: 0.6rem;
  margin-right: 2.2rem;
  padding: 0.15rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-line);
  font-size: 0.72rem;
  color: var(--bs-secondary-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* On wide screens the hero shot bleeds a little past the container. */
@media (min-width: 1200px) {
  .hero-shot {
    margin-right: -5rem;
  }
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.proof-row li::before {
  content: "\2713";
  margin-right: 0.4rem;
  color: var(--viewola-teal);
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  max-width: 40rem;
  color: var(--viewola-slate);
  font-size: 1.075rem;
  line-height: 1.65;
}

/* The money flow: three stops joined by a dashed line on wide screens. */
.flow {
  position: relative;
}

@media (min-width: 768px) {
  .flow::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: 17%;
    right: 17%;
    border-top: 2px dashed var(--viewola-accent-line);
  }
}

.flow-step {
  position: relative;
  text-align: center;
}

.flow-step .flow-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-accent-line);
  color: var(--viewola-teal);
  box-shadow: var(--viewola-shadow);
  margin-bottom: 1rem;
}

.flow-step p {
  max-width: 19rem;
  margin-left: auto;
  margin-right: auto;
}

.formula {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: 1rem;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-line);
  box-shadow: var(--viewola-shadow);
  font-weight: 600;
  color: var(--viewola-heading);
}

.formula .op {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.formula .term {
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--viewola-teal-soft);
  color: var(--viewola-teal-dark);
}

/* Bands that alternate the page background. */
.band-soft {
  background: var(--viewola-page);
}

/* Closing call to action: dark ink with the wave glow. */
.cta-dark {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(40rem 20rem at 90% 0%, rgba(6, 182, 212, 0.35), transparent 60%),
    radial-gradient(30rem 18rem at 0% 100%, rgba(14, 116, 144, 0.45), transparent 60%),
    var(--viewola-night);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .cta-dark,
[data-bs-theme="dark"] .auth-panel {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.cta-dark h2 {
  color: #fff;
}

.cta-dark .text-soft {
  color: #b8c4d4;
}

.cta-dark a:not(.btn) {
  color: #a5f3fc;
}

.btn-light-cta {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--viewola-night);
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #e0f7fb;
  --bs-btn-hover-color: var(--viewola-night);
  --bs-btn-hover-border-color: #e0f7fb;
  --bs-btn-active-bg: #cdf2f8;
  --bs-btn-active-color: var(--viewola-night);
}

.btn-ghost-cta {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.16);
  --bs-btn-active-color: #fff;
}

/* The soft teal box for the worked example on How it works. */
.cta-band {
  background: var(--viewola-teal-soft);
  border-radius: var(--bs-border-radius-lg);
}

/* 6. Explainer pages (How it works, FAQ, legal) --------------------------- */

/* Benefit lists on the landing and guide. */
.check-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--viewola-teal-soft);
  color: var(--viewola-teal);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3rem;
  text-align: center;
}

/* Numbered steps on How it works. Jump links land below the top bar. */
.guide-section {
  scroll-margin-top: 5rem;
}
.guide-list {
  display: grid;
  gap: 1.5rem;
  max-width: 46rem;
  margin-bottom: 2rem;
}
.guide-step {
  display: flex;
  gap: 1rem;
}
.guide-number,
.start-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--viewola-teal-soft);
  color: var(--viewola-teal-dark);
  font-weight: 700;
  font-size: 0.875rem;
}
.guide-step .text-secondary {
  line-height: 1.6;
}

/* FAQ answers open in place with native <details>. */
.faq-list {
  border-top: 1px solid var(--bs-border-color);
  max-width: 46rem;
}
.faq-item {
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--viewola-heading);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--viewola-teal);
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Privacy policy and terms. A readable column. */
.legal {
  max-width: 46rem;
  line-height: 1.65;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
}

/* 7. Dashboards ------------------------------------------------------------
   Every signed in page opens with an h1.h3 title. Make those page titles
   bolder and bigger, and the h2.h5 section titles under them a touch firmer. */
main h1.h3 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

main h2.h5 {
  font-weight: 700 !important;
}

.start-steps {
  border-color: var(--viewola-accent-line);
  background: linear-gradient(180deg, var(--viewola-hero-top) 0%, var(--viewola-surface) 60%);
}

.start-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.start-step.is-done .start-mark {
  background: var(--viewola-teal);
  color: var(--viewola-on-teal);
}
.start-step.is-done .fw-semibold {
  color: var(--bs-secondary-color);
}

/* 8. Sign in pages: form on the left, brand panel on the right ----------- */
.auth-shell {
  max-width: 64rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--viewola-surface);
  border: 1px solid var(--viewola-line);
  box-shadow: var(--viewola-shadow-lg);
}

.auth-panel {
  height: 100%;
  padding: 3rem 2.5rem;
  color: #c9d4e2;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(6, 182, 212, 0.4), transparent 60%),
    radial-gradient(26rem 16rem at 0% 100%, rgba(14, 116, 144, 0.5), transparent 60%),
    var(--viewola-night);
}

.auth-panel h2 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.auth-panel .check-list li::before {
  background: rgba(165, 243, 252, 0.15);
  color: #a5f3fc;
}
