/* brand.css — Goodland Design system (Section 2 spec). The source of truth. */

:root {
  /* Core ink + accents — matched to the goodlandweb.co palette
     (portfolio/styles.css): navy ink, magenta accents, cream/sand neutrals. */
  --gd-ink: #00357a;     /* sea blue — same as the marketing site's --ink */
  --gd-amber: #b81fd6;   /* light magenta (button-gradient top) */
  --gd-flame: #9c00b3;   /* primary magenta — the site's --terra */
  --gd-coral: #f48fa0;   /* coral sand — the site's --coral */
  --gd-pink: #c43d8f;    /* mountain magenta */
  --gd-grape: #7c008f;   /* deep magenta — the site's --terra-dark */
  --gd-teal: #1f9aa8;    /* ocean cyan */

  /* Warm neutrals (cream/sand family, never cold grey) */
  --gd-cream: #fdfbf4;
  --gd-blush: #f5f1e6;
  --gd-mist: #ece4d2;
  --gd-lilac: #e2d8c1;
  --gd-plum-500: #5d7499;
  --gd-plum-600: #40608c;
  --gd-page: #f5f1e6;

  /* Traffic dots */
  --gd-dot-red: #ff5f57;
  --gd-dot-amber: #febc2e;
  --gd-dot-green: #28c840;

  /* Gradients — magenta-forward, same ramp as the site's buttons */
  --gd-grad-sunset: linear-gradient(90deg, #b81fd6, #9c00b3);
  --gd-grad-dawn: linear-gradient(90deg, #9c00b3, #c43d8f);
  --gd-grad-water: linear-gradient(135deg, #2f9fe0, #1f9aa8);
  --gd-grad-panel: linear-gradient(180deg, #fdfbf4, #f5f1e6);

  /* Shadows — navy-tinted, never grey */
  --gd-shadow: 0 8px 22px rgba(21, 65, 75, .12);
  --gd-shadow-lg: 0 20px 50px rgba(21, 65, 75, .22);
  --gd-glow-flame: 0 10px 22px rgba(156, 0, 179, .40);
  --gd-focus: 0 0 0 3px rgba(156, 0, 179, .45);

  --gd-ease: cubic-bezier(.2, .7, .3, 1);
  --gd-pop: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gd-page);
  color: var(--gd-plum-600);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--gd-ink); line-height: 1.1; margin: 0; }

a { color: var(--gd-flame); }

/* Display headings — solid ink, no gradient clip */
.gd-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--gd-ink);
}

.gd-script { font-family: "Allura", cursive; color: var(--gd-flame); font-weight: 400; }

/* ============================================================
   Card container (replaces the old browser-window frame)
   ============================================================ */
.gd-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 53, 122, .12);
}
.gd-frame__head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--gd-cream);
  border-bottom: 1px solid rgba(0, 53, 122, .08);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gd-plum-500);
}
.gd-frame__body { display: block; }
.gd-frame__body iframe { display: block; width: 100%; border: 0; background: var(--gd-cream); }

/* ============================================================
   Buttons
   ============================================================ */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--gd-ease), box-shadow .2s var(--gd-ease), background .2s var(--gd-ease);
}
.gd-btn:focus-visible { outline: none; box-shadow: var(--gd-focus); }

