/*
 * Salt & Standard — site stylesheet
 *
 * Direction: "hotel ledger" (variant C, founder-approved 2026-07-21 —
 * see former site-variants/CHOICE.md, now recorded in the Task 10 commit).
 * Fixed green rail (wordmark + nav) on the left, a cream ledger-style
 * content column to its right, brass hairlines dividing each entry.
 *
 * Tokens copied verbatim from brand/palette.css (canonical source) — keep
 * hex values in sync with that file and brand/BRAND.md if either changes.
 * Light-only: this stylesheet ships no alternate-scheme block keyed to the
 * visitor's OS theme preference. The dark-theme tokens in brand/palette.css
 * exist for social/print use only (brand/BRAND.md web usage rule).
 *
 * Brass is accent-only: CTAs, the ampersand, thin rules — never a
 * background or body-copy colour, kept under ~10% of any layout. The
 * green rail is the only large green surface on the page.
 *
 * Class vocabulary (shared with Tasks 11-13 — /ro/, /self-check/, /start,
 * /privacy/):
 *   .nav          — the section nav inside the rail
 *   .section      — one ledger entry / page section
 *   .rule-brass   — a brass hairline divider (applied explicitly per
 *                   element rather than baked into .section, so pages
 *                   that don't want a rule above their first section can
 *                   omit the class)
 *   .bundle-row   — one row of the pricing ledger table
 *   .cta          — primary call-to-action button (.cta-outline modifier)
 *   .footer-legal — the legal footer at the foot of the ledger column
 *   .rail, .wordmark, .rail-foot, .lang-switch — rail structure, kept
 *   from variant C as-is
 *   .check-list, .check-row, .check-why — Task 12 self-check checklist
 *   .score-line   — live/static score readout (aria-live region)
 *   .bands, .band — outcome-band interpretation text (.band-match modifier,
 *                   toggled by site/check.js when JS is on)
 *   .start-links, .start-link, .start-link-label, .start-link-arrow —
 *                   Task 13 /start bio-hub large tap-target links
 *   .legal-list   — bulleted list styling shared by the Task 13 privacy pages
 *   .table-wrap, .privacy-table — the "what we collect" table on the privacy
 *                   pages (scrollable wrapper, fixed layout for even columns)
 *   .booking-gate — the click-to-load Calendly consent gate in the homepage
 *                   booking section (audit wave C — site/booking.js injects
 *                   the widget div/script on click; nothing loads until then)
 */

:root {
  --ss-green: #16302B;
  --ss-brass: #96762A;
  --ss-cream: #F6F4EE;
  --ss-ink: #222B26;
  --ss-muted: #5E6A63;

  --rail-w: 300px;
  --serif: "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ss-cream);
  color: var(--ss-ink);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ss-green);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a:focus-visible {
  outline: 2px solid var(--ss-green);
  outline-offset: 3px;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ss-green);
  outline-offset: 3px;
}

/* ---------- Layout shell ---------- */

.page {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

/* ---------- Rail ---------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-w);
  height: 100vh;
  background: var(--ss-green);
  color: var(--ss-cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2rem 1.5rem;
  overflow-y: auto;
}

.rail a:focus-visible {
  outline: 2px solid var(--ss-cream);
  outline-offset: 3px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.6rem);
  line-height: 1.15;
  margin: 0 0 3.5rem;
  letter-spacing: 0.01em;
}

.wordmark .wm-line {
  display: block;
}

.wordmark .amp {
  color: var(--ss-brass);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav a {
  text-decoration: none;
  color: var(--ss-cream);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  width: max-content;
}

.nav a:hover {
  border-bottom-color: var(--ss-brass);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* EN/RO language switch — bottom of the rail on desktop, folds into the
   horizontal top bar on mobile alongside .nav (see the max-width:1023px
   block below). */
.lang-switch {
  display: flex;
  gap: 0.9rem;
}

.lang-switch a {
  text-decoration: none;
  color: var(--ss-cream);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.65;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}

.lang-switch a:hover {
  opacity: 0.9;
}

.lang-switch a[aria-current="true"] {
  opacity: 1;
  border-bottom-color: var(--ss-brass);
}

.rail-foot {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(246, 244, 238, 0.6);
  margin: 0;
}

/* ---------- Main ledger column ---------- */

main.ledger {
  margin-left: var(--rail-w);
  width: calc(100% - var(--rail-w));
}

.section {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.25rem 3rem;
}

.section:first-child {
  padding-top: 4rem;
}

.rule-brass {
  border-top: 1px solid var(--ss-brass);
}

.kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--ss-muted);
  margin: 0 0 1rem;
}

.tagline {
  font-size: 1rem;
  color: var(--ss-muted);
  margin: 0 0 0.75rem;
}

.section-hero h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 1.9rem);
}

.promise {
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: var(--ss-green);
  color: var(--ss-cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--ss-green);
  margin-top: 0.5rem;
}

.cta:hover {
  background: var(--ss-cream);
  color: var(--ss-green);
}

.cta-outline {
  background: transparent;
  color: var(--ss-green);
}

.cta-outline:hover {
  background: var(--ss-green);
  color: var(--ss-cream);
}

