:root {
  --ink: #17211f;
  --muted: #5d6b66;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #dfe7e2;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --mint: #dff6ec;
  --amber: #f2b84b;
  --coral: #ee6f57;
  --blue: #2458a7;
  --green: #477d45;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
  --container: min(100% - 32px, 1180px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 20260612 UX correction pass: tutorials, homepage workflow, related links, footer. */
.home-workflow-ribbon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-workflow-ribbon article {
  position: relative;
  min-height: 225px;
  padding: 26px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 31, 0.07);
}

.home-workflow-ribbon article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--teal), #86d8bf);
}

.home-workflow-ribbon article:nth-child(2)::before,
.home-workflow-ribbon article:nth-child(5)::before {
  background: linear-gradient(90deg, var(--blue), #93b8e8);
}

.home-workflow-ribbon article:nth-child(3)::before,
.home-workflow-ribbon article:nth-child(6)::before {
  background: linear-gradient(90deg, var(--amber), #f4d38a);
}

.home-workflow-ribbon article:last-child {
  border-right: 1px solid rgba(18, 50, 44, 0.12);
  grid-column: auto;
}

.home-workflow-ribbon strong {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-workflow-ribbon h3 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.18rem, 1.6vw, 1.48rem);
  line-height: 1.08;
}

.home-workflow-ribbon p {
  max-width: 36ch;
  margin: 0;
  color: #52625d;
  font-size: .98rem;
  line-height: 1.58;
}

.tutorial-hub-hero,
.tutorial-detail-hero {
  width: min(100% - 40px, 1180px);
  grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 246, 236, .72), rgba(255, 255, 255, .96) 58%),
    #fff;
  box-shadow: 0 22px 64px rgba(23, 33, 31, 0.08);
}

.tutorial-hub-hero h1,
.tutorial-detail-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1;
}

.tutorial-hub-hero p,
.tutorial-detail-hero p {
  max-width: 700px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.tutorial-hub-panel,
.tutorial-hero-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 50, 44, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 44px rgba(23, 33, 31, 0.1);
}

.tutorial-hub-panel-top,
.tutorial-hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.tutorial-hub-panel-top strong,
.tutorial-hero-panel-bar strong {
  color: var(--teal-dark);
}

.tutorial-hub-photo,
.tutorial-hero-frame {
  border-radius: 8px;
  box-shadow: none;
}

.tutorial-hub-photo {
  aspect-ratio: 16 / 10;
}

.tutorial-hero-frame {
  aspect-ratio: 16 / 11;
}

.tutorial-hub-photo img,
.tutorial-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tutorial-hub-panel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tutorial-hub-panel-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(223, 246, 236, .7);
  color: var(--teal-dark);
  font-size: .84rem;
  font-weight: 850;
}

.tutorial-path-section {
  padding-top: 46px;
}

.tutorial-card-grid {
  gap: 18px;
}

.tutorial-card {
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 33, 31, .06);
}

.tutorial-card picture {
  aspect-ratio: 16 / 8.8;
}

.tutorial-card div {
  gap: 10px;
  padding: 20px;
}

.tutorial-card h2 {
  font-size: clamp(1.18rem, 1.65vw, 1.45rem);
}

.tutorial-proof-band {
  grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr);
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 31, .06);
}

.tutorial-proof-grid article {
  min-height: 150px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, rgba(223, 246, 236, .34));
}

.tutorial-detail-layout {
  grid-template-columns: minmax(230px, .3fr) minmax(0, 1fr);
  gap: 26px;
}

.tutorial-sidebar {
  gap: 20px;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 33, 31, .06);
}

.tutorial-step {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 33, 31, .05);
}

.tutorial-step-number {
  border-radius: 8px;
}

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

.tutorial-checklist span,
.tutorial-playbook-grid article {
  border-radius: 8px;
}

.related-internal-links {
  padding-top: 54px;
}

.related-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-link-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 33, 31, .05);
}

.related-link-card h3 {
  font-size: 1.18rem;
  line-height: 1.12;
}

.related-link-card p:not(.eyebrow) {
  margin: 0;
  color: #52625d;
  font-size: .95rem;
}

.related-link-card a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 900;
}

.site-footer {
  width: min(100% - 40px, 1180px);
  margin: 72px auto 0;
  padding: 34px 0 24px;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  gap: 42px;
  border-top: 1px solid rgba(18, 50, 44, .14);
}

.site-footer > div:first-child {
  max-width: 520px;
}

.footer-link-groups {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-link-groups a {
  font-weight: 700;
}

.footer-credit {
  margin-top: 12px;
  padding-top: 22px;
}

.tool-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tool-resource-grid article {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(18, 50, 44, .13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 33, 31, .055);
}

.tool-resource-grid article.featured-tool-card {
  border-color: rgba(12, 128, 116, .32);
  background:
    linear-gradient(135deg, rgba(223, 246, 236, .75), rgba(255, 255, 255, .94) 54%),
    #fff;
}

.tool-resource-grid h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.12;
}

.tool-resource-grid p:not(.eyebrow) {
  margin: 0;
  color: #52625d;
}

.resource-card-actions,
.article-tool-link-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 50, 44, .1);
}

.resource-card-actions a,
.article-tool-link-actions a {
  color: var(--teal-dark);
  font-weight: 900;
}

.resource-card-actions span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.resource-download-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.resource-download-link {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: rgba(246, 250, 247, .84);
  color: inherit;
  text-decoration: none;
}

.resource-download-link strong {
  color: var(--teal-dark);
}

.resource-download-link span {
  color: var(--muted);
  font-size: .92rem;
}

.resource-editorial-block,
.resource-bridge-section,
.article-tool-links {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 250, 247, .98), rgba(255, 255, 255, .86));
}

.calculator-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.calculator-output-grid output {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
}

.article-tool-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.article-tool-link-grid .related-link-card {
  min-height: 210px;
}

@media (max-width: 1120px) {
  .related-link-grid,
  .tool-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-workflow-ribbon,
  .tutorial-card-grid,
  .tutorial-proof-grid,
  .related-link-grid,
  .article-tool-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .tutorial-proof-band,
  .tutorial-detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-workflow-ribbon,
  .tutorial-card-grid,
  .tutorial-proof-grid,
  .tutorial-checklist,
  .tutorial-playbook-grid,
  .related-link-grid,
  .tool-resource-grid,
  .article-tool-link-grid,
  .calculator-output-grid,
  .tutorial-hub-panel-list {
    grid-template-columns: 1fr;
  }

  .home-workflow-ribbon article {
    min-height: auto;
  }

  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .tutorial-hub-photo,
  .tutorial-hero-frame {
    aspect-ratio: 16 / 9;
  }
}

.tutorial-hub-hero,
.tutorial-detail-hero {
  width: min(100% - 48px, 1240px);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, .72fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 247, 243, .78), rgba(255, 255, 255, .96));
  box-shadow: 0 28px 80px rgba(13, 52, 45, .08);
}

.tutorial-hub-hero h1,
.tutorial-detail-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: .96;
  letter-spacing: 0;
}

.tutorial-hub-hero p,
.tutorial-detail-hero p {
  max-width: 760px;
}

.tutorial-hub-photo,
.tutorial-hero-frame {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(17, 53, 47, .16);
  background: #f7fbf8;
  box-shadow: 0 28px 70px rgba(16, 42, 49, .16);
}

.tutorial-hub-photo img,
.tutorial-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tutorial-path-section {
  padding-top: 58px;
}

.tutorial-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tutorial-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 20px 54px rgba(13, 52, 45, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 136, 120, .42);
  box-shadow: 0 26px 70px rgba(13, 52, 45, .12);
}

.tutorial-card picture {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.tutorial-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tutorial-card div {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.tutorial-card span {
  color: var(--teal);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tutorial-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.tutorial-card p {
  margin: 0;
  color: var(--muted);
}

.tutorial-card strong {
  color: var(--teal-dark);
}

.tutorial-proof-band {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tutorial-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tutorial-proof-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.tutorial-proof-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.tutorial-proof-grid p {
  margin: 0;
  color: var(--muted);
}

.tutorial-detail-layout {
  width: min(100% - 48px, 1180px);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 52, 45, .06);
}

.tutorial-sidebar h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tutorial-sidebar p {
  margin: 0;
  color: var(--muted);
}

.tutorial-body {
  display: grid;
  gap: 24px;
}

.tutorial-step {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(13, 52, 45, .05);
}

.tutorial-step-number {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-weight: 900;
}

.tutorial-step h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.04;
}

.tutorial-step p {
  color: var(--muted);
}

.tutorial-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tutorial-checklist span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(17, 136, 120, .18);
  border-radius: 12px;
  background: rgba(232, 247, 243, .52);
  color: var(--teal-dark);
  font-weight: 850;
}

.tutorial-playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tutorial-playbook-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, rgba(232, 247, 243, .38));
}

.tutorial-playbook-grid h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.tutorial-playbook-grid p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .tutorial-proof-band,
  .tutorial-detail-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-sidebar {
    position: static;
  }

  .tutorial-card-grid,
  .tutorial-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .tutorial-detail-layout {
    width: min(100% - 28px, 1180px);
  }

  .tutorial-hub-hero,
  .tutorial-detail-hero {
    padding: 24px;
  }

  .tutorial-card-grid,
  .tutorial-proof-grid,
  .tutorial-checklist,
  .tutorial-playbook-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-checklist span {
    min-height: auto;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.1; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 4rem); max-width: 820px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.1rem; }

.site-header,
.app-header {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-nav,
.app-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-menu-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.app-header nav a,
.site-footer a {
  color: #35423e;
  font-weight: 650;
  font-size: 0.95rem;
}

.header-actions { display: flex; align-items: center; gap: 22px; }
.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 91, 83, 0.08);
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-dark);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.text-link { color: var(--teal-dark); font-weight: 750; }
.sales-phone-link {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.button-secondary {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--line);
  box-shadow: none;
}

.button-small { min-height: 38px; padding: 0 13px; font-size: 0.9rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.button-row form {
  margin: 0;
}

.compliance-disclaimer {
  width: var(--container);
  margin: 28px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6fbf8;
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.05);
}

.article-body .compliance-disclaimer,
.feature-depth-section .compliance-disclaimer,
.section .compliance-disclaimer {
  width: 100%;
}

.compliance-disclaimer strong {
  display: block;
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.compliance-disclaimer p {
  margin: 0;
  color: #4e625d;
  font-size: 0.98rem;
  line-height: 1.62;
}

.booking-unavailable-note,
.demo-form-status {
  display: block;
  color: #52625d;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.45;
}

.booking-unavailable-note {
  padding-top: 10px;
}

.template-demo .demo-form-status {
  margin: 12px 0 0;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.hero,
.page-hero,
.section,
.form-shell,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 80px;
}

.home-hero-banner {
  width: min(100% - 32px, 1220px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1fr);
  gap: 38px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 6% 12%, rgba(242, 184, 75, 0.34), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(238, 111, 87, 0.22), transparent 27%),
    linear-gradient(135deg, #081d24 0%, #0d3440 52%, #153f31 100%);
  color: var(--white);
  box-shadow: 0 34px 95px rgba(8, 29, 36, 0.23);
}

.home-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.9), transparent 72%);
  pointer-events: none;
}

.home-hero-copy,
.home-hero-visual {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 730px;
}

.home-hero-copy h1 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(2.15rem, 4.05vw, 3.35rem);
  line-height: 1.05;
}

.home-hero-copy .eyebrow {
  color: #9ee7d6;
}

.home-hero-copy .hero-text {
  max-width: 660px;
  color: #d9e8ea;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.62;
}

.home-hero-banner .button {
  border-color: #7ce1cf;
  background: #7ce1cf;
  color: #092a25;
  box-shadow: 0 16px 38px rgba(124, 225, 207, 0.2);
}

.home-hero-banner .button-secondary {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.home-hero-banner .trial-note {
  color: #ffe1a5;
  font-size: 1rem;
}

.home-hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-hero-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  padding: 7px 12px;
  color: #f7fbff;
  font-size: 0.92rem;
  font-weight: 850;
}

.home-hero-visual {
  min-height: 560px;
}

.home-hero-visual picture {
  display: block;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 10px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 22, 27, 0.42));
  pointer-events: none;
}

.home-hero-overlay,
.hero-dashboard-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 18px;
  background: rgba(255,255,255,0.93);
  color: #14201d;
  box-shadow: 0 18px 48px rgba(5, 21, 27, 0.2);
  backdrop-filter: blur(12px);
}

.home-hero-overlay {
  display: grid;
  gap: 2px;
  padding: 15px 17px;
}

.home-hero-overlay span,
.hero-dashboard-top span,
.home-hero-overlay small {
  color: #587067;
  font-size: 0.86rem;
  font-weight: 780;
}

.home-hero-overlay strong {
  font-size: 1.15rem;
}

.home-hero-overlay.enrollment {
  top: 28px;
  left: 24px;
  width: min(300px, 58%);
  border-color: rgba(124, 225, 207, 0.6);
  background: rgba(8, 30, 36, 0.82);
  color: #ffffff;
}

.home-hero-overlay.booking {
  left: 22px;
  bottom: 168px;
  width: min(300px, 62%);
}

.hero-dashboard-card {
  right: 24px;
  bottom: 24px;
  width: min(460px, calc(100% - 48px));
  padding: 18px;
}

.hero-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hero-dashboard-grid span {
  display: grid;
  min-height: 82px;
  align-content: center;
  border-radius: 14px;
  background: #f2f8f7;
  padding: 12px;
  color: #52655f;
  font-size: 0.88rem;
  font-weight: 740;
}

.hero-dashboard-grid b {
  color: #0d4f47;
  font-size: 1.7rem;
  line-height: 1;
}

.home-hero-overlay.enrollment span,
.home-hero-overlay.enrollment small {
  color: #bfece4;
}

.home-hero-overlay.enrollment strong {
  color: #ffffff;
}

.home-conversion-strip {
  width: min(100% - 32px, 1180px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-conversion-strip span {
  display: grid;
  gap: 5px;
  border: 1px solid #d4e4e0;
  border-radius: 18px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 14px 40px rgba(23, 33, 31, 0.08);
}

.home-conversion-strip strong {
  font-size: 1.07rem;
}

.home-conversion-strip small {
  color: #5a6964;
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-copy { max-width: 720px; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.trial-note { color: #41504b; font-weight: 700; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-shot {
  background: #f7fbf7;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-toolbar {
  display: flex;
  gap: 7px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.shot-toolbar span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.shot-toolbar span:nth-child(2) { background: var(--amber); }
.shot-toolbar span:nth-child(3) { background: var(--green); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
}

.metric-card,
.schedule-panel,
.feature-grid article,
.template-mini,
.price-card,
.workflow-grid article,
.dashboard-cards article,
.launch-panel,
.booking-settings-preview,
.template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.metric-card { padding: 16px; }
.metric-card strong { display: block; font-size: 1.8rem; }
.metric-card span { color: var(--muted); font-size: 0.9rem; }
.schedule-panel { grid-column: 1 / -1; padding: 18px; }
.schedule-panel h2 { font-size: 1.1rem; }
.schedule-panel ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.schedule-panel li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }

.section { padding: 82px 0; }
.band { width: 100%; max-width: none; padding-left: max(16px, calc((100% - 1180px) / 2)); padding-right: max(16px, calc((100% - 1180px) / 2)); background: #f1f7f2; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading p {
  font-size: 1.06rem;
}
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.feature-grid,
.pricing-grid,
.workflow-grid,
.dashboard-cards,
.template-row,
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-grid article,
.price-card,
.workflow-grid article,
.dashboard-cards article {
  padding: 24px;
}

.template-mini { overflow: hidden; }
.template-mini h3, .template-mini p { padding: 0 18px; }
.template-mini a {
  display: block;
  padding: 12px;
  text-decoration: none;
}
.template-browser-frame {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(18, 50, 44, 0.13);
  border-radius: 20px;
  background: #f8fbfa;
  box-shadow: 0 18px 42px rgba(15, 36, 48, 0.12);
}
.template-browser-top {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(18, 50, 44, 0.12);
  background: linear-gradient(180deg, #ffffff, #edf5f2);
  color: #47625a;
}
.template-browser-top i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef6b5b;
}
.template-browser-top i:nth-child(2) {
  background: #f4bf4f;
}
.template-browser-top i:nth-child(3) {
  background: #31aa72;
}
.template-browser-top b {
  min-width: 0;
  margin-left: 5px;
  overflow: hidden;
  color: #28433d;
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-browser-frame picture,
.template-browser-frame img {
  display: block;
  width: 100%;
}
.template-browser-frame img {
  aspect-ratio: 1000 / 616;
  object-fit: cover;
  object-position: top center;
}
.template-art, .template-preview {
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #dff6ec, #fbe4b5);
  position: relative;
}
.template-art::after,
.template-preview::after {
  content: "";
  position: absolute;
  inset: 32px 24px 24px;
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 18px;
}
.template-art-2 { background: linear-gradient(135deg, #e5f1ff, #fffdf8); }
.template-art-3 { background: linear-gradient(135deg, #202525, #ee6f57); }
.template-art-4 { background: linear-gradient(135deg, #fff2d2, #dff6ec); }

.home-feature-section {
  padding-top: 92px;
}

.home-workflow-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cfded9;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 22px 64px rgba(23, 33, 31, 0.09);
  margin: 0 0 24px;
}

.home-workflow-ribbon article {
  min-height: 245px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(15,118,110,0.055)),
    var(--white);
}

.home-workflow-ribbon article:last-child {
  border-right: 0;
}

.home-workflow-ribbon strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #102a31;
  color: #7ce1cf;
  font-size: 1.1rem;
}

.home-workflow-ribbon h3 {
  margin-top: 18px;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.home-workflow-ribbon p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-feature-grid article {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6e3df;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15,118,110,0.1), transparent 34%),
    var(--white);
  padding: 26px;
  box-shadow: 0 18px 46px rgba(23, 33, 31, 0.08);
}

.home-feature-grid article:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(238,111,87,0.14), transparent 36%),
    var(--white);
}

.home-feature-grid article:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(36,88,167,0.14), transparent 36%),
    var(--white);
}

.home-feature-grid article:nth-child(4) {
  background:
    radial-gradient(circle at 100% 0%, rgba(242,184,75,0.18), transparent 36%),
    var(--white);
}

.home-feature-grid article:nth-child(5) {
  background:
    radial-gradient(circle at 100% 0%, rgba(15,118,110,0.16), transparent 36%),
    #f7fbff;
}

.home-feature-grid article:nth-child(6) {
  background:
    radial-gradient(circle at 100% 0%, rgba(23,33,31,0.14), transparent 36%),
    #fffdf8;
}

.home-feature-grid span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #e7f7f3;
  color: #0c5b52;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-feature-grid h3 {
  margin-top: 18px;
  font-size: clamp(1.28rem, 1.9vw, 1.62rem);
}

.home-feature-grid p {
  color: #52625d;
  font-size: 1.06rem;
  line-height: 1.62;
}

.home-feature-grid a {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 900;
}

.home-template-card {
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(23, 33, 31, 0.09);
}

.home-template-card picture,
.home-template-card img {
  display: block;
}

.home-template-card picture {
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-template-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.home-template-card:hover img {
  transform: scale(1.035);
}

.home-template-card h3 {
  padding-top: 18px;
  font-size: 1.16rem;
}

.home-template-card p {
  padding-bottom: 20px;
  font-size: 1.02rem;
}

.pricing-section {
  padding-top: 34px;
}

.home-pricing-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, #eef7fb 0%, #fffdf8 100%);
}

.home-pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.home-pricing-head h2 {
  max-width: 820px;
}

.home-pricing-head p {
  max-width: 760px;
  font-size: 1.08rem;
}

.home-pricing-callout {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15,118,110,0.18);
  border-radius: 20px;
  background: #102a31;
  padding: 22px;
  color: var(--white);
  box-shadow: 0 18px 48px rgba(16, 42, 49, 0.16);
}

.home-pricing-callout strong {
  font-size: 1.28rem;
}

.home-pricing-callout span {
  color: #dcebee;
  font-size: 1rem;
  line-height: 1.5;
}

.home-pricing-callout a {
  color: #7ce1cf;
  font-weight: 900;
}

.home-pricing-wrap .price-card {
  border-radius: 22px;
  padding: 28px;
}

.pricing-grid-upgraded {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--teal);
}

