/* ==========================================================================
   Foley Web Systems — "Hometown Storefront"
   Warm, friendly, and personal: the best-kept storefront on a Texas
   courthouse square. Colors are pulled directly from the Foley Web Systems
   logo: a working blue and a charcoal-navy ink, on a clean, near-white
   canvas. Gold stays as a warm accent not found in the logo itself. Evening
   theme is a lamplit navy storefront at dusk. Built for business owners,
   not developers — no technical styling anywhere.
   ========================================================================== */

:root {
  /* Day */
  --cream: #f5f8fc;
  --card: #ffffff;
  --ink: #212b36;
  --soft: #5c6b79;
  --blue: #0b57a6;
  --blue-deep: #073e7a;
  --gold: #c9862b;
  --gold-text: #8f5c14;
  --tint: #e7eef6;
  --line: rgba(33, 43, 54, 0.14);
  --note-bg: #f6ecd9;
  --note-border: #e3c892;
  --awning: #0b57a6;
  --header-bg: rgba(245, 248, 252, 0.92);
  --scrim: rgba(18, 24, 31, 0.45);
  --footer-bg: #0b2942;
  --on-blue: #f3f7fb;
  --on-blue-soft: #c7d9ea;
  --link: #0b57a6;
  --shadow-soft: 0 6px 22px rgba(15, 23, 32, 0.08);
  --shadow-lift: 0 14px 34px rgba(15, 23, 32, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:
    "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Arial, sans-serif;
}

html[data-theme="dark"] {
  /* Evening */
  color-scheme: dark;
  --cream: #0e1b2b;
  --card: #16283d;
  --ink: #eaf1f8;
  --soft: #9fb2c4;
  --blue: #3e7bc4;
  --blue-deep: #2a5d9e;
  --gold: #e0a63e;
  --gold-text: #e0a63e;
  --tint: #16273a;
  --line: rgba(234, 241, 248, 0.16);
  --note-bg: rgba(224, 166, 62, 0.12);
  --note-border: rgba(224, 166, 62, 0.4);
  --awning: #e0a63e;
  --header-bg: rgba(14, 27, 43, 0.92);
  --scrim: rgba(4, 8, 13, 0.6);
  --footer-bg: #081422;
  --on-blue: #eaf3fc;
  --on-blue-soft: #afc6de;
  --link: #7eb2e8;
  --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--gold);
  color: #1c2733;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 640;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--soft);
  max-width: 58ch;
}

/* Friendly gold eyebrow with a small diamond */
.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-text);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 6vw, 80px) 0;
}

.section.tinted {
  background: var(--tint);
}

.section-heading {
  max-width: 62ch;
  margin-bottom: clamp(26px, 3.5vw, 42px);
}

.section-heading p:not(.eyebrow) {
  color: var(--soft);
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Header with awning
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  padding: 10px clamp(12px, 2.4vw, 24px);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* The awning: scalloped edge hanging below the header. One of only two
   places this motif appears (the other is the footer). */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 50% 0,
    var(--awning) 9px,
    transparent 9.6px
  );
  background-size: 24px 10px;
  background-repeat: repeat-x;
}

.header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(110px, 34vw);
  height: auto;
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .footer-logo {
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 7px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-header nav a:hover {
  background: var(--tint);
}

.site-header nav a.active {
  box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: 0;
}

/* Day/Evening toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 10px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.theme-toggle-dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -3px -3px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .theme-toggle-dot {
  background: #eaf1f8;
  box-shadow: inset -4px -3px 0 rgba(22, 40, 61, 0.55);
}

/* Hamburger */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn-bar {
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-btn[aria-expanded="true"] .menu-btn-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile drawer (theme.js adds the scrim and toggles .open)
   -------------------------------------------------------------------------- */

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  height: 100dvh;
  width: min(310px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 92px 24px 30px;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  transform: translateX(103%);
  transition: transform 260ms ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 14px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--tint);
}

.mobile-nav a.active {
  background: var(--tint);
  box-shadow: inset 3px 0 0 var(--gold);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--link);
}

.btn-outline:hover {
  background: var(--tint);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #1c2733;
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  filter: brightness(1.05);
}

.text-link {
  font-weight: 800;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}