.gd-btn--primary {
  background: var(--gd-flame);
  color: #fff;
  box-shadow: 0 4px 12px rgba(156, 0, 179, .22);
}
.gd-btn--primary:hover { background: #7c008f; box-shadow: 0 6px 16px rgba(156, 0, 179, .28); }
.gd-btn--primary:active { transform: translateY(1px); }

/* Focal call-to-action — the primary action on the page */
.gd-btn--cta {
  position: relative;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 12px;
  background: var(--gd-grad-sunset, var(--gd-flame));
  box-shadow: 0 8px 22px -6px rgba(156, 0, 179, .5);
}
.gd-btn--cta svg { width: 19px; height: 19px; }
.gd-btn--cta::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(156, 0, 179, .45);
  animation: gd-cta-pulse 2.4s var(--gd-ease) infinite;
}
.gd-btn--cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px -6px rgba(156, 0, 179, .55); }
.gd-btn--cta:hover::after { animation: none; }
@keyframes gd-cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(156, 0, 179, .45); }
  70%, 100% { box-shadow: 0 0 0 13px rgba(156, 0, 179, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-btn--cta::after { animation: none; }
}

.gd-btn--outline {
  background: transparent;
  color: var(--gd-flame);
  border-color: var(--gd-flame);
}
.gd-btn--outline:hover { transform: translateY(-2px); box-shadow: var(--gd-shadow); }
.gd-btn--outline:active { transform: translateY(1px); }

.gd-btn--ghost {
  background: transparent;
  color: var(--gd-plum-600);
  border-color: transparent;
  padding: 8px 14px;
}
.gd-btn--ghost:hover { color: var(--gd-ink); background: rgba(0, 53, 122, .05); }

.gd-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.gd-btn--block { width: 100%; }

/* ============================================================
   Cards / panels
   ============================================================ */
.gd-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--gd-shadow);
}
.gd-panel {
  background: var(--gd-cream);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--gd-shadow);
}

/* Status labels (NOT buttons) — just a leading dot + colored text, no fill */
.gd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: .76rem;
  font-weight: 600;
  background: none;
}
.gd-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.gd-badge--included { color: #1d7b73; }
.gd-badge--addon { color: var(--gd-flame); }
.gd-badge--pending { color: var(--gd-grape); }

/* ============================================================
   Top bar (mimics the main site nav, standalone)
   ============================================================ */
.gd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(0, 53, 122, .07);
  background: rgba(253, 251, 244, .8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.gd-wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; color: var(--gd-ink); letter-spacing: .04em; }
.gd-topbar__right { display: flex; align-items: center; gap: 14px; font-size: .88rem; }
.gd-topbar__left { display: flex; align-items: center; gap: 14px; }
.gd-topbar__back { color: var(--gd-ink); opacity: .65; text-decoration: none; font-weight: 500; font-size: .85rem; padding-left: 14px; border-left: 1px solid rgba(0, 53, 122, .14); transition: opacity .15s ease; }
.gd-topbar__back:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   Layout shell
   ============================================================ */
.gd-shell { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); }

/* ---- Gate ---- */
.gd-gate { max-width: 560px; margin: 6vh auto; }
.gd-gate__lead { text-align: center; margin-bottom: 22px; }
.gd-gate__lead h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.gd-gate__lead p { color: var(--gd-plum-500); margin: 0; }
.gd-gate__form { display: flex; flex-direction: column; gap: 14px; padding: 30px clamp(20px, 5vw, 36px) 34px; }
.gd-field { display: flex; flex-direction: column; gap: 6px; }
.gd-field label { font-size: .82rem; font-weight: 700; color: var(--gd-ink); }
.gd-input {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: var(--gd-ink);
  background: #fff;
  border: 2px solid rgba(0, 53, 122, .14);
  border-radius: 12px;
  padding: 12px 15px;
  outline: none;
  width: 100%;
  transition: border-color .2s var(--gd-ease), box-shadow .2s var(--gd-ease);
}
.gd-input:focus { border-color: var(--gd-grape); box-shadow: var(--gd-focus); }
.gd-input--code { font-size: 1.15rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; font-weight: 700; }
.gd-input--code::placeholder { letter-spacing: normal; font-weight: 400; text-transform: none; }
.gd-error {
  display: none;
  background: rgba(239, 125, 125, .12);
  border: 1px solid rgba(239, 125, 125, .4);
  color: #b7443f;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .88rem;
}
.gd-error.is-shown { display: block; }
.gd-hint { font-size: .8rem; color: var(--gd-plum-500); text-align: center; margin: 2px 0 0; }

