/* === tokens === */
:root {
  --bg: #f5f1ea;            /* warm parchment */
  --surface: #ffffff;
  --fg: #2a2521;            /* warm near-black */
  --muted: #6a6258;         /* warm gray */
  --border: #d9d1c2;
  --accent: #1f3a52;        /* deep ink blue, band 215 */
  --accent-on: #ffffff;
  --accent-warm: #a8472c;   /* warm rust accent for hero signature */
  --font-display: "Spectral", "PT Serif", Georgia, serif;
  --font-body: "PT Root UI", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --space-section: 96px;
}

/* === reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 0.6em 0;
}
p { margin: 0 0 1em 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--accent-on);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* === header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.brand-role { font-size: 12px; color: var(--muted); }
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav a { color: var(--fg); }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: sticky;
  top: 73px;
  z-index: 49;
  background: rgba(245, 241, 234, 0.98);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px 24px;
  animation: mobile-nav-in 0.2s ease-out;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.mobile-nav nav a {
  padding: 14px 0;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.mobile-nav nav a.btn {
  border-bottom: none;
  padding: 14px;
  margin-top: 12px;
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
  justify-content: center;
  font-weight: 600;
}
.mobile-nav nav a.btn:hover { background: #16304a; color: #fff; }@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* === buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn-primary:hover {
  background: #16304a;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.btn-link {
  background: transparent;
  color: var(--accent);
  padding: 4px 0;
  border: none;
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* === hero === */
.hero {
  padding: 64px 0 var(--space-section);
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px 0;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.7); }

.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 0 0 48px 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin: 0;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.hero-stats dd {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* hero card */
.hero-card {
  position: relative;
  margin-top: 16px;
}
.hero-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}
.hero-card-inner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 36px;
  height: 36px;
  background: var(--accent-warm);
  z-index: -1;
}
.hero-card-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 0;
}
.hero-card-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.hero-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px 0;
}
.hero-card-list {
  margin: 0 0 24px 0;
  padding: 0;
}
.hero-card-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.hero-card-list > div:last-child { border-bottom: none; }
.hero-card-list dt {
  font-weight: 600;
  color: var(--fg);
}
.hero-card-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.hero-card-foot {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0 0;
}
.thin { border: none; border-top: 1px solid var(--border); margin: 0 0 24px 0; }

/* === calendar === */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px 0;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-nav-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  flex: 1;
  text-align: center;
}
.cal-nav-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.cal-nav-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 24px 0;
}
.cal-cell {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 6px 2px 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.1;
  min-height: 46px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  position: relative;
}
.cal-head {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  min-height: 20px;
  padding: 4px 2px;
  cursor: default;
}
.cal-empty {
  background: transparent;
  border: none;
  cursor: default;
  min-height: 46px;
}
.cal-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-cell:active { transform: translateY(1px); }
.cal-cell .cal-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.cal-cell .cal-mon {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 2px;
}
.cal-cell-weekend .cal-num { color: var(--muted); }
.cal-cell-free {
  background: var(--surface);
  cursor: pointer;
}
.cal-cell-free:hover {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.cal-cell-free:hover .cal-mon { color: rgba(255, 255, 255, 0.75); }
.cal-cell-busy {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  border-style: dashed;
  opacity: 0.55;
  text-decoration: line-through;
}
.cal-cell-busy .cal-num { font-weight: 500; }
.cal-cell-busy::after {
  content: "✕";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  color: var(--accent-warm);
  opacity: 0.7;
  text-decoration: none;
}

/* === time picker popover === */
.time-popover {
  position: fixed;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 4px;
  max-width: 280px;
  animation: time-popover-in 0.18s ease-out;
}
@keyframes time-popover-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.time-popover[hidden] { display: none; }
.time-popover-inner { position: relative; padding: 16px 18px 14px 18px; }
.time-popover-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--fg);
  letter-spacing: 0.01em;
  text-transform: capitalize;
}
.time-popover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 380px) {
  .time-popover-grid { grid-template-columns: repeat(3, 1fr); }
}
.time-slot {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.time-slot:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.time-slot-busy {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.time-popover-foot {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.time-popover-close {
  position: absolute;
  top: 6px;
  right: 8px;
  appearance: none;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.time-popover-close:hover { color: var(--fg); background: rgba(0, 0, 0, 0.06); }
@media (max-width: 480px) {
  .time-popover-grid { grid-template-columns: repeat(3, 1fr); }
  .time-popover { max-width: 240px; }
}
@media (max-width: 480px) {
  .calendar { gap: 3px; }
  .cal-cell { min-height: 40px; padding: 4px 1px 3px 1px; }
  .cal-cell .cal-num { font-size: 14px; }
  .cal-cell .cal-mon { display: none; }
}

/* === section base === */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--accent); color: var(--accent-on); }
.section-dark h2 { color: var(--accent-on); }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.85); }
.section-dark .field label { color: rgba(255, 255, 255, 0.85); }
.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-on);
}
.section-dark .field input::placeholder,
.section-dark .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.section-dark .form-note { color: rgba(255, 255, 255, 0.7); }

