/* Pally Design System v1.0.0, 2026-11-01
   CORE. Source of truth: ~/workspace/pally-studio/design-system/core.css
   Shared by every Pally template site. Optimizations here propagate to all
   sites on next sync and redeploy. Do not edit assembled copies directly.
   A site always loads core first, then exactly one theme stylesheet. */

:root {

  /* Brand tokens: swap these 5 values to rebrand a prospect */

  /* Neutral tokens: leave alone unless the whole system changes */
  --muted: #4f605a;
  --paper: #ffffff;
  --sand: #f5f2ec;
  --line: #dde3df;
  --shadow: 0 14px 34px rgba(22, 48, 43, 0.12);
  --shadow-sm: 0 6px 18px rgba(22, 48, 43, 0.09);


  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --wrap: 1120px;
  --space-section: clamp(56px, 8vw, 96px);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--brand-soft); color: var(--ink); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section-sand { background: var(--sand); }
.section-mint { background: var(--brand-soft); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; max-width: 72ch; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); }

/* Buttons: one primary, one quiet, one light. No other button styles. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-full); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-wide { width: 100%; }

/* Top bar and header: component 01 */
.topbar {
  background: var(--ink); color: #e8efec; font-size: 0.9rem;
  overflow: hidden;
}
.topbar .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-track { display: flex; width: 100%; }
.topbar-group { white-space: nowrap; }
.topbar-group[aria-hidden="true"] { display: none; }
@keyframes topbar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem;
}
.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.main-nav a:hover { color: var(--brand-dark); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Hero: component 02. Copy left, quote estimator right. */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 78%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.rating-line { font-weight: 600; }
.rating-line span { color: var(--muted); font-weight: 400; }

/* Trust strip: component 03. Plain list, not cards. */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px;
  padding-top: 22px; border-top: 1px solid var(--line); list-style: none; padding-left: 0;
}
.trust-row li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.trust-row svg { color: var(--brand); flex: none; }

/* Quote estimator card: component 04. The conversion core. */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 26px;
}
.quote-card h3 { margin-bottom: 4px; }
.quote-card .small { margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 1rem/1.4 var(--font-body); color: var(--ink); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: #5a6d66; }
.quote-card h2 { font-size: 1.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--r-full); font-size: 0.92rem; cursor: pointer;
  flex: 0 0 auto; white-space: nowrap; text-align: left;
}
.checks input { accent-color: var(--brand); flex: none; width: 18px; height: 18px; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.price-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: var(--sand); border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0;
}
.price-line strong { font-family: var(--font-display); font-size: 1.7rem; }
.form-note { text-align: center; margin: 12px 0 0; }

/* Services: component 05. A detailed list, not a grid of identical cards. */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 0.5fr; gap: 28px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { margin-bottom: 0; color: var(--ink-soft); }
.service-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-includes li { background: var(--brand-soft); border-radius: var(--r-full); padding: 6px 11px; font-size: 0.9rem; font-weight: 600; }
.service-price { text-align: right; font-weight: 800; font-size: 1.1rem; }
.service-price span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* Pricing: component 06. Three plans, one featured. */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Most booked"; position: absolute; top: -13px; left: 24px;
  background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 5px 11px; border-radius: var(--r-full);
}
.price-card .price { font-family: var(--font-display); font-size: 2.2rem; margin: 10px 0 4px; }
.price-card ul { margin: 18px 0; padding-left: 20px; color: var(--ink-soft); }
.price-card li { margin-bottom: 8px; }

/* How it works: component 07. A sequence, so numbers earn their place. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 3px solid var(--brand); padding-top: 18px; }
.step-num { font-family: var(--font-display); font-size: 2rem; color: var(--brand); }
.step h3 { margin-top: 6px; }

/* Reviews: component 08. Only use real reviews for a real prospect. */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.review-card blockquote { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.55; }
.review-card cite { font-style: normal; font-weight: 700; }
.review-card cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* FAQ: component 09. Accessible accordion, one open at a time in JS. */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 0; font: 700 1.1rem/1.4 var(--font-body); color: var(--ink);
}
.faq-a { display: none; padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.4rem; color: var(--brand); transition: transform 0.2s ease; flex: none; }

/* Service area and contact split: component 10 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { border: 1px solid var(--line); border-radius: var(--r-full); padding: 8px 14px; font-weight: 600; background: #fff; }
.contact-box { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 30px; }
.contact-box h3 { color: #fff; }
.contact-box a { color: #fff; }
.contact-box p { color: #d7e2dd; }
/* Buttons inside a dark box must keep their own text color.
   Without this, the white link color above wins over .btn-light
   and makes a white button's text invisible, which is the bug
   reported from the phone screenshot. */
.contact-box .btn-light { color: var(--ink); background: #fff; }
.contact-box .btn-primary { color: #fff; background: var(--brand); }

/* Footer: component 11 */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 90px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Sticky mobile bar: component 12. Mobile only. */
.sticky-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  background: var(--ink); border-radius: var(--r-full); padding: 8px; box-shadow: var(--shadow);
  gap: 8px;
}
.sticky-bar .btn { flex: 1; padding: 12px 10px; }

/* Library page helpers */
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.swatch i { display: block; height: 84px; }
.swatch p { padding: 12px 14px; margin: 0; font-size: 0.9rem; }
.swatch code { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .price-grid, .review-grid, .steps, .token-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-price { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .price-grid, .review-grid, .steps, .token-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* Selection pills: full width on phones, so text never squishes into a narrow column. */
  .checks { flex-direction: column; }
  .checks label { width: 100%; white-space: normal; padding: 12px 14px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 11px 14px; font-size: 0.9rem; }
  /* Mobile top banner: one fixed-height line that scrolls, never wraps. */
  .topbar-viewport { flex-wrap: nowrap; overflow: hidden; padding-top: 9px; padding-bottom: 9px; }
  .topbar-track { width: max-content; gap: 48px; animation: topbar-scroll 30s linear infinite; }
  .topbar-track:hover { animation-play-state: paused; }
  .topbar-group[aria-hidden="true"] { display: inline; }
  .logo { font-size: 0.95rem; }
  .logo-mark { width: 32px; height: 32px; font-size: 1.1rem; }
  .sticky-bar { display: flex; }
  .site-footer { padding-bottom: 110px; }
}

/* Reduced motion wins over the mobile marquee, wherever it sits in the file. */
@media (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none !important; }
}
