/* ============================================================
   IDEMY — Design System
   Style: A Book Apart editorial minimal
   Scrape ref: abookapart.com (#292821 ink, 2px radius, sharp)
   Brand: Navy #1A2B4A + Amber #F4A623 + Firefly logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --white:       #FFFFFF;
  --cream:       #F8F6F0;
  --cream-d:     #F0EDE4;
  --ink:         #292821;   /* ABA exact warm near-black */
  --ink-mid:     #6B6860;
  --ink-light:   #9B9890;
  --border:      #E5E2DA;
  --border-d:    #C8C4BA;

  --navy:        #1A2B4A;
  --navy-dark:   #0F1C30;
  --navy-mid:    #243352;
  --amber:       #F4A623;
  --amber-d:     #D4891A;
  --amber-xl:    #FEF8EC;

  --f-serif: 'Playfair Display', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', monospace;

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    220ms var(--ease);

  --shadow-book:  6px 10px 28px rgba(0,0,0,.22), -2px 0 0 rgba(0,0,0,.14);
  --shadow-book-h:10px 18px 42px rgba(0,0,0,.28), -3px 0 0 rgba(0,0,0,.18);
  --shadow-card:  0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 12px 36px rgba(0,0,0,.1);
}

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--f-sans);color:var(--ink);background:var(--white);
  line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* ── TYPE ── */
h1,h2,h3,h4{font-family:var(--f-serif);line-height:1.1;color:var(--ink)}
h1{font-size:clamp(2.2rem,5vw,3.75rem);font-weight:800}
h2{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:700}
h3{font-size:clamp(1.05rem,2vw,1.35rem);font-weight:700}
p{color:var(--ink-mid);line-height:1.75}

/* ── LAYOUT ── */
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 2rem}
.section{padding:5.5rem 0}
.section--cream{background:var(--cream)}
.section--navy{background:var(--navy);color:var(--white)}
.section--navy h1,.section--navy h2,.section--navy h3{color:var(--white)}

/* Section header */
.sh{margin-bottom:3rem}
.sh--c{text-align:center}
.sh--c .sh__sub{margin:.5rem auto 0}
.sh__kicker{display:inline-block;font-size:.72rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--amber-d);margin-bottom:.75rem}
.sh__title{margin-bottom:.4rem}
.sh__sub{font-size:1.05rem;color:var(--ink-mid);max-width:520px;line-height:1.75}

.divider{width:40px;height:3px;background:var(--amber);border-radius:1px;margin:1rem 0}
.divider--c{margin:1rem auto}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--f-sans);font-size:.875rem;font-weight:700;
  padding:.75rem 1.6rem;border-radius:2px;border:2px solid transparent;
  transition:all var(--t);white-space:nowrap;cursor:pointer;
  letter-spacing:.02em;text-decoration:none}
.btn--navy{background:var(--navy);color:var(--white);border-color:var(--navy)}
.btn--navy:hover{background:var(--navy-dark);border-color:var(--navy-dark)}
.btn--amber{background:var(--amber);color:var(--navy);border-color:var(--amber);
  box-shadow:0 2px 10px rgba(244,166,35,.3)}
.btn--amber:hover{background:var(--amber-d);border-color:var(--amber-d)}
.btn--outline{background:transparent;color:var(--ink);border-color:var(--border-d)}
.btn--outline:hover{border-color:var(--ink);background:var(--cream)}
.btn--ghost-w{background:transparent;color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.35)}
.btn--ghost-w:hover{background:rgba(255,255,255,.08);color:var(--white);border-color:rgba(255,255,255,.65)}
.btn--lg{font-size:1rem;padding:.9rem 2.1rem}
.btn--sm{font-size:.78rem;padding:.5rem 1.1rem}

/* ── LABELS ── */
.lbl{display:inline-flex;align-items:center;font-size:.68rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:.28rem .72rem;border-radius:2px}
.lbl--amber{background:var(--amber-xl);color:var(--amber-d)}
.lbl--navy{background:rgba(26,43,74,.08);color:var(--navy)}
.lbl--green{background:#E8F5E9;color:#2E7D32}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;
  background:#fff;border-bottom:1px solid rgba(26,43,74,.12);
  transition:box-shadow var(--t)}
.header.scrolled{box-shadow:0 2px 20px rgba(26,43,74,.1)}
.header-stripe{position:fixed;top:64px;left:0;right:0;height:36px;background:var(--navy-dark);z-index:998}
.header__inner{display:flex;align-items:center;justify-content:space-between;height:64px}

.logo{display:flex;align-items:center;gap:.55rem;flex-shrink:0}
.logo__badge{width:40px;height:40px;border-radius:50%;overflow:hidden;display:block;flex-shrink:0}
.logo__badge-img{width:40px;height:40px;max-width:none!important;display:block;object-fit:cover;object-position:center}
.logo__wordmark{font-family:var(--f-serif);font-weight:800;font-size:1.5rem;
  color:var(--navy);letter-spacing:-.02em;line-height:1}