.section-head { max-width: 720px; margin: 0 0 56px 0; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 44px); margin: 0 0 16px 0; }
.section-lead { font-size: 17px; color: var(--muted); margin: 0; }

/* === services === */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  padding-right: 32px;
}
.service-item:nth-child(odd) {
  border-right: 1px solid var(--border);
  padding-right: 40px;
  padding-left: 0;
}
.service-item:nth-child(even) { padding-left: 40px; }
.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 4px 0 0 0;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.service-item h3 {
  font-size: 22px;
  margin: 0 0 8px 0;
}
.service-item p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .service-list { grid-template-columns: 1fr; }
  .service-item,
  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* === about === */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-grid h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 16px 0; }
.about-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
  margin: 0 0 24px 0;
}
.about-body p { color: var(--muted); }

.credentials {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
}
.credentials-title {
  font-size: 18px;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.credentials-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.credentials-list li:last-child { border-bottom: none; }
.credential-name {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 4px 0;
}
.credential-meta { font-size: 13px; color: var(--muted); margin: 0; }

/* === format === */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.format-block {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.format-block:last-child { border-right: none; }
.format-block:nth-last-child(-n+3) { border-bottom: none; }
.format-block h3 {
  font-size: 18px;
  margin: 0 0 12px 0;
}
.format-block p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .format-grid { grid-template-columns: 1fr; }
  .format-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .format-block:last-child { border-bottom: none; }
}

/* === pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-feature {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  position: relative;
}
.price-card-feature .price-tag,
.price-card-feature .price-meta { color: rgba(255, 255, 255, 0.7); }
.price-card-feature .price-value { color: var(--bg); }
.price-card-feature .price-list li { color: rgba(255, 255, 255, 0.85); }
.price-card-feature .btn-primary {
  background: var(--accent-warm);
}
.price-card-feature .btn-primary:hover { background: #8d3a23; }

.price-tag {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px 0;
}
.price-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}
.price-meta { font-size: 13px; color: var(--muted); margin: 0 0 24px 0; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex-grow: 1;
}
.price-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
}
.price-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.price-card { position: relative; }
.price-flag {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--accent-warm);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card-feature .price-flag {
  background: #fff;
  color: var(--fg);
}
.price-includes {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin: 0 0 18px 0;
}
.price-card-feature .price-includes { border-top-color: rgba(255, 255, 255, 0.18); }
.price-includes-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
  font-weight: 600;
}
.price-card-feature .price-includes-title { color: rgba(255, 255, 255, 0.75); }
.price-best-for {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 18px 0;
  padding: 0 0 18px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.price-card-feature .price-best-for { color: rgba(255, 255, 255, 0.8); border-bottom-color: rgba(255, 255, 255, 0.18); }

.pricing-note {
  margin: 32px 0 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* === signup === */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .signup-grid { grid-template-columns: 1fr; gap: 40px; }
}
.signup-grid h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 16px 0; }
.section-lead-light { color: rgba(255, 255, 255, 0.85); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
}
.check-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-weight: 700;
}

.signup-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 32px;
}
.signup-form h3 {
  color: var(--accent-on);
  font-size: 22px;
  margin: 0 0 24px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field textarea { resize: vertical; }
.signup-form .btn-primary { margin-top: 8px; }

/* === custom select === */
.select { position: relative; }
.select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.section-dark .select-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--accent-on);
}
.select-btn:hover { border-color: var(--accent); }
.select-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.select-btn[aria-expanded="true"] {
  border-color: var(--accent);
}
.select-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.select-btn[aria-expanded="true"] .select-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}
.section-dark .select-btn[aria-expanded="true"] .select-arrow { color: var(--accent-on); }

.select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.15s ease;
}
.section-dark .select-list {
  background: #1f2632;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.select.is-open .select-list {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}
.select-list li {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--fg);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.1s;
  user-select: none;
}
.section-dark .select-list li { color: var(--accent-on); }
.select-list li:hover,
.select-list li:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}
.section-dark .select-list li:hover,
.section-dark .select-list li:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.select-list li.is-selected {
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 500;
}
.select-list li.is-selected:hover,
.select-list li.is-selected:focus-visible {
  background: var(--accent);
  color: var(--accent-on);
}
.section-dark .select-list li.is-selected {
  background: var(--accent);
  color: #fff;
}
.form-note {
  margin: 16px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}