.price-card-solo::before { background: var(--blue); }
.price-card-team::before { background: linear-gradient(90deg, var(--teal), var(--amber)); }
.price-card-growth::before { background: linear-gradient(90deg, #121b2b, var(--coral)); }

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.18);
  transform: translateY(-10px);
}

.price-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.price-card h3 {
  max-width: 260px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.plan-badge,
.limit-row span,
.included {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 850;
  white-space: nowrap;
}

.plan-badge {
  border: 1px solid #c9d8f2;
  background: #eef5ff;
  color: #173e83;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.popular-ribbon {
  width: calc(100% + 48px);
  margin: -24px -24px 0;
  padding: 12px 24px;
  background: #0e2825;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.price-lockup {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.price-lockup strong {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.price-lockup span {
  color: var(--muted);
  font-weight: 850;
}

.price-card-fit {
  min-height: 78px;
  margin: 0;
  color: #3f4d49;
  font-size: 1.03rem;
  font-weight: 620;
  line-height: 1.62;
}

.limit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.limit-row span {
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #26332f;
  padding: 7px 9px;
  font-size: 0.78rem;
}

.pricing-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: #34413d;
  font-size: 1rem;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 26px;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.47em;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.price-card .button {
  margin-top: auto;
}

.final-cta {
  text-align: center;
  max-width: 840px;
  padding-bottom: 96px;
}
.final-cta h2 { margin-inline: auto; }

.page-hero {
  padding: 70px 0 48px;
  max-width: 980px;
}
.page-hero.compact { padding-bottom: 26px; }
.page-hero p { max-width: 720px; font-size: 1.08rem; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-pills span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 750;
  font-size: 0.92rem;
}

.template-card { overflow: hidden; display: flex; flex-direction: column; }
.template-card-body { padding: 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.template-card h2 { font-size: 1.35rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.template-preview { min-height: 220px; display: flex; align-items: end; padding: 18px; font-weight: 900; }
.template-preview picture { position: absolute; inset: 0; }
.template-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.template-preview span { position: relative; z-index: 1; background: rgba(255,255,255,0.86); padding: 8px 10px; border-radius: var(--radius); }
.template-preview-2 { background: linear-gradient(135deg, #edf7fb, #f6efe4); }
.template-preview-3 { background: linear-gradient(135deg, #101716, #2458a7 55%, #f2b84b); color: var(--white); }
.template-preview-4 { background: linear-gradient(135deg, #fce9d8, #e7f7ed); }
.template-preview-5 { background: linear-gradient(135deg, #edf2ef, #b8d9c0); }
.template-preview-6 { background: linear-gradient(135deg, #fff2d2, #d7f0ee); }
.template-preview-7 { background: linear-gradient(135deg, #fffdf8, #b9d7ff); }
.template-preview-8 { background: linear-gradient(135deg, #e7ebf0, #dff6ec); }
.template-preview-9 { background: linear-gradient(135deg, #feeadb, #ee6f57); }
.template-preview-10 { background: linear-gradient(135deg, #f6f0df, #cdd7c9); }

.pricing-compare-section {
  padding-top: 24px;
}

.pricing-compare-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}

.pricing-compare-wrap {
  border: 1px solid #d5e1dc;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
  overflow-x: auto;
}

.pricing-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-compare-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.pricing-compare-table thead th {
  background: #0e2825;
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.pricing-compare-table tbody th {
  width: 34%;
  color: #21302c;
  font-weight: 850;
}

.pricing-compare-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.pricing-compare-table tbody tr:last-child th,
.pricing-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.included {
  background: #e5f7ef;
  color: #0b5c50;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.schedule-sales-hero,
.schedule-rules-section,
.schedule-settings-band,
.schedule-dashboard-section {
  width: var(--container);
  margin: 0 auto;
}

.schedule-sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 70px 0 82px;
}

.schedule-sales-copy h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.3vw, 3.65rem);
}

.schedule-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.schedule-trust-row span {
  border: 1px solid #cfe4e1;
  border-radius: 999px;
  background: #f6fbfa;
  color: #113e39;
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 850;
}

.schedule-visual {
  border: 1px solid #cddbd7;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.98)),
    radial-gradient(circle at 15% 10%, rgba(36, 88, 167, 0.14), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(242, 184, 75, 0.2), transparent 32%);
  box-shadow: 0 26px 80px rgba(14, 40, 37, 0.16);
  overflow: hidden;
}

.schedule-visual-top,
.dashboard-calendar-toolbar,
.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.schedule-visual-top {
  padding: 20px 22px;
  background: #0e2825;
  color: var(--white);
}

.schedule-visual-top span,
.settings-card-head span {
  color: #d7e6e2;
  font-size: 0.9rem;
  font-weight: 780;
}

.schedule-filter-row,
.schedule-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-filter-row span,
.schedule-rule-strip span {
  border: 1px solid #d7e3df;
  border-radius: 999px;
  background: var(--white);
  padding: 7px 10px;
  color: #33403c;
  font-size: 0.82rem;
  font-weight: 820;
}

.schedule-calendar-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.calendar-hour {
  color: #64716d;
  font-weight: 850;
  padding-top: 12px;
}

.calendar-event {
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  background: var(--white);
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(23, 33, 31, 0.08);
}

.calendar-event strong,
.calendar-event span {
  display: block;
}

.calendar-event span {
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-event.warning {
  border-left-color: var(--coral);
  background: #fff4ef;
}

.calendar-event.open {
  border-left-color: var(--amber);
  background: #fff9e9;
}

.schedule-rule-strip {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #f6fbfa;
}

.schedule-pain-band {
  background: #edf5f9;
}

.schedule-proof-grid,
.student-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.schedule-proof-grid article,
.student-flow-grid article {
  border: 1px solid #d8e3e7;
  border-radius: 16px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 12px 35px rgba(23, 33, 31, 0.07);
}

.schedule-proof-grid span,
.student-flow-grid strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #2458a7;
  color: var(--white);
  font-weight: 900;
}

.schedule-proof-grid h3,
.student-flow-grid h3 {
  margin-top: 18px;
}

.schedule-rules-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.rules-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rules-matrix span {
  min-height: 84px;
  display: flex;
  align-items: center;
  border: 1px solid #d6e2de;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.98)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(36, 88, 167, 0.12));
  padding: 16px;
  color: #1d2c28;
  font-weight: 850;
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.06);
}

.schedule-settings-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
  padding: 86px max(16px, calc((100% - 1180px) / 2));
  background: #111a2a;
  color: var(--white);
}

.schedule-settings-band p,
.schedule-settings-band li {
  color: #dce7eb;
}

.settings-preview {
  display: grid;
  gap: 16px;
}

.settings-card,
.closure-card {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

.settings-card {
  overflow: hidden;
}

.settings-card-head {
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
}

.settings-days {
  display: grid;
}

.settings-days div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.settings-days div:first-child {
  border-top: 0;
}

.settings-days span {
  color: #f6fbff;
  font-weight: 760;
}

.settings-days button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0 12px;
  font: inherit;
  font-weight: 820;
}

.closure-card {
  padding: 20px;
  border-left: 6px solid var(--amber);
}

.closure-card span {
  color: #f9d88a;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.closure-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.2rem;
}

.schedule-check-list,
.dashboard-feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-check-list li,
.dashboard-feature-list span {
  position: relative;
  padding-left: 28px;
  font-weight: 720;
}

.schedule-check-list li::before,
.dashboard-feature-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}

.student-flow-grid {
  margin-top: 8px;
}

.student-flow-grid strong {
  background: var(--teal);
}

.schedule-dashboard-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.7fr);
  gap: 42px;
  align-items: center;
}

.dashboard-calendar-visual {
  border: 1px solid #d7e2df;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(23, 33, 31, 0.12);
  overflow: hidden;
}

.dashboard-calendar-toolbar {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f6fbfa;
}

.dashboard-calendar-toolbar span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 7px 10px;
  color: #34413d;
  font-size: 0.82rem;
  font-weight: 820;
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 310px;
}

.day-column {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid var(--line);
}

.day-column:first-child {
  border-left: 0;
}

.day-column b {
  color: #23302d;
}

.lesson-pill {
  border-radius: 14px;
  background: #e8f5ef;
  color: #0d5d52;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 850;
}

.lesson-pill.muted {
  background: #eef5ff;
  color: #214f99;
}

.lesson-pill.blocked {
  background: #fff1ea;
  color: #9e3b24;
}

.features-hero,
.feature-proof-strip,
.feature-operations-section,
.feature-matrix-section,
.feature-compliance-note {
  width: var(--container);
  margin: 0 auto;
}

.features-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 70px 0 78px;
}

.features-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
}

.feature-command-center {
  border: 1px solid #d4e0dc;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.98)),
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 32%),
    radial-gradient(circle at right, rgba(36, 88, 167, 0.13), transparent 34%);
  box-shadow: 0 26px 78px rgba(23, 33, 31, 0.14);
  overflow: hidden;
}

.command-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: #0e2825;
  color: var(--white);
}

.command-topbar span {
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.command-metrics article,
.command-checklist,
.command-calendar {
  border: 1px solid #d8e5e1;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.07);
}

.command-metrics article {
  padding: 16px;
}

.command-metrics strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.command-metrics span,
.command-calendar p,
.command-checklist span,
.student-card-mini small,
.payment-mini span {
  color: var(--muted);
}

.command-board {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 14px;
  padding: 0 18px 18px;
}

.command-checklist,
.command-calendar {
  padding: 18px;
}

.command-checklist h2,
.command-calendar h2 {
  font-size: 1.1rem;
}

.command-checklist span {
  display: block;
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  font-weight: 820;
}

.command-checklist span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.command-calendar p {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.feature-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.feature-proof-strip span {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe6e2;
  border-radius: 16px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.06);
}

.feature-proof-strip strong {
  color: var(--teal-dark);
}

.feature-proof-strip small {
  color: var(--muted);
  font-weight: 680;
}

.feature-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-pillar-grid article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid #d8e3df;
  border-radius: 18px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 14px 38px rgba(23, 33, 31, 0.07);
}

.feature-pillar-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #0e2825;
  color: var(--white);
  font-weight: 900;
}

.feature-pillar-grid h3 {
  margin-top: 18px;
}

.feature-pillar-grid a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
}

.feature-workflow-band {
  background: #f0f6ff;
}

.feature-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-workflow article {
  position: relative;
  border: 1px solid #d8e2f4;
  border-radius: 18px;
  background: var(--white);
  padding: 22px;
}

.feature-workflow strong {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.2rem;
}

.feature-workflow h3 {
  margin-top: 18px;
}

.feature-operations-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.86fr);
  gap: 46px;
  align-items: center;
}

.operations-visual {
  border: 1px solid #d6e2de;
  border-radius: 22px;
  background: #111a2a;
  box-shadow: 0 24px 75px rgba(17, 26, 42, 0.18);
  overflow: hidden;
}

.operations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.operations-tabs span {
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 8px 11px;
  font-weight: 850;
}

.operations-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.student-card-mini,
.booking-rule-mini,
.payment-mini {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  padding: 18px;
}

.student-card-mini strong,
.student-card-mini span,
.student-card-mini small,
.payment-mini strong,
.payment-mini span {
  display: block;
}

.booking-rule-mini p {
  margin-bottom: 0;
}

.operations-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.operations-list span {
  position: relative;
  padding-left: 28px;
  color: #34413d;
  font-weight: 720;
}

.operations-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.feature-matrix-wrap {
  border: 1px solid #d5e1dc;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
  overflow-x: auto;
}

.feature-matrix-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.feature-matrix-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.feature-matrix-table th,
.feature-matrix-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.feature-matrix-table thead th {
  background: #0e2825;
  color: var(--white);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.feature-matrix-table tbody th {
  width: 22%;
  color: var(--teal-dark);
  font-weight: 900;
}

.feature-matrix-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.feature-matrix-table tbody tr:last-child th,
.feature-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

.feature-compliance-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 86px;
  border: 1px solid #d8e3df;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(223, 246, 236, 0.82), rgba(255, 253, 248, 0.96)),
    var(--white);
  padding: 34px;
}

.feature-compliance-note > div {
  max-width: 780px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: start;
  padding: 72px 0;
}
.form-shell.narrow { max-width: 840px; }
.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 70ch;
}
.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.contact-route-grid article {
  border: 1px solid #d7e4df;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f5fbf9);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(17, 52, 45, 0.07);
}
.contact-route-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 7px;
}
.contact-route-grid span {
  color: var(--muted);
  line-height: 1.5;
}
.contact-assurance {
  border: 1px solid #b9d7cf;
  border-radius: 22px;
  background: #eef9f5;
  padding: 22px;
}
.contact-assurance p {
  margin: 8px 0 12px;
  color: var(--muted);
}
.contact-assurance a {
  color: var(--teal-dark);
  font-weight: 850;
}
.panel-form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; box-shadow: var(--shadow); }
.panel-form p { display: grid; gap: 7px; margin: 0 0 16px; }
label { font-weight: 760; color: #26332f; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd8d1;
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  margin: 2px 0 0;
  border-radius: 4px;
  accent-color: var(--teal);
}
input[type="radio"] {
  border-radius: 50%;
}
textarea { min-height: 130px; resize: vertical; }
.form-error { color: #9e2b1f; font-weight: 800; }

.signup-conversion-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  display: grid;
  padding: clamp(28px, 4vw, 52px) 0 62px;
}

.signup-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.signup-copy h1 {
  max-width: 720px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.04;
}

.signup-lede {
  max-width: 640px;
  margin: 0;
  color: #53635e;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.58;
}

.signup-proof-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(16px, 2.3vw, 28px);
  margin: 0;
  padding: 0;
  color: #4f625c;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  font-weight: 850;
  line-height: 1.08;
  list-style: none;
}

.signup-proof-list li {
  display: inline-flex;
  align-items: center;
}

.signup-proof-list li + li::before {
  display: none;
}

.signup-card {
  display: grid;
  gap: 18px;
  border: 1px solid #d7e4df;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.1);
}

.signup-card-intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  border-bottom: 1px solid #e3ece8;
  padding-bottom: 18px;
  text-align: center;
}

.signup-card-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.04;
}

.signup-card-intro .signup-proof-list {
  gap: 8px;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
}

.signup-card-intro .signup-proof-list li {
  border: 1px solid #d7e4df;
  border-radius: 999px;
  background: #f8fcfa;
  padding: 7px 12px;
}

.signup-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2px;
}

.signup-card-head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
}

.signup-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 24px;
}

.signup-form-field,
.signup-plan-field,
.signup-terms {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.signup-form-field {
  grid-column: span 6;
}

.signup-school-field {
  grid-column: span 7;
}

.signup-phone-field {
  grid-column: span 5;
}

.signup-password-rules,
.signup-plan-field,
.signup-terms {
  min-width: 0;
}

.signup-plan-field,
.signup-terms {
  grid-column: 1 / -1;
}

.signup-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}

.signup-password-rules [data-password-rule] {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #52645f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.signup-password-rules i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: #e9f1ee;
}

.signup-password-rules i::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #8fa09b;
}

.signup-password-rules [data-password-rule].is-valid {
  color: #1c5c49;
}

.signup-password-rules [data-password-rule].is-valid i {
  background: #dff5ea;
}

.signup-password-rules [data-password-rule].is-valid i::before {
  content: "";
  width: 7px;
  height: 5px;
  border-right: 2px solid #19734f;
  border-bottom: 2px solid #19734f;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) translateY(-1px);
}

.signup-password-rules [data-password-rule].is-invalid {
  color: #8f321f;
}

.signup-password-rules [data-password-rule].is-invalid i {
  background: #ffe8e0;
}

.signup-password-rules [data-password-rule].is-invalid i::before {
  background: #bf4027;
}

.signup-plan-field {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.signup-plan-field legend {
  margin-bottom: 8px;
  color: #26332f;
  font-weight: 800;
}

.signup-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signup-plan-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-width: 0;
  border: 1px solid #d7e4df;
  border-radius: 8px;
  background: #fbfefc;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.signup-plan-option input {
  margin: 1px 0 0;
}

.signup-plan-option:has(input:checked) {
  border-color: var(--teal);
  background: #f1fbf7;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.signup-plan-option:has(input:focus-visible) {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.signup-plan-choice {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.signup-plan-title {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.signup-plan-title strong {
  font-size: 1.02rem;
}

.signup-plan-title em {
  border-radius: 999px;
  background: #fff2cf;
  color: #75520a;
  padding: 3px 7px;
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 900;
}

.signup-plan-summary {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.35;
}

.signup-terms {
  border: 1px solid #d7e4df;
  border-radius: 8px;
  background: #f8fcfa;
  padding: 13px 14px;
}

.signup-terms .checkbox-line {
  margin: 0;
  align-items: start;
}

.signup-terms a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e4ece8;
  padding-top: 18px;
}

.signup-submit-row small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
}

.signup-submit-row a {
  color: var(--teal-dark);
  font-weight: 900;
}

.signup-submit-row .button {
  min-height: 50px;
  padding: 0 22px;
  font-size: 1rem;
}

@media (max-width: 1080px) {
  .signup-conversion-shell {
    max-width: 920px;
  }

  .signup-copy h1,
  .signup-card-intro h1 {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .signup-conversion-shell {
    width: min(100% - 24px, 480px);
    padding: 32px 0 58px;
  }

  .signup-form-grid,
  .signup-password-rules,
  .signup-plan-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .signup-form-field,
  .signup-school-field,
  .signup-phone-field {
    grid-column: 1 / -1;
  }

  .signup-copy h1,
  .signup-card-intro h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
    line-height: 1.04;
  }

  .signup-card {
    padding: 18px;
  }

  .signup-card-head {
    display: grid;
    gap: 4px;
  }

  .signup-card-intro {
    gap: 12px;
    padding-bottom: 16px;
  }

  .signup-proof-list {
    display: grid;
    gap: 5px;
  }

  .signup-proof-list li {
    justify-content: center;
  }

  .signup-proof-list li + li::before {
    display: none;
  }

  .signup-submit-row .button {
    width: 100%;
  }
}
.success-note { color: var(--green); font-weight: 800; }
.legal-hero {
  padding-bottom: 22px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.06);
}

