/*
 * ViMail — site styles.
 * Thin layer on top of Bootstrap 5.3: everything here uses Bootstrap's own
 * CSS variables, so light/dark (data-bs-theme) works without extra rules.
 */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

/* ---------- Icons (inline SVG sprite) ---------- */

svg.bi {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  border-radius: 0.75rem;
  color: var(--bs-primary-text-emphasis);
  background-color: var(--bs-primary-bg-subtle);
}

/* ---------- Navbar ---------- */

.site-nav {
  background-color: rgba(var(--bs-body-bg-rgb), 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.1rem;
  color: #fff;
  background-color: var(--bs-primary);
  border-radius: 0.5rem;
}

.navbar-brand {
  letter-spacing: -0.01em;
}

#theme-toggle {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

#theme-toggle:hover,
#theme-toggle:focus-visible,
#theme-toggle.show {
  color: var(--bs-body-color);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(var(--bs-primary-rgb), 0.14), transparent 70%),
    radial-gradient(40rem 24rem at -10% 10%, rgba(var(--bs-info-rgb), 0.08), transparent 70%);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero .lead {
  max-width: 36rem;
}

.beta-form {
  max-width: 34rem;
}

.beta-form .form-text {
  font-size: 0.8125rem;
}

/* Honeypot: invisible to people, tempting to bots. */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Hero illustration ---------- */

.mock {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(var(--bs-emphasis-color-rgb), 0.1);
}

.mock .card-header {
  padding: 0.7rem 1rem;
  background-color: var(--bs-tertiary-bg);
}

.mock .dots {
  display: inline-flex;
  gap: 0.35rem;
}

.mock .dots i {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--bs-border-color);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
}

.check-list li + li {
  border-top: 1px solid var(--bs-border-color-translucent);
}

.check-list .name {
  min-width: 4.75rem;
  font-weight: 600;
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
}

/* ---------- Generic sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-primary-text-emphasis);
}

.trust-strip {
  border-block: 1px solid var(--bs-border-color-translucent);
  background-color: var(--bs-tertiary-bg);
}

.trust-strip .item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  white-space: nowrap;
}

.feature-card {
  border-radius: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-emphasis-color-rgb), 0.07);
  }
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  color: var(--bs-primary-text-emphasis);
  background-color: var(--bs-primary-bg-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
}

.tech-badges .badge {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5em 0.85em;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

.plan-price .amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cta-panel {
  border-radius: 1.25rem;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  box-shadow: 0 1rem 2.5rem rgba(var(--bs-emphasis-color-rgb), 0.06);
}

.accordion {
  --bs-accordion-border-radius: 0.875rem;
  --bs-accordion-inner-border-radius: calc(0.875rem - 1px);
}

/* ---------- Footer ---------- */

.site-footer a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--bs-body-color);
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 46rem;
}

.legal h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-size: 1.4rem;
  font-weight: 650;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-top: 1.5rem;
}

.legal p,
.legal li {
  line-height: 1.7;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal .table {
  font-size: 0.9rem;
}

.legal .table > thead {
  --bs-table-bg: var(--bs-tertiary-bg);
}

.toc {
  font-size: 0.9rem;
}

.toc a {
  display: block;
  padding: 0.25rem 0 0.25rem 0.85rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
  border-left: 2px solid var(--bs-border-color);
}

.toc a:hover,
.toc a:focus-visible,
.toc a.active {
  color: var(--bs-body-color);
  border-left-color: var(--bs-primary);
}

@media (min-width: 992px) {
  .toc-sticky {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

/* Details the operator must fill in before launch (see README). */
.todo {
  padding: 0.05em 0.35em;
  border-radius: 0.3rem;
  color: var(--bs-warning-text-emphasis);
  background-color: var(--bs-warning-bg-subtle);
}