/* ---- Allowance banner (clickable usage dropdown) ---- */
.gd-allowance { margin-bottom: 22px; }
.gd-allowance__toggle {
  display: flex; align-items: center; gap: 16px;
  background: transparent; border: 0; padding: 6px; margin: -6px;
  border-radius: 12px; cursor: pointer; font: inherit; text-align: left;
  transition: background .15s var(--gd-ease);
}
.gd-allowance__toggle:hover { background: rgba(156, 0, 179, .06); }
.gd-allowance__main { min-width: 0; }
.gd-allowance__chev { width: 18px; height: 18px; color: var(--gd-plum-500); flex-shrink: 0; transition: transform .2s var(--gd-ease); }
.gd-allowance.is-open .gd-allowance__chev { transform: rotate(180deg); }
.gd-allowance__details {
  margin-top: 12px; max-width: 460px;
  background: #fff; border-radius: 14px; box-shadow: var(--gd-shadow);
  padding: 10px 22px 18px;
  animation: gd-line-in .2s var(--gd-pop);
}
/* Brief edit summary at the top of the usage dropdown — compact table */
.gd-mini { padding: 14px 0 18px; border-bottom: 1px solid rgba(0, 53, 122, .07); }
.gd-mini__head {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gd-plum-500); margin-bottom: 6px;
}
.gd-mini__scroll { max-height: 168px; overflow-y: auto; }
.gd-mini__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gd-mini__table thead th {
  position: sticky; top: 0; background: #fff; z-index: 1;
  text-align: left; padding: 4px 0 6px;
  font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gd-plum-500); border-bottom: 1px solid rgba(0, 53, 122, .1);
}
.gd-mini__table thead th:last-child { text-align: right; }
.gd-mini__table td { padding: 8px 0; border-bottom: 1px solid rgba(0, 53, 122, .05); vertical-align: middle; }
.gd-mini__table tr:last-child td { border-bottom: 0; }
.gd-mini__title {
  font-size: .9rem; font-weight: 600; color: var(--gd-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px;
}
.gd-mini__more { font-weight: 600; color: var(--gd-plum-500); font-size: .8rem; }
.gd-mini__time-cell { text-align: right; white-space: nowrap; width: 1%; }
.gd-mini__time-cell .gd-req__countdown { justify-content: flex-end; }
.gd-mini__time--closed { font-size: .82rem; font-weight: 600; color: var(--gd-plum-500); white-space: nowrap; }

.gd-usage__bar-wrap { padding: 16px 0 18px; border-bottom: 1px solid rgba(0, 53, 122, .07); }
.gd-usage__bar-top { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--gd-ink); margin-bottom: 10px; }
.gd-usage__bar { height: 14px; border-radius: 999px; background: var(--gd-lilac); overflow: hidden; }
.gd-usage__bar-fill { height: 100%; border-radius: 999px; background: var(--gd-grad-sunset, var(--gd-flame)); transition: width .3s var(--gd-ease); }
.gd-usage__bar-note { font-size: .76rem; color: var(--gd-plum-500); margin-top: 11px; line-height: 1.45; }
.gd-usage__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 28px; padding-top: 10px;
}
.gd-usage__row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 13px 0; border-bottom: 1px solid rgba(0, 53, 122, .07); font-size: .9rem;
}
/* drop the dividers under the last row of the two-column grid */
.gd-usage__grid .gd-usage__row:nth-last-child(-n+2) { border-bottom: 0; }
.gd-usage__k { color: var(--gd-plum-500); font-size: .82rem; }
.gd-usage__v { font-weight: 700; color: var(--gd-ink); line-height: 1.3; }
.gd-allowance__dots { display: flex; gap: 7px; }
.gd-allowance__pip { width: 16px; height: 16px; border-radius: 50%; background: var(--gd-lilac); transition: background .2s var(--gd-ease); }
.gd-allowance__pip.is-used { background: var(--gd-flame); }
.gd-allowance__text { font-size: 1rem; color: var(--gd-ink); }
.gd-allowance__text strong { font-weight: 700; }
.gd-allowance__sub { color: var(--gd-plum-500); font-size: .86rem; }