.legal-nav strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.legal-nav a {
  border-radius: 999px;
  color: #40514c;
  padding: 7px 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  background: #eef8f5;
  color: var(--teal-dark);
}

.legal-copy {
  max-width: 850px;
  display: grid;
  gap: 18px;
}

.legal-section {
  border-bottom: 1px solid #e1ebe7;
  padding-bottom: 18px;
}

.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.legal-section p {
  margin: 0 0 10px;
  color: #4d5f59;
  line-height: 1.68;
}

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

.login-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.82fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.login-copy {
  max-width: 570px;
}

.login-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.02;
  max-width: 11ch;
}

.login-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  max-width: 46ch;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.login-proof-grid span {
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid #d7e4df;
  border-radius: 16px;
  background: #f8fcfa;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(22, 58, 50, 0.06);
}

.login-card-wrap {
  display: grid;
  gap: 16px;
}

.login-card {
  border: 1px solid #cfe0da;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 251, 0.98)),
    var(--white);
  padding: clamp(26px, 3.5vw, 42px);
  box-shadow: 0 34px 86px rgba(9, 31, 27, 0.13);
}

.login-card-head {
  margin-bottom: 24px;
}

.login-card-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.login-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.login-card p {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.login-card label {
  font-size: 1rem;
}

.login-card input {
  min-height: 56px;
  border-radius: 16px;
  border-color: #c9dbd5;
  padding: 14px 16px;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(12, 32, 28, 0.03);
}

.login-card input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 128, 118, 0.14);
  outline: none;
}

.login-submit {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.05rem;
  margin-top: 4px;
}

.login-submit.is-submitting {
  opacity: 0.78;
  cursor: wait;
}

.login-card-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.login-error {
  border: 1px solid #f0c6bd;
  border-radius: 14px;
  background: #fff4f1;
  color: #8d2a1d;
  padding: 12px 14px;
}

.login-help-card {
  border: 1px solid #d7e4df;
  border-radius: 20px;
  background: #eef9f5;
  padding: 18px 20px;
  color: var(--muted);
}

.login-help-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.login-help-card p {
  margin: 0;
  line-height: 1.55;
}

.login-help-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: 24px;
  align-items: start;
}
.footer-brand { margin-bottom: 8px; }
.footer-sales-line {
  margin-top: 8px;
  font-weight: 750;
}
.footer-sales-line a {
  color: var(--teal-dark);
  font-weight: 900;
}
.footer-contact-info {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}
.footer-contact-info a {
  color: var(--teal-dark);
  font-weight: 900;
  width: max-content;
}
.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}
.footer-link-groups div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-link-groups strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-link-groups a {
  color: #43514d;
  font-size: 0.92rem;
  font-weight: 750;
}
.footer-link-groups a:hover {
  color: var(--teal-dark);
}
.footer-credit {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
  text-align: center;
}
.footer-credit a {
  color: var(--teal-dark);
  font-weight: 900;
}

.sales-contact-card {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #cfe3df;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 52%),
    #fbfffd;
}
.sales-contact-card span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sales-contact-card strong {
  color: var(--ink);
  font-size: 1.1rem;
}
.sales-contact-card a {
  color: var(--teal-dark);
  font-weight: 900;
}

.dashboard-body { background: #f5f8f6; }
.app-header { width: 100%; padding: 0 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.dashboard-layout {
  width: min(100% - 24px, 1360px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}
.dashboard-sidebar,
.dashboard-main > section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dashboard-sidebar { padding: 14px; position: sticky; top: 16px; height: fit-content; min-width: 0; max-width: 100%; }
.workspace-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #cfe3df;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 52%),
    #fbfffd;
  box-shadow: 0 14px 34px rgba(14, 40, 37, 0.08);
}
.workspace-card-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.workspace-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(14, 40, 37, 0.18);
}
.workspace-kicker {
  margin: 2px 0 4px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.workspace-title {
  display: block;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.15;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.workspace-subtitle {
  display: block;
  color: #62716c;
  font-size: 0.88rem;
  font-weight: 750;
}
.workspace-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.workspace-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0dc;
  border-radius: 12px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  padding: 0 10px;
  text-align: center;
  box-shadow: none;
}
.workspace-action-primary {
  grid-column: 1 / -1;
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}
.workspace-action:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}
.dashboard-main {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.dashboard-panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
}
.dashboard-panel > *,
.dashboard-panel p,
.dashboard-panel a,
.record-card > *,
.record-card h3,
.record-card p,
.text-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.connect-workspace {
  display: grid;
  gap: 18px;
}

.connect-hero,
.connect-section {
  border: 1px solid #d6e3df;
  border-radius: var(--radius);
  background: var(--white);
}

.connect-hero {
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 44%),
    linear-gradient(180deg, #ffffff, #f7fbfa);
}

.connect-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.connect-hero p {
  max-width: 760px;
  margin: 0;
  color: #53635e;
  font-size: 1.03rem;
  line-height: 1.62;
}

.connect-control-panel {
  display: grid;
  gap: 18px;
  align-items: start;
  border: 1px solid #d6e3df;
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(16px, 2.4vw, 22px);
}

.connect-control-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.connect-control-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.connect-control-copy p {
  max-width: 760px;
  margin: 0;
  color: #53635e;
  line-height: 1.55;
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.connect-section {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 24px);
}

.connect-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e2ebe7;
  padding-bottom: 14px;
}

.connect-section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.connect-section-heading p {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
}

.connect-account-id {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid #d9e5e1;
  border-radius: 999px;
  background: #f7fbfa;
  color: #42524d;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.connect-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.connect-status-grid div {
  display: grid;
  gap: 5px;
  min-height: 84px;
  border: 1px solid #dfe9e5;
  border-radius: var(--radius);
  background: #f8fcfa;
  padding: 13px 14px;
}

.connect-status-grid dt {
  color: #60716b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.connect-status-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid #d9e5e1;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.status-pill-good {
  border-color: #a5d9c0;
  background: #e9f8f0;
  color: #146348;
}

.status-pill-warning {
  border-color: #f0d29b;
  background: #fff7e6;
  color: #765012;
}

.status-pill-neutral {
  border-color: #d7e1dc;
  background: #f6f8f7;
  color: #52625d;
}

.connect-action-section p,
.connect-empty-copy {
  margin: 0;
  color: #53635e;
  line-height: 1.62;
}

.connect-warning {
  border: 1px solid #f0d29b;
  border-radius: var(--radius);
  background: #fff8e8;
  padding: 12px 14px;
}

.connect-warning strong {
  color: #765012;
}

.connect-requirement-group {
  display: grid;
  gap: 10px;
  border: 1px solid #e6d3ca;
  border-radius: var(--radius);
  background: #fff8f4;
  padding: 14px;
}

.connect-requirement-group > strong {
  color: #833721;
}

.connect-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connect-requirements li {
  border: 1px solid #eccabe;
  border-radius: 999px;
  background: #ffffff;
  color: #75351f;
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 850;
}

.connect-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.connect-action-row-primary {
  justify-content: flex-start;
}

.connect-action-row form,
.connect-fee-form {
  margin: 0;
}

.button:disabled,
.button[disabled] {
  border-color: #d4dfda;
  background: #edf2f0;
  color: #7a8984;
  box-shadow: none;
  cursor: not-allowed;
}

.connect-fee-section {
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc),
    var(--white);
}

.connect-fee-form {
  display: grid;
  gap: 16px;
}

.connect-fee-form .dashboard-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connect-fee-form .button {
  width: fit-content;
}

@media (max-width: 980px) {
  .connect-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .connect-hero,
  .connect-control-panel,
  .connect-section {
    padding: 18px;
  }

  .connect-control-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-status-grid,
  .connect-fee-form .dashboard-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-action-row .button,
  .connect-fee-form .button {
    width: 100%;
  }
}
.notice-panel {
  background: #eef7f5;
  border-color: #b8d9d2;
  color: var(--teal-dark);
}
.notice-panel p {
  margin: 0;
  font-weight: 800;
}
.side-nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  min-width: 0;
}
.side-nav a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-help-main {
  gap: 20px;
}

.help-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 22px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 42%),
    linear-gradient(180deg, #ffffff, #f5fbfa);
}

.help-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.05rem, 3.5vw, 3.25rem);
}

.help-hero-copy p {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.help-hero-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid #cfe3df;
  border-radius: 20px;
  background: #0e2825;
  color: var(--white);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(14, 40, 37, 0.14);
}

.help-hero-card strong {
  color: #7ce1cf;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.9;
}

.help-hero-card span {
  font-size: 1.05rem;
  font-weight: 900;
}

.help-hero-card p {
  margin: 0;
  color: #dbe9e6;
  font-size: 0.98rem;
}

.help-search-panel {
  display: grid;
  gap: 18px;
}

.help-search-panel .split-heading {
  align-items: start;
}

.help-search-panel h2,
.help-section-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.help-search-box {
  display: grid;
  gap: 8px;
}

.help-search-box span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.help-search-box input {
  width: 100%;
  border: 1px solid #c8d9d4;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 16px 18px;
  outline: none;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
}

.help-search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.help-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.help-category-button {
  min-height: 42px;
  border: 1px solid #c8d9d4;
  border-radius: 999px;
  background: #ffffff;
  color: #24423c;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 9px 13px;
}

.help-category-button.active,
.help-category-button:hover {
  border-color: #0e2825;
  background: #0e2825;
  color: #ffffff;
}

.help-result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.help-empty-state {
  border: 1px solid #cfe3df;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 28px;
}

.help-section {
  display: grid;
  gap: 18px;
}

.help-section-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.help-section-heading p {
  max-width: 820px;
}

.help-section-heading > span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe3df;
  border-radius: 999px;
  background: #f6fbfa;
  color: #0c5b52;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.help-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-article-card {
  overflow: hidden;
  border: 1px solid #d5e2de;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 33, 31, 0.06);
}

.help-article-card[open] {
  grid-column: 1 / -1;
}

.help-article-card summary {
  position: relative;
  display: grid;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 20px;
}

.help-article-card summary::-webkit-details-marker {
  display: none;
}

.help-article-card summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 20px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef7f5;
  color: var(--teal-dark);
  font-weight: 900;
}

.help-article-card[open] summary::after {
  content: "-";
}

.help-article-card summary span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.help-article-card summary strong {
  color: var(--ink);
  font-size: clamp(1.14rem, 1.7vw, 1.42rem);
  line-height: 1.18;
}

.help-article-card summary small {
  color: #566760;
  font-size: 0.98rem;
  line-height: 1.45;
}

.help-article-body {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 20px;
}

.help-article-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.help-article-body p,
.help-article-body li {
  color: #42524d;
  font-size: 1rem;
  line-height: 1.6;
}

.help-article-purpose {
  display: grid;
  gap: 10px;
  align-items: start;
}

.help-article-purpose .button {
  width: fit-content;
}

.help-callout {
  border: 1px solid #cfe3df;
  border-radius: 16px;
  background: #f5fbfa;
  padding: 16px;
}

.help-callout ul,
.help-note-list,
.help-step-list {
  margin: 0;
}

.help-callout ul,
.help-note-list {
  padding-left: 20px;
}

.help-step-list {
  display: grid;
  gap: 10px;
  padding-left: 28px;
}

.help-note-list {
  display: grid;
  gap: 8px;
}
.compact-form,
.dashboard-wide-form {
  box-shadow: none;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px 18px;
}

.dashboard-wide-form .dashboard-form-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.dashboard-form-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.dashboard-form-field:has(textarea),
.dashboard-form-field:has(input[type="file"]),
.form-error-list {
  grid-column: 1 / -1;
}

.dashboard-form-field-file {
  gap: 12px;
}

.dashboard-form-field input,
.dashboard-form-field select,
.dashboard-form-field textarea {
  min-width: 0;
}

.dashboard-form-field-checkbox {
  align-content: center;
  border: 1px solid #dbe7e2;
  border-radius: 14px;
  background: #f8fcfa;
  padding: 12px 14px;
}

.field-help,
.field-error {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: #9e2b1f;
  font-weight: 800;
}

.form-error-list {
  border: 1px solid #f0c6bd;
  border-radius: 14px;
  background: #fff4f1;
  color: #8d2a1d;
  padding: 12px 14px;
}

.form-error-list p {
  margin: 0;
  font-weight: 800;
}

.compact-form > button,
.dashboard-wide-form > button,
.compact-form > .button,
.dashboard-wide-form > .button {
  margin-top: 18px;
  width: fit-content;
}

.account-security-panel {
  display: grid;
  gap: 20px;
}

.account-security-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: stretch;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #cfe0da;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(239, 249, 245, 0.95), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(31, 123, 111, 0.16), transparent 34%);
}

.account-security-hero h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.06;
}

.account-security-hero p {
  max-width: 760px;
  color: var(--muted);
}

.password-reset-card,
.password-rules-card {
  border: 1px solid #c9ddd6;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(25, 63, 55, 0.08);
}

.password-reset-card {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
}

.password-reset-card span {
  color: var(--teal-dark);
  font-weight: 900;
}

.password-reset-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.password-reset-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.password-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.password-change-form {
  display: grid;
  gap: 18px;
}

.password-field-row,
.password-field-row-two {
  display: grid;
  gap: 16px;
}

.password-field-row-two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.password-change-form input[type="password"] {
  min-height: 54px;
  border-radius: 16px;
  font-size: 1.02rem;
}

.password-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  padding-top: 4px;
}

.password-submit-row span {
  color: var(--muted);
  font-weight: 740;
  line-height: 1.4;
}

.password-rules-card {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.password-rules-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.password-rule-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.password-rule-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dbe7e2;
  border-radius: 14px;
  background: #f8fcfa;
  color: #52645f;
  font-weight: 780;
  line-height: 1.3;
}

.password-rule-list li span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #edf4f1;
  border: 1px solid #cfe0da;
}

.password-rule-list li span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8ea19a;
}

.password-rule-list li.is-valid {
  border-color: #b9dccd;
  background: #effbf5;
  color: #1c5c49;
}

.password-rule-list li.is-valid span {
  background: #dff5ea;
  border-color: #99d5bb;
}

.password-rule-list li.is-valid span::before {
  content: "✓";
  width: auto;
  height: auto;
  color: #19734f;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 950;
}

.password-rule-list li.is-invalid {
  border-color: #efc8bf;
  background: #fff6f3;
  color: #8f321f;
}

.password-rule-list li.is-invalid span {
  background: #ffe8e0;
  border-color: #efb4a6;
}

.password-rule-list li.is-invalid span::before {
  background: #bf4027;
}

.password-match-message.is-valid {
  color: #19734f;
  font-weight: 850;
}

.password-match-message.is-invalid {
  color: #9e2b1f;
  font-weight: 850;
}
.dashboard-editor-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.cms-editor-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.cms-editor-card > div p {
  color: var(--muted);
  line-height: 1.6;
}
.cms-coverage-grid,
.role-hierarchy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.cms-coverage-grid article,
.role-hierarchy-strip article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f6fbf8);
}
.cms-coverage-grid strong,
.role-hierarchy-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}
.cms-coverage-grid span,
.role-hierarchy-strip span {
  color: var(--muted);
  line-height: 1.55;
}
.cms-manager-panel .section-heading p {
  max-width: 860px;
}
.section-note,
.cms-public-path {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.cms-page-workspaces {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}
.cms-page-workspace {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.cms-page-header,
.cms-page-actions,
.cms-section-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cms-page-header h3 {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}
.cms-page-status,
.compact-status-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cms-page-guidance {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dbe7e2;
  border-radius: 16px;
  background: #f8fcfa;
}
.cms-page-guidance strong,
.cms-section-list-heading strong {
  color: var(--ink);
  font-size: 1.02rem;
}
.cms-page-guidance span,
.cms-section-list-heading span {
  color: var(--muted);
  line-height: 1.55;
}
.cms-section-list {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
.guided-cms-hero .section-heading h1 {
  max-width: 900px;
}
.guided-cms-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.guided-cms-status article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #d9e8e1;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f5fbf8);
}
.guided-cms-status span,
.guided-cms-status small,
.guided-page-card em,
.guided-section-preview small,
.guided-section-preview em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}
.guided-cms-status strong {
  color: var(--ink);
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}
.guided-cms-status.compact {
  margin-top: 18px;
}
.guided-editor-hero {
  display: grid;
  gap: 18px;
}
.guided-editor-back {
  width: fit-content;
}
.guided-editor-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}
.guided-editor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.guided-picker-panel {
  display: grid;
  gap: 18px;
}
.guided-picker-intro {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #d5e7df;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fbf6, #ffffff);
}
.guided-picker-intro strong {
  color: var(--ink);
  font-size: 1.08rem;
}
.guided-picker-intro span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}
.guided-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guided-page-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 232px;
  padding: 22px;
  border: 1px solid #d7e6df;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,252,249,0.96)),
    radial-gradient(circle at 90% 0%, rgba(36, 121, 110, 0.1), transparent 34%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(20, 39, 32, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.guided-page-card:hover,
.guided-page-card:focus-visible {
  border-color: #26796e;
  box-shadow: 0 18px 38px rgba(20, 84, 72, 0.13);
  transform: translateY(-2px);
}
.guided-page-card-top,
.guided-page-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guided-page-card-top em {
  color: #2d776f;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}
.guided-page-card-top b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #245e55;
  font-size: 0.78rem;
  font-weight: 950;
}
.guided-page-card strong {
  color: var(--ink);
  font-size: clamp(1.28rem, 1.6vw, 1.55rem);
  line-height: 1.14;
}
.guided-page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.5;
}
.guided-page-card small {
  color: #315b52;
  font-weight: 850;
}
.guided-page-card-footer {
  align-self: end;
  padding-top: 4px;
  border-top: 1px solid #e4eee8;
}
.guided-page-card-footer em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}
.guided-page-card i {
  width: fit-content;
  padding: 10px 13px;
  border-radius: 12px;
  background: #102d28;
  color: #ffffff;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}
.guided-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.guided-page-summary,
.guided-page-form-card,
.guided-section-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(20, 39, 32, 0.07);
}
.guided-page-summary {
  display: grid;
  gap: 16px;
  padding: 20px;
  position: sticky;
  top: 92px;
}
.guided-page-summary h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}
.guided-page-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.guided-page-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.guided-page-summary dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f7fbf8;
}
.guided-page-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}
.guided-page-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}
.guided-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guided-page-form-card {
  padding: 20px;
}
.guided-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.guided-card-heading h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}
.guided-section-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.guided-section-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}
.guided-section-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}
.guided-section-preview > span {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf6f1;
  color: #205f55;
  font-size: 0.82rem;
  font-weight: 950;
}
.guided-section-preview img,
.guided-section-empty-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #d7e6df;
  border-radius: 16px;
  background: #f7fbf9;
}
.guided-section-preview img {
  display: block;
  object-fit: cover;
}
.guided-section-empty-image {
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}
.guided-section-empty-image strong {
  color: var(--ink);
}
.guided-section-form {
  min-width: 0;
}
.dashboard-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.dashboard-task-panel {
  align-content: start;
}
.dashboard-task-panel .dashboard-form-grid {
  grid-template-columns: 1fr;
}
.compact-empty-state {
  padding: 18px;
  text-align: left;
}
.compact-empty-state h3 {
  font-size: 1.1rem;
}
.record-grid,
.media-grid,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.record-card,
.media-grid article,
.empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  min-width: 0;
  max-width: 100%;
}
.record-card p { margin: 8px 0; }

