/* myStuf.app marketing site — shared design system
   Palette and type pairing lifted from the app's own brand marks
   (see md files/stuf-suite-plan.md and Stuf.App/Branding.cs). */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Caveat:wght@600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F1F6F5;
  --card-warm: #F6E7CE;
  --card-warm-strong: #E8CC93;
  --ink: #0B2545;
  --ink-soft: #4E5F68;
  --ink-faint: #7C8B92;
  --teal: #0E7C86;
  --teal-dark: #0A5A62;
  --teal-tint: #E3F1F1;
  --teal-tint-strong: #BEE3E2;
  --brown: #8B5A2B;
  --border: #E2E8E7;
  --good: #1E7A4C;
  --footer-bg: #015064;
  --header-bg: #79461C;
  --shadow: 0 1px 2px rgba(11,37,69,0.06), 0 12px 32px -16px rgba(11,37,69,0.22);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1A22;
    --surface: #0F212B;
    --surface-alt: #122A34;
    --card-warm: #2C2416;
    --card-warm-strong: #5C4423;
    --ink: #F2F6F5;
    --ink-soft: #AFC0C5;
    --ink-faint: #7E9098;
    --teal: #3FC2CB;
    --teal-dark: #7EDDE3;
    --teal-tint: #12333A;
    --teal-tint-strong: #1D525A;
    --brown: #D0955E;
    --border: #1D3540;
    --good: #4FCC8C;
    --footer-bg: #015064;
    --header-bg: #79461C;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px -16px rgba(0,0,0,0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }
.script { font-family: 'Caveat', cursive; }

a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, .badge:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

p { margin: 0 0 1em; max-width: 62ch; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
header.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-wave { display: block; line-height: 0; }
.header-wave svg { display: block; width: 100%; height: 48px; }
.header-wave path { fill: var(--header-bg); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.header-controls { display: flex; align-items: center; gap: 20px; }
.brand-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark img {
  height: 64px;
  width: auto;
  background: rgba(255,255,255,0.92);
  padding: 8px 12px;
  border-radius: 8px;
}
nav.site-nav { display: flex; align-items: center; gap: 28px; }
nav.site-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
nav.site-nav a:hover { color: #ffffff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Account menu ---------- */
.account-area { position: relative; display: flex; align-items: center; }
.account-menu { position: relative; }
.account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}
.account-trigger:hover { background: rgba(255,255,255,0.22); }
.account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  z-index: 50;
}
.account-panel.open { display: block; }
.account-panel h4 { font-size: 1rem; margin-bottom: 14px; }
.account-panel form { display: flex; flex-direction: column; gap: 12px; }
.field-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field-label input {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.field-label input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.signin-submit { width: 100%; border: none; cursor: pointer; padding: 10px; font-size: 0.92rem; border-radius: 8px; }
.signin-note { font-size: 0.76rem; color: var(--ink-faint); margin: 12px 0 0; }
.signin-error { font-size: 0.8rem; color: #B3413E; margin: -2px 0 0; }
.account-link {
  display: none;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}
.account-link.is-visible { display: flex; }
.account-menu.is-hidden { display: none; }
.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--header-bg);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .account-panel { right: -12px; width: 260px; }
  .nav-toggle { display: block; }
  nav.site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 24px 18px;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a { color: var(--ink); padding: 10px 0; width: 100%; }
}

/* ---------- Buttons / badges ---------- */
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--ink);
  cursor: default;
  opacity: 0.92;
}
.badge-store .glyph {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge-store .lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.badge-store .lines small { font-size: 0.68rem; letter-spacing: 0.03em; opacity: 0.75; text-transform: uppercase; }
.badge-store .lines strong { font-size: 0.92rem; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-alt); }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0 64px;
  background:
    radial-gradient(ellipse 900px 480px at 15% -10%, var(--teal-tint), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero.hero-tight { padding-bottom: 20px; }
.hero .eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 2px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero-heading-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-heading-row h1 { margin-bottom: 0; }
.hero p.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: none;
  margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-actions .secondary-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }

