/* ==========================================================================
   Grow By Study design system
   Warm cream editorial surface, terracotta accent, serif display type.
   Tokens translated from the approved "ui screens" mockups.
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #2A2521;
  --ink-soft: #4A423A;
  --muted: #6E655B;
  --line: #E9E1D6;
  --line-soft: #F1EAE0;
  --accent: #B14A3A;
  --accent-dark: #93392C;
  --accent-soft: #F6E9E3;
  --gold: #C99B3F;
  --ok: #4C7A4C;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 37, 33, .05), 0 10px 30px rgba(42, 37, 33, .08);
  --shadow-lift: 0 2px 4px rgba(42, 37, 33, .07), 0 16px 40px rgba(42, 37, 33, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.section-title { font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 560px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 13px 22px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  display: grid; place-items: center; color: #fff;
}
.main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink-soft); padding: 6px 2px; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }
.header-search { margin-left: auto; }
.header-search input {
  width: 220px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font: 14px var(--sans); color: var(--ink);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 76px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.06; margin: 0 0 18px; }
.hero p.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 480px; }
.search-bar {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 20px; max-width: 520px; box-shadow: var(--shadow);
}
.search-bar input { flex: 1; border: 0; background: none; font: 15px var(--sans); color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar button {
  border: 0; background: var(--accent); color: #fff; width: 42px; height: 42px;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center;
}
.search-bar button:hover { background: var(--accent-dark); }
.hero-popular { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hero-popular a { color: var(--accent); font-weight: 600; }

.cover-fan { position: relative; height: 380px; }
.cover-fan .card-cover {
  position: absolute; width: 168px; height: 252px; border-radius: 10px;
  box-shadow: var(--shadow-lift); border: 1px solid rgba(42,37,33,.08);
  object-fit: cover; background: var(--accent-soft);
  transition: transform .25s ease;
}
.cover-fan .card-cover:hover { transform: translateY(-10px) scale(1.04); z-index: 5; }

/* ---------------------------------------------------------------- shelves & cards */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px; }
.book-card { display: block; }
.book-card .cover-wrap {
  aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--accent-soft);
  border: 1px solid rgba(42,37,33,.07); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.book-card:hover .cover-wrap { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.book-card img.cover { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 14px;
  background: linear-gradient(150deg, #EFD9CF, #E4C2B4); color: #7C4234;
  font-family: var(--serif); font-size: 19px; text-align: center; line-height: 1.3;
}
.book-card .b-title {
  margin: 12px 0 2px; font-weight: 600; font-size: 14.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card .b-author { font-size: 13px; color: var(--muted); display: block; }
.book-card .b-format {
  display: inline-block; margin-top: 7px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--accent); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
}

/* ---------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  display: flex; align-items: center; gap: 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: .15s ease;
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.cat-card .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
.cat-card .c-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.cat-card .c-count { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- steps / features / pricing / faq */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 700; }
.step h3 { margin: 10px 0 6px; font-size: 19px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .f-icon { color: var(--accent); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.price-card {
  max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 38px; text-align: center; box-shadow: var(--shadow);
}
.price-card .amount { font-family: var(--serif); font-size: 46px; font-weight: 700; }
.price-card .per { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

.faq-list { max-width: 760px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15.5px; }
.faq-list details[open] summary { color: var(--accent); }
.faq-list .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.trust .t-item { padding: 10px 18px; }
.trust h3 { font-size: 17px; margin: 10px 0 4px; }
.trust p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- library page */
.library-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-top: 40px; }
.filters h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.filter-list { list-style: none; margin: 0 0 28px; padding: 0; }
.filter-list a {
  display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 7px;
  font-size: 14px; color: var(--ink-soft);
}
.filter-list a:hover { background: var(--accent-soft); color: var(--accent); }
.filter-list a.active { background: var(--accent); color: #fff; font-weight: 600; }
.filter-list .cnt { color: inherit; opacity: .65; font-size: 12.5px; }

.library-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.library-toolbar .count { color: var(--muted); font-size: 14.5px; }
.sort-select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: 14px var(--sans); color: var(--ink);
}

.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 14px; background: var(--surface);
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- book detail */
.book-hero { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; }
.book-hero .cover-wrap {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lift);
  border: 1px solid rgba(42,37,33,.08); aspect-ratio: 2/3; background: var(--accent-soft);
}
.book-hero .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 11px; border-radius: 999px; margin-right: 8px;
}
.book-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 6px; line-height: 1.12; }
.book-hero .byline { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.book-hero .byline a { color: var(--accent); font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.meta-row strong { color: var(--ink-soft); }
.desc { max-width: 640px; color: var(--ink-soft); }
.book-actions { display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.rights-note { font-size: 13px; color: var(--muted); }
.preview-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 600; border-radius: 7px; padding: 5px 10px; margin-bottom: 14px;
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: #F3EDE4; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14.5px; }
.site-footer .brandline { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.site-footer .legal { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cover-fan { height: 300px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .library-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.mobile-open { display: block; }
  .book-hero { grid-template-columns: 200px 1fr; gap: 26px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .cover-fan .card-cover { width: 128px; height: 192px; }
  .book-hero { grid-template-columns: 1fr; }
  .book-hero .cover-wrap { max-width: 220px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== member / auth / legal / console-public extensions ===== */
.btn-block { width: 100%; }
.mb40 { margin-bottom: 42px; }
.input { width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius:9px; font:15px var(--sans); background:var(--surface); color:var(--ink); }
.input:focus { outline:2px solid var(--accent-soft); border-color:var(--accent); }
.field { display:block; margin-bottom:14px; }
.field > span { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.err { color:#B14A3A; display:block; margin-top:3px; }
.check-row { display:flex; gap:8px; align-items:center; font-size:13.5px; margin:4px 0 16px; }
.flash { background:#EAF3EA; border:1px solid #CDE3CD; color:#2F5A2F; padding:12px 16px; border-radius:9px; margin-bottom:16px; font-size:14.5px; }
.empty-note { color:var(--muted); font-size:14.5px; }

/* auth split */
.auth-split { display:grid; grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - 68px); }
.auth-side { background:linear-gradient(160deg,#3A322B,#241F1B); color:#F1EAE0; padding:70px 60px; display:flex; flex-direction:column; justify-content:center; }
.auth-side h1 { font-size:clamp(34px,4vw,52px); margin:0 0 14px; color:#fff; }
.eyebrow.light { color:#D89A8B; }
.auth-lede { color:#C9BFB2; font-size:16.5px; max-width:420px; }
.auth-benefits { list-style:none; padding:0; margin:34px 0; display:grid; gap:18px; }
.auth-benefits li { display:flex; gap:14px; align-items:center; }
.auth-benefits .ic { width:44px; height:44px; background:rgba(255,255,255,.08); border-radius:11px; display:grid; place-items:center; font-size:20px; flex:none; }
.auth-benefits strong { display:block; font-size:15px; }
.auth-benefits small { color:#A79C8E; font-size:13px; }
.quote-card { background:rgba(247,242,234,.1); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:18px 20px; font-family:var(--serif); font-size:19px; max-width:340px; }
.auth-form-col { display:flex; align-items:center; justify-content:center; padding:50px 30px; }
.auth-card { width:100%; max-width:520px; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:38px; box-shadow:var(--shadow); }
.auth-top { font-size:13.5px; color:var(--muted); text-align:right; }
.steps-mini { display:flex; align-items:center; gap:8px; margin:8px 0 24px; }
.steps-mini .s { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; font-size:13px; font-weight:700; color:var(--muted); position:relative; }
.steps-mini .s small { position:absolute; top:38px; left:50%; transform:translateX(-50%); white-space:nowrap; font-size:10.5px; font-weight:600; color:var(--muted); }
.steps-mini .s.active { background:var(--accent); border-color:var(--accent); color:#fff; margin-bottom:16px; }
.steps-mini .line { flex:1; height:1px; background:var(--line); margin-bottom:16px; }
.safe-note { background:var(--accent-soft); border-radius:10px; padding:14px 16px; font-size:13px; color:var(--ink-soft); margin-top:20px; }
.safe-note strong { color:var(--accent-dark); }

/* split hero (photo card + quote) */
.split-hero { padding:56px 0; }
.split-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.photo-card { position:relative; min-height:340px; border-radius:16px; background:linear-gradient(155deg,#E9D9C9,#D9C2AC 55%,#C8A98F); box-shadow:var(--shadow); }
.quote-float { display:flex; align-items:center; justify-content:flex-end; padding:30px; }
.quote-card.on-photo { background:#FAF7F2; border:0; box-shadow:var(--shadow); font-size:17px; }
.mini-benefits { display:flex; gap:22px; flex-wrap:wrap; color:var(--ink-soft); font-size:14px; font-weight:600; }

/* dark CTA */
.dark-cta { background:#241F1B; color:#F1EAE0; border-radius:18px; padding:44px 48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.dark-cta h2 { font-size:clamp(26px,3vw,38px); margin:6px 0 8px; color:#fff; }
.dark-cta p { color:#B9B0A4; margin:0; }
.newsletter-row { display:flex; gap:10px; margin-top:18px; }
.newsletter-row input { min-width:280px; padding:13px 16px; border-radius:9px; border:1px solid #4A433A; background:#2E2924; color:#F1EAE0; font:14.5px var(--sans); }

/* membership page */
.membership-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:44px; align-items:start; }
.price-card.popular { position:relative; max-width:none; text-align:left; }
.pop-badge { position:absolute; top:20px; right:20px; background:var(--accent); color:#fff; font-size:12px; font-weight:700; padding:6px 12px; border-radius:999px; }
.mget-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mget { display:flex; gap:12px; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px; }
.mget .ic { font-size:20px; }
.mget strong { font-size:14.5px; display:block; }
.mget small { color:var(--muted); font-size:12.5px; }
.avatar-dot { width:46px; height:46px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); display:grid; place-items:center; font-weight:700; font-size:15px; flex:none; }

/* FAQ */
.faq-search { width:100%; max-width:520px; padding:13px 18px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font:15px var(--sans); box-shadow:var(--shadow); }
.faq-layout { display:grid; grid-template-columns:260px 1fr; gap:40px; align-items:start; }
.chip-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.faq-list details { background:var(--surface); border:1px solid var(--line); border-radius:10px; margin-bottom:9px; }
.faq-list summary { cursor:pointer; padding:15px 20px; font-weight:600; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-list summary::after { content:"+"; color:var(--accent); font-size:19px; }
.faq-list details[open] summary::after { content:"–"; }

/* legal */
.legal-grid { display:grid; grid-template-columns:240px 1fr 280px; gap:36px; align-items:start; }
.legal-side { position:sticky; top:90px; display:flex; flex-direction:column; gap:4px; }
.legal-side a { padding:9px 12px; border-radius:8px; font-size:14px; color:var(--ink-soft); border-left:3px solid transparent; }
.legal-side a:hover, .legal-side a.active { background:var(--accent-soft); color:var(--accent-dark); border-left-color:var(--accent); }
.legal-body h2 { font-family:var(--serif); font-size:22px; margin:30px 0 10px; }
.legal-body h2:first-child { margin-top:0; }
.legal-body p { color:var(--ink-soft); font-size:15px; }
.legal-aside .keypoints { background:var(--accent-soft); border-radius:14px; padding:22px; }
.legal-aside .keypoints h3 { margin:0 0 12px; font-family:var(--serif); font-size:19px; }
.legal-aside .keypoints p { margin:8px 0; font-size:14px; }

/* member area */
.lib-head { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:34px; }
.progress-strip { position:absolute; left:0; right:0; bottom:0; height:5px; background:rgba(0,0,0,.25); }
.progress-strip span { display:block; height:100%; background:var(--accent); }
.done-badge { position:absolute; top:8px; right:8px; background:#2F5A2F; color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:3px 8px; }
.member-two-col { display:grid; grid-template-columns:380px 1fr; gap:44px; align-items:start; }
.panel-form { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:24px; margin-top:18px; }
.journal-entry { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:14px; }
.je-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; }
.je-date { color:var(--muted); font-size:12.5px; display:flex; gap:10px; align-items:center; }
.inline-form { display:inline; }
.link-btn { background:none; border:0; color:var(--muted); cursor:pointer; font-size:12.5px; padding:0; }
.link-btn:hover { color:var(--accent); }
.vocab-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; margin-top:22px; }
.vocab-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.v-word { font-family:var(--serif); font-size:19px; font-weight:700; display:flex; justify-content:space-between; }
.v-def { font-size:13.5px; color:var(--ink-soft); margin:8px 0 0; }
.v-ctx { font-size:12.5px; color:var(--muted); font-style:italic; margin:8px 0 0; }
.v-date { font-size:11.5px; color:var(--muted); display:block; margin-top:8px; }
.stat-grid.member { grid-template-columns:repeat(5,1fr); margin-bottom:16px; }
.panel-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px; margin-bottom:20px; }
.panel-title { margin:0 0 14px; }

/* about */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; }
.mission-card { background:var(--accent-soft); border-radius:18px; padding:40px; }
.values-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.values-grid div { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.values-grid strong { font-size:14px; display:block; }
.values-grid small { color:var(--muted); font-size:12.5px; }
.about-story { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }

/* author + collections + reviews */
.author-head { display:flex; gap:22px; align-items:center; margin-bottom:14px; }
.author-avatar { width:86px; height:86px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); display:grid; place-items:center; font-family:var(--serif); font-size:38px; font-weight:700; }
.collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.collection-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px; transition:.15s; }
.collection-card:hover { border-color:var(--accent); box-shadow:var(--shadow); color:inherit; }
.collection-card h3 { margin:0 0 6px; }
.collection-card p { color:var(--muted); font-size:14px; margin:0 0 14px; }
.c-arrow { color:var(--accent); font-weight:600; font-size:14px; }
.rating-row { display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.stars-sm { letter-spacing:1px; }
.review-item { border-bottom:1px solid var(--line-soft); padding:12px 0; }
.review-head { display:flex; gap:10px; align-items:center; font-size:14px; }
.review-item p { color:var(--ink-soft); font-size:14px; margin:6px 0 0; }
.review-form { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; max-width:560px; }
.star-input { display:flex; gap:4px; margin-bottom:10px; }
.star-input input { display:none; }
.star-input span { font-size:26px; color:#D8CFC2; cursor:pointer; }
.star-input input:checked ~ span, .star-input label:hover span { color:var(--gold); }
.reach-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.reach-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.support-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:start; }

@media (max-width:960px){
  .auth-split, .split-grid, .membership-grid, .faq-layout, .legal-grid, .member-two-col, .about-grid, .about-story, .support-grid { grid-template-columns:1fr !important; }
  .auth-side { padding:44px 28px; }
  .legal-side { position:static; flex-direction:row; flex-wrap:wrap; }
  .stat-grid.member { grid-template-columns:repeat(2,1fr); }
}

/* ===== member / auth / legal / console-public extensions ===== */
.btn-block { width: 100%; }
.mb40 { margin-bottom: 42px; }
.input { width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius:9px; font:15px var(--sans); background:var(--surface); color:var(--ink); }
.input:focus { outline:2px solid var(--accent-soft); border-color:var(--accent); }
.field { display:block; margin-bottom:14px; }
.field > span { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.err { color:#B14A3A; display:block; margin-top:3px; }
.check-row { display:flex; gap:8px; align-items:center; font-size:13.5px; margin:4px 0 16px; }
.flash { background:#EAF3EA; border:1px solid #CDE3CD; color:#2F5A2F; padding:12px 16px; border-radius:9px; margin-bottom:16px; font-size:14.5px; }
.empty-note { color:var(--muted); font-size:14.5px; }

/* auth split */
.auth-split { display:grid; grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - 68px); }
.auth-side { background:linear-gradient(160deg,#3A322B,#241F1B); color:#F1EAE0; padding:70px 60px; display:flex; flex-direction:column; justify-content:center; }
.auth-side h1 { font-size:clamp(34px,4vw,52px); margin:0 0 14px; color:#fff; }
.eyebrow.light { color:#D89A8B; }
.auth-lede { color:#C9BFB2; font-size:16.5px; max-width:420px; }
.auth-benefits { list-style:none; padding:0; margin:34px 0; display:grid; gap:18px; }
.auth-benefits li { display:flex; gap:14px; align-items:center; }
.auth-benefits .ic { width:44px; height:44px; background:rgba(255,255,255,.08); border-radius:11px; display:grid; place-items:center; font-size:20px; flex:none; }
.auth-benefits strong { display:block; font-size:15px; }
.auth-benefits small { color:#A79C8E; font-size:13px; }
.quote-card { background:rgba(247,242,234,.1); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:18px 20px; font-family:var(--serif); font-size:19px; max-width:340px; }
.auth-form-col { display:flex; align-items:center; justify-content:center; padding:50px 30px; }
.auth-card { width:100%; max-width:520px; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:38px; box-shadow:var(--shadow); }
.auth-top { font-size:13.5px; color:var(--muted); text-align:right; }
.steps-mini { display:flex; align-items:center; gap:8px; margin:8px 0 24px; }
.steps-mini .s { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; font-size:13px; font-weight:700; color:var(--muted); position:relative; }
.steps-mini .s small { position:absolute; top:38px; left:50%; transform:translateX(-50%); white-space:nowrap; font-size:10.5px; font-weight:600; color:var(--muted); }
.steps-mini .s.active { background:var(--accent); border-color:var(--accent); color:#fff; margin-bottom:16px; }
.steps-mini .line { flex:1; height:1px; background:var(--line); margin-bottom:16px; }
.safe-note { background:var(--accent-soft); border-radius:10px; padding:14px 16px; font-size:13px; color:var(--ink-soft); margin-top:20px; }
.safe-note strong { color:var(--accent-dark); }

/* split hero (photo card + quote) */
.split-hero { padding:56px 0; }
.split-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.photo-card { position:relative; min-height:340px; border-radius:16px; background:linear-gradient(155deg,#E9D9C9,#D9C2AC 55%,#C8A98F); box-shadow:var(--shadow); }
.quote-float { display:flex; align-items:center; justify-content:flex-end; padding:30px; }
.quote-card.on-photo { background:#FAF7F2; border:0; box-shadow:var(--shadow); font-size:17px; }
.mini-benefits { display:flex; gap:22px; flex-wrap:wrap; color:var(--ink-soft); font-size:14px; font-weight:600; }

/* dark CTA */
.dark-cta { background:#241F1B; color:#F1EAE0; border-radius:18px; padding:44px 48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.dark-cta h2 { font-size:clamp(26px,3vw,38px); margin:6px 0 8px; color:#fff; }
.dark-cta p { color:#B9B0A4; margin:0; }
.newsletter-row { display:flex; gap:10px; margin-top:18px; }
.newsletter-row input { min-width:280px; padding:13px 16px; border-radius:9px; border:1px solid #4A433A; background:#2E2924; color:#F1EAE0; font:14.5px var(--sans); }

/* membership page */
.membership-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:44px; align-items:start; }
.price-card.popular { position:relative; max-width:none; text-align:left; }
.pop-badge { position:absolute; top:20px; right:20px; background:var(--accent); color:#fff; font-size:12px; font-weight:700; padding:6px 12px; border-radius:999px; }
.mget-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mget { display:flex; gap:12px; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px; }
.mget .ic { font-size:20px; }
.mget strong { font-size:14.5px; display:block; }
.mget small { color:var(--muted); font-size:12.5px; }
.avatar-dot { width:46px; height:46px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); display:grid; place-items:center; font-weight:700; font-size:15px; flex:none; }

/* FAQ */
.faq-search { width:100%; max-width:520px; padding:13px 18px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font:15px var(--sans); box-shadow:var(--shadow); }
.faq-layout { display:grid; grid-template-columns:260px 1fr; gap:40px; align-items:start; }
.chip-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.faq-list details { background:var(--surface); border:1px solid var(--line); border-radius:10px; margin-bottom:9px; }
.faq-list summary { cursor:pointer; padding:15px 20px; font-weight:600; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-list summary::after { content:"+"; color:var(--accent); font-size:19px; }
.faq-list details[open] summary::after { content:"–"; }

/* legal */
.legal-grid { display:grid; grid-template-columns:240px 1fr 280px; gap:36px; align-items:start; }
.legal-side { position:sticky; top:90px; display:flex; flex-direction:column; gap:4px; }
.legal-side a { padding:9px 12px; border-radius:8px; font-size:14px; color:var(--ink-soft); border-left:3px solid transparent; }
.legal-side a:hover, .legal-side a.active { background:var(--accent-soft); color:var(--accent-dark); border-left-color:var(--accent); }
.legal-body h2 { font-family:var(--serif); font-size:22px; margin:30px 0 10px; }
.legal-body h2:first-child { margin-top:0; }
.legal-body p { color:var(--ink-soft); font-size:15px; }
.legal-aside .keypoints { background:var(--accent-soft); border-radius:14px; padding:22px; }
.legal-aside .keypoints h3 { margin:0 0 12px; font-family:var(--serif); font-size:19px; }
.legal-aside .keypoints p { margin:8px 0; font-size:14px; }

/* member area */
.lib-head { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:34px; }
.progress-strip { position:absolute; left:0; right:0; bottom:0; height:5px; background:rgba(0,0,0,.25); }
.progress-strip span { display:block; height:100%; background:var(--accent); }
.done-badge { position:absolute; top:8px; right:8px; background:#2F5A2F; color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:3px 8px; }
.member-two-col { display:grid; grid-template-columns:380px 1fr; gap:44px; align-items:start; }
.panel-form { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:24px; margin-top:18px; }
.journal-entry { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:14px; }
.je-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; }
.je-date { color:var(--muted); font-size:12.5px; display:flex; gap:10px; align-items:center; }
.inline-form { display:inline; }
.link-btn { background:none; border:0; color:var(--muted); cursor:pointer; font-size:12.5px; padding:0; }
.link-btn:hover { color:var(--accent); }
.vocab-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; margin-top:22px; }
.vocab-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.v-word { font-family:var(--serif); font-size:19px; font-weight:700; display:flex; justify-content:space-between; }
.v-def { font-size:13.5px; color:var(--ink-soft); margin:8px 0 0; }
.v-ctx { font-size:12.5px; color:var(--muted); font-style:italic; margin:8px 0 0; }
.v-date { font-size:11.5px; color:var(--muted); display:block; margin-top:8px; }
.stat-grid.member { grid-template-columns:repeat(5,1fr); margin-bottom:16px; }
.panel-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px; margin-bottom:20px; }
.panel-title { margin:0 0 14px; }

/* about */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; }
.mission-card { background:var(--accent-soft); border-radius:18px; padding:40px; }
.values-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.values-grid div { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.values-grid strong { font-size:14px; display:block; }
.values-grid small { color:var(--muted); font-size:12.5px; }
.about-story { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }

/* author + collections + reviews */
.author-head { display:flex; gap:22px; align-items:center; margin-bottom:14px; }
.author-avatar { width:86px; height:86px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); display:grid; place-items:center; font-family:var(--serif); font-size:38px; font-weight:700; }
.collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.collection-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px; transition:.15s; }
.collection-card:hover { border-color:var(--accent); box-shadow:var(--shadow); color:inherit; }
.collection-card h3 { margin:0 0 6px; }
.collection-card p { color:var(--muted); font-size:14px; margin:0 0 14px; }
.c-arrow { color:var(--accent); font-weight:600; font-size:14px; }
.rating-row { display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.stars-sm { letter-spacing:1px; }
.review-item { border-bottom:1px solid var(--line-soft); padding:12px 0; }
.review-head { display:flex; gap:10px; align-items:center; font-size:14px; }
.review-item p { color:var(--ink-soft); font-size:14px; margin:6px 0 0; }
.review-form { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; max-width:560px; }
.star-input { display:flex; gap:4px; margin-bottom:10px; }
.star-input input { display:none; }
.star-input span { font-size:26px; color:#D8CFC2; cursor:pointer; }
.star-input input:checked ~ span, .star-input label:hover span { color:var(--gold); }
.reach-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.reach-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.support-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:start; }

@media (max-width:960px){
  .auth-split, .split-grid, .membership-grid, .faq-layout, .legal-grid, .member-two-col, .about-grid, .about-story, .support-grid { grid-template-columns:1fr !important; }
  .auth-side { padding:44px 28px; }
  .legal-side { position:static; flex-direction:row; flex-wrap:wrap; }
  .stat-grid.member { grid-template-columns:repeat(2,1fr); }
}

/* ===== bootstrap icons + floating labels ===== */
.bi { width:1em; height:1em; fill:currentColor; display:inline-block; vertical-align:-0.125em; }
.bi-lg { width:20px; height:20px; }
.bi-xl { width:26px; height:26px; vertical-align:-0.3em; }
.bi-sm { width:13px; height:13px; }
.ic .bi, .f-icon .bi, .dot .bi { width:20px; height:20px; }

.ffield { position:relative; margin-bottom:14px; }
.ffield .finput {
  width:100%; padding:22px 14px 8px; border:1px solid var(--line); border-radius:9px;
  font:15px var(--sans); background:var(--surface); color:var(--ink); height:auto;
}
.ffield textarea.finput { min-height:110px; resize:vertical; }
.ffield .finput:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.ffield label {
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  color:var(--muted); font-size:15px; pointer-events:none;
  transition:all .18s ease; background:transparent; padding:0 4px;
}
.ffield textarea + label { top:20px; transform:none; }
.ffield .finput:focus + label,
.ffield .finput:not(:placeholder-shown) + label {
  top:7px; transform:none; font-size:11.5px; font-weight:600; color:var(--accent);
  letter-spacing:.03em;
}
.ffield .finput:not(:placeholder-shown):not(:focus) + label { color:var(--muted); }
@media (prefers-reduced-motion: reduce) { .ffield label { transition:none; } }

.sidebar-ic { display:inline-flex; margin-right:8px; color:var(--accent); }
.benefit-ic { color:var(--accent); }
.messages { list-style:none; padding:0; margin:0 0 18px; }
.messages li { background:#EAF3EA; border:1px solid #CDE3CD; color:#2F5A2F; padding:11px 16px; border-radius:9px; font-size:14px; margin-bottom:8px; }
.messages li.error { background:#FBEDEB; border-color:#EBCDC9; color:#8A2F22; }
.device-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--line-soft); font-size:14px; }
.device-row:last-child { border-bottom:0; }
.search-hit { display:block; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--line-soft); padding:9px 4px; cursor:pointer; font-size:13.5px; color:var(--ink-soft); }
.search-hit:hover { background:var(--accent-soft); color:var(--accent-dark); }
.search-hit strong { color:var(--ink); }

.verify-banner { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  background:#FCEBD7; border-bottom:1px solid #EFD8B8; color:#7A5218; font-size:13.5px; padding:9px 24px; }
.goal-track { height:10px; background:var(--line-soft); border-radius:5px; overflow:hidden; }
.goal-track span { display:block; height:100%; background:var(--accent); border-radius:5px; transition:width .4s ease; }

/* floating feedback button - visible on every page */
.fab-feedback {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important;
  padding: 11px 18px; border-radius: 999px;
  font: 600 14px var(--sans);
  box-shadow: 0 6px 22px rgba(42,37,33,.28), inset 0 -2px 0 rgba(0,0,0,.14);
  transition: .15s ease;
}
.fab-feedback:hover { background: var(--accent-dark); transform: translateY(-2px); }
@media print { .fab-feedback { display: none; } }

.pagination .page-count { border:0; background:none; color:var(--muted); font-size:13px;
  min-width:auto; padding:0 6px; }

.pagination.compact { gap:10px; align-items:center; }
.pagination.compact .page-count { min-width:auto; height:auto; border:0; background:none;
  font-family:var(--serif); font-size:17px; font-weight:600; color:var(--ink); padding:0 8px; }
.pagination.compact a { font-size:18px; font-weight:700; }