.communication-proof-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 48%),
    #fff;
}

.communication-proof-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.communication-proof-note {
  padding: 16px;
  border: 1px solid #d6e3df;
  border-radius: var(--radius);
  background: #f8fcfa;
}

.communication-proof-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.communication-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.communication-summary-grid article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.communication-summary-grid span,
.communication-meta-grid dt {
  color: #60716b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.communication-summary-grid strong {
  color: var(--ink);
  font-size: 1.65rem;
}

.communication-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
}

.communication-filter-bar label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.communication-filter-bar input,
.communication-filter-bar select,
.manual-notice-form input,
.manual-notice-form select,
.manual-notice-form textarea {
  min-height: 44px;
  border: 1px solid #cfdcd7;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.manual-notice-panel {
  display: grid;
  gap: 16px;
}

.manual-notice-form {
  display: grid;
  gap: 16px;
}

.manual-notice-template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dce8e4;
  border-radius: var(--radius);
  background: #f8fcfa;
}

.manual-notice-template-row label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.manual-notice-template-row small {
  color: var(--muted);
  font-weight: 650;
}

.manual-notice-grid,
.manual-notice-recipient-grid,
.manual-notice-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-notice-grid label,
.manual-notice-message {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.manual-notice-grid small {
  color: var(--muted);
  font-weight: 650;
}

.manual-notice-recipient-grid fieldset,
.manual-notice-review-grid article {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #dce8e4;
  border-radius: var(--radius);
  background: #f8fcfa;
}

.manual-notice-recipient-grid legend {
  padding: 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.manual-notice-recipient-grid p,
.manual-notice-review-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.manual-notice-choice-list {
  max-height: 220px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid #e1ebe7;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.manual-notice-choice-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-notice-choice-list label,
.review-checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 750;
}

.manual-notice-choice-list input,
.review-checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.manual-notice-warning {
  padding: 12px 14px;
  border: 1px solid #f0d29b;
  border-radius: 10px;
  background: #fff8e8;
  color: #6d4b12;
  font-weight: 750;
}

.manual-notice-preview {
  border-color: #b7dad3;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.manual-notice-send-form {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 16px;
}

.communication-log-list {
  display: grid;
  gap: 14px;
}

.communication-log-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}

.communication-log-main {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.communication-log-main h3 {
  margin-top: 10px;
}

.communication-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.communication-meta-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0ebe7;
  border-radius: 10px;
  background: #fff;
}

.communication-meta-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.communication-status-sent {
  border-color: #a5d9c0;
  background: #e9f8f0;
  color: #146348;
}

.communication-status-failed {
  border-color: #efb6a7;
  background: #fff1ed;
  color: #8a2d19;
}

.communication-status-pending {
  border-color: #f0d29b;
  background: #fff7e6;
  color: #765012;
}

.communication-error {
  padding: 10px 12px;
  border: 1px solid #efb6a7;
  border-radius: 10px;
  background: #fff7f4;
  color: #6b281a;
}

.student-communication-panel {
  display: grid;
  gap: 16px;
}

.student-communication-list {
  display: grid;
  gap: 12px;
}

.student-communication-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dce8e4;
  border-radius: var(--radius);
  background: #fbfefd;
}

.student-communication-card h3 {
  margin: 8px 0 6px;
}

.student-communication-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.student-communication-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.student-communication-meta div {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f3faf7;
}

.student-communication-meta dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.student-communication-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.lesson-communication-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e2ebe7;
}

.lesson-communication-row:last-of-type {
  border-bottom: 0;
}

.edit-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid rgba(14, 107, 92, 0.22);
  border-radius: var(--radius);
  background: #eefaf5;
}
.edit-context-banner strong,
.edit-context-banner span {
  display: block;
}
.edit-context-banner span {
  color: var(--muted);
  margin-top: 3px;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}
.user-access-list,
.role-matrix {
  display: grid;
  gap: 14px;
}
.user-access-list .record-card,
.role-matrix .record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr) auto;
  gap: 18px;
  align-items: center;
}
.role-matrix .record-card {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  align-items: start;
}
.role-matrix details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px 14px;
}
.role-matrix summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--teal-dark);
}
.user-role-form,
.user-deactivate-form {
  width: 100%;
}
.user-deactivate-form {
  grid-template-columns: 1fr;
}
.muted-record { opacity: 0.64; }
.booking-rule-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.calendar-settings-summary {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}
.calendar-settings-summary .booking-rule-preview {
  margin: 0;
}
.calendar-settings-actions,
.calendar-setup-callout,
.calendar-filter-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #cfe0da;
  border-radius: var(--radius);
  background: #eef9f5;
}
.calendar-settings-actions p,
.calendar-setup-callout p,
.calendar-filter-note span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.calendar-settings-actions .button-row,
.split-heading .button-row {
  margin: 0;
  justify-content: flex-end;
}
.calendar-setup-callout {
  margin: 0 0 18px;
  align-items: flex-start;
}
.calendar-setup-callout h2 {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}
.calendar-setup-links,
.calendar-filter-note span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.calendar-setup-links a,
.calendar-filter-note a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #b9d7cf;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 850;
}
.section-support-copy {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.resource-inventory-panel {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d5e7df;
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fcfa, #ffffff);
}
.resource-lookup-form {
  margin: 0;
  background: #ffffff;
}
.resource-inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.resource-inventory-summary article,
.resource-inventory-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 39, 32, 0.06);
}
.resource-inventory-summary article {
  padding: 16px;
}
.resource-inventory-summary strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}
.resource-inventory-summary span {
  color: var(--muted);
  font-weight: 800;
}
.resource-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.resource-inventory-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.resource-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.resource-card-heading h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}
.resource-status-list {
  display: grid;
  gap: 10px;
}
.resource-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e1ebe6;
  border-left-width: 6px;
  border-radius: 16px;
  background: #fbfdfb;
}
.resource-status-row strong,
.resource-status-row span {
  display: block;
}
.resource-status-row strong {
  color: var(--ink);
  font-size: 1.02rem;
}
.resource-status-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
  line-height: 1.42;
}
.resource-status-row em {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
}
.resource-status-available {
  border-left-color: #12806f;
}
.resource-status-available em {
  background: #dff8ef;
  color: #0f6256;
}
.resource-status-booked {
  border-left-color: #d7901d;
}
.resource-status-booked em {
  background: #fff1cf;
  color: #8a5709;
}
.resource-status-unavailable {
  border-left-color: #b54437;
}
.resource-status-unavailable em {
  background: #ffe5e0;
  color: #8d2f25;
}
.booking-rule-preview article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}
.booking-rule-preview strong {
  display: block;
  font-size: 1.25rem;
}
.booking-rule-preview span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}
.text-danger {
  min-height: 38px;
  border: 1px solid #f0c4ba;
  border-radius: var(--radius);
  background: #fff7f5;
  color: #9e2b1f;
  font-weight: 800;
}
form.is-submitting {
  opacity: 0.82;
}
button[type="submit"].is-submitting,
input[type="submit"].is-submitting {
  cursor: progress;
}
button[type="submit"]:disabled,
input[type="submit"]:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  box-shadow: none;
}
.hours-table {
  display: grid;
  gap: 10px;
}
.hours-table article {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}
.lesson-action-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lesson-action-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.lesson-action-form textarea,
.lesson-action-form input {
  width: 100%;
}
.lesson-action-form textarea {
  min-height: 74px;
  resize: vertical;
}
.lesson-action-form > label:nth-of-type(1),
.lesson-action-form > label:nth-of-type(2),
.lesson-action-form > label:nth-of-type(3) {
  grid-column: 1 / -1;
}
.inline-controls {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
}
.checkbox-label {
  min-height: 44px;
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  line-height: 1.35;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}
.action-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.calendar-filter-form {
  margin: 18px 0;
}
.reschedule-form {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.reschedule-form > label:nth-of-type(1),
.reschedule-form > label:nth-of-type(2),
.reschedule-form > label:nth-of-type(3),
.reschedule-form > label:nth-of-type(4) {
  grid-column: auto;
}
.reschedule-form > label:nth-of-type(5),
.reschedule-form > label:nth-of-type(6),
.reschedule-form > label:nth-of-type(7) {
  grid-column: 1 / -1;
}
.portal-reschedule-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.file-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f8f5;
  font-weight: 800;
}
.message-stack {
  display: grid;
  gap: 8px;
  align-self: start;
}
.message {
  margin: 0;
  min-height: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e8f5ef;
  color: #17352f;
  font-weight: 750;
}
.message.error { background: #fff0ed; color: #9e2b1f; }
.message-thread {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.message-thread article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}
.message-thread .internal-note {
  background: #fff8df;
  border-color: #efd280;
}
.message-thread span {
  color: var(--muted);
  font-size: 0.88rem;
}
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.attachment-list a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
}
.button-danger {
  background: #9f2f2f;
  border-color: #9f2f2f;
  color: #fff;
}
.compact-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.filter-form,
.inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.enrollment-dashboard-panel .split-heading {
  align-items: center;
}
.enrollment-filter-form {
  min-width: min(100%, 390px);
  padding: 12px;
  border: 1px solid #cfe0da;
  border-radius: 18px;
  background: #f6fbf8;
  box-shadow: 0 12px 28px rgba(25, 63, 55, 0.06);
}
.enrollment-filter-form > div {
  display: grid;
  gap: 6px;
}
.enrollment-filter-form label {
  grid-column: auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}
.enrollment-filter-form select {
  min-height: 42px;
}
.enrollment-filter-form .button {
  min-width: 92px;
  white-space: nowrap;
}
.filter-form label,
.inline-form label {
  grid-column: 1 / -1;
}
.inline-form textarea,
.inline-form button {
  grid-column: 1 / -1;
}
.status-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #17352f;
  font-weight: 800;
  font-size: 0.86rem;
}
.dashboard-welcome-panel {
  background:
    linear-gradient(135deg, rgba(234, 247, 243, 0.96), rgba(255, 255, 255, 0.98));
}
.owner-progress-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dashboard-metric-links {
  margin: 0 0 18px;
}
.metric-link-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(17, 52, 45, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.metric-link-card:hover,
.metric-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 127, 119, 0.45);
  box-shadow: 0 20px 42px rgba(17, 52, 45, 0.12);
}
.metric-link-card span {
  color: var(--muted);
  font-weight: 800;
}
.metric-link-card strong {
  color: var(--teal-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}
.metric-link-card small {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.setup-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.setup-path-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}
.setup-path-grid p {
  color: var(--muted);
  line-height: 1.55;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.inline-actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 760;
  line-height: 1.35;
}
.checkbox-line input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}
.dashboard-form-field-checkbox .field-help,
.dashboard-form-field-checkbox .field-error {
  margin-left: 28px;
}
.current-template-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid #cfe0da;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(238, 249, 245, 0.92), rgba(255, 255, 255, 0.98));
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 18px 46px rgba(17, 52, 45, 0.08);
}