.logo__wordmark em{font-style:normal;color:var(--amber)}

.nav{display:flex;align-items:center;gap:.1rem}
.nav__link{
  position:relative;
  font-size:.875rem;font-weight:600;color:var(--navy);
  padding:.45rem .9rem;border-radius:2px;
  letter-spacing:.01em;
  transition:color var(--t);
}
.nav__link::after{
  content:'';position:absolute;bottom:4px;left:.9rem;right:.9rem;
  height:2px;background:var(--amber);border-radius:1px;
  transform:scaleX(0);transform-origin:left;
  transition:transform 240ms var(--ease);
}
.nav__link:hover{color:var(--amber-d)}
.nav__link:hover::after{transform:scaleX(1)}

/* Header social icons */
.header-socials{
  display:flex;align-items:center;gap:.2rem;
  padding:.25rem .45rem;
  background:rgba(26,43,74,.05);
  border-radius:40px;
  border:1px solid rgba(26,43,74,.12);
}
.hsoc{
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  color:var(--navy);
  transition:transform 200ms var(--ease),background 200ms var(--ease),color 200ms var(--ease);
  text-decoration:none;
}
.hsoc:hover{transform:scale(1.18)}
.hsoc--fb:hover{background:#1877F2;color:#fff}
.hsoc--tt:hover{background:#010101;color:#fff}
.hsoc--yt:hover{background:#FF0000;color:#fff}

.hamburger{display:none;flex-direction:column;gap:5px;padding:.5rem;cursor:pointer}
.hamburger span{display:block;width:22px;height:2px;background:var(--navy);
  border-radius:1px;transition:all var(--t)}

/* Mobile nav */
.mobile-nav{display:none;position:fixed;inset:0;background:var(--navy-dark);
  z-index:999;flex-direction:column;align-items:center;justify-content:center;gap:2rem}
.mobile-nav.open{display:flex}
.mobile-nav__link{font-family:var(--f-serif);font-size:2.25rem;font-weight:700;
  color:var(--white);transition:color var(--t)}
.mobile-nav__link:hover{color:var(--amber)}
.mobile-nav__close{position:absolute;top:1.5rem;right:1.5rem;
  font-size:1.75rem;color:rgba(255,255,255,.5);cursor:pointer;transition:color var(--t)}
.mobile-nav__close:hover{color:var(--white)}

/* ══════════════════════════════════
   HERO — ABA editorial centered
══════════════════════════════════ */
.hero{padding:130px 0 5rem;background:var(--white);
  text-align:center;border-bottom:1px solid var(--border)}
.hero__kicker{display:block;font-size:.75rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--amber-d);margin-bottom:1.25rem}
.hero__title{color:var(--ink);margin-bottom:1.5rem;letter-spacing:-.025em}
.hero__title em{font-style:italic;color:var(--navy)}
.hero__lead{font-size:1.1rem;color:var(--ink-mid);max-width:580px;
  margin:0 auto 2.5rem;line-height:1.8}
.hero__cta{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem}

/* ══════════════════════════════════
   FEATURED BOOK
══════════════════════════════════ */
.featured{padding:5.5rem 0;background:var(--cream);border-bottom:1px solid var(--border)}
.featured__inner{display:grid;grid-template-columns:320px 1fr;gap:5rem;align-items:center}
.featured__cover-wrap{display:flex;justify-content:center}

/* Book cover — base */
.bc{aspect-ratio:5/7;border-radius:3px 10px 10px 3px;
  box-shadow:var(--shadow-book);overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);width:100%}
.bc:hover{transform:translateY(-6px) rotate(1.5deg);box-shadow:var(--shadow-book-h)}

/* Book cover color variants */
.bc--blue         {background:linear-gradient(160deg,#1565C0 0%,#0D47A1 100%)}
.bc--slate        {background:linear-gradient(160deg,#37474F 0%,#263238 100%)}
.bc--indigo       {background:linear-gradient(160deg,#283593 0%,#1A237E 100%)}
.bc--purple       {background:linear-gradient(160deg,#6A1B9A 0%,#4A148C 100%)}
.bc--teal         {background:linear-gradient(160deg,#00695C 0%,#004D40 100%)}
.bc--red          {background:linear-gradient(160deg,#C62828 0%,#B71C1C 100%)}
.bc--navy-upcoming{background:linear-gradient(160deg,#1A2B4A 0%,#0F1C30 100%);
  filter:grayscale(15%)}

/* Upcoming ribbon */
.featured__cover-wrap{display:flex;justify-content:center;position:relative;overflow:hidden;
  border-radius:3px 10px 10px 3px}
.bc__ribbon{position:absolute;top:22px;right:-28px;width:115px;padding:.3rem 0;
  background:var(--amber);color:var(--navy);font-family:var(--f-sans);
  font-size:.58rem;font-weight:800;text-align:center;letter-spacing:.08em;
  text-transform:uppercase;transform:rotate(45deg);box-shadow:0 2px 8px rgba(0,0,0,.25);
  z-index:10}

/* Waitlist button */
.lbl--upcoming{background:rgba(244,166,35,.15);color:#B8860B;border:1px solid rgba(244,166,35,.35)}
.featured__notify{margin-top:.25rem}
.notify-note{font-size:.8rem;color:var(--ink-light);margin:.75rem 0 0}

/* Notify row: button + countdown side by side */
.notify-row{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-bottom:0}

/* Countdown box */
@keyframes cd-pulse{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes cd-urgent{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.35)}
  60%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}

.countdown-box{
  display:flex;flex-direction:column;gap:.35rem;
  padding:.7rem 1.1rem;
  background:linear-gradient(135deg,#fff8f8 0%,#fff3f3 100%);
  border:1.5px solid rgba(220,38,38,.25);
  border-radius:6px;
  min-width:180px;
  animation:cd-urgent 2s ease-out infinite;
}
.countdown-box__label{
  display:flex;align-items:center;gap:.4rem;
  font-size:.72rem;font-weight:700;
  color:#B91C1C;letter-spacing:.04em;text-transform:uppercase;
}
.countdown-box__dot{
  width:7px;height:7px;border-radius:50%;background:#EF4444;flex-shrink:0;
  animation:cd-pulse 1s ease-in-out infinite;
}
.countdown-box__timer{
  display:flex;align-items:center;gap:.3rem;
}
.cd-unit{display:flex;flex-direction:column;align-items:center;gap:0}
.cd-num{
  font-family:var(--f-mono);font-size:2rem;font-weight:700;
  color:#991B1B;line-height:1;min-width:2.4ch;text-align:center;
  letter-spacing:-.02em;
}
.cd-lbl{font-size:.6rem;font-weight:600;color:#B91C1C;opacity:.7;
  text-transform:uppercase;letter-spacing:.05em}
.cd-sep{
  font-family:var(--f-mono);font-size:1.8rem;font-weight:700;
  color:#B91C1C;line-height:1;margin-bottom:.5rem;
  animation:cd-pulse .9s ease-in-out infinite;
}
.countdown-box__sub{
  font-size:.72rem;color:#7F1D1D;opacity:.85;
}
.countdown-box__sub strong{color:#B91C1C}
/* Urgent flash when under 5 min */
.countdown-box.urgent{
  background:linear-gradient(135deg,#FEF2F2 0%,#FEE2E2 100%);
  border-color:rgba(220,38,38,.5);
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(244,166,35,.55), 0 6px 24px rgba(26,43,74,.35); }
  60%  { box-shadow: 0 0 0 10px rgba(244,166,35,0),  0 6px 24px rgba(26,43,74,.35); }
  100% { box-shadow: 0 0 0 0 rgba(244,166,35,0),     0 6px 24px rgba(26,43,74,.35); }
}
.btn-waitlist{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.9rem 1.75rem;
  background:linear-gradient(135deg, var(--navy) 0%, #243b6b 100%);
  color:var(--white);text-decoration:none;border-radius:2px;
  font-family:var(--f-sans);font-size:1rem;font-weight:700;letter-spacing:.01em;
  box-shadow:0 6px 24px rgba(26,43,74,.35);
  animation:pulse-ring 2.4s ease-out infinite;
  transition:transform 220ms var(--ease), box-shadow 220ms var(--ease),
             background 220ms var(--ease);
  position:relative;overflow:hidden;
}
.btn-waitlist::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(244,166,35,.18) 0%,transparent 60%);
  opacity:0;transition:opacity 220ms var(--ease);
}
.btn-waitlist:hover{
  transform:scale(1.06) translateY(-2px);
  box-shadow:0 12px 32px rgba(26,43,74,.45);
  animation:none;
}
.btn-waitlist:hover::before{opacity:1}
.btn-waitlist:active{transform:scale(.98) translateY(0)}
.btn-waitlist__icon{font-size:1.1rem;animation:bell-shake 2.4s ease-in-out infinite}
.btn-waitlist__arrow{
  display:inline-block;
  transition:transform 220ms var(--ease);
}
.btn-waitlist:hover .btn-waitlist__arrow{transform:translateX(4px)}

@keyframes bell-shake {
  0%,50%,100%{transform:rotate(0)}
  55%{transform:rotate(14deg)}
  60%{transform:rotate(-12deg)}
  65%{transform:rotate(10deg)}
  70%{transform:rotate(-8deg)}
  75%{transform:rotate(0)}
}

/* Book cover internals */
.bc__top{background:var(--white);flex-shrink:0;padding:.4rem .6rem;
  display:flex;align-items:center;gap:.3rem;border-bottom:1px solid #eee}
.bc__top svg{width:16px;height:16px;flex-shrink:0}
.bc__brand{font-family:var(--f-serif);font-size:.6rem;font-weight:800;
  color:var(--navy);letter-spacing:.02em}
.bc__body{flex:1;padding:.75rem .6rem;display:flex;flex-direction:column;
  justify-content:space-between;overflow:hidden}
.bc__title{font-family:var(--f-serif);font-size:.78rem;font-weight:800;
  color:var(--white);line-height:1.3}
.bc__art{display:flex;align-items:flex-end;gap:.3rem;margin-top:.5rem;flex-wrap:wrap}
.bc__foot{background:rgba(0,0,0,.18);padding:.28rem .6rem;flex-shrink:0}
.bc__std{font-family:var(--f-mono);font-size:.28rem;
  color:rgba(255,255,255,.8);font-weight:500;letter-spacing:.04em;line-height:1.7}

/* CB art pieces */
.cb{background:rgba(255,255,255,.2);border-radius:2px;
  display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;padding:2px 2px 3px;gap:2px}
.cb-lg{width:18px;height:30px}.cb-sm{width:13px;height:23px}
.cb-hl{width:10px;height:12px;background:#42A5F5;border-radius:1px}
.cb-hs{width:7px;height:9px;background:#42A5F5;border-radius:1px}
.cb-l{font-size:.2rem;color:rgba(255,255,255,.7);font-weight:700}

/* Featured text */
.featured__lbl{display:block;margin-bottom:.875rem}
.featured__by{font-size:.875rem;color:var(--ink-light);font-weight:500;
  margin-bottom:.4rem;margin-top:.75rem}
.featured__title{margin-bottom:1.2rem;letter-spacing:-.015em}
.featured__desc{font-size:1.05rem;max-width:500px;line-height:1.8;margin-bottom:1.75rem}
.featured__price{font-family:var(--f-serif);font-size:1.5rem;font-weight:800;
  color:var(--ink);margin-bottom:1.5rem;display:flex;align-items:center;gap:.75rem}
.featured__old{font-family:var(--f-sans);font-size:.9rem;font-weight:400;
  color:var(--ink-light);text-decoration:line-through}
.featured__save{font-size:.72rem;font-weight:700;background:#E8F5E9;
  color:#2E7D32;padding:.2rem .55rem;border-radius:2px}

/* ══════════════════════════════════
   TRUST STRIP
══════════════════════════════════ */
.trust{background:var(--white);border-bottom:1px solid var(--border);padding:1.5rem 0}
.trust__row{display:flex;align-items:stretch;justify-content:center}
.trust__item{flex:1;text-align:center;padding:.5rem 1.5rem;
  border-right:1px solid var(--border)}
.trust__item:last-child{border-right:none}
.trust__num{display:block;font-family:var(--f-serif);font-size:1.85rem;
  font-weight:800;color:var(--navy);line-height:1;margin-bottom:.2rem}
.trust__num span{color:var(--amber-d)}
.trust__lbl{font-size:.8rem;color:var(--ink-light);font-weight:500}

/* ══════════════════════════════════
   BOOKS GRID
══════════════════════════════════ */
.books-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem 1.75rem}

.bcard{display:flex;flex-direction:column;cursor:pointer}
.bcard__cover{width:100%;aspect-ratio:5/7;
  border-radius:3px 8px 8px 3px;box-shadow:var(--shadow-book);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);margin-bottom:1rem}
.bcard:hover .bcard__cover{transform:translateY(-5px) rotate(.8deg);box-shadow:var(--shadow-book-h)}
.bcard__by{font-size:.78rem;color:var(--ink-light);font-weight:500;margin-bottom:.3rem}
.bcard__title{font-family:var(--f-serif);font-size:.95rem;font-weight:700;
  color:var(--ink);line-height:1.3;margin-bottom:.5rem;transition:color var(--t)}
.bcard:hover .bcard__title{color:var(--navy)}
.bcard__price{font-size:.88rem;font-weight:700;color:var(--ink);margin-top:auto}
.bcard__buy{display:inline-block;margin-top:.4rem;font-size:.78rem;font-weight:700;
  color:var(--amber-d);transition:color var(--t)}
.bcard:hover .bcard__buy{color:var(--navy)}

.books-all{text-align:center;margin-top:3rem}

/* ══════════════════════════════════
   COLLECTIONS (Starter Packs)
══════════════════════════════════ */
.coll-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.coll-card{background:var(--white);border:1px solid var(--border);
  border-radius:4px;padding:2.25rem 2rem;transition:all var(--t);cursor:pointer}
.coll-card:hover{transform:translateY(-4px);
  box-shadow:var(--shadow-hover);border-color:transparent}
.coll-minis{display:flex;gap:6px;margin-bottom:1.5rem;align-items:flex-end;height:72px}
.coll-mini{width:44px;aspect-ratio:5/7;border-radius:2px 5px 5px 2px;flex-shrink:0;
  box-shadow:3px 5px 12px rgba(0,0,0,.18),-1px 0 0 rgba(0,0,0,.1)}
.coll-card__lbl{display:block;margin-bottom:.75rem}
.coll-card__title{font-family:var(--f-serif);font-size:1.2rem;font-weight:700;
  color:var(--ink);margin-bottom:.5rem}
.coll-card__desc{font-size:.875rem;color:var(--ink-mid);line-height:1.7;margin-bottom:1rem}
.coll-card__link{font-size:.82rem;font-weight:700;color:var(--amber-d);transition:color var(--t)}
.coll-card:hover .coll-card__link{color:var(--navy)}

/* ══════════════════════════════════
   WHY IDEMY
══════════════════════════════════ */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3rem}
.why-item__icon{font-size:2rem;margin-bottom:1rem;display:block}
.why-item__title{font-family:var(--f-serif);font-size:1.15rem;font-weight:700;
  color:var(--ink);margin-bottom:.6rem}
.why-item__text{font-size:.9rem;color:var(--ink-mid);line-height:1.75}

/* ══════════════════════════════════
   BLOG
══════════════════════════════════ */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.acard{background:var(--white);border:1px solid var(--border);
  border-radius:4px;overflow:hidden;transition:all var(--t)}
.acard:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover);border-color:transparent}
.acard__thumb{height:155px;background:linear-gradient(135deg,var(--navy),#1e3a6e);
  display:flex;align-items:center;justify-content:center;font-size:3.5rem;
  position:relative;overflow:hidden}
.acard__thumb::after{content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,transparent 55%,rgba(26,43,74,.25))}
.acard__body{padding:1.4rem}
.acard__cat{font-size:.68rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--amber-d);margin-bottom:.45rem}
.acard__title{font-family:var(--f-serif);font-size:1rem;font-weight:700;
  color:var(--ink);line-height:1.3;margin-bottom:.45rem;transition:color var(--t)}
.acard:hover .acard__title{color:var(--navy)}
.acard__meta{font-size:.75rem;color:var(--ink-light);
  display:flex;gap:1rem;margin-bottom:.7rem}
.acard__excerpt{font-size:.875rem;color:var(--ink-mid);line-height:1.7;margin-bottom:.9rem}
.acard__more{font-size:.8rem;font-weight:700;color:var(--amber-d);
  display:inline-flex;align-items:center;gap:.3rem;transition:gap var(--t)}
.acard:hover .acard__more{gap:.6rem}

/* ══════════════════════════════════
   NEWSLETTER
══════════════════════════════════ */
.nl{padding:5.5rem 0;text-align:center;position:relative;overflow:hidden}
.nl::before{content:'';position:absolute;top:-50%;right:-5%;
  width:500px;height:500px;border-radius:50%;
  background:radial-gradient(circle,rgba(244,166,35,.07) 0%,transparent 70%);
  pointer-events:none}
.nl h2{color:var(--white);margin-bottom:.75rem}
.nl__sub{color:rgba(255,255,255,.6);max-width:480px;margin:0 auto 2.5rem;font-size:1.05rem}
.nl__gift{display:inline-flex;align-items:center;gap:.75rem;
  background:rgba(244,166,35,.1);border:1px solid rgba(244,166,35,.25);
  border-radius:2px;padding:.75rem 1.25rem;
  color:var(--amber);font-size:.875rem;font-weight:600;margin-bottom:2rem}
.nl__form{display:flex;max-width:440px;margin:0 auto;
  border-radius:2px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.25)}
.nl__input{flex:1;padding:.9rem 1.2rem;border:none;outline:none;
  font-family:var(--f-sans);font-size:.95rem;color:var(--ink);background:var(--white)}
.nl__input::placeholder{color:var(--ink-light)}
.nl__btn{background:var(--amber);color:var(--navy);border:none;
  padding:.9rem 1.5rem;font-family:var(--f-sans);font-weight:800;
  font-size:.875rem;cursor:pointer;transition:background var(--t);white-space:nowrap}
.nl__btn:hover{background:var(--amber-d)}
.nl__note{margin-top:1rem;font-size:.78rem;color:rgba(255,255,255,.35)}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer{background:var(--navy-dark);color:rgba(255,255,255,.55);padding:4.25rem 0 2rem}
.footer__grid{display:grid;grid-template-columns:minmax(300px,1.35fr) repeat(2,minmax(180px,.75fr));
  gap:4rem;align-items:start;margin-bottom:3rem;padding-bottom:3rem;
  border-bottom:1px solid rgba(255,255,255,.07)}
.footer__brand p{color:rgba(255,255,255,.45);font-size:.875rem;
  line-height:1.8;max-width:340px;margin-top:.875rem}
.footer__contact{font-size:.8rem;color:rgba(255,255,255,.35);margin-top:.75rem;line-height:1.8}
.footer__social{display:flex;align-items:center;gap:.65rem;margin-top:1.5rem}
.social-btn{
  width:42px;height:42px;border-radius:6px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.64);
  transition:background-color var(--t),border-color var(--t),color var(--t),transform var(--t),box-shadow var(--t);
  cursor:pointer;text-decoration:none
}
.social-btn svg{width:19px;height:19px;display:block}
.social-btn:hover{transform:translateY(-3px);color:var(--white);box-shadow:0 14px 28px rgba(0,0,0,.24)}
.social-btn:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.social-btn--fb:hover{background:#1877f2;border-color:#1877f2}
.social-btn--tt:hover{background:#111;border-color:rgba(255,255,255,.24);box-shadow:0 14px 28px rgba(0,0,0,.28),3px 0 0 #25f4ee,-3px 0 0 #fe2c55}
.social-btn--yt:hover{background:#ff0033;border-color:#ff0033}
.footer__col h5{color:var(--white);font-family:var(--f-sans);
  font-size:.75rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:1.25rem}
.footer__col ul{display:flex;flex-direction:column;gap:.55rem}
.footer__col a{font-size:.84rem;color:rgba(255,255,255,.45);transition:color var(--t)}
.footer__col a:hover{color:var(--amber)}
.footer__bottom{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:.75rem;font-size:.78rem;color:rgba(255,255,255,.28)}
.footer__bottom a{color:rgba(255,255,255,.28);transition:color var(--t)}
.footer__bottom a:hover{color:var(--amber)}

/* ══════════════════════════════════
   LEGAL / SUPPORT PAGES
══════════════════════════════════ */
.support-page{padding:132px 0 5.5rem;background:var(--white)}
.support-page__head{max-width:760px;margin-bottom:3rem}
.support-page__kicker{display:inline-block;font-size:.72rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--amber-d);margin-bottom:.85rem}
.support-page__title{margin-bottom:1rem;letter-spacing:-.02em}
.support-page__lead{font-size:1.05rem;max-width:680px}
.support-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:4rem;align-items:start}
.support-content{max-width:760px}
.support-content h2{font-size:1.45rem;margin:2.5rem 0 .85rem;padding-top:.85rem;
  border-top:1px solid var(--border)}
.support-content h2:first-child{margin-top:0;padding-top:0;border-top:0}
.support-content h3{font-family:var(--f-sans);font-size:.95rem;font-weight:800;
  color:var(--ink);margin:1.6rem 0 .4rem}
.support-content p,.support-content li{font-size:1rem;color:var(--ink-mid);line-height:1.9}
.support-content p{margin-bottom:1.1rem}
.support-content ul,.support-content ol{list-style:disc;margin:0 0 1.2rem 1.25rem}
.support-content ol{list-style:decimal}
.support-box{background:var(--cream);border:1px solid var(--border);border-radius:4px;
  padding:1.25rem 1.4rem;margin:1.5rem 0}
.support-box p{margin:0}
.support-sidebar{position:sticky;top:112px;background:var(--cream);border:1px solid var(--border);
  border-radius:4px;padding:1.35rem}
.support-sidebar__title{font-size:.68rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-light);margin-bottom:1rem;padding-bottom:.65rem;
  border-bottom:1px solid var(--border)}
.support-sidebar ul{display:flex;flex-direction:column;gap:.65rem}
.support-sidebar a{font-size:.88rem;color:var(--ink-mid);line-height:1.45;transition:color var(--t)}
.support-sidebar a:hover{color:var(--navy)}
.contact-list{display:grid;gap:.85rem;margin:1.25rem 0}
.contact-list__item{border:1px solid var(--border);border-radius:4px;padding:1rem 1.15rem;
  background:var(--cream)}
.contact-list__item strong{display:block;color:var(--ink);margin-bottom:.25rem}
.contact-list__item a{color:var(--navy);font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* ══════════════════════════════════
   SCROLL TOP + REVEAL
══════════════════════════════════ */
.scroll-top{position:fixed;bottom:1.75rem;right:1.75rem;width:44px;height:44px;
  background:var(--amber);color:var(--navy);border:none;border-radius:2px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  font-size:1.1rem;font-weight:700;box-shadow:0 4px 16px rgba(244,166,35,.4);
  transition:all var(--t);opacity:0;visibility:hidden;z-index:900}
.scroll-top.visible{opacity:1;visibility:visible}
.scroll-top:hover{background:var(--amber-d);transform:translateY(-2px)}

.reveal{opacity:0;transform:translateY(20px);
  transition:opacity .6s var(--ease),transform .6s var(--ease)}
.reveal.visible{opacity:1;transform:translateY(0)}
.rd1{transition-delay:.1s}.rd2{transition-delay:.2s}
.rd3{transition-delay:.3s}.rd4{transition-delay:.4s}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media(max-width:1024px){
  .featured__inner{grid-template-columns:260px 1fr;gap:3.5rem}
  .books-grid{grid-template-columns:repeat(3,1fr)}
  .footer__grid{grid-template-columns:1.2fr 1fr 1fr;gap:2.5rem}
  .footer__brand{grid-column:auto}
}
@media(max-width:768px){
  .section{padding:3.5rem 0}
  .container{padding:0 1.1rem}

  /* Header — ẩn social icons, chỉ giữ logo + hamburger */
  .header-socials{display:none}
  .nav{display:none}
  .hamburger{display:flex}

  /* Logo — thu nhỏ trên tablet */
  .logo__badge{width:34px;height:34px}
  .logo__badge-img{width:34px;height:34px}
  .logo__wordmark{font-size:1.25rem}

  /* Stripe — nhỏ hơn trên mobile */
  .header-stripe{height:28px}

  /* Hero — header(64) + stripe(28) = 92px, padding 108px = 16px breathing room */
  .hero{padding:108px 0 3rem}
  .hero__lead{font-size:1rem;margin-bottom:2rem}

  /* Featured */
  .featured__inner{grid-template-columns:1fr;gap:2rem}
  .featured__cover-wrap{max-width:200px;margin:0 auto}
  .featured__title{font-size:clamp(1.3rem,5vw,2rem)}
  .featured__desc{font-size:.95rem;margin-bottom:1.25rem}

  /* Notify row — stack dọc trên mobile */
  .notify-row{flex-direction:column;align-items:stretch;gap:.875rem}
  .btn-waitlist{width:100%;justify-content:center;font-size:.95rem;padding:.85rem 1.5rem}
  .countdown-box{min-width:0;width:100%}

  /* Trust strip */
  .trust__row{flex-wrap:wrap}
  .trust__item{flex:1 1 45%;border-right:none;border-bottom:1px solid var(--border)}
  .trust__item:nth-child(odd){border-right:1px solid var(--border)}
  .trust__num{font-size:1.5rem}

  /* Grids */
  .books-grid{grid-template-columns:repeat(2,1fr);gap:1.75rem 1.25rem}
  .coll-grid,.why-grid,.blog-grid{grid-template-columns:1fr}

  /* Why */
  .why-grid{gap:2rem}

  /* Blog */
  .acard__thumb{height:130px}

  /* Newsletter */
  .nl{padding:3.5rem 0}
  .nl__form{flex-direction:column;overflow:visible;background:transparent;box-shadow:none}
  .nl__input{border-radius:2px;box-shadow:0 2px 10px rgba(0,0,0,.15)}
  .nl__btn{border-radius:2px;padding:.85rem 1.5rem}

  /* Footer */
  .footer__grid{grid-template-columns:1fr}
  .footer__brand{grid-column:span 1}
  .footer__bottom{flex-direction:column;text-align:center;gap:.5rem}

  /* Support pages */
  .support-page{padding:104px 0 3.5rem}
  .support-layout{grid-template-columns:1fr;gap:2rem}
  .support-sidebar{position:static;order:-1}

  /* Mobile nav */
  .mobile-nav__link{font-size:1.9rem}
}
/* ══════════════════════════════════
   BLOG PAGES
══════════════════════════════════ */

/* Active nav link (for blog pages) */
.nav__link--active::after { transform: scaleX(1); }

/* Blog index hero */
.blog-page-hero {
  padding: 130px 0 3.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.blog-page-hero__kicker {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-d); margin-bottom: .875rem;
}
.blog-page-hero__title { margin-bottom: .5rem; letter-spacing: -.025em; }
.blog-page-hero__sub {
  font-size: 1rem; color: var(--ink-mid);
  max-width: 500px; margin: 0 auto; line-height: 1.8;
}

/* Post count label */
.plist__label {
  font-size: .78rem; color: var(--ink-light);
  margin-bottom: 2rem; padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
}
.plist__label strong { color: var(--ink); }

/* Blog 2-column variant */
.blog-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Post header */
.post-header {
  padding: 130px 0 3.5rem;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--ink-light); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-light); transition: color var(--t); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { opacity: .4; }

.post-header__cat {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--amber-d); margin-bottom: .875rem;
}
.post-header__title {
  font-family: var(--f-serif);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800; color: var(--ink);
  line-height: 1.15; letter-spacing: -.025em;
  max-width: 780px; margin-bottom: 1.25rem;
}
.post-header__meta {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; font-size: .8rem; color: var(--ink-light);
}
.post-header__excerpt {
  margin-top: 1.25rem; font-size: 1.1rem; color: var(--ink-mid);
  max-width: 680px; line-height: 1.85;
  border-left: 4px solid var(--amber); padding-left: 1.25rem;
}

/* Post layout: article + sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  padding: 4rem 0 5.5rem;
  align-items: start;
}

/* Post content typography */
.post-content h2 {
  font-family: var(--f-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--ink); margin: 2.75rem 0 .875rem; line-height: 1.25;
  padding-top: .75rem; border-top: 1px solid var(--border);
}
.post-content h3 {
  font-family: var(--f-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); margin: 2rem 0 .6rem; line-height: 1.3;
}
.post-content p {
  font-size: 1.025rem; color: var(--ink-mid);
  line-height: 1.9; margin-bottom: 1.35rem;
}
.post-content ul, .post-content ol {
  margin: 0 0 1.35rem 1.4rem;
  font-size: 1.025rem; color: var(--ink-mid); line-height: 1.85;
}
.post-content li { margin-bottom: .4rem; }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--amber-d); }

/* Callout boxes */
.callout {
  background: var(--amber-xl); border-left: 4px solid var(--amber);
  border-radius: 0 4px 4px 0; padding: 1rem 1.35rem; margin: 1.75rem 0;
}
.callout--navy { background: rgba(26,43,74,.06); border-left-color: var(--navy); }
.callout p { margin: 0; font-size: .95rem; }

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin: 1.75rem 0; font-size: .9rem;
  display: block; overflow-x: auto;
}
.compare-table th {
  background: var(--navy); color: var(--white);
  padding: .65rem 1rem; text-align: left;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.compare-table td {
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--ink-mid); vertical-align: top;
}
.compare-table tbody tr:nth-child(even) td { background: var(--cream); }
.compare-table tbody tr:hover td { background: var(--amber-xl); }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.post-sidebar__box {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.post-sidebar__title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-light);
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.post-toc { list-style: none; padding: 0; margin: 0; }
.post-toc li { margin-bottom: .55rem; }
.post-toc a {
  font-size: .855rem; color: var(--ink-mid); line-height: 1.4; display: block;
  transition: color var(--t), border-color var(--t);
  padding-left: .75rem; border-left: 2px solid transparent;
}
.post-toc a:hover { color: var(--navy); border-left-color: var(--amber); }

/* Post footer navigation */
.post-foot {
  border-top: 2px solid var(--border);
  padding: 2.5rem 0;
  display: flex; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-top: 1rem;
}
.post-foot__link { display: flex; flex-direction: column; gap: .35rem; max-width: 300px; }
.post-foot__link--right { text-align: right; align-items: flex-end; }
.post-foot__dir {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-light);
}
.post-foot__title {
  font-family: var(--f-serif); font-weight: 700; color: var(--navy);
  line-height: 1.35; font-size: 1rem; transition: color var(--t);
}
.post-foot__title:hover { color: var(--amber-d); }

/* Blog responsive */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-sidebar { display: none; }
  .blog-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .post-header { padding: 90px 0 2.5rem; }
  .blog-page-hero { padding: 90px 0 2.5rem; text-align: left; }
  .blog-page-hero__sub { font-size: .95rem; }
  .divider--c { margin: .75rem 0; }
  .post-header__title { font-size: clamp(1.55rem, 5vw, 2rem); }
  .post-header__meta { gap: .875rem; flex-wrap: wrap; }
  .post-header__excerpt { font-size: 1rem; padding-left: .875rem; }
  .post-content h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; }
  .post-content h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
  .post-content p,
  .post-content ul,
  .post-content ol { font-size: .975rem; line-height: 1.8; }
  .post-foot { flex-direction: column; gap: 1.5rem; }
  .post-foot__link--right { text-align: left; align-items: flex-start; }
  .plist__label { font-size: .75rem; }
}
@media (max-width: 480px) {
  .blog-page-hero__title { font-size: 1.75rem; }
  .post-header { padding: 84px 0 2rem; }
  .post-header__title { font-size: 1.5rem; letter-spacing: -.015em; }
  .post-header__excerpt { font-size: .95rem; }
  .post-content h2 { font-size: 1.2rem; }
  .compare-table th,
  .compare-table td { padding: .5rem .65rem; font-size: .82rem; }
  .callout { padding: .875rem 1rem; }
  .post-foot__title { font-size: .95rem; }
  .breadcrumb { font-size: .72rem; }
}

@media(max-width:480px){
  .container{padding:0 1rem}

  /* Typography */
  h1{font-size:1.85rem}
  h2{font-size:1.5rem}

  /* Logo — mobile nhỏ hơn nữa */
  .logo__badge{width:30px;height:30px}
  .logo__badge-img{width:30px;height:30px}
  .logo__wordmark{font-size:1.1rem}

  /* Stripe — nhỏ nhất trên điện thoại */
  .header-stripe{height:24px}

  /* Hero — header(64) + stripe(24) = 88px, padding 100px = 12px breathing room */
  .hero{padding:100px 0 2.5rem}
  .hero__cta{flex-direction:column;align-items:stretch}
  .btn--lg{width:100%;justify-content:center}

  /* Featured */
  .featured__cover-wrap{max-width:165px}
  .featured{padding:3rem 0}

  /* Trust — 1 cột trên màn hình nhỏ */
  .trust__item{flex:1 1 100%;border-right:none}
  .trust__item:nth-child(odd){border-right:none}

  /* Countdown */
  .cd-num{font-size:1.65rem}
  .cd-sep{font-size:1.5rem}

  /* Books grid vẫn 2 cột */
  .books-grid{grid-template-columns:1fr 1fr;gap:1.25rem .875rem}

  /* Newsletter */
  .nl__gift{font-size:.8rem;padding:.6rem 1rem;text-align:center}

  /* Mobile nav */
  .mobile-nav__link{font-size:1.65rem}
  .mobile-nav{gap:1.5rem}
}