.hero-banner-wrap { margin-bottom: 48px; }
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-visual { flex: 0 0 auto; }
.hero-logo { width: min(480px, 38vw); height: auto; }
@media (max-width: 900px) {
  .hero-grid { flex-direction: column-reverse; }
  .hero-visual { width: 100%; }
  .hero-logo { width: min(320px, 60vw); margin: 0 auto 8px; }
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface-alt); }
section.block.library-block { padding-bottom: 28px; }
section.block.engine-block { padding-top: 28px; border-top: 1px solid var(--border); }
section.block.comparison-block { padding-top: 24px; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head .eyebrow-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- App family grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.app-card {
  background: var(--card-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-card img { height: 44px; width: auto; align-self: flex-start; }
.app-card .tagline { color: var(--ink); font-weight: 600; font-size: 0.95rem; margin: 0; }
.app-card .desc { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.app-card .go {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-dark);
  display: flex; align-items: center; gap: 6px;
}
.app-card .go::after { content: '→'; }

/* ---------- Feature columns ---------- */
.col-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature {
  padding: 4px 0;
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: 0.94rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ---------- Feature deep-dive blocks (myStuf page) ---------- */
.upgrade-card { padding: 44px 40px; border: 2px solid var(--teal); }
.upgrade-card .deep-block { padding: 0; }
section.block.upgrade-section { padding-top: 24px; }
.deep-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.deep-block:last-of-type { border-bottom: none; }
.deep-block.reverse .deep-copy { order: 2; }
.deep-block.reverse .deep-visual { order: 1; }
.deep-copy .eyebrow-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 10px;
}
.deep-copy h2 { font-size: 1.7rem; margin-bottom: 14px; }
.deep-copy p { font-size: 1rem; }
.deep-copy ul { margin: 14px 0 0; padding-left: 1.2em; font-size: 0.95rem; }
.deep-copy ul li { margin-bottom: 7px; color: var(--ink-soft); }
.deep-visual {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 820px) {
  .deep-block, .deep-block.reverse { grid-template-columns: 1fr; }
  .deep-block.reverse .deep-copy, .deep-block.reverse .deep-visual { order: initial; }
}

/* ---------- Library table ---------- */
.lib-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lib-table th, .lib-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lib-table th { font-family: 'Poppins', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 600; }
.lib-table tr:last-child td { border-bottom: none; }
.lib-table tbody tr:nth-child(even) { background: var(--card-warm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.table-wrap .lib-table { min-width: 560px; }
.table-wrap .lib-table th:first-child, .table-wrap .lib-table td:first-child { padding-left: 22px; }

/* ---------- Pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.pricing-table th, .pricing-table td {
  text-align: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  width: 34%;
}
.pricing-table .hint { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }
.pricing-table thead th { padding-top: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--border); }
.pricing-table .tier-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.pricing-table .tier-sub { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; font-weight: 400; }
.pricing-table .tier-price {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 6px;
}
.pricing-table .tier-price small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.7rem; color: var(--ink-faint); }
.pricing-table .tier-price-alt { display: block; font-size: 0.76rem; color: var(--ink-faint); margin-top: 1px; }
.pricing-table .tier-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  background: var(--teal-tint);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.pricing-table td.tier-highlight, .pricing-table th.tier-highlight {
  background: var(--teal-tint-strong);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pricing-table .chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}
.pricing-table .dash { color: var(--ink-faint); font-weight: 400; }
.pricing-table .limited {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brown);
  background: var(--card-warm);
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}
.note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 18px;
}

/* ---------- Lite app sections ---------- */
.lite-list { padding-top: 8px; }
.lite-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.lite-section:first-of-type { padding-top: 8px; }
.lite-section:last-of-type { border-bottom: none; }
.lite-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.lite-head img { height: 76px; width: auto; }
.lite-head .tagline { font-family: 'Caveat', cursive; font-size: 1.5rem; color: var(--teal-dark); }
.lite-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.lite-body p { font-size: 1rem; }
@media (max-width: 720px) { .lite-body { grid-template-columns: 1fr; } }

/* ---------- Collection type icon grid ---------- */
.type-group { margin-top: 36px; }
.type-group:first-of-type { margin-top: 8px; }
.type-group-title {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 12px;
  margin-top: 8px;
}
.type-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.type-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.type-icon span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
}
@media (max-width: 760px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .type-icon img { width: 46px; height: 46px; }
}

/* ---------- Jump links ---------- */
.jumplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.jumplinks a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
}
.jumplinks a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Link picker mock ---------- */
.link-demo {
  max-width: 460px;
  margin: 40px auto 0;
  padding: 0;
  overflow: hidden;
}
.link-demo-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.link-demo-title { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 10px; }
.link-demo-search {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-faint);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.link-demo-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.link-demo-tabs .tab {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.link-demo-tabs .tab.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.link-demo-subtabs { display: flex; gap: 8px; padding: 10px 20px; }
.link-demo-subtabs .subtab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: 20px;
}
.link-demo-subtabs .subtab.active { background: var(--teal-tint-strong); color: var(--teal-dark); }
.link-demo-rows { padding: 6px 20px 14px; }
.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink);
  cursor: default;
}
.link-row:last-child { border-bottom: none; }
.link-row input { width: 17px; height: 17px; accent-color: var(--teal); }
.link-row span { display: flex; flex-direction: column; }
.link-row em { font-style: normal; font-size: 0.76rem; color: var(--ink-faint); }
.link-row.checked { color: var(--ink); font-weight: 600; }
.link-demo-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.btn-fake-ghost, .btn-fake-solid {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}
.btn-fake-ghost { color: var(--ink-faint); }
.btn-fake-solid { background: var(--teal); color: #ffffff; }

/* ---------- Cross-sell ---------- */
.crosssell {
  text-align: center;
  padding: 56px 40px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--bg);
}
.crosssell h2 { color: var(--bg); font-size: 1.5rem; }
.crosssell p { color: rgba(250,250,250,0.78); margin: 0 auto 22px; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* ---------- Account page ---------- */
.account-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.account-header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-tint-strong);
  color: var(--teal-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.plan-badge {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  background: var(--card-warm);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.account-section { padding: 22px 24px; }
.account-section h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 14px;
}
button.account-row {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 10px;
  cursor: not-allowed;
}
button.account-row:last-child { margin-bottom: 0; }
.account-status { font-size: 0.88rem; color: var(--ink-faint); margin: 0; }
@media (max-width: 640px) {
  .account-grid { grid-template-columns: 1fr; }
  .plan-badge { margin-left: 0; }
}

/* ---------- Simple content pages (support/privacy/terms) ---------- */
.doc {
  max-width: 74ch;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.doc h1 { font-size: 2rem; margin-bottom: 6px; }
.doc .updated { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 36px; display: block; }
.doc h2 { font-size: 1.25rem; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.98rem; }
.doc ul { padding-left: 1.3em; }
.doc ul li { margin-bottom: 8px; }
.callout {
  background: var(--card-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 32px;
}
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.95rem; margin: 0; }
.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0 40px;
}
.contact-card a { font-weight: 600; font-size: 1.02rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 40px;
}
.footer-wave { display: block; line-height: 0; }
.footer-wave svg { display: block; width: 100%; height: 64px; }
.footer-wave path { fill: var(--footer-bg); }
.footer-body {
  background: var(--footer-bg);
  padding: 8px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
  padding-top: 8px;
}
.footer-brand img {
  height: 42px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.92);
  padding: 8px 12px;
  border-radius: 8px;
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 32ch; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: #ffffff; }
.status-pill { color: rgba(255,255,255,0.6); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