.current-template-panel h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.current-template-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.current-template-shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.current-template-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.template-select-grid,
.plan-grid,
.metric-grid,
.collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.template-select-grid article,
.plan-grid article,
.metric-grid article,
.collection-card,
.portal-lesson {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  box-sizing: border-box;
  min-width: 0;
}
.template-select-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.dashboard-template-preview {
  display: block;
  margin-bottom: 14px;
  text-decoration: none;
}
.template-select-grid .template-browser-frame {
  border-radius: 18px;
}
.template-select-grid .template-browser-frame img {
  aspect-ratio: 1000 / 616;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
}
.website-template-manager .section-heading h1 {
  font-size: clamp(1.8rem, 5.4vw, 3.6rem);
}
.closures-dashboard-panel .section-heading h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.62rem);
}
.website-seo-panel .section-heading h1 {
  font-size: clamp(1.64rem, 4.92vw, 3.28rem);
}
.template-marketplace-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.selected-template,
.current-plan {
  outline: 3px solid rgba(31, 123, 111, 0.24);
  border-color: var(--teal) !important;
}
.metric-grid article { display: grid; gap: 6px; }
.metric-grid span { color: var(--muted); font-weight: 760; }
.metric-grid strong,
.plan-grid strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.subscription-workspace {
  display: grid;
  gap: 24px;
}
.subscription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
}
.subscription-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  max-width: 720px;
}
.subscription-hero p {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.65;
}
.subscription-summary-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0b372f, #124f45);
  color: #fff;
  box-shadow: 0 22px 48px rgba(6, 44, 38, 0.2);
}
.subscription-summary-card .status-pill {
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  color: #eafff8;
  border-color: rgba(255, 255, 255, 0.25);
}
.subscription-summary-card strong {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}
.subscription-summary-card p,
.subscription-summary-card small {
  color: rgba(255, 255, 255, 0.82);
}
.subscription-usage-grid,
.subscription-plan-grid,
.user-usage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.subscription-usage-grid article,
.subscription-plan-grid article,
.user-usage-strip article {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfb;
}
.subscription-usage-grid article > div,
.user-usage-strip article {
  min-width: 0;
}
.subscription-usage-grid article > div:first-child,
.user-usage-strip article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.subscription-usage-grid span,
.user-usage-strip span {
  color: var(--muted);
  font-weight: 800;
}
.subscription-usage-grid strong,
.user-usage-strip strong,
.subscription-plan-grid strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}
.usage-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f1ed;
}
.usage-meter span {
  display: block;
  width: var(--usage, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #69c8aa);
}
.subscription-plan-editor,
.user-invite-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.subscription-plan-grid article.current-plan {
  background: linear-gradient(145deg, #effbf6, #fff);
}
.subscription-plan-grid h3 {
  margin: 4px 0 0;
}
.subscription-plan-grid small {
  color: var(--muted);
  line-height: 1.5;
}
.users-workspace {
  display: grid;
  gap: 20px;
}
.user-access-list .user-access-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.staff-profile-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.staff-avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #eff7f4;
}
.staff-avatar-initials {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-size: 1.5rem;
  font-weight: 900;
}
.user-card-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}
.staff-photo-form,
.user-role-form,
.user-deactivate-form {
  display: grid;
  gap: 8px;
  align-content: end;
}
.compact-file-preview .dashboard-file-preview-card {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 10px;
}
.compact-file-preview img,
.compact-file-preview .file-preview {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}
.roles-dashboard {
  display: grid;
  gap: 24px;
}
.roles-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: stretch;
}
.roles-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}
.roles-hero p {
  max-width: 830px;
  font-size: 1.06rem;
  line-height: 1.65;
}
.roles-summary-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #102b3f, #0b5d56);
  color: #fff;
}
.roles-summary-card strong {
  font-size: clamp(2.5rem, 6vw, 4rem);
}
.roles-summary-card span,
.roles-summary-card p {
  color: rgba(255, 255, 255, 0.82);
}
.role-hierarchy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.role-hierarchy-flow article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfb;
}
.role-hierarchy-flow span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e7f5f0;
  color: var(--teal-dark);
  font-weight: 900;
  grid-row: span 2;
}
.role-hierarchy-flow strong {
  color: var(--ink);
}
.role-hierarchy-flow small {
  color: var(--muted);
}
.role-card-grid {
  display: grid;
  gap: 18px;
}
.role-access-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.role-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 20px;
  align-items: start;
}
.role-card-top h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.role-card-top p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.58;
}
.role-user-count {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px;
  text-align: center;
  border-radius: 18px;
  background: #f4faf7;
  border: 1px solid #dbe7e2;
}
.role-user-count strong {
  color: var(--ink);
  font-size: 2.2rem;
}
.role-user-count span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.role-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.role-scope-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfb;
}
.role-scope-grid strong {
  display: block;
  margin-bottom: 8px;
}
.role-permission-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fcfa;
  overflow: hidden;
}
.role-permission-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}
.role-permission-details summary small {
  color: var(--muted);
  font-weight: 800;
}
.permission-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}
.permission-group-grid section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.permission-group-grid strong {
  color: var(--ink);
}
.permission-group-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.reminders-workspace {
  display: grid;
  gap: 22px;
}
.reminders-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  gap: 22px;
  align-items: stretch;
}
.reminders-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.reminders-hero p {
  max-width: 820px;
  font-size: 1.06rem;
  line-height: 1.65;
}
.reminders-summary-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #15324d, #0d6b60);
  color: #fff;
}
.reminders-summary-card strong {
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.reminders-summary-card span,
.reminders-summary-card p {
  color: rgba(255, 255, 255, 0.84);
}
.reminder-type-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.reminder-type-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfb;
}
.reminder-type-strip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.reminder-type-strip span {
  color: var(--muted);
  line-height: 1.5;
}
.reminder-editor-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.reminder-editor-card h2 {
  margin-top: 0;
}
.reminder-editor-card p {
  color: var(--muted);
  line-height: 1.6;
}
.reminder-form .dashboard-form-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}
.reminder-form .dashboard-form-field:has(textarea) {
  grid-column: 1 / -1;
}
.reminder-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.reminder-rule-card {
  display: grid;
  gap: 16px;
}
.reminder-rule-card h3 {
  margin: 10px 0 6px;
}
.reminder-rule-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.reminder-message-preview {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fcfa;
}
.reminder-message-preview span {
  color: var(--muted);
  line-height: 1.5;
}
.collection-card { display: grid; gap: 16px; }
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  flex-wrap: wrap;
}
.media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.media-strip > div {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.media-strip > div[draggable="true"] {
  cursor: grab;
}
.media-strip > div.is-dragging {
  opacity: 0.58;
  outline: 2px dashed var(--teal);
}
.media-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.media-strip .is-thumbnail {
  border-color: var(--teal);
  background: #f1fbf6;
}
.asset-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf7;
}
.asset-picker label {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-wrap: anywhere;
}
.asset-picker input { width: auto; min-height: auto; }
.upload-preview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.upload-preview-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}
.upload-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.dashboard-file-dropzone {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 16px;
  border: 1px dashed #a9cfc5;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 46%),
    #fbfffd;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dashboard-file-dropzone:hover,
.dashboard-file-dropzone:focus-within,
.dashboard-file-dropzone.is-dragging-file {
  border-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.13), transparent 48%),
    #f3fbf8;
  box-shadow: 0 16px 38px rgba(15, 118, 110, 0.12);
}
.dashboard-file-dropzone.is-dragging-file {
  transform: translateY(-1px);
}
.dashboard-file-label {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
}
.dashboard-file-preview {
  display: grid;
  gap: 10px;
}
.dashboard-file-preview-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.dashboard-file-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid #cfe0da;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(14, 40, 37, 0.1);
}
.dashboard-file-preview-card .file-preview {
  min-height: 116px;
  border-radius: 16px;
  border: 1px solid #d5e5e0;
  background: #f5fbf8;
}
.dashboard-file-preview-card > span {
  min-width: 0;
}
.dashboard-file-preview-card strong,
.dashboard-file-preview-card small,
.dashboard-file-preview-card a {
  display: block;
  overflow-wrap: anywhere;
}
.dashboard-file-preview-card strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.18;
}
.dashboard-file-preview-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.dashboard-file-dropzone-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dashboard-file-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}
.dashboard-file-note {
  color: #566760;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}
.dashboard-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.dashboard-file-dropzone-compact {
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
}
.cms-section-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cms-section-row p {
  margin: 5px 0 9px;
  color: var(--muted);
  line-height: 1.5;
}
.cms-section-thumb {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef6f2;
  border: 1px solid #dbe7e2;
}
.cms-section-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  padding: 8px;
}
.tenant-section-media {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.tenant-section-subheading {
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
}
.package-summary {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.package-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.launch-panel,
.booking-settings-preview {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 22px;
}
.progress-list { display: grid; gap: 10px; }
.progress-list div { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.progress-list span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #bbc9c2; }
.progress-list .done span { background: var(--teal); border-color: var(--teal); }
.hours-editor-preview { display: grid; gap: 10px; }
.hours-editor-preview div { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.hours-editor-preview button { min-height: 38px; border: 1px solid var(--line); background: #f7fbf7; border-radius: var(--radius); font-weight: 760; }

.template-demo .site-header { display: none; }
.demo-hero, .urban-masthead, .family-hero, .safety-hero, .bilingual-hero, .solo-profile-hero, .location-hero, .fast-hero, .classic-hero {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 70px 0;
}
.split-hero, .safety-hero, .bilingual-hero, .solo-profile-hero, .fast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  align-items: center;
}
.demo-visual, .language-panel, .portrait-card, .slot-board {
  min-height: 320px;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: end;
  background: linear-gradient(135deg, #bfe9dc, #fff0c1);
  box-shadow: var(--shadow);
}
.demo-strip, .demo-packages, .steps-band, .urban-grid, .neighborhood-cards, .risk-grid, .program-tiles, .solo-timeline, .location-grid, .comparison-packages, .classic-columns, .selector-panel, .parent-faq, .classic-header, .demo-proof-grid {
  width: min(100% - 32px, 1180px);
  margin: 0 auto 42px;
}
.demo-strip, .steps-band, .urban-grid, .neighborhood-cards, .risk-grid, .program-tiles, .solo-timeline, .location-grid, .comparison-packages, .classic-columns, .demo-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.demo-strip span, .demo-packages article, .steps-band article, .urban-grid article, .neighborhood-cards article, .risk-grid article, .program-tiles article, .solo-timeline article, .location-grid article, .comparison-packages article, .classic-columns article, .selector-panel, .parent-faq, .demo-proof-grid article {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px;
}
.demo-photo {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 37, 33, 0.08);
  border-radius: 24px;
  background: #e9f4ee;
  box-shadow: var(--shadow);
}
.demo-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.demo-photo-centered {
  margin-top: 24px;
}
.demo-photo-soft {
  max-width: 760px;
  margin: 24px auto;
}
.demo-photo-wide,
.demo-photo-formal {
  margin-top: 24px;
}
.urban-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: end;
}
.centered-calm { text-align: center; max-width: 850px; }
.centered-calm h1, .centered-calm p { margin-left: auto; margin-right: auto; }
.urban-demo { background: #111817; color: #f8fff9; }
.urban-demo p, .urban-demo a { color: #d8e6df; }
.urban-masthead { min-height: 620px; display: grid; align-content: space-between; }
.urban-masthead nav, .classic-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.urban-grid article { background: #1d2826; border-color: #344642; color: #f8fff9; min-height: 160px; }
.family-demo { background: #fff7e8; }
.family-hero { text-align: center; }
.family-badge { display: inline-flex; padding: 8px 12px; border: 1px solid #f0c978; border-radius: 999px; background: #fffdf8; margin-bottom: 18px; font-weight: 800; }
.safety-demo { background: #eef4f0; }
.safety-hero aside { background: #17352f; color: white; border-radius: 18px; padding: 28px; }
.bilingual-demo { background: #fffaf0; }
.language-panel { display: grid; align-content: center; background: #e0f5f2; }
.solo-demo { background: #f6fbff; }
.portrait-card { border-radius: 50px 8px 50px 8px; background: #dbeeff; }
.academy-demo .location-hero { background: #e8f2ec; border-radius: 0 0 28px 28px; padding-left: 28px; padding-right: 28px; }
.location-search { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; max-width: 620px; }
.location-search label { grid-column: 1 / -1; }
.fast-demo { background: #fff7f2; }
.slot-board { background: #1f2422; color: white; display: grid; align-content: center; }
.classic-demo { background: #f8f5eb; }
.classic-hero { border-top: 3px solid #203a36; border-bottom: 1px solid #cfc7b4; }

.tenant-site {
  background: #fcfbf7;
}
.tenant-header {
  width: var(--container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.tenant-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 1.08rem;
}
.tenant-symbol {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal-dark);
  color: var(--white);
}
.tenant-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 780;
}
.tenant-hero {
  width: var(--container);
  min-height: min(720px, calc(100vh - 78px));
  margin: 0 auto;
  padding: 58px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 42px;
  align-items: center;
}
.tenant-hero-card {
  min-height: 360px;
  padding: 28px;
  border-radius: 8px 48px 8px 48px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(36, 88, 167, 0.9)),
    linear-gradient(45deg, #dff6ec, #f2b84b);
  color: var(--white);
  display: grid;
  align-content: end;
  gap: 12px;
  box-shadow: var(--shadow);
}
.tenant-hero-card strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}
.tenant-hero-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-weight: 800;
}
.tenant-hero.has-hero-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(560px, 76vh, 760px);
  margin: 0;
  padding: clamp(74px, 10vw, 132px) max(22px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  grid-template-columns: minmax(0, 720px);
  color: var(--white);
}
.tenant-hero.has-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 34, 31, 0.88) 0%, rgba(13, 34, 31, 0.68) 44%, rgba(13, 34, 31, 0.16) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.34));
}
.tenant-hero-media,
.tenant-hero-media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.tenant-hero-media img {
  object-fit: cover;
  object-position: center;
}
.tenant-hero.has-hero-image > div {
  max-width: 720px;
}
.tenant-hero.has-hero-image .eyebrow,
.tenant-hero.has-hero-image .hero-text,
.tenant-hero.has-hero-image .trial-note {
  color: rgba(255, 255, 255, 0.88);
}
.tenant-hero.has-hero-image h1 {
  color: var(--white);
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}
.tenant-hero.has-hero-image .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}
.website-hero-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 18px 0 22px;
  background: var(--white);
}
.website-hero-preview img {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
}
.tenant-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: #eef6f1;
}
.tenant-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.preview-banner,
.tenant-page-hero,
.tenant-page-content {
  width: var(--container);
  margin: 0 auto;
}
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #efd280;
  border-radius: var(--radius);
  background: #fff8df;
}
.preview-banner strong {
  color: #745414;
}
.preview-banner span {
  color: #6d6045;
  font-weight: 760;
}
.tenant-page-hero {
  padding: 58px 0 36px;
}
.tenant-page-content {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}
.tenant-content-section {
  max-width: 840px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.tenant-content-section p {
  margin-bottom: 0;
}

/* Editorial article hub */
.article-index-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 68px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  gap: 44px;
  align-items: stretch;
}
.article-index-copy {
  align-self: center;
}
.article-index-copy h1,
.article-detail-copy h1 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
}
.article-index-copy > p:not(.eyebrow),
.article-detail-copy > p {
  max-width: 760px;
  color: #465b55;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.62;
}
.featured-article-card,
.article-card {
  color: inherit;
  text-decoration: none;
}
.featured-article-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 33, 31, 0.12);
}
.featured-article-photo,
.article-card-photo,
.article-hero-photo {
  display: block;
  overflow: hidden;
  position: relative;
  background: #eef5f2;
}
.featured-article-photo {
  margin: -12px -12px 2px;
  border-radius: 22px;
}
.featured-article-photo img,
.article-card-photo img,
.article-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-card-photo {
  border-bottom: 1px solid rgba(18, 50, 44, 0.1);
}
.article-hero-photo {
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(23, 33, 31, 0.13);
}
.featured-article-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}
.featured-article-card p {
  color: #52655f;
  font-size: 1.06rem;
  line-height: 1.55;
}
.article-card-kicker,
.article-card-meta span,
.featured-article-meta span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf8f5;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 850;
}
.featured-article-meta,
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-visual {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 10px;
  overflow: hidden;
  position: relative;
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  background: #102821;
}
.article-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}
.article-visual::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -34px;
  width: 180px;
  height: 180px;
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.article-visual span,
.article-visual i {
  position: relative;
  z-index: 1;
}
.article-visual span {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-style: normal;
  font-weight: 920;
  line-height: 1.04;
}
.article-visual i {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5fffb;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
}
.article-visual-website { background: linear-gradient(135deg, #123f39, #2b7c73 58%, #f2b84b); }
.article-visual-scheduling { background: linear-gradient(135deg, #0f2430, #2458a7 60%, #7fc8a9); }
.article-visual-enrollment { background: linear-gradient(135deg, #40316f, #9c5fb3 56%, #ffb36b); }
.article-visual-seo { background: linear-gradient(135deg, #174b3f, #5f8d52 58%, #d7b35a); }
.article-visual-payments { background: linear-gradient(135deg, #172136, #3858bd 58%, #42c6a5); }
.article-visual-templates { background: linear-gradient(135deg, #2a2145, #e06458 58%, #f1c35b); }
.article-library {
  width: var(--container);
}
.article-library .split-heading p {
  max-width: 760px;
  color: #53665f;
  font-size: 1.08rem;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.article-card {
  display: flex;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(23, 33, 31, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 68px rgba(23, 33, 31, 0.14);
}
.article-card .article-visual {
  min-height: 190px;
  border-radius: 0;
}
.home-resource-section {
  width: var(--container);
}
.home-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px;
}
.article-card-body h2 {
  margin: 0;
  font-size: clamp(1.16rem, 1.85vw, 1.42rem);
  line-height: 1.13;
}
.article-card-body p {
  margin: 0;
  color: #50645e;
  font-size: 1rem;
  line-height: 1.48;
}
.article-card-body strong {
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal-dark);
  font-size: 1rem;
}
.article-cta-band {
  width: var(--container);
  margin: 0 auto 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px;
  border-radius: 28px;
  background: #0f2430;
  color: #fff;
  box-shadow: 0 22px 58px rgba(15, 36, 48, 0.18);
}
.article-cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}
.article-cta-band p {
  max-width: 740px;
  color: #d8e8e3;
  font-size: 1.05rem;
}
.article-cta-band .button {
  flex: 0 0 auto;
}
.article-detail-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.62fr);
  gap: 44px;
  align-items: center;
}
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #60736d;
  font-size: 0.96rem;
  font-weight: 800;
}
.article-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.article-detail-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eef7f5;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
}
.article-visual-large {
  min-height: 420px;
  padding: 28px;
}
.article-detail-layout {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.74fr);
  gap: 48px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 22px;
  background: #f8fbfa;
}
.article-sidebar h2 {
  font-size: 1.15rem;
}
.article-sidebar ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #53655f;
  line-height: 1.45;
}
.article-body {
  display: grid;
  gap: 44px;
  padding-bottom: 72px;
}
.article-body section {
  display: grid;
  gap: 16px;
}
.article-body h2 {
  max-width: 760px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}
.article-body p {
  max-width: 760px;
  color: #41554f;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}
.article-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.article-checklist span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8e7e2;
  border-radius: 16px;
  background: #f8fbfa;
  color: #24463f;
  font-weight: 830;
  line-height: 1.32;
}
.article-inline-cta {
  padding: 28px;
  border-radius: 24px;
  background: #f1f7f5;
}
.related-articles {
  padding-top: 28px;
}
.article-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-grid-related .article-card-body {
  gap: 7px;
}
.article-grid-related .article-card-body h2 {
  font-size: clamp(1.12rem, 1.75vw, 1.36rem);
  line-height: 1.13;
}
.article-grid-related .article-card-body p {
  font-size: 1rem;
}

/* Template marketplace and live demo previews */
.template-gallery-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
  gap: 50px;
  align-items: center;
  min-width: 0;
}
.template-gallery-hero > *,
.template-gallery-copy,
.template-gallery-visual,
.template-gallery-showcase,
.marketplace-window,
.marketplace-toolbar,
.marketplace-preview-grid,
.marketplace-preview-card {
  min-width: 0;
  max-width: 100%;
}
.template-gallery-copy h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 1.04;
}
.template-gallery-copy p {
  max-width: 680px;
}
.template-gallery-copy > p:not(.eyebrow):not(.trial-note) {
  color: #425850;
  font-size: clamp(1.08rem, 1.75vw, 1.28rem);
  line-height: 1.62;
}
.template-gallery-copy .trial-note {
  color: #576964;
  font-size: 1rem;
}
.template-gallery-visual {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.74fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 14px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0) 32%),
    linear-gradient(140deg, #102821 0%, #143c4a 54%, #0f2430 100%);
  box-shadow: 0 28px 90px rgba(15, 36, 48, 0.22);
}
.template-gallery-showcase {
  min-height: auto;
  display: block;
  padding: 16px;
  border: 1px solid rgba(18, 50, 44, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 18%, rgba(242, 184, 75, 0.22), transparent 28%),
    linear-gradient(150deg, #f6fbf8 0%, #e8f4ef 52%, #dbeee8 100%);
  box-shadow: 0 28px 80px rgba(23, 33, 31, 0.13);
}
.marketplace-window {
  overflow: hidden;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(23, 33, 31, 0.12);
}
.marketplace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
}
.marketplace-toolbar div {
  display: grid;
  gap: 2px;
}
.marketplace-toolbar strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.marketplace-toolbar span {
  color: #5a6e68;
  font-size: 0.96rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.marketplace-toolbar a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}
.marketplace-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}
.marketplace-preview-card {
  display: grid;
  gap: 7px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.07);
}
.marketplace-preview-card picture {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #e8f1ef;
}
.marketplace-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.marketplace-preview-card span {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.marketplace-preview-card small {
  color: #5d6c67;
  font-size: 0.82rem;
  font-weight: 740;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.marketplace-launch-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(18, 50, 44, 0.1);
  background: #f8fbfa;
}
.marketplace-launch-strip span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-right: 1px solid rgba(18, 50, 44, 0.1);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}
.marketplace-launch-strip span:last-child {
  border-right: 0;
}
.gallery-scene {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 24px;
  background: #102821;
  box-shadow: 0 18px 36px rgba(3, 18, 24, 0.18);
}
.gallery-scene-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
}
.gallery-scene-large {
  grid-row: span 2;
}
.gallery-scene .template-browser-frame {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: none;
}
.gallery-scene .template-browser-frame picture,
.gallery-scene .template-browser-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-scene .template-browser-frame picture {
  height: calc(100% - 34px);
}
.gallery-scene .template-browser-frame img {
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}
.gallery-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 13, 16, 0) 36%, rgba(4, 13, 16, 0.78));
}
.gallery-scene div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 5px;
  color: #fff;
}
.gallery-scene span {
  color: #c8efe5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-scene strong {
  max-width: 360px;
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
  line-height: 1.13;
}
.gallery-scene-large strong {
  max-width: 460px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.template-proof-row {
  width: var(--container);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 8px;
  border-radius: 26px;
  background: #0f2430;
  box-shadow: 0 18px 48px rgba(15, 36, 48, 0.14);
}
.template-proof-row span {
  display: grid;
  gap: 7px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.template-proof-row span:last-child {
  border-right: 0;
}
.template-proof-row strong {
  color: #fff;
  font-size: 1.07rem;
}
.template-proof-row small {
  color: #d4e5df;
  font-size: 0.98rem;
  line-height: 1.45;
}
.template-filter-bar button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}
.template-filter-bar button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.template-category-section {
  padding-top: 8px;
}
.template-category-grid article {
  background:
    linear-gradient(145deg, rgba(223, 246, 236, 0.54), transparent 58%),
    var(--white);
}
.template-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.template-market-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(23, 33, 31, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.template-market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 68px rgba(23, 33, 31, 0.14);
}
.template-market-card[hidden] {
  display: none;
}
.template-screenshot-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  padding: 12px;
  background: linear-gradient(145deg, #0f2430, #173f4f);
}
.template-screenshot-link .template-browser-frame {
  position: relative;
  z-index: 0;
  border-radius: 18px;
}
.template-screenshot-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(16, 40, 33, 0), rgba(16, 40, 33, 0.78));
}
.template-screenshot-link .live-preview-pill {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
}
.template-market-body {
  flex: 1;
  padding: 24px;
  display: grid;
  gap: 12px;
}
.template-market-body h2 {
  font-size: clamp(1.38rem, 2.25vw, 1.76rem);
  line-height: 1.12;
}
.template-market-body p,
.template-market-includes {
  margin: 0;
}
.template-market-body p {
  color: #4d615b;
  font-size: 1.03rem;
  line-height: 1.48;
}
.template-market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.template-market-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
}
.template-market-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.template-market-includes span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #d6e5df;
  border-radius: 999px;
  background: #f7fbf9;
  color: #23483f;
  font-size: 0.92rem;
  font-weight: 830;
}
.template-market-card .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 8px;
}
.template-market-card .card-actions .button {
  width: 100%;
  justify-content: center;
}

