/* ===================================================================
   Book the Captain — platform surface (marketing, captain dashboard, padmin)
   Clean SaaS look with the coastal palette of the tenant sites.
   Navy • Teal • Seafoam • Sand • Sunset Coral
   =================================================================== */
:root {
  --navy: #0b2a45;
  --navy-800: #12395a;
  --navy-700: #1b4b70;
  --teal: #1e6e8c;
  --teal-600: #2a9d8f;
  --seafoam: #7fc5c0;
  --seafoam-200: #a8dadc;
  --sand: #f7f4ec;
  --sand-200: #efe7d6;
  --coral: #ff6b4a;
  --coral-600: #f2542d;
  --gold: #ffd166;
  --ink: #14232f;
  --muted: #5c6f7c;
  --line: #e3e8ec;
  --white: #ffffff;
  --ok: #1f9d55;
  --ok-bg: #e7f6ec;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fdecea;
  --info-bg: #e8f2f8;

  --shadow-sm: 0 1px 3px rgba(11, 42, 69, .08), 0 1px 2px rgba(11, 42, 69, .06);
  --shadow: 0 10px 30px rgba(11, 42, 69, .10), 0 2px 8px rgba(11, 42, 69, .06);
  --shadow-lg: 0 24px 60px rgba(11, 42, 69, .18);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.platform-body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--coral-600); }
h1, h2, h3, h4 { line-height: 1.12; color: var(--navy); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
code { background: rgba(11, 42, 69, .07); padding: .1em .4em; border-radius: 6px; font-size: .88em; word-break: break-all; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section--tint { background: var(--white); }
.section--tight { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.section--navy { background: var(--navy); color: #dfeaf2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: #b9cdda; }
.center { text-align: center; }
.section-head { margin-bottom: 2.2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em; text-transform: uppercase;
  letter-spacing: .17em; font-size: .76rem; font-weight: 700; color: var(--teal-600);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--seafoam); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 64ch; }
.center .lead { margin-inline: auto; }
.text-muted { color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit; white-space: nowrap; line-height: 1; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 74, .32); }
.btn-primary:hover { background: var(--coral-600); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline.btn-danger { color: var(--bad); }
.btn-outline.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-xs { padding: .38rem .8rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
  font-weight: 600; color: var(--teal); cursor: pointer;
}
.btn-link:hover { color: var(--coral-600); }
.btn-link--danger { color: var(--bad); }
.btn-link--danger:hover { color: var(--bad); text-decoration: underline; }

/* ---------- Header ---------- */
.p-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.p-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.p-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: -.02em; }
.p-brand svg { flex: none; }
.p-brand small { display: block; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; }
.p-nav { display: flex; align-items: center; gap: 1.4rem; }
.p-nav > a { color: var(--navy-800); font-weight: 600; font-size: .96rem; }
.p-nav > a:hover { color: var(--coral-600); }
.p-nav-cta { display: flex; align-items: center; gap: .9rem; }
.p-nav-plain { color: var(--navy-800); font-weight: 600; font-size: .96rem; }
.p-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.p-nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .2s; }

@media (max-width: 920px) {
  .p-nav-toggle { display: block; }
  .p-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; padding: 1rem 6%;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease;
    border-bottom: 1px solid var(--line);
  }
  .p-nav.open { transform: translateY(0); }
  .p-nav > a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .p-nav .p-nav-cta { flex-direction: column; align-items: stretch; padding-top: .8rem; gap: .7rem; }
  .p-nav .p-nav-cta .btn { width: 100%; }
  .p-nav .p-nav-plain { padding: .4rem 0; text-align: center; }
}

/* ---------- Flashes ---------- */
.flashes { position: sticky; top: var(--header-h); z-index: 40; }
.flash {
  padding: .8rem 5%; font-weight: 600; font-size: .95rem; text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.flash.success { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--info-bg); color: var(--teal); }
.flash a { text-decoration: underline; color: inherit; }