/* ---- Portal sections ---- */
.gd-portal__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gd-portal__lead { min-width: 0; }
.gd-portal__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
/* Secondary account links consolidated into one tidy right-aligned row */
.gd-portal__meta {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 10px 14px;
}
.gd-portal__head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.gd-portal__head p { margin: 6px 0 0; color: var(--gd-plum-500); }
.gd-planline { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gd-plan-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; color: var(--gd-grape);
  background: rgba(156, 0, 179, .1); border-radius: 999px; padding: 5px 13px;
}
.gd-plan-pill::before { content: '✦'; font-size: .9em; line-height: 1; }
/* "Next payment: $15.00 on …" beside the plan pill (Host / Goodland Design page). */
.gd-plan-next {
  font-size: .8rem; font-weight: 600; color: var(--gd-plum-500);
}
.gd-plan-upgrade {
  border: 0; background: none; cursor: pointer;
  color: var(--gd-flame); font-family: "Outfit", sans-serif; font-weight: 700; font-size: .82rem;
  padding: 4px 2px; border-radius: 8px;
}
.gd-plan-upgrade:hover { text-decoration: underline; }
.gd-preview { margin-bottom: 26px; }
.gd-preview .gd-frame__body { position: relative; }
.gd-preview .gd-frame__body iframe { height: 440px; }

/* "Open editor" text action in the preview header */
.gd-frame__edit {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  color: var(--gd-flame); font-family: "Outfit", sans-serif; font-weight: 700;
  font-size: .82rem; text-transform: none; letter-spacing: 0;
  padding: 5px 10px; border-radius: 8px; transition: background .15s var(--gd-ease);
}
.gd-frame__edit:hover { background: rgba(156, 0, 179, .12); }

/* The whole live preview is a click target that opens the editor */
.gd-preview__cta {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; cursor: pointer; background: rgba(0, 53, 122, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--gd-ease);
}
.gd-preview__cta:hover, .gd-preview__cta:focus-visible { background: rgba(0, 53, 122, .34); outline: none; }
.gd-preview__cta-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--gd-grad-sunset, var(--gd-flame)); color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 12px 30px -6px rgba(156, 0, 179, .55);
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .2s var(--gd-ease), transform .2s var(--gd-ease);
}
.gd-preview__cta:hover .gd-preview__cta-pill,
.gd-preview__cta:focus-visible .gd-preview__cta-pill { opacity: 1; transform: none; }
.gd-preview__cta-pill svg { width: 19px; height: 19px; }

/* Empty-requests CTA */
.gd-empty-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px; background: #fff;
  border: 1px dashed rgba(0, 53, 122, .16); border-radius: 14px;
}
.gd-empty-cta .gd-empty { margin: 0; }

.gd-section-title { font-size: 1.25rem; margin: 30px 0 14px; }

/* Requests list */
.gd-requests { display: flex; flex-direction: column; gap: 12px; }
.gd-req {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--gd-shadow);
}
.gd-req__main { flex: 1; min-width: 0; }
.gd-req__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--gd-ink); }
.gd-req__loc { font-weight: 700; color: var(--gd-ink); }
.gd-req__loc--sub { font-weight: 600; font-size: .82rem; color: var(--gd-plum-500); margin-top: 2px; }
.gd-req__what { color: var(--gd-plum-600); font-size: .92rem; margin-top: 3px; }
.gd-req__hints { font-size: .84rem; color: var(--gd-plum-500); margin-top: 6px; }
.gd-req__pay { font-size: .82rem; font-weight: 600; color: var(--gd-grape); margin-top: 8px; }
.gd-req__meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.gd-req__by { color: var(--gd-plum-500); font-size: .78rem; margin-top: 6px; }