.template-demo {
  background: #fbf8ef;
}
.template-demo .site-header,
.template-demo .site-footer {
  display: none;
}
.driving-demo {
  --demo-primary: #0f766e;
  --demo-accent: #f2b84b;
  --demo-ink: #17211f;
  --demo-bg: #fbf8ef;
  --demo-soft: #eef7f1;
  min-height: 100vh;
  color: var(--demo-ink);
  background: var(--demo-bg);
}
.demo-layout-calm-centered {
  --demo-primary: #2458a7;
  --demo-accent: #8ab9d6;
  --demo-bg: #f4f8fb;
  --demo-soft: #e8f2f8;
}
.demo-layout-urban-editorial {
  --demo-primary: #101716;
  --demo-accent: #ee6f57;
  --demo-ink: #f8fff9;
  --demo-bg: #111817;
  --demo-soft: #1d2826;
}
.demo-layout-family-neighborhood {
  --demo-primary: #477d45;
  --demo-accent: #f2b84b;
  --demo-bg: #fff7e8;
  --demo-soft: #fff0c9;
}
.demo-layout-safety-checklist {
  --demo-primary: #17352f;
  --demo-accent: #f2b84b;
  --demo-bg: #eef4f0;
  --demo-soft: #dfe9e3;
}
.demo-layout-bilingual-blocks {
  --demo-primary: #0f766e;
  --demo-accent: #e7a83f;
  --demo-bg: #fffaf0;
  --demo-soft: #e0f5f2;
}
.demo-layout-solo-profile {
  --demo-primary: #2458a7;
  --demo-accent: #73a2d9;
  --demo-bg: #f6fbff;
  --demo-soft: #dbeeff;
}
.demo-layout-location-finder {
  --demo-primary: #0b4f4a;
  --demo-accent: #477d45;
  --demo-bg: #eef6f1;
  --demo-soft: #dcebe3;
}
.demo-layout-fast-track {
  --demo-primary: #1f2422;
  --demo-accent: #ee6f57;
  --demo-bg: #fff7f2;
  --demo-soft: #ffe1d5;
}
.demo-layout-classic-school {
  --demo-primary: #203a36;
  --demo-accent: #9e8759;
  --demo-bg: #f8f5eb;
  --demo-soft: #ebe4d0;
}
.demo-preview-bar,
.demo-site-nav,
.demo-site-hero,
.demo-section,
.demo-site-footer {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}
.demo-preview-bar {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  color: var(--demo-ink);
}
.demo-preview-bar > div,
.demo-preview-bar nav,
.demo-site-nav nav,
.demo-site-footer > div,
.demo-site-footer nav {
  max-width: 100%;
  min-width: 0;
}
.demo-preview-bar span {
  color: color-mix(in srgb, var(--demo-ink), transparent 25%);
}
.demo-preview-bar nav,
.demo-site-nav nav,
.demo-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.demo-preview-bar a {
  font-weight: 850;
  color: var(--demo-primary);
}
.demo-site-nav {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--demo-primary), transparent 82%);
  border-bottom: 1px solid color-mix(in srgb, var(--demo-primary), transparent 82%);
}
.demo-school-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  max-width: 100%;
  min-width: 0;
}
.demo-school-brand strong,
.demo-about-card strong,
.demo-contact-card input,
.demo-site-footer p {
  overflow-wrap: anywhere;
}
.demo-school-brand span,
.demo-avatar {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--demo-primary);
  color: #fff;
  font-weight: 900;
}
.demo-site-nav nav a {
  color: var(--demo-ink);
  font-size: 0.95rem;
  font-weight: 850;
}
.demo-nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius);
  background: var(--demo-primary);
  color: #fff !important;
}
.demo-site-hero {
  min-height: min(760px, calc(100vh - 126px));
  padding: 62px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  gap: 44px;
  align-items: center;
}
.demo-hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}
.demo-hero-copy p {
  max-width: 680px;
  color: color-mix(in srgb, var(--demo-ink), transparent 22%);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.demo-kicker {
  margin: 0 0 12px;
  color: var(--demo-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  text-transform: uppercase;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.demo-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.demo-trust-strip span {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 76%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  font-weight: 850;
}
.demo-hero-media {
  position: relative;
}
.demo-hero-media picture {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 76%);
  background: var(--demo-soft);
  box-shadow: 0 20px 58px rgba(23, 33, 31, 0.16);
}
.demo-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}
.demo-availability-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.12);
}
.demo-availability-card span {
  color: var(--muted);
  font-weight: 850;
}
.demo-availability-card strong {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--demo-soft);
  color: var(--demo-primary);
  font-size: 0.84rem;
}
.demo-section {
  padding: 76px 0;
  display: grid;
  gap: 28px;
}
.demo-section-heading {
  max-width: 760px;
}
.demo-section-heading p,
.demo-section > div > p {
  color: color-mix(in srgb, var(--demo-ink), transparent 28%);
}
.demo-about-section,
.demo-booking-preview,
.demo-service-section,
.demo-enroll-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.62fr);
  align-items: center;
}
.demo-about-card,
.demo-booking-panel,
.demo-contact-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 76%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}
.demo-about-card span {
  color: var(--muted);
  font-weight: 850;
}
.demo-about-card strong {
  color: var(--demo-primary);
}
.demo-package-grid,
.demo-instructor-grid,
.demo-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.demo-package-grid article,
.demo-instructor-grid article {
  min-height: 250px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}
.demo-package-grid article > strong {
  color: var(--demo-primary);
  font-size: 1.6rem;
}
.demo-package-grid article > a {
  color: var(--demo-primary);
  font-weight: 900;
}
.demo-package-grid span {
  color: var(--demo-primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.demo-booking-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--demo-ink);
  font-weight: 800;
}
.demo-area-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--demo-soft);
  color: var(--demo-primary);
  font-weight: 900;
}
.demo-faq-list {
  display: grid;
  gap: 12px;
}
.demo-faq-list details {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}
.demo-faq-list summary {
  cursor: pointer;
  color: var(--demo-primary);
  font-weight: 900;
}
.demo-contact-card label {
  display: grid;
  gap: 6px;
}
.demo-site-footer {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid color-mix(in srgb, var(--demo-primary), transparent 80%);
}
.demo-site-footer p {
  margin: 4px 0;
  color: color-mix(in srgb, var(--demo-ink), transparent 30%);
}
.demo-site-footer a {
  color: var(--demo-primary);
  font-weight: 850;
}
.demo-layout-urban-editorial .button,
.demo-layout-fast-track .button {
  background: var(--demo-accent);
  border-color: var(--demo-accent);
}
.demo-layout-urban-editorial .button-secondary,
.demo-layout-fast-track .button-secondary {
  background: transparent;
  color: var(--demo-ink);
}
.demo-layout-calm-centered .demo-site-hero {
  text-align: center;
  grid-template-columns: 1fr;
  max-width: 960px;
}
.demo-layout-calm-centered .demo-hero-copy,
.demo-layout-calm-centered .demo-hero-copy h1,
.demo-layout-calm-centered .demo-hero-copy p {
  margin-left: auto;
  margin-right: auto;
}
.demo-layout-calm-centered .demo-actions,
.demo-layout-calm-centered .demo-trust-strip {
  justify-content: center;
}
.demo-layout-urban-editorial .demo-preview-bar span,
.demo-layout-urban-editorial .demo-section-heading p,
.demo-layout-urban-editorial .demo-section > div > p,
.demo-layout-urban-editorial .demo-site-footer p {
  color: #d8e6df;
}
.demo-layout-urban-editorial .demo-site-nav,
.demo-layout-urban-editorial .demo-site-footer {
  border-color: #344642;
}
.demo-layout-urban-editorial .demo-site-nav nav a,
.demo-layout-urban-editorial .demo-school-brand {
  color: #f8fff9;
}
.demo-layout-location-finder .demo-site-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
}
.demo-layout-classic-school .demo-site-nav {
  border-top: 4px solid var(--demo-primary);
}

@media (max-width: 1180px) {
  .article-index-hero,
  .article-detail-hero {
    grid-template-columns: 1fr;
  }
  .featured-article-card {
    max-width: 860px;
  }
  .article-grid,
  .article-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .template-gallery-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1fr);
    gap: 32px;
  }
  .template-gallery-copy h1 {
    max-width: 560px;
    font-size: clamp(2.25rem, 4.4vw, 3rem);
  }
  .template-gallery-visual {
    width: 100%;
    min-height: 500px;
  }
  .template-gallery-showcase {
    min-height: auto;
  }
  .template-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .template-gallery-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .template-gallery-copy h1 {
    max-width: 860px;
    font-size: clamp(2.3rem, 6vw, 3.45rem);
  }
  .template-gallery-visual {
    max-width: 940px;
    min-height: 500px;
    margin: 0 auto;
  }
  .template-gallery-showcase {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .app-header { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .app-header { padding: 14px 18px; }
  .site-menu-toggle { display: inline-flex; margin-left: auto; }
  .site-menu-panel {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(21, 51, 46, 0.12);
  }
  .site-menu-panel.is-open { display: flex; }
  .site-menu-panel .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
  }
  .site-menu-panel .site-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f7fbfa;
  }
  .site-menu-panel .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .site-menu-panel .sales-phone-link,
  .site-menu-panel .text-link,
  .site-menu-panel .button {
    width: 100%;
    justify-content: center;
  }
  .product-hero, .form-shell, .login-shell, .dashboard-layout, .launch-panel, .booking-settings-preview,
  .subscription-hero, .subscription-plan-editor, .user-invite-layout, .roles-hero, .reminders-hero, .reminder-editor-card,
  .communication-proof-hero, .communication-log-main,
  .help-hero-panel,
  .split-hero, .safety-hero, .bilingual-hero, .solo-profile-hero, .fast-hero, .tenant-hero, .urban-editorial-grid,
  .template-gallery-hero, .demo-site-hero, .demo-about-section, .demo-booking-preview, .demo-service-section, .demo-enroll-section,
  .demo-layout-location-finder .demo-site-hero,
  .schedule-sales-hero, .schedule-rules-section, .schedule-settings-band, .schedule-dashboard-section,
  .features-hero, .feature-operations-section,
  .home-hero-banner, .home-pricing-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-hero-banner {
    margin-top: 16px;
  }
  .home-conversion-strip,
  .home-workflow-ribbon,
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-pricing-callout {
    max-width: 520px;
  }
  .schedule-proof-grid,
  .student-flow-grid,
  .dashboard-calendar-grid,
  .feature-proof-strip,
  .feature-pillar-grid,
  .feature-workflow,
  .subscription-usage-grid,
  .subscription-plan-grid,
  .user-usage-strip,
  .user-card-actions,
  .role-hierarchy-flow,
  .role-scope-grid,
  .reminder-type-strip,
  .help-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-compliance-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .rules-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-detail-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .schedule-settings-band {
    padding-left: max(16px, calc((100% - 720px) / 2));
    padding-right: max(16px, calc((100% - 720px) / 2));
  }
  .template-gallery-visual {
    min-height: 480px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .template-gallery-showcase {
    min-height: auto;
  }
  .marketplace-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .template-gallery-visual .gallery-scene-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 270px;
  }
  .template-proof-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .template-proof-row span {
    border-right: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
  }
  .demo-preview-bar,
  .demo-site-nav,
  .demo-site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-availability-card {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .tenant-header { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .dashboard-sidebar { position: static; }
  .current-template-panel,
  .dashboard-form-grid,
  .dashboard-wide-form .dashboard-form-grid {
    grid-template-columns: 1fr;
  }
  .template-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-file-preview-card {
    grid-template-columns: 1fr;
  }
  .hours-editor-preview div { grid-template-columns: 1fr; }
  .hours-table article { grid-template-columns: 1fr; }
  .lesson-action-form,
  .inline-controls {
    grid-template-columns: 1fr;
  }
  .comparison-table > div { grid-template-columns: 1fr 1fr; }
  .pricing-grid-upgraded { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .tenant-contact-strip { flex-direction: column; align-items: flex-start; }
  .dashboard-layout,
  .dashboard-sidebar,
  .dashboard-main,
  .dashboard-main > section {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .cms-editor-card,
  .cms-coverage-grid,
  .guided-cms-status,
  .guided-editor-layout,
  .guided-section-card,
  .dashboard-task-grid,
  .cms-page-guidance,
  .role-hierarchy-strip,
  .user-access-list .record-card,
  .role-matrix .record-card,
  .cms-section-row {
    grid-template-columns: 1fr;
  }
  .cms-section-thumb {
    width: 100%;
    height: 150px;
  }
  .guided-page-summary {
    position: static;
  }
  .account-security-hero,
  .password-settings-grid,
  .password-field-row-two,
  .calendar-settings-actions,
  .calendar-setup-callout,
  .calendar-filter-note,
  .resource-inventory-summary,
  .resource-inventory-grid,
  .subscription-usage-grid,
  .subscription-plan-grid,
  .user-usage-strip,
  .user-card-actions,
  .staff-profile-row,
  .role-hierarchy-flow,
  .role-scope-grid,
  .role-card-top,
  .reminders-hero,
  .reminder-editor-card,
  .reminder-type-strip,
  .reminder-form .dashboard-form-grid,
  .student-communication-card,
  .help-hero-panel,
  .help-article-grid,
  .help-section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .help-article-card[open] {
    grid-column: auto;
  }
  .password-rules-card {
    position: static;
  }
  .calendar-settings-actions .button-row,
  .split-heading .button-row {
    justify-content: flex-start;
  }
  .guided-page-grid {
    grid-template-columns: 1fr;
  }
  .guided-page-card-top,
  .guided-page-card-footer,
  .guided-editor-hero-actions {
    justify-content: flex-start;
  }
  .enrollment-filter-form {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .guided-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 24px, 366px); }
  .demo-preview-bar,
  .demo-site-nav,
  .demo-site-hero,
  .demo-section,
  .demo-site-footer {
    width: min(100% - 24px, 1200px);
  }
  .site-nav, .header-actions, .hero-actions, .card-actions { width: 100%; }
  .manual-notice-template-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .dashboard-layout {
    width: min(100% - 24px, 420px);
    grid-template-columns: minmax(0, 1fr);
  }
  .communication-summary-grid,
  .communication-filter-bar,
  .communication-meta-grid,
  .manual-notice-grid,
  .manual-notice-recipient-grid,
  .manual-notice-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-sidebar,
  .dashboard-main {
    width: 100%;
  }
  .template-gallery-visual {
    width: 100%;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
    border-radius: 24px;
  }
  .template-gallery-showcase {
    display: block;
    padding: 10px;
  }
  .marketplace-toolbar,
  .marketplace-launch-strip {
    grid-template-columns: 1fr;
  }
  .marketplace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .marketplace-toolbar a {
    width: 100%;
  }
  .marketplace-preview-grid,
  .home-article-grid {
    grid-template-columns: 1fr;
  }
  .marketplace-launch-strip span {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 50, 44, 0.1);
  }
  .marketplace-launch-strip span:last-child {
    border-bottom: 0;
  }
  .template-gallery-visual .gallery-scene,
  .template-gallery-visual .gallery-scene-large {
    min-height: 240px;
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-scene {
    border-radius: 18px;
  }
  .gallery-scene div {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .template-proof-row { grid-template-columns: 1fr; }
  .template-market-grid,
  .template-marketplace-grid {
    grid-template-columns: 1fr;
  }
  .template-market-card .card-actions {
    grid-template-columns: 1fr;
  }
  .template-filter-bar {
    grid-template-columns: 1fr;
  }
  .enrollment-filter-form {
    grid-template-columns: 1fr;
  }
  .enrollment-filter-form .button {
    width: 100%;
  }
  .contact-route-grid {
    grid-template-columns: 1fr;
  }
  .login-shell {
    width: min(100% - 24px, 420px);
    padding: 42px 0 54px;
  }
  .login-copy h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 8vw, 2.65rem);
  }
  .login-proof-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .login-card {
    border-radius: 22px;
    padding: 22px;
  }
  .login-card-footer {
    flex-direction: column;
    gap: 8px;
  }
  .template-filter-bar button {
    width: 100%;
  }
  .demo-site-hero { padding-top: 44px; }
  .demo-hero-copy h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .article-index-hero,
  .article-detail-hero {
    padding-top: 44px;
  }
  .article-grid,
  .article-grid-related {
    grid-template-columns: 1fr;
  }
  .article-visual-large {
    min-height: 310px;
  }
  .article-checklist {
    grid-template-columns: 1fr;
  }
  .article-cta-band {
    padding: 24px;
    border-radius: 22px;
  }
  .demo-site-nav nav,
  .demo-site-footer nav {
    gap: 8px;
  }
  .demo-site-nav nav a,
  .demo-site-footer a {
    font-size: 0.88rem;
  }
  .demo-section { padding: 52px 0; }
  .tenant-header nav, .tenant-header .button { width: 100%; }
  .tenant-header nav { display: grid; grid-template-columns: 1fr; }
  .header-actions { flex-direction: column; align-items: stretch; }
.header-actions .text-link { width: 100%; }
  .button { width: 100%; }
  .section { padding: 58px 0; }
  .band { padding-left: 12px; padding-right: 12px; }
  .shot-grid, .feature-grid, .pricing-grid, .workflow-grid, .dashboard-cards, .template-row, .template-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-banner {
    width: min(100% - 24px, 420px);
    padding: 24px;
    border-radius: 22px;
  }
  .home-hero-copy h1 {
    font-size: clamp(1.78rem, 7vw, 2.25rem);
  }
  .home-hero-visual {
    display: block;
    min-height: 390px;
  }
  .home-hero-visual picture,
  .home-hero-visual img {
    min-height: 390px;
    height: 390px;
    border-width: 6px;
    border-radius: 20px;
  }
  .home-hero-visual::after {
    display: block;
    inset: 6px;
    border-radius: 14px;
  }
  .home-hero-overlay.enrollment {
    display: none;
  }
  .home-hero-overlay.booking {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 118px;
    width: auto;
    padding: 12px 14px;
  }
  .hero-dashboard-card {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 13px;
  }
  .hero-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-dashboard-grid span {
    min-height: 62px;
    padding: 8px;
    font-size: 0.7rem;
  }
  .hero-dashboard-grid b {
    font-size: 1.22rem;
  }
  .price-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .plan-badge,
  .limit-row span {
    white-space: normal;
  }
  .home-conversion-strip,
  .home-workflow-ribbon,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
  .home-workflow-ribbon article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-workflow-ribbon article:last-child {
    border-bottom: 0;
  }
  .home-feature-grid article {
    min-height: auto;
  }
  .home-template-card picture {
    height: 190px;
  }
  .home-pricing-band {
    padding-left: 12px;
    padding-right: 12px;
  }
  .home-pricing-wrap .price-card {
    padding: 24px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-nav {
    position: static;
  }
  .split-heading { flex-direction: column; align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-link-groups { grid-template-columns: 1fr; }
  .comparison-table > div { grid-template-columns: 1fr; }
  .location-search { grid-template-columns: 1fr; }
  .filter-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-pills span { text-align: center; overflow-wrap: anywhere; }
  .features-hero { padding-top: 46px; gap: 28px; }
  .command-metrics,
  .command-board,
  .feature-proof-strip,
  .feature-pillar-grid,
  .feature-workflow {
    grid-template-columns: 1fr;
  }
  .command-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .feature-matrix-table {
    min-width: 760px;
  }
  .feature-compliance-note {
    padding: 24px;
  }
  .schedule-sales-hero { padding-top: 46px; gap: 30px; }
  .schedule-visual-top,
  .dashboard-calendar-toolbar,
  .settings-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .schedule-calendar-card,
  .settings-days div,
  .schedule-proof-grid,
  .student-flow-grid,
  .rules-matrix,
  .dashboard-calendar-grid {
    grid-template-columns: 1fr;
  }
  .calendar-hour {
    padding-top: 4px;
  }
  .rules-matrix span {
    min-height: 62px;
  }
  .dashboard-calendar-grid {
    min-height: auto;
  }
  .day-column {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .day-column:first-child {
    border-top: 0;
  }
  .settings-days button {
    width: 100%;
  }
}

/* Template demo redesign pass: richer full-site previews with distinct layout systems. */
.template-demo .site-header,
.template-demo .site-footer {
  display: none;
}

.template-demo {
  background: var(--demo-bg, #fffdf8);
}

.driving-demo {
  --demo-primary: #0f766e;
  --demo-accent: #f2b84b;
  --demo-bg: #fffdf8;
  --demo-ink: #16211f;
  --demo-soft: #edf7f2;
  --demo-card: rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, color-mix(in srgb, var(--demo-accent), transparent 78%), transparent 24rem),
    linear-gradient(180deg, var(--demo-bg), color-mix(in srgb, var(--demo-bg), #ffffff 25%));
  color: var(--demo-ink);
  overflow: hidden;
}

.demo-preview-bar,
.demo-site-nav,
.demo-site-hero,
.demo-proof-strip,
.demo-section,
.demo-site-footer {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.demo-preview-bar {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 10px;
  color: var(--demo-ink);
  font-size: 0.92rem;
}

.demo-preview-bar > div,
.demo-preview-bar nav,
.demo-site-nav nav,
.demo-site-footer > div,
.demo-site-footer nav {
  min-width: 0;
  max-width: 100%;
}

.demo-preview-bar span {
  color: color-mix(in srgb, var(--demo-ink), transparent 30%);
}

.demo-preview-bar nav,
.demo-site-nav nav,
.demo-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.demo-preview-bar a,
.demo-site-footer a {
  color: var(--demo-primary);
  font-weight: 900;
}

.demo-site-nav {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--demo-primary), transparent 82%);
  border-bottom: 1px solid color-mix(in srgb, var(--demo-primary), transparent 82%);
}

.demo-school-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: var(--demo-ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.demo-school-brand span,
.demo-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--demo-primary);
  color: #fff;
  font-weight: 950;
}

.demo-school-brand strong,
.demo-about-card strong,
.demo-contact-card input,
.demo-site-footer p,
.demo-contact-card p {
  overflow-wrap: anywhere;
}

.demo-site-nav nav a {
  color: var(--demo-ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.demo-nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius);
  background: var(--demo-primary);
  color: #fff !important;
}

.demo-site-hero {
  min-height: min(820px, calc(100vh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  grid-template-areas:
    "copy media"
    "form media";
  align-items: center;
  gap: 24px 46px;
  padding: 68px 0 56px;
}

.demo-hero-copy {
  grid-area: copy;
}

.demo-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  letter-spacing: 0;
}

.demo-hero-copy > p {
  max-width: 680px;
  color: color-mix(in srgb, var(--demo-ink), transparent 24%);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.demo-kicker {
  margin: 0 0 12px;
  color: var(--demo-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.demo-actions .button {
  width: auto;
}

.demo-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.demo-trust-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 76%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: color-mix(in srgb, var(--demo-ink), transparent 12%);
  font-size: 0.86rem;
  font-weight: 900;
}

.demo-hero-media {
  grid-area: media;
  position: relative;
}

.demo-hero-media picture {
  display: block;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 74%);
  border-radius: 30px;
  background: var(--demo-soft);
  box-shadow: 0 24px 72px rgba(23, 33, 31, 0.18);
}

.demo-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: 14 / 10;
  object-fit: cover;
}

.demo-availability-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.16);
}

.demo-availability-card span {
  color: var(--muted);
  font-weight: 900;
}

.demo-availability-card strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--demo-soft);
  color: var(--demo-primary);
  font-size: 0.84rem;
}

.demo-hero-form {
  grid-area: form;
  width: min(100%, 540px);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: 20px;
  background: var(--demo-card);
  box-shadow: 0 16px 38px rgba(23, 33, 31, 0.1);
}

.demo-form-title {
  grid-column: 1 / -1;
  color: var(--demo-primary);
  font-weight: 950;
}

.demo-hero-form label,
.demo-contact-card label {
  display: grid;
  gap: 6px;
  color: color-mix(in srgb, var(--demo-ink), transparent 24%);
  font-size: 0.86rem;
  font-weight: 900;
}

.demo-hero-form input,
.demo-contact-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: 10px;
  background: #fff;
  color: var(--demo-ink);
  font-weight: 850;
}

