/* ==========================================================================
   AMORSOLO CONSULTING — HR E-BOOK LIBRARY
   Design tokens derived from official brand guide:
   Main #333333 · Auxiliary #FFA217 (orange) · #A421BA (purple) · #FF006A (pink)
   Fonts: Kreon (display) / Cabin (body) / Source Sans 3 (utility)
   ========================================================================== */

:root {
  /* Brand colors (source of truth) */
  --ink: #333333;
  --ink-soft: #5b5a60;
  --ink-faint: #8a888f;
  --orange: #ffa217;
  --purple: #a421ba;
  --pink: #ff006a;

  /* Derived surface colors */
  --paper: #ffffff;
  --paper-warm: #f7f4f1;
  --paper-line: #e7e3de;
  --dark: #201f23;
  --dark-soft: #322f36;

  /* Typography */
  --font-display: 'Kreon', Georgia, 'Times New Roman', serif;
  --font-body: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-utility: 'Source Sans 3', Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px -14px rgba(32, 31, 35, 0.28);
  --shadow-soft: 0 4px 16px -8px rgba(32, 31, 35, 0.2);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.7em;
}
.eyebrow-light { color: var(--orange); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--orange);
  color: #241a03;
}
.btn-primary:hover { background: #ff9600; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-buy {
  background: var(--purple);
  color: #fff;
  width: 100%;
}
.btn-buy:hover { background: #8d1b9e; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: inline-flex; }
.brand-logo { height: 44px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--purple); border-bottom-color: var(--purple); }
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  margin-left: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 0 8px; }

.mobile-nav { border-top: 1px solid var(--paper-line); background: #fff; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 8px 24px 16px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-utility);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-line);
}

@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
}