/* Edit container: header (label + badge), word/section usage bar, mini-edit list */
.gd-req__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-req__label { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.12rem; color: var(--gd-ink); }
.gd-req__usage { margin-top: 10px; }
.gd-req__usage-row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; font-weight: 600; color: var(--gd-plum-500); }
.gd-req__usage-bar { margin-top: 7px; height: 12px; border-radius: 999px; background: rgba(0, 53, 122, .08); overflow: hidden; }
.gd-req__usage-fill { height: 100%; border-radius: 999px; background: var(--gd-grape); transition: width .3s var(--gd-ease); }
.gd-mini-edits { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.gd-mini-edit { display: flex; gap: 10px; padding: 10px 12px; background: var(--gd-cream, #fdf6ef); border-radius: 11px; }
.gd-mini-edit__num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gd-grape); color: #fff; font-size: .76rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gd-mini-edit__body { min-width: 0; flex: 1; }
.gd-mini-edit__title { font-weight: 700; font-size: .92rem; color: var(--gd-ink); }
.gd-mini-edit__loc { font-size: .78rem; font-weight: 600; color: var(--gd-plum-500); margin-top: 1px; }
.gd-mini-edit__what { color: var(--gd-ink); font-size: .9rem; margin-top: 4px; white-space: pre-wrap; }

/* 24h edit window: countdown + edit button, bottom-right of the card */
.gd-req__edit-row {
  flex-shrink: 0; align-self: stretch;
  display: flex; flex-direction: column-reverse; align-items: flex-end; justify-content: flex-end; gap: 8px;
}
.gd-req__countdown {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--gd-grape); white-space: nowrap;
}
.gd-req__countdown--closed { color: var(--gd-plum-500); font-weight: 500; }
.gd-req__clock { width: 15px; height: 15px; flex-shrink: 0; }
.gd-req__edit {
  border: 1.5px solid rgba(156, 0, 179, .4); background: rgba(156, 0, 179, .06);
  color: var(--gd-flame); font-family: "Outfit", sans-serif; font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--gd-ease), border-color .15s var(--gd-ease);
}
.gd-req__edit:hover { background: rgba(156, 0, 179, .12); border-color: var(--gd-grape); }

/* Shipping-tracker style request status: Submitted → In progress → Done */
.gd-track { display: flex; align-items: flex-start; margin-top: 14px; max-width: 460px; }
.gd-track__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; text-align: center; }
.gd-track__dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gd-lilac); border: 2px solid var(--gd-lilac);
  transition: background .2s var(--gd-ease), border-color .2s var(--gd-ease), box-shadow .2s var(--gd-ease);
}
.gd-track__label { font-size: .68rem; font-weight: 600; color: var(--gd-plum-500); white-space: nowrap; }
.gd-track__line { flex: 1; height: 2px; background: var(--gd-lilac); margin: 5px 5px 0; border-radius: 2px; }
.gd-track__line.is-done { background: var(--gd-flame); }
.gd-track__step.is-done .gd-track__dot { background: var(--gd-flame); border-color: var(--gd-flame); }
.gd-track__step.is-current .gd-track__dot { background: #fff; border-color: var(--gd-flame); box-shadow: 0 0 0 3px rgba(156, 0, 179, .25); }
.gd-track__step.is-done .gd-track__label,
.gd-track__step.is-current .gd-track__label { color: var(--gd-ink); }

.gd-empty { color: var(--gd-plum-500); font-style: italic; padding: 8px 2px; }

/* Purchase history (top-right dropdown) */
.gd-hist { position: relative; }
.gd-hist__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(0, 53, 122, .12); background: #fff;
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--gd-ink);
  cursor: pointer; transition: background .15s var(--gd-ease), border-color .15s var(--gd-ease);
}
.gd-hist__btn:hover { background: #fdf6ef; border-color: rgba(0, 53, 122, .2); }
.gd-hist__btn svg { width: 16px; height: 16px; color: var(--gd-plum-500); }
.gd-hist__chev { transition: transform .2s var(--gd-ease); }
.gd-hist.is-open .gd-hist__chev { transform: rotate(180deg); }
.gd-hist__panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(440px, 90vw); max-height: 70vh; overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: var(--gd-shadow);
  border: 1px solid rgba(0, 53, 122, .08);
  padding: 4px 18px 16px; z-index: 30;
}
.gd-hist__head {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; color: var(--gd-ink);
  padding: 14px 0 8px;
}
.gd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gd-table th { text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-plum-500); padding: 8px 10px; border-bottom: 1.5px solid rgba(0, 53, 122, .1); }
.gd-table td { padding: 12px 10px; border-bottom: 1px solid rgba(0, 53, 122, .07); color: var(--gd-ink); }
.gd-table tr:last-child td { border-bottom: none; }
.gd-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.gd-hist__item { font-weight: 600; color: var(--gd-ink); }
.gd-hist__svc { margin-top: 2px; font-size: .78rem; color: var(--gd-plum-500); }