.text-link:hover {
  background: var(--note-bg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(44px, 6vw, 84px);
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.checks li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Cards and grids
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 18px;
}

/* Tighter minimum so four cards can share a row on desktop */
.card-grid.tight {
  grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}

.card p {
  color: var(--soft);
}

.card h3 {
  margin-bottom: 10px;
}

/* Package teaser cards */
.package-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}

.package-card p {
  color: var(--soft);
  margin: 0;
}

.package-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.package-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.package-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lift);
}

.package-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #1c2733;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.price {
  margin: 2px 0 4px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 640;
  color: var(--ink);
  line-height: 1.1;
}

.price .price-from {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soft);
  margin-bottom: 2px;
}

.teaser-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Friendly gold note */
.note {
  padding: 20px 24px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 14px;
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   Page intro (inner pages)
   -------------------------------------------------------------------------- */

.page-intro {
  padding: clamp(52px, 7vw, 96px) 0 clamp(8px, 1.5vw, 16px);
}

.page-intro .hero-copy {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Packages page: full cards, comparison table, mobile comparison
   -------------------------------------------------------------------------- */

.package-card ul {
  margin: 6px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 0.97rem;
}

.package-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.package-card ul li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--link);
  font-size: 0.66rem;
  font-weight: 900;
}

.package-card .limit {
  font-size: 0.85rem;
  color: var(--soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-value {
  margin-top: 14px;
}

.contact-value a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  overflow-wrap: anywhere;
}

.contact-value a:hover {
  color: var(--gold-text);
}

/* --------------------------------------------------------------------------
   Tech help page
   -------------------------------------------------------------------------- */

.card .price {
  margin: 6px 0 10px;
  font-size: 1.7rem;
}

.price .price-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soft);
  margin-left: 6px;
}

/* Calm plain-talk note with an action, not a warning banner */
.plain-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  border-left: 6px solid var(--blue);
}

.plain-note p {
  max-width: 62ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Add-ons page
   -------------------------------------------------------------------------- */

/* "On the house" panel: what every website includes at no charge */
.addon-included {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.addon-included-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.addon-included-label::before {
  content: "\2713";
  font-weight: 900;
}

.addon-included-content h3 {
  margin-bottom: 6px;
}

.addon-included-content p {
  color: var(--soft);
  margin: 0;
}

.addon-categories {
  display: grid;
  gap: clamp(34px, 5vw, 52px);
  margin-top: clamp(34px, 5vw, 52px);
}

.addon-category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.addon-category-heading::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
  gap: 16px;
}

.addon-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.addon-card h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 620;
  margin: 0;
}

.addon-card p {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.addon-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soft);
}

.addon-price strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 640;
  color: var(--ink);
  padding: 0 2px;
}

.addon-card .addon-examples {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.addon-note {
  margin-top: 32px;
  max-width: 78ch;
  color: var(--soft);
  font-size: 0.92rem;
}

/* Desktop comparison table, styled like a friendly menu board */
.comparison {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.comparison-table thead th {
  border-top: 0;
  background: var(--tint);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.comparison-table tbody th {
  font-weight: 700;
}

.comparison-table .val-cell {
  color: var(--soft);
  font-weight: 600;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.8rem;
}

.feature-icon.yes {
  background: var(--blue);
  color: var(--on-blue);
}

.feature-icon.no {
  background: var(--tint);
  color: var(--soft);
}

.price-row th,
.price-row td {
  background: var(--note-bg);
  border-top: 2px solid var(--note-border);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 640;
}

/* Mobile feature-by-feature comparison */
.mobile-comparison {
  display: none;
  margin-top: 36px;
}

.mobile-comparison-intro h3 {
  font-size: 1.35rem;
}

.mobile-comparison-intro p {
  color: var(--soft);
}

.mobile-tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.tier-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1.5px solid var(--link);
  color: var(--link);
  background: transparent;
  white-space: nowrap;
}

.tier-chip span {
  font-weight: 700;
  opacity: 0.78;
}

.tier-chip.growth,
html[data-theme="dark"] .tier-chip.growth {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c2733;
}

.tier-chip.professional,
html[data-theme="dark"] .tier-chip.professional {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-blue);
}

.mobile-feature-comparison-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mobile-feature-row {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.mobile-feature-row:first-child {
  border-top: 0;
}

.mobile-feature-row h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 620;
  margin: 0 0 4px;
}

.mobile-feature-row p {
  color: var(--soft);
  font-size: 0.92rem;
  margin: 0;
}

.included-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Design showcase picture cards (no browser chrome)
   -------------------------------------------------------------------------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 20px;
}