/* ---------- Hero ---------- */
.p-hero {
  background:
    radial-gradient(90rem 40rem at 110% -20%, rgba(42, 157, 143, .35), transparent 60%),
    radial-gradient(70rem 34rem at -20% 120%, rgba(30, 110, 140, .5), transparent 60%),
    var(--navy);
  color: #eaf3f8;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}
.p-hero__inner { max-width: 50rem; }
.p-hero .eyebrow { color: var(--seafoam); }
.p-hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.p-hero h1 em { font-style: normal; color: var(--gold); }
.p-hero__sub { font-size: 1.22rem; color: #d9e8f1; max-width: 52ch; margin-bottom: 2rem; }
.p-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.p-hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; color: #dbe9f1; font-size: .92rem; }
.p-hero__badges span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.p-hero__badges svg { color: var(--gold); }

/* ---------- Page heads (pricing/features/legal) ---------- */
.p-page-head {
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  color: #dfeaf2; padding: clamp(3rem, 7vw, 5rem) 0;
}
.p-page-head h1 { color: #fff; }
.p-page-head .eyebrow { color: var(--seafoam); }
.p-page-head .lead { color: #b9cdda; }
.p-page-head--slim { padding: clamp(2rem, 5vw, 3.2rem) 0; }

/* ---------- Feature grid & rows ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-tile {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; transition: transform .18s ease, box-shadow .18s ease;
}
.section .feature-tile { background: #fff; }
.section--tint .feature-tile { background: var(--sand); }
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-tile h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature-tile p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature-tile__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-600)); color: #fff;
  margin-bottom: 1rem; font-size: 1.4rem;
}

.feature-row {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center; padding: clamp(1.8rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row--flip .feature-row__text { order: 2; }
.feature-row--flip .feature-row__panel { order: 1; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--flip .feature-row__text { order: 1; }
  .feature-row--flip .feature-row__panel { order: 2; }
}
.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.check-list li { display: flex; gap: .6rem; align-items: baseline; padding: .35rem 0; color: var(--ink); }
.check-list svg { color: var(--teal-600); flex: none; transform: translateY(2px); }

.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem; max-width: 24rem; margin-inline: auto;
}
.mini-card__title { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.mini-card__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.mini-card__row.muted { color: var(--muted); }
.mini-card__cta {
  margin-top: 1rem; background: var(--coral); color: #fff; text-align: center;
  border-radius: 999px; padding: .65rem; font-weight: 700; font-size: .95rem;
}

/* ---------- Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem; display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.plan-card h3 { margin-bottom: 0; }
.plan-card--featured {
  border: 2px solid var(--teal-600); box-shadow: var(--shadow);
  transform: translateY(-6px);
}
@media (max-width: 900px) { .plan-card--featured { transform: none; } }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal-600); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: .28rem .9rem; border-radius: 999px;
}
.plan-price { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: .3rem 0 .2rem; }
.plan-price span { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.plan-blurb { color: var(--muted); font-size: .95rem; flex: 0 0 auto; }
.plan-list { list-style: none; margin: .6rem 0 1.2rem; padding: 0; flex: 1; }
.plan-list li { display: flex; gap: .55rem; align-items: baseline; padding: .3rem 0; font-size: .94rem; }
.plan-list svg { color: var(--teal-600); flex: none; transform: translateY(2px); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); min-width: 640px;
}
.compare-table th, .compare-table td { padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--line); font-size: .94rem; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--navy-800); }
.compare-table thead th { background: var(--navy); color: #fff; font-size: .95rem; }
.compare-table thead th small { display: block; font-weight: 600; color: var(--seafoam-200); font-size: .74rem; margin-top: .15rem; }
.compare-table .hl { background: rgba(42, 157, 143, .07); }
.compare-table thead .hl { background: var(--teal); }
.compare-table svg { color: var(--teal-600); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; padding: 1rem 1.2rem; font: inherit; font-weight: 700;
  color: var(--navy); cursor: pointer; text-align: left;
}
.faq-q .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--teal-600); border-radius: 2px;
  transition: transform .2s ease;
}
.faq-q .plus::before { inset: 6px 0; }
.faq-q .plus::after { inset: 0 6px; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-a > div { overflow: hidden; padding: 0 1.2rem; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { padding-bottom: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-700));
  color: #dceaf2; border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band__actions { margin-top: 1.8rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Legal prose ---------- */
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.prose p { color: var(--ink); }
.prose-meta { color: var(--muted); font-size: .9rem; }

/* ---------- Banners ---------- */
.banner {
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .95rem;
  margin-bottom: 1.2rem; border: 1px solid transparent;
}
.banner a { font-weight: 700; text-decoration: underline; color: inherit; }
.banner svg { transform: translateY(2px); margin-right: .25rem; }
.banner--warn { background: var(--warn-bg); color: var(--warn); border-color: #f5d68a; }
.banner--info { background: var(--info-bg); color: var(--navy-700); border-color: #cfe3ef; }
.banner--save { background: var(--ok-bg); color: var(--ok); border-color: #bfe6cc; }

/* ---------- Auth pages ---------- */
.auth-wrap { padding: clamp(2.5rem, 7vw, 5rem) 4%; display: flex; justify-content: center; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.6rem); width: 100%; max-width: 26rem;
}
.auth-wrap--wide .auth-card { max-width: 40rem; }
.auth-head { margin-bottom: 1.4rem; }
.auth-head h1 { font-size: 1.7rem; }
.auth-alt { margin-top: 1.3rem; font-size: .93rem; color: var(--muted); text-align: center; }
.dot-sep { margin: 0 .4rem; color: var(--line); }
.verify-mark { font-size: 3rem; color: var(--teal-600); margin-bottom: .6rem; }
.verify-mark--ok { color: var(--ok); }
.verify-mark--bad { color: var(--bad); }
.auth-card.center .btn { margin-top: .6rem; }

/* ---------- Forms ---------- */
.p-form .field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy-800); margin-bottom: .3rem; }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea,
.filter-row input, .filter-row select, .tenant-switch {
  width: 100%; padding: .68rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30, 110, 140, .15);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-rule { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.hint--ok { color: var(--ok); font-weight: 600; }
.hint--bad { color: var(--bad); font-weight: 600; }
.hint-inline { font-size: .82rem; color: var(--muted); font-weight: 500; }
.fine-print { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .9rem; }
.slug-row { display: flex; align-items: stretch; }
.slug-row input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; min-width: 0; }
.slug-suffix {
  display: flex; align-items: center; padding: 0 .8rem; background: var(--sand);
  border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.p-form--inline { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; }
.p-form--inline .field { margin-bottom: 0; }
.p-form--inline .btn { margin-bottom: 2px; }
.field--grow { flex: 1 1 16rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.3rem; }
.form-actions form { display: inline; }
.inline-form { display: inline-block; }
.inline-form select { width: auto; padding: .35rem .5rem; font-size: .9rem; }

/* ---------- App shell (/app and /padmin) ---------- */
.app-wrap { padding: clamp(1.6rem, 4vw, 2.8rem) 0 4rem; min-height: 60vh; }
.app-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 1.1rem;
}
.app-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .25rem; }
.app-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .9rem; }
.app-head__url { font-weight: 600; }
.app-head__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.tenant-switch { width: auto; padding: .5rem .7rem; font-size: .9rem; font-weight: 600; }

.app-tabs {
  display: flex; gap: .2rem; border-bottom: 2px solid var(--line); margin-bottom: 1.6rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.app-tabs a {
  padding: .65rem 1rem; font-weight: 700; font-size: .95rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.app-tabs a:hover { color: var(--navy); }
.app-tabs a.active { color: var(--navy); border-bottom-color: var(--coral); }

.app-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .app-grid { grid-template-columns: 1fr; } }
.app-side { display: grid; gap: 1.4rem; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem; margin-bottom: 1.4rem;
}
.app-grid .panel, .app-side .panel { margin-bottom: 0; }
.panel__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: .9rem; flex-wrap: wrap;
}
.panel__head h2 { font-size: 1.15rem; margin: 0; }
.progress-note { font-size: .85rem; font-weight: 700; color: var(--teal-600); }
.sub-head { font-size: 1rem; margin: 1.6rem 0 .7rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.checklist li {
  display: flex; align-items: center; gap: .9rem; padding: .8rem .2rem;
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist__mark {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand-200); color: var(--navy); font-weight: 800; font-size: .9rem; flex: none;
}
.checklist li.done .checklist__mark { background: var(--ok); color: #fff; }
.checklist__label { flex: 1; font-weight: 600; color: var(--navy-800); }
.checklist li.done .checklist__label { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Dashboard bits ---------- */
.plan-summary__name { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.plan-summary__tag { color: var(--teal-600); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.plan-summary .btn { margin-top: .4rem; }
.quick-links { display: grid; gap: .1rem; }
.quick-links a {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .4rem;
  border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-800);
}
.quick-links a:hover { background: var(--sand); color: var(--teal); }
.quick-links svg { color: var(--teal-600); }

.empty-state { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; }
.empty-state .verify-mark { font-size: 3.4rem; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.2rem; }
.picker-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.picker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.picker-card h3 { margin-bottom: .2rem; }
.picker-card__meta { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.picker-card__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 700; color: var(--coral-600); font-size: .92rem; }

/* ---------- Plan choices ---------- */
.plan-choices { display: grid; gap: 1rem; margin-top: 1.2rem; }
.plan-choice {
  display: flex; gap: 1rem; align-items: flex-start; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; cursor: pointer;
  transition: border-color .15s ease, background .15s ease; background: #fff;
}
.plan-choice:hover { border-color: var(--seafoam); }
.plan-choice.current { border-color: var(--teal-600); background: rgba(42, 157, 143, .05); }
.plan-choice input[type="radio"] { margin-top: .45rem; accent-color: var(--teal-600); width: 1.1rem; height: 1.1rem; flex: none; }
.plan-choice__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.plan-choice__price { color: var(--teal-600); font-weight: 700; margin: .15rem 0 .35rem; }
.plan-choice__body p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Status rows ---------- */
.status-rows { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1.1rem 0; }
.status-row {
  display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.status-row:last-child { border-bottom: 0; }
.status-row__label { font-weight: 700; color: var(--navy-800); font-size: .92rem; }
.status-row__value { font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; }
.status-row__value.muted { color: var(--muted); }

/* ---------- Chips ---------- */
.chip {
  display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
  background: var(--sand-200); color: var(--navy-800); vertical-align: middle;
}
.chip--active, .chip--paid, .chip--live { background: var(--ok-bg); color: var(--ok); }
.chip--trial, .chip--pending, .chip--invoiced { background: var(--warn-bg); color: var(--warn); }
.chip--suspended, .chip--closed, .chip--void { background: var(--bad-bg); color: var(--bad); }
.chip--demo { background: var(--info-bg); color: var(--teal); }
.chip--plan { background: rgba(42, 157, 143, .14); color: var(--teal-600); }
.chip--muted { background: var(--sand-200); color: var(--muted); }

/* ---------- Tables ---------- */
.p-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.p-table th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .55rem .7rem; border-bottom: 2px solid var(--line);
}
.p-table td { padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.p-table tbody tr:hover { background: var(--sand); }
.td-actions { text-align: right; white-space: nowrap; }
.td-actions form { display: inline; }
.detail-cell { max-width: 26rem; overflow-wrap: anywhere; font-size: .87rem; color: var(--muted); }
.dns-table td { font-size: .9rem; }
.dns-table code { white-space: nowrap; }
.dns-table td:nth-child(3) code { white-space: normal; }

/* ---------- Key/value grids (padmin) ---------- */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem 1.4rem; }
.kv { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; overflow-wrap: anywhere; }
.kv span:first-child {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}

/* ---------- Metrics (padmin) ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.4rem; }
@media (max-width: 960px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; } }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem;
}
.metric__value { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.metric__label { font-weight: 700; color: var(--navy-800); font-size: .9rem; margin-top: .2rem; }
.metric__sub { color: var(--muted); font-size: .8rem; margin-top: .15rem; }

/* ---------- Filters & pager ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.1rem; }
.filter-row input, .filter-row select { width: auto; min-width: 11rem; padding: .5rem .7rem; font-size: .92rem; }
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 1.3rem; }

/* ---------- Action stacks (padmin tenant detail) ---------- */
.action-stack { display: grid; gap: 1.1rem; }
.action-stack form { padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.p-footer { background: var(--navy); color: #b8cdda; padding: 3.2rem 0 1.6rem; margin-top: auto; }
.p-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.p-footer a { display: block; color: #b8cdda; padding: .22rem 0; font-size: .93rem; }
.p-footer a:hover { color: var(--gold); }
.p-footer .p-brand { color: #fff; margin-bottom: .7rem; display: inline-flex; }
.p-footer .p-brand a { display: inline-flex; }
.p-footer-brand p { font-size: .92rem; max-width: 34ch; }
.p-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .p-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .p-footer-grid { grid-template-columns: 1fr; } }
.p-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.4rem; padding-top: 1.3rem;
  font-size: .84rem; color: #8fa9bb;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .app-head { align-items: flex-start; flex-direction: column; }
  .app-head__actions { width: 100%; }
  .app-head__actions .btn { flex: 1; }
  .p-hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}