/* ============================================================
   Mini cart — docked, collapsible
   ============================================================ */
.gd-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 32px));
  z-index: 60;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--gd-shadow-lg);
  overflow: hidden;
  transition: transform .25s var(--gd-pop);
}
.gd-cart__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 18px;
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--gd-ink);
  font-size: 1.15rem;
}
.gd-cart__toggle .gd-cart__count {
  margin-left: auto;
  background: var(--gd-flame);
  color: #fff;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.gd-cart__chev { transition: transform .2s var(--gd-ease); color: var(--gd-plum-500); }
.gd-cart.is-collapsed .gd-cart__chev { transform: rotate(180deg); }
.gd-cart.is-collapsed .gd-cart__body { display: none; }
.gd-cart__body { padding: 0 18px 18px; }
.gd-cart__items { display: flex; flex-direction: column; gap: 0; max-height: 40vh; overflow-y: auto; }
.gd-cart__empty { color: var(--gd-plum-500); font-size: .9rem; padding: 8px 2px 12px; }

/* Order-summary rows: flat, divided — matches the "Your order" panel */
.gd-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 53, 122, .08);
  animation: gd-line-in .25s var(--gd-pop);
}
@keyframes gd-line-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.gd-line__main { flex: 1; min-width: 0; }
.gd-line__loc { font-weight: 700; font-size: .86rem; color: var(--gd-ink); }
.gd-line__what { font-size: .8rem; color: var(--gd-plum-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-line__price { font-weight: 700; color: var(--gd-ink); font-size: .9rem; white-space: nowrap; }
.gd-line__del {
  border: none; background: none; cursor: pointer; color: var(--gd-plum-500);
  padding: 2px; border-radius: 6px; line-height: 0; flex-shrink: 0;
}
.gd-line__del:hover { color: var(--gd-coral); background: rgba(239, 125, 125, .12); }

.gd-cart__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 0 0; padding-top: 14px; border-top: 1.5px solid rgba(0, 53, 122, .12);
}
.gd-cart__total-lbl { color: var(--gd-plum-500); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.gd-cart__total-val { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; color: var(--gd-ink); transition: transform .2s var(--gd-pop); }
.gd-cart__total-val.is-tick { transform: scale(1.06); }
.gd-cart__note { font-size: .76rem; color: var(--gd-plum-500); line-height: 1.5; margin: 10px 0 14px; }
#checkoutBtn { background: var(--gd-grad-sunset, var(--gd-flame)); }

/* ============================================================
   Modal (describe + confirmation) — pop with overshoot
   ============================================================ */
.gd-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20, 12, 40, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.gd-modal {
  width: min(92vw, 540px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--gd-cream);
  border-radius: 16px;
  box-shadow: var(--gd-shadow-lg);
  animation: gd-modal-pop .3s var(--gd-pop);
}
@keyframes gd-modal-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.gd-modal__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.gd-modal__hd h2 { font-size: 1.4rem; }
.gd-modal__close { border: none; background: rgba(0, 53, 122, .06); border-radius: 10px; padding: 6px; cursor: pointer; color: var(--gd-ink); line-height: 0; }
.gd-modal__close:hover { background: rgba(0, 53, 122, .12); }
.gd-modal__body { padding: 14px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.gd-current {
  background: rgba(156, 0, 179, .08);
  border: 1px solid rgba(156, 0, 179, .2);
  border-radius: 12px; padding: 10px 13px;
}
.gd-current__lbl { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-grape); }
.gd-current__val { color: var(--gd-ink); font-size: .92rem; margin-top: 3px; }
.gd-textarea {
  font-family: "Outfit", sans-serif; font-size: .98rem; color: var(--gd-ink);
  background: #fff; border: 2px solid rgba(0, 53, 122, .14); border-radius: 12px;
  padding: 11px 14px; outline: none; width: 100%; resize: vertical; min-height: 90px; line-height: 1.5;
  transition: border-color .2s var(--gd-ease), box-shadow .2s var(--gd-ease);
}
.gd-textarea:focus { border-color: var(--gd-grape); box-shadow: var(--gd-focus); }
.gd-file {
  font-size: .86rem; color: var(--gd-plum-600);
  width: 100%; padding: 9px 12px;
  border: 1.5px dashed rgba(0, 53, 122, .2); border-radius: 11px;
  background: var(--gd-mist); cursor: pointer;
  transition: border-color .15s var(--gd-ease);
}
.gd-file:hover { border-color: var(--gd-grape); }
.gd-file::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--gd-ink); color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: .82rem; cursor: pointer;
  transition: background .15s var(--gd-ease);
}
.gd-file::file-selector-button:hover { background: var(--gd-grape); }
.gd-modal__cost { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--gd-plum-600); }