.shot-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}

.shot-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.shot-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-caption {
  display: block;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}

.shot-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 620;
}

.shot-caption span {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Designs page: template showcase rows
   -------------------------------------------------------------------------- */

.template-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 6vw, 76px);
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.template-row.reverse .template-preview {
  order: 2;
}

.template-preview,
.template-content {
  min-width: 0;
}

.template-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.template-name {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.template-content > p {
  color: var(--soft);
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.template-chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.template-palette {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
}

.palette-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--soft);
  margin-right: 4px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.template-fineprint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   Bands (tech help, etc.)
   -------------------------------------------------------------------------- */

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: var(--tint);
  border-radius: 20px;
}

.band h2 {
  margin-bottom: 0;
}

.band p:not(.eyebrow) {
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   Numbered steps (the 4-step process)
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  position: relative;
  max-width: 720px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 72px;
  color: var(--soft);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-blue);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 640;
  box-shadow: 0 0 0 5px var(--cream);
}

.steps li strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 620;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Closing CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  margin: clamp(20px, 3vw, 36px) 0 clamp(44px, 6vw, 72px);
  padding: clamp(30px, 5vw, 56px);
  background: var(--blue-deep);
  border-radius: 24px;
  color: var(--on-blue);
}

.cta-panel h2 {
  color: var(--on-blue);
}

.cta-panel p:not(.eyebrow) {
  color: var(--on-blue-soft);
  max-width: 54ch;
}

.cta-panel .eyebrow {
  color: var(--gold);
}

.cta-panel .eyebrow::before {
  background: var(--gold);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta-actions .btn {
  overflow-wrap: anywhere;
}

.cta-call {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--on-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.cta-call:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Footer with awning top
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: 26px;
  background: var(--footer-bg);
  color: var(--on-blue);
  padding: clamp(40px, 5vw, 60px) 0 34px;
}

/* Awning scallops across the footer's top edge (motif use #2 of 2). */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 50% 10px,
    var(--footer-bg) 9px,
    transparent 9.6px
  );
  background-size: 24px 10px;
  background-repeat: repeat-x;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 640;
  margin: 0 0 6px;
}

.footer-tag {
  color: var(--on-blue-soft);
  margin: 0 0 16px;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.footer-contact a {
  color: var(--on-blue);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  width: fit-content;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-fineprint {
  grid-column: 1 / -1;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 247, 251, 0.2);
  color: var(--on-blue-soft);
  font-size: 0.88rem;
}

.footer-fineprint a {
  color: var(--on-blue);
}

/* --------------------------------------------------------------------------
   Privacy policy page
   -------------------------------------------------------------------------- */

.policy-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 0 clamp(30px, 4vw, 48px);
}

.policy-hero {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.policy-hero p {
  color: var(--soft);
}

.policy-content article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  font-size: 1.3rem;
}

.policy-content p,
.policy-content li,
.policy-content address {
  color: var(--soft);
  font-size: 0.97rem;
}

.policy-content address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Lead Intelligence API draft page
   -------------------------------------------------------------------------- */

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-chips span {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px dashed var(--note-border);
  background: var(--note-bg);
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.flow-chips .flow-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.flow-chips .flow-arrow {
  color: var(--soft);
  font-weight: 800;
}

.api-draft-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-text);
  margin: 0;
}

.does-not-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--soft);
}

.does-not-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.does-not-list li::before {
  content: "\00d7";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--soft);
  font-weight: 900;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal (gated on html.js so content never hides without JS)
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 110ms;
}

html.js .reveal[data-delay="2"] {
  transition-delay: 220ms;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-header nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .theme-toggle span[data-theme-toggle-label] {
    display: none;
  }

  .theme-toggle {
    padding: 0 11px;
  }

  .band {
    grid-template-columns: 1fr;
  }

  .comparison {
    display: none;
  }

  .mobile-comparison {
    display: block;
  }

  .addon-included {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: start;
  }

  .template-row {
    grid-template-columns: 1fr;
  }

  .template-row.reverse .template-preview {
    order: 0;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .steps li {
    padding-left: 62px;
  }

  .steps::before {
    left: 21px;
  }

  .steps li::before {
    width: 44px;
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
