/* ClearScope — main.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:        #7aab8a;
  --sage-light:  #e8f2eb;
  --sage-dark:   #4a7a5a;
  --amber:       #e8a250;
  --cream:       #faf8f4;
  --ink:         #2c3830;
  --mid:         #6b7c73;
  --white:       #ffffff;
  --radius:      1.25rem;
  --nav-h:       68px;
  --max-w:       1060px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
#cs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2.5rem;
  background: rgba(250,248,244,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,171,138,0.15);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 2px;
}
.logo svg {
  display: block;
  width: 220px;
  height: auto;
}
/* hide tagline on small screens — not enough room */
@media (max-width: 640px) {
  .logo svg { width: 160px; }
  .logo svg text:last-child { display: none; }
}

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 2rem;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--ink) !important; transform: translateY(-1px); }

/* burger */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  #cs-nav { padding: 0 1.25rem; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(250,248,244,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(122,171,138,0.15);
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(122,171,138,0.1);
    font-size: 1rem;
  }
  .nav-links a.nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
    padding: 0.7rem 1rem !important;
  }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
footer span { color: var(--sage); }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: var(--sage); }

/* ─────────────────────────────────────────
   SHARED UTILITIES
───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.section-label {
  font-family: 'Fraunces', serif;
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--sage); }

.btn-primary {
  background: var(--sage);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none; cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(122,171,138,0.3);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,56,48,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid rgba(44,56,48,0.2);
  display: inline-block;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--sage); transform: translateY(-2px); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   HOME PAGE
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -10%; right: -15%;
  width: 55vw; height: 55vw; max-width: 520px; max-height: 520px;
  background: radial-gradient(circle, #d4ead9 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: drift 12s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; bottom: -5%; left: -10%;
  width: 40vw; height: 40vw; max-width: 380px; max-height: 380px;
  background: radial-gradient(circle, #fde8c8 0%, transparent 70%);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  animation: drift 15s ease-in-out infinite alternate-reverse;
  z-index: 0;
}
@keyframes drift {
  from { transform: translate(0,0) rotate(0deg); }
  to   { transform: translate(3%,4%) rotate(8deg); }
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
}
.hero .eyebrow {
  opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp 0.7s 0.25s forwards;
}
h1 em { font-style: italic; font-weight: 300; color: var(--sage); }

.subhead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--mid);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.55s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats strip */
.stats-strip {
  background: var(--ink);
  padding: 3.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.stat-item {
  width: 100%;
  text-align: center;
  padding: 0 1rem;
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  display: block;
}
.stat-unit {
  font-size: 2rem;
  font-weight: 300;
  color: var(--amber);
  vertical-align: super;
  line-height: 0;
}
.stat-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.stat-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}
.stat-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .stats-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .stat-item {
    flex: 1;
    max-width: 300px;
    padding: 1rem 2rem;
  }
  .stat-divider {
    width: 1px;
    height: 100px;
    background: rgba(255,255,255,0.12);
  }
}