.demo-hero-form .button {
  width: auto;
  min-height: 44px;
  white-space: nowrap;
}

.demo-hero-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 750;
}

.demo-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 42px;
}

.demo-proof-strip article {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 80%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.demo-proof-strip strong {
  color: var(--demo-primary);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
}

.demo-proof-strip span {
  color: color-mix(in srgb, var(--demo-ink), transparent 28%);
  font-weight: 850;
}

.demo-section {
  padding: 86px 0;
  display: grid;
  gap: 28px;
}

.demo-section-heading,
.demo-section-copy {
  max-width: 780px;
}

.demo-section-heading p,
.demo-section-copy p,
.demo-section > div > p {
  color: color-mix(in srgb, var(--demo-ink), transparent 28%);
}

.demo-about-section,
.demo-booking-preview,
.demo-service-section,
.demo-contact-section,
.demo-enroll-section {
  grid-template-columns: minmax(0, 0.84fr) minmax(300px, 0.6fr);
  align-items: center;
}

.demo-about-card,
.demo-booking-panel,
.demo-contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 76%);
  border-radius: 22px;
  background: var(--demo-card);
  box-shadow: 0 16px 40px rgba(23, 33, 31, 0.08);
}

.demo-about-card span,
.demo-contact-card span,
.demo-booking-panel span {
  color: var(--muted);
  font-weight: 900;
}

.demo-about-card strong,
.demo-contact-card strong {
  color: var(--demo-primary);
}

.demo-signature-grid,
.demo-package-grid,
.demo-instructor-grid,
.demo-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.demo-signature-grid article,
.demo-package-grid article,
.demo-instructor-grid article {
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: 22px;
  background: var(--demo-card);
  box-shadow: 0 16px 42px rgba(23, 33, 31, 0.07);
}

.demo-signature-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--demo-primary);
  color: #fff;
  font-weight: 950;
}

.demo-package-grid article {
  min-height: 300px;
  justify-content: stretch;
}

.demo-package-grid article > strong {
  color: var(--demo-primary);
  font-size: 1.75rem;
}

.demo-package-grid article > a {
  align-self: end;
  color: var(--demo-primary);
  font-weight: 950;
}

.demo-package-grid span {
  color: var(--demo-primary);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-booking-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--demo-ink);
  font-weight: 850;
}

.demo-area-grid span {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--demo-soft);
  color: var(--demo-primary);
  font-weight: 950;
  text-align: center;
}

.demo-faq-list {
  display: grid;
  gap: 12px;
}

.demo-faq-list details {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
  border-radius: 18px;
  background: var(--demo-card);
}

.demo-faq-list summary {
  cursor: pointer;
  color: var(--demo-primary);
  font-weight: 950;
}

.demo-site-footer {
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
}

.demo-site-footer p {
  margin: 4px 0;
  color: color-mix(in srgb, var(--demo-ink), transparent 30%);
}

.demo-layout-teen-split {
  --demo-primary: #0f766e;
  --demo-accent: #f2b84b;
  --demo-bg: #fff8e6;
  --demo-soft: #eaf8ef;
}
.demo-layout-teen-split .demo-site-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(400px, 0.88fr);
}
.demo-layout-teen-split .demo-signature-section {
  padding: 70px max(20px, calc((100% - 1200px) / 2));
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, #e7f7ef, #fff4c8);
}

.demo-layout-calm-centered {
  --demo-primary: #2458a7;
  --demo-accent: #73a2d9;
  --demo-bg: #f4f9ff;
  --demo-soft: #dcecff;
}
.demo-layout-calm-centered .demo-site-hero {
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "form" "media";
  max-width: 980px;
  text-align: center;
}
.demo-layout-calm-centered .demo-hero-copy,
.demo-layout-calm-centered .demo-hero-copy h1,
.demo-layout-calm-centered .demo-hero-copy p,
.demo-layout-calm-centered .demo-hero-form {
  margin-inline: auto;
}
.demo-layout-calm-centered .demo-actions,
.demo-layout-calm-centered .demo-trust-strip {
  justify-content: center;
}
.demo-layout-calm-centered .demo-hero-media picture {
  min-height: 360px;
}

.demo-layout-urban-editorial {
  --demo-primary: #ee6f57;
  --demo-accent: #f3c957;
  --demo-bg: #101820;
  --demo-ink: #f7fff9;
  --demo-soft: #263640;
  --demo-card: rgba(24, 36, 44, 0.9);
  background:
    radial-gradient(circle at 85% 8%, rgba(238, 111, 87, 0.26), transparent 22rem),
    linear-gradient(180deg, #101820, #18262d);
}
.demo-layout-urban-editorial .demo-site-nav,
.demo-layout-urban-editorial .demo-site-footer {
  border-color: rgba(255, 255, 255, 0.16);
}
.demo-layout-urban-editorial .demo-site-nav nav a,
.demo-layout-urban-editorial .demo-school-brand,
.demo-layout-urban-editorial .demo-preview-bar,
.demo-layout-urban-editorial .demo-site-footer p {
  color: #f7fff9;
}
.demo-layout-urban-editorial .button {
  background: var(--demo-primary);
  border-color: var(--demo-primary);
}
.demo-layout-urban-editorial .button-secondary {
  background: transparent;
  color: #f7fff9;
  border-color: rgba(255, 255, 255, 0.25);
}
.demo-layout-urban-editorial .demo-site-hero {
  grid-template-columns: minmax(0, 0.76fr) minmax(460px, 1fr);
}
.demo-layout-urban-editorial .demo-hero-media picture {
  border-radius: 0 42px 42px 0;
}

.demo-layout-family-neighborhood {
  --demo-primary: #477d45;
  --demo-accent: #f0b76a;
  --demo-bg: #fff8ec;
  --demo-soft: #e7f5e5;
}
.demo-layout-family-neighborhood .demo-proof-strip article,
.demo-layout-family-neighborhood .demo-package-grid article,
.demo-layout-family-neighborhood .demo-instructor-grid article {
  border-radius: 30px;
}
.demo-layout-family-neighborhood .demo-site-hero {
  grid-template-columns: minmax(0, 0.84fr) minmax(390px, 0.92fr);
}

.demo-layout-safety-checklist {
  --demo-primary: #17352f;
  --demo-accent: #ee6f57;
  --demo-bg: #f3f7f4;
  --demo-soft: #dce8e0;
}
.demo-layout-safety-checklist .demo-signature-grid {
  grid-template-columns: 1fr;
  max-width: 900px;
}
.demo-layout-safety-checklist .demo-signature-grid article {
  min-height: auto;
  grid-template-columns: auto minmax(0, 0.35fr) minmax(0, 1fr);
  align-items: center;
}
.demo-layout-safety-checklist .demo-signature-grid p {
  margin: 0;
}

.demo-layout-bilingual-blocks {
  --demo-primary: #0f766e;
  --demo-accent: #d99f37;
  --demo-bg: #fff9ee;
  --demo-soft: #dcf5f1;
}
.demo-layout-bilingual-blocks .demo-site-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.78fr);
  grid-template-areas:
    "copy form"
    "media form";
}
.demo-layout-bilingual-blocks .demo-hero-form {
  align-self: stretch;
  grid-template-columns: 1fr;
  align-content: center;
}
.demo-layout-bilingual-blocks .demo-hero-media picture {
  min-height: 300px;
}

.demo-layout-solo-profile {
  --demo-primary: #2458a7;
  --demo-accent: #7cafdf;
  --demo-bg: #f5fbff;
  --demo-soft: #e0efff;
}
.demo-layout-solo-profile .demo-site-hero {
  grid-template-columns: minmax(0, 0.7fr) minmax(380px, 0.72fr) minmax(260px, 0.42fr);
  grid-template-areas: "copy media form";
}
.demo-layout-solo-profile .demo-hero-form {
  grid-template-columns: 1fr;
}
.demo-layout-solo-profile .demo-instructor-grid {
  grid-template-columns: minmax(280px, 520px);
}
.demo-layout-solo-profile .demo-instructor-grid article {
  min-height: 300px;
  border-radius: 34px;
}

.demo-layout-location-finder {
  --demo-primary: #0b4f4a;
  --demo-accent: #477d45;
  --demo-bg: #eef7f1;
  --demo-soft: #dceee2;
}
.demo-layout-location-finder .demo-site-hero {
  grid-template-columns: minmax(0, 0.75fr) minmax(460px, 1fr);
}
.demo-layout-location-finder .demo-area-grid {
  grid-template-columns: repeat(4, 1fr);
}
.demo-layout-location-finder .demo-area-grid span {
  min-height: 120px;
  border-radius: 22px;
}

.demo-layout-fast-track {
  --demo-primary: #1f2422;
  --demo-accent: #ee6f57;
  --demo-bg: #fff5ef;
  --demo-soft: #ffe1d5;
}
.demo-layout-fast-track .button {
  background: var(--demo-accent);
  border-color: var(--demo-accent);
}
.demo-layout-fast-track .demo-site-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.72fr);
  grid-template-areas:
    "copy form"
    "media form";
}
.demo-layout-fast-track .demo-hero-form {
  grid-template-columns: 1fr;
  align-self: stretch;
  align-content: center;
  border: 2px solid var(--demo-accent);
}
.demo-layout-fast-track .demo-programs-section {
  padding-top: 34px;
}
.demo-layout-fast-track .demo-package-grid {
  grid-template-columns: 1fr;
  max-width: 960px;
}
.demo-layout-fast-track .demo-package-grid article {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.demo-layout-classic-school {
  --demo-primary: #203a36;
  --demo-accent: #a18858;
  --demo-bg: #f8f5eb;
  --demo-soft: #ebe4d0;
}
.demo-layout-classic-school .demo-site-nav {
  border-top: 5px solid var(--demo-primary);
}
.demo-layout-classic-school .demo-site-hero,
.demo-layout-classic-school .demo-section,
.demo-layout-classic-school .demo-proof-strip {
  width: min(100% - 40px, 1120px);
}
.demo-layout-classic-school .demo-package-grid article,
.demo-layout-classic-school .demo-contact-card,
.demo-layout-classic-school .demo-about-card {
  border-radius: 8px;
}

.demo-layout-urban-editorial .demo-hero-form input,
.demo-layout-urban-editorial .demo-contact-card input {
  background: #f7fff9;
  color: #142129;
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-text-fill-color: #142129;
}

.demo-layout-urban-editorial .demo-hero-form label,
.demo-layout-urban-editorial .demo-contact-card label,
.demo-layout-urban-editorial .demo-hero-form small,
.demo-layout-urban-editorial .demo-proof-strip span,
.demo-layout-urban-editorial .demo-about-card span,
.demo-layout-urban-editorial .demo-contact-card span,
.demo-layout-urban-editorial .demo-booking-panel span {
  color: rgba(247, 255, 249, 0.72);
}

.demo-layout-urban-editorial .demo-form-title,
.demo-layout-urban-editorial .demo-proof-strip strong,
.demo-layout-urban-editorial .demo-about-card strong,
.demo-layout-urban-editorial .demo-contact-card strong,
.demo-layout-urban-editorial .demo-booking-panel strong {
  color: #f7fff9;
}

.demo-layout-urban-editorial .demo-proof-strip article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(238, 111, 87, 0.35);
  box-shadow: none;
}

.demo-layout-urban-editorial .demo-section-heading p,
.demo-layout-urban-editorial .demo-section-copy p,
.demo-layout-urban-editorial .demo-signature-grid p,
.demo-layout-urban-editorial .demo-package-grid p,
.demo-layout-urban-editorial .demo-instructor-grid p,
.demo-layout-urban-editorial .demo-faq-list p,
.demo-layout-urban-editorial .demo-contact-card p,
.demo-layout-urban-editorial .demo-enroll-section p {
  color: rgba(247, 255, 249, 0.78);
}

.demo-layout-urban-editorial .demo-availability-card {
  color: #142129;
}

.demo-layout-urban-editorial .demo-availability-card span {
  color: #4c5b60;
}

.demo-layout-urban-editorial .demo-availability-card strong {
  background: #1f333d;
  color: var(--demo-accent);
}

.demo-hero-copy {
  min-width: 0;
}

.demo-hero-copy h1 {
  max-width: min(100%, 780px);
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .demo-site-hero,
  .demo-layout-teen-split .demo-site-hero,
  .demo-layout-urban-editorial .demo-site-hero,
  .demo-layout-family-neighborhood .demo-site-hero,
  .demo-layout-bilingual-blocks .demo-site-hero,
  .demo-layout-solo-profile .demo-site-hero,
  .demo-layout-location-finder .demo-site-hero,
  .demo-layout-fast-track .demo-site-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media" "form";
  }
  .demo-hero-form {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .demo-hero-form .button,
  .demo-hero-form small,
  .demo-form-title {
    grid-column: 1 / -1;
  }
  .demo-about-section,
  .demo-booking-preview,
  .demo-service-section,
  .demo-contact-section,
  .demo-enroll-section {
    grid-template-columns: 1fr;
  }
  .demo-proof-strip {
    grid-template-columns: 1fr 1fr;
  }
  .demo-layout-location-finder .demo-area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-layout-fast-track .demo-package-grid article {
    grid-template-columns: 1fr;
  }
  .demo-site-nav,
  .demo-site-footer,
  .demo-preview-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .driving-demo {
    width: 100vw;
    max-width: 100vw;
  }
  .demo-preview-bar,
  .demo-site-nav,
  .demo-site-hero,
  .demo-proof-strip,
  .demo-section,
  .demo-site-footer,
  .demo-layout-classic-school .demo-site-hero,
  .demo-layout-classic-school .demo-section,
  .demo-layout-classic-school .demo-proof-strip {
    width: min(100% - 24px, 1200px);
  }
  .demo-site-hero {
    min-height: auto;
    padding: 46px 0 34px;
  }
  .demo-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
  .demo-hero-form,
  .demo-proof-strip,
  .demo-layout-location-finder .demo-area-grid {
    grid-template-columns: 1fr;
  }
  .demo-hero-media picture,
  .demo-hero-media img,
  .demo-layout-calm-centered .demo-hero-media picture,
  .demo-layout-bilingual-blocks .demo-hero-media picture {
    min-height: 260px;
  }
  .demo-availability-card {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .demo-section {
    padding: 56px 0;
  }
  .demo-signature-section {
    padding-block: 56px;
  }
  .demo-layout-safety-checklist .demo-signature-grid article {
    grid-template-columns: 1fr;
  }
  .demo-actions .button,
  .demo-hero-form .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .demo-preview-bar,
  .demo-site-nav,
  .demo-site-hero,
  .demo-proof-strip,
  .demo-section,
  .demo-site-footer,
  .demo-layout-classic-school .demo-site-hero,
  .demo-layout-classic-school .demo-section,
  .demo-layout-classic-school .demo-proof-strip {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px);
  }
  .demo-preview-bar > *,
  .demo-site-nav > *,
  .demo-site-hero > *,
  .demo-proof-strip > *,
  .demo-section > *,
  .demo-site-footer > * {
    min-width: 0;
    max-width: 100%;
  }
  .demo-preview-bar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .demo-preview-bar nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .demo-preview-bar a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .demo-site-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .demo-school-brand {
    width: 100%;
  }
  .demo-site-nav nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .demo-site-nav nav a {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--demo-primary), transparent 78%);
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
  }
  .demo-site-nav .demo-nav-cta {
    grid-column: 1 / -1;
    border-radius: 12px;
  }
  .demo-hero-copy,
  .demo-hero-copy > p,
  .demo-actions,
  .demo-trust-strip,
  .demo-hero-form,
  .demo-hero-media {
    width: 100%;
    max-width: 340px;
  }
  .demo-hero-copy {
    max-width: 100%;
  }
  .demo-hero-copy h1 {
    font-size: clamp(1.92rem, 8.2vw, 2.36rem);
    line-height: 1.08;
    max-width: min(100%, 12.5ch);
  }
  .demo-hero-copy > p {
    overflow-wrap: anywhere;
  }
  .demo-trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
  .demo-trust-strip span {
    justify-content: center;
    text-align: center;
  }
  .demo-hero-form input,
  .demo-contact-card input {
    min-width: 0;
  }
}