/* ---------- Figures row (stats) ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.figure-row {
  padding-top: 0.9rem;
}

.figure {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.5rem);
  color: var(--ss-green);
  margin: 0 0 0.4rem;
}

.figure-row .desc {
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}

.figure-row .source {
  font-size: 0.75rem;
  color: var(--ss-muted);
  margin: 0;
}

.figure-row .source a {
  text-decoration: underline;
}

/* ---------- Guarantee ---------- */

blockquote.guarantee {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--ss-brass);
  font-style: italic;
  color: var(--ss-ink);
}

blockquote.guarantee p {
  margin: 0 0 0.75rem;
}

blockquote.guarantee footer {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ss-muted);
}

/* ---------- Ledger table (bundles) ---------- */

.ledger-table {
  margin-top: 1rem;
}

.bundle-row {
  display: grid;
  grid-template-columns: 11rem 1fr 9.5rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
}

.bundle-row:last-child {
  border-bottom: 1px solid var(--ss-brass);
}

.col-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ss-green);
  margin: 0;
  font-size: 1rem;
}

.col-desc {
  font-size: 0.88rem;
  color: var(--ss-ink);
  margin: 0;
}

.col-price {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.85rem;
  color: var(--ss-ink);
  margin: 0;
}

.bundle-row.full-house {
  background: rgba(150, 118, 42, 0.06);
}

.vat-note {
  font-size: 0.75rem;
  color: var(--ss-muted);
  margin-top: 1.25rem;
}

.price-was {
  text-decoration: line-through;
  color: var(--ss-muted);
}

.empty-state {
  color: var(--ss-muted);
  font-style: italic;
}

/* ---------- Self-check list (Task 12) ---------- */

.check-list {
  list-style: decimal;
  margin: 0 0 1.75rem;
  padding-left: 1.4rem;
}

.check-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(150, 118, 42, 0.25);
}

.check-row:first-child {
  padding-top: 0;
}

.check-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.check-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--ss-green);
}

.check-text {
  font-size: 1rem;
  color: var(--ss-ink);
}

.check-why {
  margin: 0.5rem 0 0 1.9rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ss-muted);
}

.score-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ss-green);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ss-brass);
  background: rgba(150, 118, 42, 0.06);
}

.bands {
  margin-top: 1.5rem;
}

.band {
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.75rem;
  border-left: 2px solid var(--ss-brass);
  font-size: 0.9rem;
}

.band strong {
  color: var(--ss-green);
}

.band.band-match {
  border-left-width: 3px;
  border-left-color: var(--ss-green);
  background: rgba(150, 118, 42, 0.1);
}

.fallback {
  font-size: 0.9rem;
  color: var(--ss-muted);
  margin-top: 1rem;
}

/* ---------- Start hub links (Task 13) ---------- */
/* Mobile-first bio-link page: each .start-link is the full-width, full-height
   tap target (the <a> itself is the flex row, not just its text), so the
   entire padded row responds to a tap, not just the label glyphs. */

.start-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.start-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 118, 42, 0.3);
}

.start-links li:first-child .start-link {
  padding-top: 0;
}

.start-links li:last-child .start-link {
  border-bottom: none;
  padding-bottom: 0;
}

.start-link-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ss-green);
}

.start-link-arrow {
  font-size: 1.4rem;
  color: var(--ss-brass);
  flex-shrink: 0;
}

.start-link:hover .start-link-label,
.start-link:focus-visible .start-link-label {
  color: var(--ss-brass);
  font-weight: 700;
}

/* ---------- Booking consent gate (audit wave C) ---------- */

.booking-gate {
  border: 1px solid var(--ss-brass);
  background: rgba(150, 118, 42, 0.06);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.25rem;
}

.booking-gate p {
  font-size: 0.9rem;
  color: var(--ss-muted);
  margin: 0 0 1rem;
}

.booking-gate .cta {
  font-family: var(--sans);
  cursor: pointer;
}

/* ---------- Privacy page legal content (Task 13) ---------- */

.legal-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.75rem;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.privacy-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid rgba(150, 118, 42, 0.25);
  vertical-align: top;
}

.privacy-table thead th {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ss-green);
  border-bottom: 1px solid var(--ss-brass);
}

.privacy-table caption {
  text-align: left;
}

/* ---------- Accessibility utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer (bottom of ledger) ---------- */

.footer-legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
  font-size: 0.82rem;
  color: var(--ss-muted);
}

.footer-legal p {
  margin: 0 0 0.5rem;
}

.footer-legal a {
  text-decoration: underline;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .nav a,
  .lang-switch a,
  .cta {
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 1023px) {
  .page {
    display: block;
  }

  .rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
  }

  .rail-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .wordmark {
    margin: 0;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .wordmark .wm-line {
    display: inline;
  }

  .wordmark .wm-line + .wm-line::before {
    content: " ";
  }

  .nav {
    flex-direction: row;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .rail-bottom {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .rail-foot {
    display: none;
  }

  main.ledger {
    margin-left: 0;
    width: 100%;
  }

  .section, .footer-legal {
    padding: 2.25rem 1.25rem;
    max-width: none;
  }

  .section:first-child {
    padding-top: 2.5rem;
  }

  .figures {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bundle-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .col-price {
    text-align: left;
  }
}
