:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#4b5563;
  --border:rgba(15, 23, 42, 0.10);
  --surface:#f8fafc;
  --surface2:#ffffff;
  --accent:#2563eb;
  --accent2:#7c3aed;
  --accentHover:#1d4ed8;
  --maxw:1120px;
  --radius:16px;
  --shadow:0 1px 2px rgba(15,23,42,0.06), 0 8px 30px rgba(15,23,42,0.08);
  --shadowSm:0 1px 2px rgba(15,23,42,0.06);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

body::before{
  content:"";
  position:fixed;
  inset:-40vh -30vw auto -30vw;
  height:80vh;
  pointer-events:none;
  background:
    radial-gradient(60% 60% at 25% 35%, rgba(37,99,235,0.10) 0%, rgba(37,99,235,0) 60%),
    radial-gradient(55% 55% at 70% 25%, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0) 62%),
    radial-gradient(60% 60% at 55% 80%, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0) 60%);
  filter:saturate(1.1);
  z-index:-1;
}

a{color:var(--accent);text-decoration:none;}
a:hover{text-decoration:underline;}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:3px solid rgba(37,99,235,0.30);
  outline-offset:2px;
}

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  z-index:1000;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.78);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:180px;
}

.brand img{
  width:34px;
  height:34px;
  border-radius:8px;
  box-shadow:var(--shadowSm);
}

.brand-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-title strong{font-size:14px;letter-spacing:0.2px;}
.brand-title span{font-size:12px;color:var(--muted);}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  color:var(--text);
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  transition:background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav a:hover{
  background:rgba(2,6,23,0.04);
  text-decoration:none;
}

.nav a[aria-current="page"]{
  background:rgba(37,99,235,0.10);
  color:var(--accent);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,0.14);
}

.nav a[aria-current="page"]:hover{
  background:rgba(37,99,235,0.14);
  color:var(--accent);
}

.nav .nav-cta{
  color:#fff;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow:var(--shadowSm);
}

.nav .nav-cta:hover{
  color:#fff;
  background:linear-gradient(135deg, var(--accentHover) 0%, #6d28d9 100%);
  box-shadow:0 8px 20px rgba(37,99,235,0.22);
  filter:none;
}

.hero{
  padding:64px 0 28px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:28px;
  align-items:start;
}

.h-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
  background:rgba(255,255,255,0.75);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  backdrop-filter:blur(10px);
}

h1{
  margin:14px 0 10px;
  font-size:46px;
  letter-spacing:-0.8px;
  line-height:1.05;
}

.grad{
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  max-width:62ch;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.85);
  color:var(--text);
  font-weight:600;
  font-size:14px;
  backdrop-filter:blur(12px);
}

.btn-primary{
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color:#fff;
  border-color:transparent;
  box-shadow:var(--shadowSm);
}

.btn-primary:hover{
  background:linear-gradient(135deg, var(--accentHover) 0%, #6d28d9 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(37,99,235,0.24);
  filter:none;
  text-decoration:none;
}

.btn:hover{
  text-decoration:none;
  background:#e8f0ff;
  border-color:rgba(37,99,235,0.28);
  color:var(--accent);
}

.stat-card{
  border:1px solid var(--border);
  background:rgba(255,255,255,0.80);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.stat{
  border:1px solid var(--border);
  background:rgba(2,6,23,0.025);
  border-radius:12px;
  padding:12px;
}

.stat strong{display:block;font-size:18px;}
.stat span{color:var(--muted);font-size:13px;}

.section{
  padding:28px 0;
}

.section h2{
  margin:0 0 10px;
  font-size:22px;
}

.section p{margin:0;color:var(--muted);}

.mini-note{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--border);
}

.mini-note h2{
  margin:0 0 10px;
  font-size:16px;
}

.mini-note p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.86);
  padding:16px;
  box-shadow:var(--shadowSm);
  backdrop-filter:blur(14px);
  min-height:148px;
}

.card h3{margin:0 0 8px;font-size:15px;}
.card p{margin:0;color:var(--muted);font-size:14px;}

.feature-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(248,250,252,0.9) 100%);
  box-shadow:var(--shadowSm);
  backdrop-filter:blur(14px);
}

.feature-band h2{
  margin:0 0 8px;
}

.feature-band p{
  max-width:62ch;
}

.footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:var(--muted);
  font-size:13px;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.social{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.icon-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.85);
  color:var(--text);
  backdrop-filter:blur(14px);
}

.icon-link img{
  width:22px;
  height:22px;
  display:block;
}

.icon-link:hover{
  background:#eef4ff;
  border-color:rgba(37,99,235,0.24);
  color:var(--accent);
  text-decoration:none;
}

/* Books page */
.page-title{margin:0;font-size:30px;letter-spacing:-0.4px;}
.page-sub{margin:8px 0 0;color:var(--muted);}
.comparison-note{
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,0.78);
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.toolbar{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.search{
  flex:1;
  min-width:240px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 14px;
  background:rgba(255,255,255,0.85);
  box-shadow:var(--shadowSm);
  backdrop-filter:blur(14px);
}

.search input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
}

.badge{
  border:1px solid var(--border);
  background:rgba(2,6,23,0.025);
  border-radius:999px;
  padding:6px 10px;
  color:var(--muted);
  font-size:12px;
}

.table-wrap{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,0.85);
  box-shadow:var(--shadowSm);
  backdrop-filter:blur(14px);
}

table{width:100%;border-collapse:collapse;}
th,td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;}
th{font-size:12px;color:var(--muted);background:rgba(2,6,23,0.025);font-weight:700;letter-spacing:0.3px;text-transform:uppercase;}
tr:last-child td{border-bottom:none;}

.book-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0;
  border:none;
  background:none;
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  width:100%;
}

.book-toggle:hover .book-toggle__label{text-decoration:underline;}

.book-toggle__label{
  font-weight:700;
}

.book-toggle__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:16px;
  height:16px;
  color:var(--muted);
  transition:transform 0.18s ease;
}

.book-toggle__icon::before{
  content:"";
  display:block;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  transform-origin:center;
}

.book-toggle[aria-expanded="true"] .book-toggle__icon{
  transform:rotate(180deg);
}

.book-meta{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}

.strategy-row td{
  padding-top:0;
  background:rgba(2,6,23,0.02);
}

.strategy-panel{
  padding:0 0 14px;
}

.strategy-panel__title{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:0.3px;
  text-transform:uppercase;
  margin-bottom:10px;
}

.strategy-list{
  margin:0;
  padding-left:18px;
}

.strategy-item{
  margin:0;
  color:var(--text);
}

.strategy-item + .strategy-item{
  margin-top:6px;
}

.strategy-item.empty{
  color:var(--muted);
  font-style:italic;
}

.buy{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--accent);
}

.buy svg{width:16px;height:16px;}

.buy--single{
  white-space:nowrap;
}

.buy--offer{
  justify-content:center;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  white-space:nowrap;
}

.buy--paid{
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color:#fff;
  box-shadow:var(--shadowSm);
}

.buy--paid:hover{
  color:#fff;
  text-decoration:none;
  filter:brightness(1.02);
}

.buy--free{
  background:linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(34,197,94,0.22);
}

.buy--free:hover{
  color:#fff;
  text-decoration:none;
  filter:brightness(1.03);
}

.offer-placeholder{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  border:1px dashed rgba(15,23,42,0.16);
  background:rgba(15,23,42,0.03);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.cards-list{display:none;margin-top:14px;gap:12px;}
.book-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  background:rgba(255,255,255,0.86);
  box-shadow:var(--shadowSm);
  backdrop-filter:blur(14px);
}
.book-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.book-card .meta{color:var(--muted);font-size:13px;margin-top:6px;}
.book-card .strategy-panel{margin-top:12px;padding-bottom:0;}
.book-card .row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap;}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  h1{font-size:40px;}
  .cards{grid-template-columns:repeat(2,1fr);}
  .feature-band{flex-direction:column;align-items:flex-start;}
}

@media (max-width:640px){
  .cards{grid-template-columns:1fr;}
  h1{font-size:34px;}
  .hero{padding-top:42px;}
  .feature-band{padding:18px;}
}

@media (max-width:720px){
  .table-wrap{display:none;}
  .cards-list{display:grid;}
  .header-inner{gap:10px;}
  .brand{min-width:auto;}
  .nav{width:100%;justify-content:flex-start;gap:10px;}
  .nav .nav-cta{width:100%;justify-content:center;}
  .actions{width:100%;}
  .actions .btn{width:100%;}
}
