:root {
  --ink: #20324a;
  --muted: #647488;
  --line: #d9e7f2;
  --paper: #f6fbff;
  --surface: #ffffff;
  --leaf: #2f5688;
  --leaf-dark: #213f66;
  --tomato: #466f9f;
  --sun: #d9ecff;
  --sky: #e8f4fb;
  --mint: #f1f8fd;
  --shadow: 0 18px 45px rgba(47, 86, 136, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.wip-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 4vw;
  background: #fff1c2;
  color: #533f00;
  border-bottom: 1px solid #e6c65a;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 4vw;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 231, 242, 0.95);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.account-pill {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 900;
  font-size: 1.02rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-weight: 950;
}

.nav-links {
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.account-pill {
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 850;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 5vw 4vw 7vw;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(19, 38, 63, 0.84), rgba(82, 128, 174, 0.42) 52%, rgba(255, 255, 255, 0.08));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(780px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13.5ch;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 6.6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.13rem;
  line-height: 1.18;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--leaf);
  color: #fff;
}

.button.primary:hover {
  background: var(--leaf-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button.dark {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.button.full {
  width: 100%;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.78rem;
  outline-color: var(--leaf);
}

textarea {
  resize: vertical;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 4vw clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--paper));
}

.page-hero h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.45rem, 6vw, 5.7rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.13rem;
}

.quick-links a {
  display: grid;
  gap: 0.25rem;
  min-height: 132px;
  padding: 1.25rem 4vw 1.25rem 1.25rem;
  background: var(--surface);
}

.quick-links span {
  color: var(--tomato);
  font-size: 0.8rem;
  font-weight: 950;
}

.quick-links strong {
  font-size: 1.05rem;
}

.quick-links small,
.section-note,
.copy-stack p,
.detail-band p,
.blog-card p,
.tier-card p,
.tier-card li,
.summary-panel span,
.account-card p,
.dashboard-preview small,
.site-footer span {
  color: var(--muted);
}

.split-section,
.content-section,
.accounts-section {
  padding: clamp(2.4rem, 5vw, 5rem) 4vw;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 0.8rem;
  font-size: 1.08rem;
}

.detail-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 4vw 4vw;
}

.detail-band article {
  display: grid;
  gap: 0.3rem;
  min-height: 172px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sky);
  color: #184451;
  font-size: 0.82rem;
  font-weight: 950;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-note {
  max-width: 340px;
  margin-bottom: 0;
  font-weight: 800;
}

.blog-grid,
.tier-grid,
.account-grid {
  display: grid;
  gap: 0.9rem;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card,
.tier-card,
.summary-panel,
.account-card,
.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.blog-card {
  display: grid;
  gap: 0.8rem;
  min-height: 236px;
  padding: 1rem;
}

.blog-card time {
  color: var(--tomato);
  font-size: 0.82rem;
  font-weight: 900;
}

.blog-card .tag {
  width: fit-content;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.empty-state {
  display: grid;
  gap: 0.35rem;
  min-height: 260px;
  align-content: center;
  padding: 2rem;
  border: 1px dashed #8eb8de;
  border-radius: 8px;
  background: #f7fbff;
  text-align: center;
}

.empty-state h2 {
  margin-inline: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.csa-section {
  padding-top: 1rem;
}

.csa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem;
  align-items: start;
}

.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-card {
  display: grid;
  gap: 0.9rem;
  min-height: 286px;
  padding: 1rem;
}

.tier-card.is-selected {
  border-color: #8eb8de;
  box-shadow: inset 0 0 0 2px #d9ecff, var(--shadow);
}

.tier-card strong {
  font-size: 1.62rem;
}

.tier-card strong span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tier-card ul {
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding-left: 1.1rem;
}

.summary-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.selected-box {
  padding: 1rem;
  border: 1px dashed #8eb8de;
  border-radius: 8px;
  background: #f7fbff;
}

.selected-box strong,
.selected-box span {
  display: block;
}

.selected-box strong {
  font-size: 1.22rem;
}

.schedule-list {
  display: grid;
  gap: 0.65rem;
}

.schedule-list div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-list strong,
.schedule-list span {
  display: block;
}

.accounts-section {
  padding-top: 1rem;
}

.account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-card {
  display: grid;
  align-content: space-between;
  gap: 1.2rem;
  min-height: 264px;
  padding: 1rem;
}

.auth-card {
  background: #f7fbff;
}

.public-account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-account-grid {
  max-width: 560px;
}

.button-stack {
  display: grid;
  gap: 0.65rem;
}

.fine-print {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.dashboard-preview {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-tile {
  display: grid;
  gap: 0.25rem;
  min-height: 118px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tool-tile strong,
.tool-tile span,
.tool-tile small {
  display: block;
}

.tool-tile span {
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 4vw;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 1100px) {
  .quick-links,
  .blog-grid,
  .tier-grid,
  .account-grid,
  .public-account-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csa-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 64px);
    align-items: end;
    padding-top: 18vw;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(19, 38, 63, 0.12), rgba(19, 38, 63, 0.88));
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.8rem);
  }

  .quick-links,
  .split-section,
  .detail-band,
  .blog-grid,
  .tier-grid,
  .account-grid,
  .public-account-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .dashboard-head,
  .site-footer {
    display: grid;
  }

  .split-section,
  .content-section,
  .accounts-section {
    padding: 2.2rem 1rem;
  }

  .page-hero {
    padding: 3rem 1rem 2.2rem;
  }

  .detail-band {
    padding: 0 1rem 2.2rem;
  }
}