.form-note a { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--accent-on); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 1px 0 0 0;
  transition: background-color 0.15s, border-color 0.15s;
}
.consent input[type="checkbox"]:checked {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}
.consent input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 2px; }
.consent a { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--accent-on); }

/* === contacts === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
}
.contacts-grid h2 { font-size: clamp(28px, 3.5vw, 40px); }
.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.contacts-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}
@media (max-width: 600px) {
  .contacts-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* === footer === */
.site-footer {
  background: var(--fg);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-row p { margin: 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.7); }
.footer-nav a:hover { color: var(--accent-on); }
@media (max-width: 600px) {
  .footer-row { flex-direction: column; text-align: center; }
}

/* === legal pages === */
.legal-hero {
  padding: 64px 0 32px 0;
  border-bottom: 1px solid var(--border);
}
.legal-hero .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}
.legal-hero .legal-meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.legal-back {
  font-size: 13px;
  color: var(--accent-warm);
  text-decoration: none;
  margin: 0 0 24px 0;
  display: inline-block;
}
.legal-back:hover { color: var(--fg); }

.legal-body {
  padding: 48px 0 80px 0;
}
.legal-body .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 40px 0 12px 0;
  scroll-margin-top: 24px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 14px 0;
}
.legal-body ol, .legal-body ul {
  padding-left: 22px;
  margin: 0 0 16px 0;
}
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px 0;
}
.legal-toc-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc li {
  font-size: 15px;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.legal-toc li:last-child { border-bottom: none; }
.legal-toc a {
  color: var(--fg);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--accent-warm); }
.legal-muted { color: var(--muted); }
@media (max-width: 600px) {
  .legal-hero { padding: 40px 0 24px 0; }
  .legal-body { padding: 32px 0 56px 0; }
  .legal-body p, .legal-body li { font-size: 15px; line-height: 1.65; }
}

/* === utility === */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === blog index === */
.blog-hero {
  padding: 64px 0 32px 0;
  border-bottom: 1px solid var(--border);
}
.blog-hero .container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}
.blog-hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 17px; line-height: 1.6; }

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s, padding 0.15s;
}
.blog-card:hover {
  background: var(--surface);
  padding-left: 16px;
  padding-right: 16px;
}
.blog-card-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.blog-card-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  text-transform: none;
}
.blog-card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
  font-weight: 600;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 8px 0;
}
.blog-card p { color: var(--muted); margin: 0 0 8px 0; line-height: 1.6; }
.blog-card-more {
  font-size: 14px;
  color: var(--accent-warm);
  font-weight: 500;
}
.blog-card:hover .blog-card-more { color: var(--fg); }

@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .blog-card h2 { font-size: 20px; }
}

/* === blog article === */
.blog-article { padding: 40px 0 80px 0; }
.blog-article .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.blog-back {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-warm);
  text-decoration: none;
  margin: 0 0 24px 0;
}
.blog-back:hover { color: var(--fg); }
.article-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
  font-weight: 500;
}
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}
.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 40px 0 12px 0;
  scroll-margin-top: 16px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  margin: 28px 0 10px 0;
}
.article-body p, .article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}
.article-body ol, .article-body ul {
  padding-left: 24px;
  margin: 0 0 20px 0;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 600; color: var(--fg); }
.article-body a { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--fg); }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-warm);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.article-faq h2 { margin-top: 0 !important; }
.article-faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.article-faq details:last-of-type { border-bottom: none; }
.article-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.article-faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent-warm);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.article-faq details[open] summary::after { content: "−"; }
.article-faq details p {
  margin: 12px 0 0 0;
  color: var(--muted);
}

.article-cta {
  margin-top: 56px;
  padding: 32px;
  background: linear-gradient(135deg, #2a2118 0%, #1a1612 100%);
  color: var(--accent-on);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px 0;
  color: var(--accent-on);
}
.article-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}
.article-cta .btn-primary {
  background: var(--accent-warm);
  color: #1a1612;
}
.article-cta .btn-primary:hover {
  background: #fff;
  color: #1a1612;
  border-color: #fff;
}

@media (max-width: 480px) {
  .article-body p, .article-body li { font-size: 16px; }
  .article-faq { padding: 16px 20px; }
  .article-cta { padding: 24px 20px; }
}

/* hide Pages platform badge */
#spru-pages-badge-host { display: none !important; }