body.template-demo .teen-lumina-alert,
body.template-demo .trs-demo-strip,
body.template-demo .metro-noir-demo,
body.template-demo .family-haven-demo,
body.template-demo .hc-demo-strip,
body.template-demo .puente-modern-demo,
body.template-demo .academy-hub-demo,
body.template-demo .ms-demo-strip,
body.template-demo .test-sprint-demo,
body.template-demo .cd-demo-strip,
body.template-demo .demo-page-notice {
  width: min(1240px, calc(100% - 40px)) !important;
  min-height: auto !important;
  margin: 14px auto 0 !important;
  padding: 12px 14px 12px 18px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px 18px !important;
  border: 1px solid rgba(24, 38, 52, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #243241 !important;
  box-shadow: 0 18px 54px rgba(18, 32, 44, 0.08) !important;
  backdrop-filter: blur(16px);
}

body.template-demo .metro-noir-demo,
body.template-demo .test-sprint-demo {
  border-color: rgba(24, 38, 52, 0.14) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #243241 !important;
}

body.template-demo .teen-lumina-alert p,
body.template-demo .trs-demo-strip p,
body.template-demo .metro-noir-demo p,
body.template-demo .family-haven-demo p,
body.template-demo .hc-demo-strip p,
body.template-demo .puente-modern-demo p,
body.template-demo .academy-hub-demo p,
body.template-demo .ms-demo-strip p,
body.template-demo .test-sprint-demo p,
body.template-demo .cd-demo-strip p,
body.template-demo .demo-page-notice p {
  max-width: 820px !important;
  flex: 1 1 560px !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.42 !important;
  font-weight: 650 !important;
}

body.template-demo .teen-lumina-alert strong,
body.template-demo .trs-demo-strip strong,
body.template-demo .metro-noir-demo strong,
body.template-demo .family-haven-demo strong,
body.template-demo .hc-demo-strip strong,
body.template-demo .puente-modern-demo strong,
body.template-demo .academy-hub-demo strong,
body.template-demo .ms-demo-strip strong,
body.template-demo .test-sprint-demo strong,
body.template-demo .cd-demo-strip strong,
body.template-demo .demo-page-notice strong {
  font-weight: 900 !important;
}

body.template-demo .teen-lumina-alert nav,
body.template-demo .trs-demo-strip nav,
body.template-demo .metro-noir-demo nav,
body.template-demo .family-haven-demo nav,
body.template-demo .hc-demo-strip nav,
body.template-demo .puente-modern-demo nav,
body.template-demo .academy-hub-demo nav,
body.template-demo .ms-demo-strip nav,
body.template-demo .test-sprint-demo nav,
body.template-demo .cd-demo-strip nav,
body.template-demo .demo-page-notice nav {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.template-demo .teen-lumina-alert nav a,
body.template-demo .trs-demo-strip nav a,
body.template-demo .metro-noir-demo nav a,
body.template-demo .family-haven-demo nav a,
body.template-demo .hc-demo-strip nav a,
body.template-demo .puente-modern-demo nav a,
body.template-demo .academy-hub-demo nav a,
body.template-demo .ms-demo-strip nav a,
body.template-demo .test-sprint-demo nav a,
body.template-demo .cd-demo-strip nav a,
body.template-demo .demo-page-notice nav a {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(24, 38, 52, 0.14) !important;
  border-radius: 999px !important;
  padding: 0 13px !important;
  color: #173b57 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.template-demo .teen-lumina-alert nav a:last-child,
body.template-demo .trs-demo-strip nav a:last-child,
body.template-demo .metro-noir-demo nav a:last-child,
body.template-demo .family-haven-demo nav a:last-child,
body.template-demo .hc-demo-strip nav a:last-child,
body.template-demo .puente-modern-demo nav a:last-child,
body.template-demo .academy-hub-demo nav a:last-child,
body.template-demo .ms-demo-strip nav a:last-child,
body.template-demo .test-sprint-demo nav a:last-child,
body.template-demo .cd-demo-strip nav a:last-child,
body.template-demo .demo-page-notice nav a:last-child {
  border-color: transparent !important;
  color: #fff !important;
  background: #0f5f77 !important;
}

@media (max-width: 720px) {
  body.template-demo .teen-lumina-alert,
  body.template-demo .trs-demo-strip,
  body.template-demo .metro-noir-demo,
  body.template-demo .family-haven-demo,
  body.template-demo .hc-demo-strip,
  body.template-demo .puente-modern-demo,
  body.template-demo .academy-hub-demo,
  body.template-demo .ms-demo-strip,
  body.template-demo .test-sprint-demo,
  body.template-demo .cd-demo-strip,
  body.template-demo .demo-page-notice {
    width: min(100% - 24px, 1240px) !important;
    padding: 12px !important;
    align-items: flex-start !important;
  }

  body.template-demo .teen-lumina-alert nav,
  body.template-demo .trs-demo-strip nav,
  body.template-demo .metro-noir-demo nav,
  body.template-demo .family-haven-demo nav,
  body.template-demo .hc-demo-strip nav,
  body.template-demo .puente-modern-demo nav,
  body.template-demo .academy-hub-demo nav,
  body.template-demo .ms-demo-strip nav,
  body.template-demo .test-sprint-demo nav,
  body.template-demo .cd-demo-strip nav,
  body.template-demo .demo-page-notice nav {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 1080px) {
  body.template-demo .teen-lumina-alert nav,
  body.template-demo .trs-demo-strip nav,
  body.template-demo .metro-noir-demo nav,
  body.template-demo .family-haven-demo nav,
  body.template-demo .hc-demo-strip nav,
  body.template-demo .puente-modern-demo nav,
  body.template-demo .academy-hub-demo nav,
  body.template-demo .ms-demo-strip nav,
  body.template-demo .test-sprint-demo nav,
  body.template-demo .cd-demo-strip nav,
  body.template-demo .demo-page-notice nav {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

.assistant-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
}

.assistant-hero-panel h1 {
  max-width: 13ch;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.assistant-hero-panel p {
  max-width: 780px;
}

.assistant-safety-card,
.assistant-marketing-card {
  border: 1px solid rgba(24, 83, 75, 0.18);
  border-radius: 16px;
  padding: 24px;
  background: #102f28;
  color: #fff;
  box-shadow: 0 24px 64px rgba(13, 35, 30, 0.16);
}

.assistant-safety-card strong,
.assistant-marketing-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.assistant-safety-card span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 0 13px;
  background: #e8f8f3;
  color: #123d35;
  font-weight: 850;
}

.assistant-safety-card p,
.assistant-marketing-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 22px;
  margin-top: 22px;
}

.assistant-panel {
  min-width: 0;
}

.assistant-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.assistant-metric-card,
.assistant-readiness-list a,
.assistant-help-results article {
  border: 1px solid rgba(24, 83, 75, 0.16);
  border-radius: 12px;
  background: #fbfdfb;
}

.assistant-metric-card {
  min-height: 124px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.assistant-metric-card span,
.assistant-help-results span,
.assistant-draft-output span {
  display: block;
  margin-bottom: 8px;
  color: #5d706a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assistant-metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: #10231f;
  font-size: 2rem;
  line-height: 1;
}

.assistant-metric-card small {
  color: #53635f;
  font-weight: 650;
  line-height: 1.35;
}

.assistant-readiness-list {
  display: grid;
  gap: 10px;
}

.assistant-readiness-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #263733;
  font-weight: 800;
  text-decoration: none;
}

.assistant-readiness-list span {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid #d8a535;
  border-radius: 999px;
  background: #fff8df;
}

.assistant-readiness-list a.done span {
  border-color: #118878;
  background: #118878;
}

.assistant-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-recommendations p {
  margin: 0;
  border: 1px solid rgba(24, 83, 75, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfdfb;
  color: #41544f;
  font-weight: 700;
}

.assistant-search-form,
.assistant-draft-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.assistant-search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.assistant-search-form input,
.assistant-draft-form select,
.assistant-draft-form textarea {
  width: 100%;
}

.assistant-help-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.assistant-help-results article {
  padding: 14px 16px;
}

.assistant-help-results h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.assistant-help-results p {
  margin: 0 0 8px;
  color: #53635f;
}

.assistant-draft-output {
  margin-top: 18px;
  border: 1px solid rgba(17, 136, 120, 0.24);
  border-radius: 14px;
  padding: 16px;
  background: #f2fbf8;
}

.assistant-draft-output p {
  margin: 0;
  color: #263733;
  font-weight: 700;
  line-height: 1.55;
}

.assistant-marketing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
}

.assistant-marketing-copy h2 {
  max-width: 12ch;
}

.assistant-marketing-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.assistant-marketing-list span {
  border: 1px solid rgba(24, 83, 75, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdfb;
  color: #263733;
  font-weight: 800;
}

.assistant-marketing-card .button {
  margin-top: 18px;
}

.feature-intent-section .section-heading,
.pricing-intent-section .section-heading {
  max-width: 920px;
}

.feature-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-depth-grid article {
  border: 1px solid rgba(24, 83, 75, 0.16);
  border-radius: 14px;
  padding: 22px;
  background: #fbfdfb;
}

.feature-depth-grid h3 {
  margin: 0 0 10px;
  color: #14241f;
  font-size: 1.2rem;
}

.feature-depth-grid p {
  margin: 0;
  color: #53635f;
  font-weight: 650;
  line-height: 1.55;
}

.feature-faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
}

.feature-faq-list details {
  border: 1px solid rgba(24, 83, 75, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.feature-faq-list summary {
  cursor: pointer;
  color: #14241f;
  font-size: 1.05rem;
  font-weight: 900;
}

.feature-faq-list p {
  margin: 12px 0 0;
  color: #53635f;
  font-weight: 650;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .assistant-hero-panel,
  .assistant-grid,
  .assistant-marketing-section {
    grid-template-columns: 1fr;
  }

  .assistant-metric-grid,
  .assistant-recommendations,
  .feature-depth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .assistant-hero-panel h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  .assistant-metric-grid,
  .assistant-recommendations,
  .assistant-search-form > div,
  .feature-depth-grid {
    grid-template-columns: 1fr;
  }
}

/* Marketing layout polish: homepage, templates, scheduling, and pricing. */
.home-workflow-ribbon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-workflow-ribbon article {
  min-height: 250px;
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(223, 246, 236, 0.62), rgba(255, 255, 255, 0) 58%),
    #fff;
  box-shadow: 0 18px 46px rgba(23, 33, 31, 0.08);
}

.home-workflow-ribbon article:nth-child(2),
.home-workflow-ribbon article:nth-child(5) {
  background:
    linear-gradient(145deg, rgba(229, 241, 255, 0.8), rgba(255, 255, 255, 0) 58%),
    #fff;
}

.home-workflow-ribbon article:nth-child(3),
.home-workflow-ribbon article:nth-child(6) {
  background:
    linear-gradient(145deg, rgba(255, 243, 214, 0.88), rgba(255, 255, 255, 0) 58%),
    #fff;
}

.home-workflow-ribbon article:last-child {
  border-right: 1px solid rgba(18, 50, 44, 0.12);
}

.home-workflow-ribbon strong {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16, 42, 49, 0.16);
}

.home-workflow-ribbon h3 {
  margin: 0;
  max-width: 16ch;
}

.home-workflow-ribbon p {
  max-width: 34ch;
}

.home-expectation-band {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(36, 88, 167, 0.07)),
    #f7fbfa;
}

.home-expectation-band .section-heading {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 28px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(23, 33, 31, 0.08);
}

.home-expectation-band .section-heading .eyebrow,
.home-expectation-band .section-heading h2 {
  grid-column: 1;
}

.home-expectation-band .section-heading p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: none;
  margin: 0;
  border-left: 4px solid var(--teal);
  padding-left: 22px;
}

.template-market .split-heading {
  align-items: flex-start;
  padding: 26px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.1), transparent 36%),
    #fff;
  box-shadow: 0 18px 46px rgba(23, 33, 31, 0.07);
}

.template-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 30px;
  padding: 12px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px;
  background: #f7fbfa;
  scrollbar-width: thin;
}

.template-filter-bar button {
  flex: 0 0 auto;
  min-height: 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.05);
}

.template-filter-bar button:hover,
.template-filter-bar button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #eef8f5;
}

.template-filter-bar button.is-active {
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.schedule-pain-band {
  width: 100%;
  max-width: none;
  padding: 82px max(16px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(135deg, #eef7fb 0%, #f8fbfa 46%, #fffdf8 100%);
}

.schedule-pain-band .section-heading {
  max-width: 1020px;
  margin-bottom: 26px;
}

.schedule-pain-band .section-heading h2 {
  max-width: 760px;
}

.schedule-pain-band .section-heading p:not(.eyebrow) {
  max-width: 820px;
}

.schedule-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.schedule-proof-grid article {
  min-height: 260px;
  display: grid;
  gap: 14px;
  align-content: start;
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 88, 167, 0.11), transparent 36%),
    #fff;
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.08);
}

.schedule-proof-grid h3 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.14;
}

.schedule-proof-grid p {
  margin: 0;
}

.schedule-examples-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.schedule-examples-section .section-heading {
  position: sticky;
  top: 22px;
  margin: 0;
}

.schedule-examples-section .record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-examples-section .record-card {
  min-height: 172px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(223, 246, 236, 0.54), rgba(255, 255, 255, 0) 62%),
    #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.07);
}

.pricing-intent-section {
  padding-bottom: 36px;
}

.pricing-compare-section {
  padding-top: 8px;
}

.pricing-compare-heading {
  padding: 24px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(135deg, rgba(223, 246, 236, 0.75), rgba(255, 255, 255, 0)),
    #fff;
  margin-bottom: 0;
}

.pricing-compare-wrap {
  border-radius: 0 0 24px 24px;
}

.pricing-compare-table thead th {
  background: #102a31;
}

.pricing-compare-table td strong {
  color: var(--teal-dark);
  font-size: 1.08rem;
}

@media (max-width: 1080px) {
  .home-workflow-ribbon,
  .schedule-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-examples-section {
    grid-template-columns: 1fr;
  }

  .schedule-examples-section .section-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .home-workflow-ribbon,
  .schedule-proof-grid,
  .schedule-examples-section .record-grid {
    grid-template-columns: 1fr;
  }

  .home-workflow-ribbon article {
    min-height: auto;
  }

  .home-workflow-ribbon article:last-child {
    border-bottom: 1px solid rgba(18, 50, 44, 0.12);
  }

  .home-expectation-band .section-heading {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .home-expectation-band .section-heading .eyebrow,
  .home-expectation-band .section-heading h2,
  .home-expectation-band .section-heading p:not(.eyebrow) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-expectation-band .section-heading p:not(.eyebrow) {
    border-left: 0;
    border-top: 4px solid var(--teal);
    padding: 16px 0 0;
  }

  .template-market .split-heading,
  .pricing-compare-heading {
    padding: 20px;
  }

  .template-filter-bar {
    margin-top: 14px;
    border-radius: 18px;
  }

  .schedule-pain-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .schedule-proof-grid article,
  .schedule-examples-section .record-card {
    min-height: auto;
  }
}

/* Final cascade guard for the 20260612 tutorial and homepage UX correction. */
.home-workflow-ribbon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-workflow-ribbon article {
  position: relative;
  min-height: 225px;
  padding: 26px;
  border: 1px solid rgba(18, 50, 44, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 31, 0.07);
}

.home-workflow-ribbon article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--teal), #86d8bf);
}

.home-workflow-ribbon article:nth-child(2)::before,
.home-workflow-ribbon article:nth-child(5)::before {
  background: linear-gradient(90deg, var(--blue), #93b8e8);
}

.home-workflow-ribbon article:nth-child(3)::before,
.home-workflow-ribbon article:nth-child(6)::before {
  background: linear-gradient(90deg, var(--amber), #f4d38a);
}

.home-workflow-ribbon article:last-child {
  border-right: 1px solid rgba(18, 50, 44, 0.12);
  grid-column: auto;
}

.home-workflow-ribbon strong {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-workflow-ribbon h3 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.18rem, 1.6vw, 1.48rem);
  line-height: 1.08;
}

.home-workflow-ribbon p {
  max-width: 36ch;
  margin: 0;
  color: #52625d;
  font-size: .98rem;
  line-height: 1.58;
}

.tutorial-hub-hero,
.tutorial-detail-hero {
  width: min(100% - 40px, 1180px);
  grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(223, 246, 236, .72), rgba(255, 255, 255, .96) 58%), #fff;
  box-shadow: 0 22px 64px rgba(23, 33, 31, 0.08);
}

.tutorial-hub-hero h1,
.tutorial-detail-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1;
}

.tutorial-hub-hero p,
.tutorial-detail-hero p {
  max-width: 700px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.tutorial-hub-panel,
.tutorial-hero-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 50, 44, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 44px rgba(23, 33, 31, 0.1);
}

.tutorial-hub-panel-top,
.tutorial-hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.tutorial-hub-panel-top strong,
.tutorial-hero-panel-bar strong {
  color: var(--teal-dark);
}

.tutorial-hub-photo,
.tutorial-hero-frame {
  border-radius: 8px;
  box-shadow: none;
}

.tutorial-hub-photo {
  aspect-ratio: 16 / 10;
}

.tutorial-hero-frame {
  aspect-ratio: 16 / 11;
}

.tutorial-hub-photo img,
.tutorial-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tutorial-hub-panel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tutorial-hub-panel-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(223, 246, 236, .7);
  color: var(--teal-dark);
  font-size: .84rem;
  font-weight: 850;
}

.tutorial-card {
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 33, 31, .06);
}

.tutorial-card picture {
  aspect-ratio: 16 / 8.8;
}

.tutorial-card div {
  gap: 10px;
  padding: 20px;
}

.tutorial-card h2 {
  font-size: clamp(1.18rem, 1.65vw, 1.45rem);
}

.tutorial-proof-band {
  grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr);
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 31, .06);
}

.tutorial-proof-grid article,
.tutorial-sidebar,
.tutorial-step,
.tutorial-step-number,
.tutorial-checklist span,
.tutorial-playbook-grid article {
  border-radius: 8px;
}

.tutorial-detail-layout {
  grid-template-columns: minmax(230px, .3fr) minmax(0, 1fr);
  gap: 26px;
}

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

.related-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-link-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(18, 50, 44, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 33, 31, .05);
}

.related-link-card h3 {
  font-size: 1.18rem;
  line-height: 1.12;
}

.related-link-card p:not(.eyebrow) {
  margin: 0;
  color: #52625d;
  font-size: .95rem;
}

.related-link-card a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 900;
}

.site-footer {
  width: min(100% - 40px, 1180px);
  margin: 72px auto 0;
  padding: 34px 0 24px;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  gap: 42px;
  border-top: 1px solid rgba(18, 50, 44, .14);
}

.site-footer > div:first-child {
  max-width: 520px;
}

.footer-link-groups {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-link-groups a {
  font-weight: 700;
}

.footer-credit {
  margin-top: 12px;
  padding-top: 22px;
}

@media (max-width: 1120px) {
  .related-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-workflow-ribbon,
  .tutorial-card-grid,
  .tutorial-proof-grid,
  .related-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .tutorial-proof-band,
  .tutorial-detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-workflow-ribbon,
  .tutorial-card-grid,
  .tutorial-proof-grid,
  .tutorial-checklist,
  .tutorial-playbook-grid,
  .related-link-grid,
  .tutorial-hub-panel-list {
    grid-template-columns: 1fr;
  }

  .home-workflow-ribbon article {
    min-height: auto;
  }

  .tutorial-hub-hero,
  .tutorial-detail-hero,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .tutorial-hub-photo,
  .tutorial-hero-frame {
    aspect-ratio: 16 / 9;
  }
}