/* ============================================================
   Toast
   ============================================================ */
.gd-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  z-index: 90; background: var(--gd-ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--gd-shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--gd-ease), transform .25s var(--gd-pop);
}
.gd-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

.gd-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  display: inline-block; animation: gd-spin .7s linear infinite;
}
@keyframes gd-spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

/* ============================================================
   Responsive + reduced motion
   ============================================================ */
@media (max-width: 640px) {
  .gd-cart { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .gd-preview .gd-frame__body iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Accessibility / readability — larger type, more contrast,
   bigger targets, and obvious focus (senior-friendly).
   ============================================================ */
html { font-size: 17px; }
body { line-height: 1.6; }
/* Darker muted text so low-vision readers can see it */
:root { --gd-plum-500: #35507c; --gd-plum-600: #2a4066; }

/* Bigger, easier-to-hit controls */
.gd-btn { min-height: 50px; font-size: 1.02rem; }
.gd-input, .gd-textarea { font-size: 1.05rem; padding: 13px 15px; }
.gd-field label { font-size: .95rem; }

/* Floor on tiny labels so nothing is too small to read */
.gd-hint, .gd-allowance__sub, .gd-badge, .gd-cart__note,
.gd-req__by, .gd-usage__bar-note { font-size: .9rem; }

/* Unmistakable keyboard + click focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
.gd-allowance__toggle:focus-visible, .gd-hist__btn:focus-visible {
  outline: 3px solid var(--gd-grape);
  outline-offset: 2px;
}

/* ============================================================
   Billing fine print + cancel (muted footnote under the requests)
   ============================================================ */
.gd-fineprint {
  margin: 34px 0 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 53, 122, .1);
  display: flex; flex-direction: column; gap: 3px;
}
.gd-fineprint__line { margin: 0; font-size: .86rem; color: var(--gd-plum-500); line-height: 1.5; }
.gd-fineprint__cancel {
  align-self: flex-start; margin-top: 8px;
  background: none; border: none; padding: 2px 0;
  font-family: "Outfit", sans-serif; font-size: .84rem; font-weight: 600;
  color: var(--gd-plum-500); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; transition: color .15s var(--gd-ease);
}
.gd-fineprint__cancel:hover { color: var(--gd-coral); }
.gd-fineprint__cancel[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ Plan checkout pop-up (hosting clients) ============
   Deliberately the same shape as the "Build your site" checkout on goodlandweb.co
   — full-bleed scrim, centred rounded panel, header bar with an eyebrow and a round
   close button, plan cards in a grid, fine print at the foot — so it reads as the
   same product. The PALETTE is the portal's (plum/grape), not the marketing site's
   cream/terracotta, which would look pasted in here. */
.gd-co { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(0px, 2.5vw, 30px); }
.gd-co[hidden] { display: none; }
.gd-co__backdrop { position: absolute; inset: 0; background: rgba(0, 53, 122, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s var(--gd-ease); }
.gd-co.is-open .gd-co__backdrop { opacity: 1; }
.gd-co__panel {
  position: relative; z-index: 1;
  width: min(720px, 100%); max-height: 94vh;
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--gd-lilac); background: var(--gd-cream);
  box-shadow: var(--gd-shadow-lg);
  transform: translateY(16px) scale(.985); opacity: 0;
  transition: transform .28s var(--gd-ease), opacity .28s ease;
}
.gd-co.is-open .gd-co__panel { transform: none; opacity: 1; }
.gd-co__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--gd-lilac); }
.gd-co__eyebrow { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--gd-ink); }
.gd-co__mini { margin: .1rem 0 0; font-size: .8rem; font-weight: 600; color: var(--gd-plum-500); }
.gd-co__close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gd-lilac); background: #fff; font-size: 1.4rem; line-height: 1; color: var(--gd-plum-500); cursor: pointer; transition: background .15s ease, color .15s ease; }
.gd-co__close:hover { background: var(--gd-mist); color: var(--gd-ink); }
.gd-co__body { padding: 1.4rem 1.5rem; overflow-y: auto; }
.gd-co__foot { padding: 0 1.5rem 1.3rem; }
.gd-co__fine { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--gd-plum-500); }
.gd-co__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gd-co__plan { display: flex; flex-direction: column; border: 1px solid var(--gd-lilac); border-radius: 14px; padding: 1.1rem 1.15rem; background: #fff; }
.gd-co__plan-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--gd-ink); }
.gd-co__plan-price { margin: .15rem 0 0; font-size: 1.75rem; font-weight: 800; color: var(--gd-flame); }
.gd-co__plan-price small { font-size: .8rem; font-weight: 600; color: var(--gd-plum-500); }
.gd-co__plan-note { margin: .15rem 0 0; font-size: .78rem; color: var(--gd-plum-500); }
.gd-co__plan-list { list-style: none; margin: .85rem 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.gd-co__plan-list li { position: relative; padding-left: 1.35rem; font-size: .88rem; color: var(--gd-plum-600); }
.gd-co__plan-list li::before { content: "✓"; position: absolute; left: 0; top: .02rem; color: var(--gd-grape); font-weight: 800; }
.gd-co__current { margin-top: .5rem; padding: .55rem .75rem; border-radius: 10px; background: var(--gd-mist); font-size: .8rem; color: var(--gd-plum-500); }
.gd-co__err { margin: 0 0 1rem; padding: .7rem .85rem; border-radius: 10px; background: rgba(239, 125, 125, .14); color: #8a2b2b; font-size: .86rem; }

/* Internal (admin) site switcher — studio only, never rendered for a member. */
.gd-siteswitch { display: inline-flex; align-items: center; gap: 7px; }
.gd-siteswitch[hidden] { display: none; }
.gd-siteswitch__lbl { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-plum-500); }
.gd-siteswitch__sel {
  font-family: "Outfit", sans-serif; font-size: .82rem; font-weight: 600; color: var(--gd-ink);
  background: #fff; border: 1px solid var(--gd-lilac); border-radius: 999px;
  padding: 5px 10px; cursor: pointer;
}
.gd-siteswitch__sel:focus-visible { outline: none; box-shadow: var(--gd-focus); }
.gd-siteswitch__sel:disabled { opacity: .55; cursor: wait; }
