/* Bandobast marketing site — shared styles.
   Brand navy #1e3a8a is taken from the app icon (web/src/app/icon.svg). */

:root {
  --navy: #1e3a8a;
  --navy-deep: #16296180;
  --navy-ink: #0f1e3d;
  --khaki: #b8a179;
  --ink: #1a2233;
  --body: #495267;
  --muted: #6b7385;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 10px;
  --wrap: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  display: block;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--body);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--navy);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #172e6e;
  border-color: #172e6e;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #c7cfdf;
  background: var(--bg-soft);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn-on-dark {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-on-dark:hover {
  background: #eef2fb;
  border-color: #eef2fb;
}

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

.hero {
  background: linear-gradient(168deg, #16295f 0%, var(--navy) 58%, #24479f 100%);
  color: #dbe3f5;
  padding: clamp(64px, 10vw, 108px) 0;
}

.hero h1 {
  color: #fff;
  max-width: 17ch;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 58ch;
  margin-bottom: 2em;
  color: #c9d5ee;
}

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

.hero-note {
  margin: 1.6em 0 0;
  font-size: 0.9rem;
  color: #9fb2d8;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki);
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 88px) 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 46px;
}

.section-head p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Feature grid ---------- */

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}

.card h3 {
  margin-bottom: 0.45em;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #eaf0fd;
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin-bottom: 0.35em;
}

.step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--navy);
  color: #cfdaf1;
  padding: clamp(48px, 7vw, 76px) 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 54ch;
  margin: 0 auto 1.8em;
}

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

.site-footer {
  background: var(--navy-ink);
  color: #98a3ba;
  padding: 56px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.site-footer a {
  color: #b9c3d8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #24304d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

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

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 40px;
}

.page-head h1 {
  margin-bottom: 0.25em;
}

.page-head .updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal {
  padding: 52px 0 78px;
}

.legal .wrap {
  max-width: 800px;
}

.legal h2 {
  font-size: 1.32rem;
  margin-top: 2.1em;
  padding-top: 0.2em;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-size: 1.03rem;
  margin-top: 1.7em;
}

.legal ul,
.legal ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
}

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

.legal th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.4em;
}

.table-scroll table {
  margin-bottom: 0;
  min-width: 460px;
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 1.6em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2.4em;
}

.toc h2 {
  font-size: 0.8rem !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9em !important;
  padding-top: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 0.4em;
  break-inside: avoid;
}

/* ---------- Contact ---------- */

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

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}

.contact-card h3 {
  margin-bottom: 0.5em;
}

.contact-card address {
  font-style: normal;
  margin: 0;
  line-height: 1.75;
}

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

.detail-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list li:last-child {
  border-bottom: 0;
}

.detail-list dt,
.detail-list .label {
  flex: 0 0 116px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }
  .nav .nav-hide-sm {
    display: none;
  }
  .toc ol {
    columns: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .detail-list li {
    flex-direction: column;
    gap: 2px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta {
    display: none;
  }
  body {
    color: #000;
  }
}