.hero-visual {
  position: relative;
  height: 460px;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--dark);
}
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.hero-slider-btn:hover { background: var(--orange); transform: translateY(-50%) scale(1.05); }
.hero-slider-prev { left: 16px; }
.hero-slider-next { right: 16px; }
.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.hero-slider-dot.is-active { background: var(--orange); border-color: var(--orange); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; }
}
@media (max-width: 540px) {
  .hero-visual { height: 300px; }
  .hero-slider-btn { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ==========================================================================
   VALUE STRIP
   ========================================================================== */
.value-strip {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 44px 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.value-grid h3 { margin-bottom: 6px; font-size: 1.05rem; }
.value-grid p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-lede { color: var(--ink-soft); font-size: 1.02rem; }

.wedge-divider {
  height: 10px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 33%, var(--purple) 33%, var(--purple) 66%, var(--pink) 66%, var(--pink) 100%);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

/* ==========================================================================
   FEATURED
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.featured-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.featured-card .cover-wrap { aspect-ratio: 5/7; overflow: hidden; background: var(--dark); }
.featured-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.featured-card .card-body h3 { font-size: 1.02rem; margin: 0; }
.featured-card .card-body .btn { margin-top: auto; }
.featured-card .card-tag {
  align-self: flex-start;
  font-family: var(--font-utility);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ==========================================================================
   ABOUT / CREDIBILITY
   ========================================================================== */
.about { background: var(--dark); color: #f4f1ec; }
.about h2 { color: #fff; }
.about .eyebrow { color: var(--orange); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.about-col p { color: #d9d5cd; }

.author-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}
.author-header .eyebrow { margin-bottom: 0.3em; }
.author-header h2 { margin-bottom: 0; }
.author-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRAISE SOUNDBITE STRIP (short pull-quote, right after hero)
   ========================================================================== */
.praise-strip {
  background: var(--dark);
  padding: 36px 0;
}
.praise-strip blockquote {
  margin: 0;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.praise-strip p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #fff;
  line-height: 1.4;
  margin: 0 0 12px;
}
.praise-strip cite {
  display: block;
  font-style: normal;
  font-family: var(--font-utility);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--orange);
}

/* ==========================================================================
   ADVANCE PRAISE (full endorsement quotes)
   ========================================================================== */
.praise-group-heading {
  font-size: 1.05rem;
  margin: 40px 0 20px;
}
.praise-group-heading:first-of-type { margin-top: 8px; }
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 8px;
}
.praise-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.praise-card p {
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.praise-card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.praise-card cite span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ==========================================================================
   LIBRARY / FILTERS / GRID
   ========================================================================== */
.library-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-pill {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--paper-line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--purple); color: var(--purple); }
.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.book-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.book-card .cover-wrap {
  aspect-ratio: 5/7;
  background: var(--dark);
  overflow: hidden;
}
.book-card img { width: 100%; height: 100%; object-fit: cover; }
.book-card .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.book-card .series-tag {
  font-family: var(--font-utility);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}
.book-card h3 { font-size: 1rem; margin: 0; }
.book-card .subtitle { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.book-card .reader-tag {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}
.book-card .card-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.book-card .card-meta {
  display: flex;
  align-items: center;
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.book-card .buy-row { margin-top: 8px; }

/* ==========================================================================
   CORPORATE / BULK
   ========================================================================== */
.corporate { background: var(--purple); color: #fff; }
.corporate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.corporate-copy h2 { color: #fff; }
.corporate-copy p { color: #ecd8f2; max-width: 42ch; }

.corporate-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--purple); }
.form-consent {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.form-consent a { color: var(--purple); }
.form-fallback {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 12px 0 0;
}
.form-fallback a { color: var(--purple); font-weight: 600; }

.corporate-fallback {
  margin-top: 16px;
  padding: 16px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
}
.corporate-fallback-label {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.corporate-fallback-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-utility);
  font-size: 0.85rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .corporate-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUBSCRIBE
   ========================================================================== */
.subscribe { background: var(--paper-warm); }
.subscribe-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.subscribe-inner .subscribe-copy { text-align: center; }
.subscribe-inner .brevo-form-wrap { max-width: 560px; width: 100%; }
.subscribe-copy p { color: var(--ink-soft); max-width: 40ch; }
.subscribe-fields { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.subscribe-fields input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1.5px solid var(--paper-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.subscribe-fields input:focus { border-color: var(--purple); }
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-check input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.consent-check a { color: var(--purple); font-weight: 600; }
.form-status { font-family: var(--font-utility); font-size: 0.85rem; margin-top: 10px; color: var(--purple); min-height: 1.2em; }

@media (max-width: 860px) {
  .subscribe-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BREVO SIGNUP FORM OVERRIDES
   Brevo's builder outputs many inline styles on its own elements; !important
   is used deliberately here to keep the embedded form visually consistent
   with the rest of the site regardless of what Brevo's builder sets.
   ========================================================================== */

/* Safety net: these two rules are also inlined in index.html's <head>, but
   are repeated here in our own first-party stylesheet (guaranteed to load,
   same-origin, no external CDN dependency) so the message panels and
   button loading-spinner icon are never left visible by default if
   Brevo's own external stylesheet is ever slow to load or fails --
   exactly what caused both panels to render permanently visible, and the
   button to render as a giant deformed circle, on a slower mobile
   connection. :where() is used (not a plain selector) so this has zero
   specificity and never fights Brevo's own JS when it legitimately shows
   a message after a real submission. */
:where(.sib-form-message-panel) { display: none; }
:where(.sib-hide-loader-icon) { display: none; }
:where(.sib-form-message-panel .sib-notification__icon) { width: 20px; height: 20px; }

.brevo-form-wrap { width: 100%; }
.brevo-container { padding: 28px 28px 24px 28px !important; }
.brevo-form-wrap input.input {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid var(--paper-line) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: var(--ink) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  margin-top: 6px;
}
.brevo-form-wrap input.input:focus,
.brevo-form-wrap input.input:focus-visible,
#sib-container input.input:focus,
#sib-container input.input:focus-visible,
#EMAIL:focus,
#EMAIL:focus-visible {
  border: 1.5px solid var(--purple) !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.brevo-form-wrap .entry__field,
.brevo-form-wrap .entry__field:focus-within,
.brevo-form-wrap .entry__field:focus,
.brevo-form-wrap .form__entry,
.brevo-form-wrap .form__entry:focus-within,
.brevo-form-wrap .form__label-row,
.brevo-form-wrap .form__label-row:focus-within,
.brevo-form-wrap .entry_block,
.brevo-form-wrap .entry_block:focus-within,
.brevo-form-wrap .sib-input,
.brevo-form-wrap .sib-input:focus-within {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.brevo-form-wrap .entry__label { display: block; margin-bottom: 2px; }
.brevo-form-wrap .sib-form-block__button {
  border-radius: 999px !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.brevo-form-wrap .sib-form-message-panel { margin-bottom: 16px; padding: 12px 16px !important; }
.brevo-form-wrap .consent-check { margin-bottom: 4px; }
.entry__error { display: block; margin-top: 4px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--paper-line);
  padding: 18px 0;
}
.faq-item summary {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--purple);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); }

/* ==========================================================================
   PRIVACY POLICY PAGE (prose content)
   ========================================================================== */
.policy-content {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.policy-content h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.3em;
}
.policy-dates {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 2em;
}
.policy-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
  padding-top: 0.5em;
  border-top: 1px solid var(--paper-line);
}
.policy-content h2:first-of-type { border-top: none; padding-top: 0; }
.policy-content h3 {
  font-size: 1.02rem;
  margin-top: 1.4em;
}
.policy-content p, .policy-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.policy-list {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.policy-list li { margin-bottom: 0.5em; }
.policy-content a { color: var(--purple); font-weight: 600; }
.policy-back {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--paper-line);
}
.policy-back a { font-family: var(--font-utility); font-weight: 600; }

/* ==========================================================================
   PRIVACY POLICY MODAL
   ========================================================================== */
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--pink); }
.link-button-footer {
  font-family: inherit;
  color: #d8d5cd;
  font-weight: 400;
  text-decoration: none;
}
.link-button-footer:hover { color: var(--orange); }

.privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 31, 35, 0.6);
  z-index: 200;
}
.privacy-modal-backdrop[hidden] { display: none; }

.privacy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(720px, 92vw);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  outline: none;
}
/* Only apply flex layout when the modal is actually shown -- [hidden] and a
   class selector have equal CSS specificity, so without this guard an
   unconditional `display: flex` on .privacy-modal silently wins over the
   browser's default `[hidden] { display: none }`, leaving the "hidden"
   modal visible and intercepting clicks/scroll the whole time. */
.privacy-modal:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.privacy-modal[hidden] { display: none; }
.privacy-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--paper-line);
  flex-shrink: 0;
}
.privacy-modal-header h2 { margin: 0; font-size: 1.3rem; }
.privacy-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.privacy-modal-close:hover { color: var(--ink); background: var(--paper-warm); }
.privacy-modal-body {
  /* height is set in pixels by script.js (sizeModal()) — see comment there
     for why this can't be left to flexbox/viewport-unit CSS alone. */
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px;
  max-width: none;
  box-sizing: border-box;
  /* Firefox: thin, semi-transparent scrollbar, always visible */
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 51, 51, 0.35) transparent;
}
/* WebKit/Chrome/Safari: styling any of these forces a persistent, classic
   (non-overlay/auto-hiding) scrollbar rather than the OS's default
   auto-hide overlay style — so it stays visible and draggable at all times,
   not just on hover/scroll. */
.privacy-modal-body::-webkit-scrollbar {
  width: 12px;
}
.privacy-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.privacy-modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(51, 51, 51, 0.3);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.privacy-modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(164, 33, 186, 0.55);
}
.privacy-modal-body .policy-dates { margin-bottom: 1.4em; }
.privacy-modal-body h2 { font-size: 1.08rem; margin-top: 1.6em; }
.privacy-modal-body h2:first-of-type { margin-top: 0; }

@media (max-width: 540px) {
  .privacy-modal { width: 100vw; max-width: 100vw; border-radius: 0; top: 0; left: 0; transform: none; height: 100vh; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); color: #cfccc4; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #423f46;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { color: #a7a49d; font-size: 0.9rem; }
.footer-col h3 {
  color: #fff;
  font-family: var(--font-utility);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; color: #b7b4ac; }
.footer-col a { text-decoration: none; color: #d8d5cd; }
.footer-col a:hover { color: var(--orange); }
.footer-disclaimer { font-size: 0.82rem; color: #a7a49d; margin: 0; }
.footer-bottom { padding: 20px 24px; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: #8a877f; font-family: var(--font-utility); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