/* Questions */
.questions { background: var(--white); padding: 5rem 1.5rem; }
.questions-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; text-align: left;
}
.q-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(122,171,138,0.15);
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.q-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(44,56,48,0.08); }
.q-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.q-card:nth-child(1)::before { background: var(--sage); }
.q-card:nth-child(2)::before { background: var(--amber); }
.q-card:nth-child(3)::before { background: #5b9ec9; }
.q-icon { font-size: 1.75rem; margin-bottom: 0.9rem; }
.q-card p {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 300; font-style: italic;
  line-height: 1.5; color: var(--ink);
}

/* Showcase */
.showcase { padding: 5rem 1.5rem; background: var(--cream); }
.showcase-header { text-align: center; margin-bottom: 3rem; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.showcase-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(122,171,138,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,56,48,0.1); }
.showcase-thumb {
  height: 175px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.showcase-card:nth-child(1) .showcase-thumb { background: linear-gradient(135deg,#c2dfc9,#7aab8a); }
.showcase-card:nth-child(2) .showcase-thumb { background: linear-gradient(135deg,#fde8c8,#e8a250); }
.showcase-card:nth-child(3) .showcase-thumb { background: linear-gradient(135deg,#cde3f0,#5b9ec9); }
.showcase-body { padding: 1.4rem 1.5rem 1.6rem; }
.showcase-tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 0.4rem;
}
.showcase-body h3 {
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  font-weight: 600; margin-bottom: 0.45rem; color: var(--ink);
}
.showcase-body p { font-size: 0.875rem; color: var(--mid); line-height: 1.55; }
.showcase-cta { text-align: center; margin-top: 2.5rem; }
.showcase-note { font-size: 0.85rem; color: var(--mid); font-style: italic; margin-top: 0.75rem; }

/* Benefits */
.benefits { background: var(--ink); color: white; padding: 5rem 1.5rem; }
.benefits-header { text-align: center; margin-bottom: 3rem; }
.benefits-header .section-label { color: rgba(255,255,255,0.45); }
.benefits-header .section-title { color: white; }
.benefits-header .section-title em { color: var(--sage); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem; max-width: var(--max-w); margin: 0 auto;
}
.benefit-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  transition: background 0.2s;
}
.benefit-item:hover { background: rgba(255,255,255,0.1); }
.benefit-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.benefit-item h4 {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 600; margin-bottom: 0.4rem; color: white;
}
.benefit-item p { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.55; }

/* CTA section */
.cta-section {
  padding: 6rem 1.5rem;
  background: var(--sage-light);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(122,171,138,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-inner .section-label { color: var(--sage); }
.cta-inner h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.2;
}
.cta-inner h2 em { font-style: italic; font-weight: 300; color: var(--sage); }
.cta-inner p { color: var(--mid); margin-bottom: 2rem; font-size: 1.05rem; }

/* Contact form */
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 480px; margin: 0 auto;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(122,171,138,0.25);
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--sage); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--mid); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-msg {
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 0.9rem; text-align: center;
}
.form-msg.success { background: var(--sage-light); color: var(--sage-dark); }
.form-msg.error   { background: #fde8e8; color: #a04040; }

/* ─────────────────────────────────────────
   EXAMPLES PAGE
───────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 70vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, #d4ead9 0%, transparent 65%);
  border-radius: 50%; top: -25%; z-index: 0;
}
.page-header-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1rem;
}
.page-header h1 em { font-style: italic; font-weight: 300; color: var(--sage); }
.page-header p { color: var(--mid); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

.hint-bar {
  text-align: center; padding: 0 1.5rem 0.5rem;
}
.hint-bar span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: white; border: 1px solid rgba(122,171,138,0.2);
  border-radius: 2rem; padding: 0.4rem 1rem;
  font-size: 0.82rem; color: var(--mid); font-style: italic;
}

.grid-section {
  padding: 2rem 1.5rem 5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* ── flip card ── */
.flip-wrap {
  height: 440px;
  cursor: pointer;
}
.flip-wrap:not(.placeholder):focus-visible {
  outline: 3px solid var(--sage); border-radius: var(--radius);
}

/* On mobile, no 3D flip — switch to slide overlay instead */
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  border-radius: var(--radius);
}
.flip-wrap.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden;
}

/* FRONT */
.flip-front {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid rgba(122,171,138,0.15);
  box-shadow: 0 2px 12px rgba(44,56,48,0.06);
  transition: box-shadow 0.25s;
}
.flip-wrap:hover .flip-front { box-shadow: 0 12px 36px rgba(44,56,48,0.12); }

.card-thumb {
  height: 200px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
/* mini dashboard mockup */
.thumb-mockup {
  width: 82%; height: 76%;
  background: rgba(255,255,255,0.22);
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.7rem; display: flex; flex-direction: column; gap: 0.45rem;
}
.mock-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.5); }
.mock-bar.w60 { width: 60%; } .mock-bar.w40 { width: 40%; }
.mock-row { display: flex; gap: 0.4rem; flex: 1; }
.mock-block {
  border-radius: 0.35rem; background: rgba(255,255,255,0.32); flex: 1;
}
.mock-map {
  flex: 1; border-radius: 0.35rem; background: rgba(255,255,255,0.18);
  position: relative; overflow: hidden;
}
.mock-map::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,rgba(255,255,255,0.07) 0,rgba(255,255,255,0.07) 1px,transparent 1px,transparent 8px);
}
.mock-dot {
  position: absolute; width: 7px; height: 7px;
  background: white; border-radius: 50%; opacity: 0.75;
}

.card-thumb-label {
  position: absolute; bottom: 0.7rem; left: 0.7rem;
  background: rgba(255,255,255,0.92); border-radius: 2rem;
  padding: 0.2rem 0.7rem; font-size: 0.7rem;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.flip-hint {
  position: absolute; bottom: 0.7rem; right: 0.7rem;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem;
  opacity: 0; transition: opacity 0.2s;
}
.flip-wrap:hover .flip-hint { opacity: 1; }

.card-front-body {
  padding: 1.2rem 1.4rem 1.4rem; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-tag {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 0.35rem;
}
.card-front-body h3 {
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 0.4rem;
}
.card-front-body p { font-size: 0.875rem; color: var(--mid); line-height: 1.55; }
.card-flip-prompt {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; color: var(--sage); font-weight: 500; margin-top: 0.65rem;
}

/* BACK */
.flip-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  color: white;
  /* scrollable on mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.back-inner {
  padding: 1.6rem;
  display: flex; flex-direction: column;
  min-height: 100%;
}
.back-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.4rem; flex-shrink: 0;
}
.back-header h3 {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 600; line-height: 1.3; max-width: 190px;
}
.back-close {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  color: white; font-size: 0.85rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.back-close:hover { background: rgba(255,255,255,0.3); }

.pao { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.pao-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.pao-badge {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; margin-top: 2px;
}
.pao-item-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; opacity: 0.6; margin-bottom: 0.2rem;
}
.pao-item-text { font-size: 0.875rem; line-height: 1.5; opacity: 0.92; }

.back-footer {
  margin-top: 1.25rem; padding-top: 1rem; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem; opacity: 0.55; font-style: italic;
}

/* card colour themes */
.theme-sage  .card-thumb { background: linear-gradient(135deg,#b8d9c0,#7aab8a); }
.theme-sage  .card-tag, .theme-sage .card-flip-prompt { color: var(--sage-dark); }
.theme-sage  .flip-back { background: linear-gradient(145deg,#4a7a5a,#2c3830); }

.theme-amber .card-thumb { background: linear-gradient(135deg,#fde8c8,#e8a250); }
.theme-amber .card-tag   { color: #9a6010; }
.theme-amber .card-flip-prompt { color: #c88030; }
.theme-amber .flip-back  { background: linear-gradient(145deg,#b07828,#5a3808); }

.theme-sky   .card-thumb { background: linear-gradient(135deg,#cde3f0,#5b9ec9); }
.theme-sky   .card-tag   { color: #2e6a92; }
.theme-sky   .card-flip-prompt { color: #3a82b0; }
.theme-sky   .flip-back  { background: linear-gradient(145deg,#3a7ea8,#1a3d55); }

/* placeholder cards */
.placeholder .flip-front {
  background: white; box-shadow: none;
  border: 2px dashed rgba(122,171,138,0.25);
}
.placeholder .card-thumb { background: var(--sage-light); }
.placeholder-icon { font-size: 2.5rem; opacity: 0.35; }
.placeholder .card-front-body h3 { color: var(--mid); }
.placeholder .card-front-body p  { color: rgba(107,124,115,0.65); font-style: italic; }
.placeholder .card-flip-prompt   { display: none; }
.placeholder .flip-hint          { display: none; }
.placeholder { cursor: default; }

/* CTA strip (examples page) */
.cta-strip {
  background: var(--ink); padding: 4.5rem 1.5rem; text-align: center;
}
.cta-strip h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600; color: white; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-strip h2 em { font-style: italic; font-weight: 300; color: var(--sage); }
.cta-strip p { color: rgba(255,255,255,0.5); margin-bottom: 2rem; }

/* ─────────────────────────────────────────
   MOBILE OVERRIDES
───────────────────────────────────────── */
@media (max-width: 600px) {
  /* stack hero buttons */
  .hero-actions { flex-direction: column; align-items: center; }

  /* flip cards: fixed height can clip — let them be taller */
  .flip-wrap { height: auto; min-height: 400px; }
  .flip-inner { height: auto; min-height: 400px; }
  .flip-front { position: relative; }

  /* on small screens, replace 3D flip with a shown/hidden overlay */
  .flip-wrap  { perspective: none; }
  .flip-inner { transform-style: flat; transition: none; }
  .flip-wrap.flipped .flip-inner { transform: none; }

  .flip-front {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: opacity 0.3s;
  }
  .flip-wrap.flipped .flip-front {
    opacity: 0; pointer-events: none; position: absolute; inset: 0;
  }

  .flip-back {
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    opacity: 0; pointer-events: none;
    position: absolute; inset: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius);
    overflow-y: auto;
  }
  .flip-wrap.flipped .flip-back {
    opacity: 1; pointer-events: auto;
  }

  .cards-grid { grid-template-columns: 1fr; }
}