/* ═══════════════════════════════════════════════════════════════════
   EbooksAura — Light Theme · Professional Communication Site
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg: #fafaf9;
  --bg-soft: #ffffff;
  --bg-tinted: #f5f5f4;
  --bg-card: #ffffff;
  --ink-1: #0c0a09;
  --ink-2: #292524;
  --ink-3: #57534e;
  --ink-4: #78716c;
  --ink-5: #a8a29e;
  --line: #e7e5e4;
  --line-soft: #f5f5f4;
  --brand: #1e40af;
  --brand-hover: #1e3a8a;
  --brand-soft: #dbeafe;
  --brand-tinted: #eff6ff;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: #fef3c7;
  --success: #15803d;
  --success-soft: #dcfce7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(12,10,9,0.04), 0 1px 3px rgba(12,10,9,0.06);
  --shadow-md: 0 4px 12px rgba(12,10,9,0.06), 0 2px 4px rgba(12,10,9,0.04);
  --shadow-lg: 0 12px 32px rgba(12,10,9,0.08), 0 4px 8px rgba(12,10,9,0.04);
  --shadow-xl: 0 24px 56px rgba(12,10,9,0.10), 0 8px 16px rgba(12,10,9,0.06);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink-1); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--ink-3); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,250,249,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; color: var(--ink-1); letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%); color: white; border-radius: 10px; font-family: var(--font-sans); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { display: inline-block; padding: 0.5rem 1rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink-1); background: var(--bg-tinted); }
.nav-links a.active { color: var(--brand); background: var(--brand-tinted); }
.nav-cta { margin-left: 0.5rem; }

.cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--ink-2); transition: background 0.2s; }
.cart-icon:hover { background: var(--bg-tinted); }
.cart-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: white; border-radius: 9px; font-size: 0.6875rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; padding: 0.5rem; border-radius: var(--radius-sm); color: var(--ink-2); }
  .nav-toggle:hover { background: var(--bg-tinted); }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; gap: 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.875rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all 0.2s var(--ease); white-space: nowrap; text-align: center; }
.btn-primary { background: var(--ink-1); color: white; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brand { background: var(--brand); color: white; }
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink-1); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-tinted); border-color: var(--ink-5); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-tinted); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* Hero */
.hero { padding: 5rem 0 4rem; background: var(--bg); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%); opacity: 0.5; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -200px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); opacity: 0.4; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; position: relative; }
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero-lede { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-3); margin-bottom: 2rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--ink-1); font-weight: 600; }
.hero-stat span { font-size: 0.875rem; color: var(--ink-4); }

.hero-visual { position: relative; height: 480px; display: grid; place-items: center; }
.hero-book { position: absolute; width: 220px; height: 290px; border-radius: 8px 4px 4px 8px; box-shadow: var(--shadow-xl), inset 6px 0 0 rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem 1.5rem 1.5rem 2rem; font-family: var(--font-display); color: white; font-weight: 600; font-size: 1.4rem; line-height: 1.15; transition: transform 0.4s var(--ease); }
.hero-book .corner { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; }
.hero-book-1 { background: linear-gradient(135deg, #1e40af, #3b82f6); transform: rotate(-8deg) translate(-90px, -10px); z-index: 1; }
.hero-book-2 { background: linear-gradient(135deg, #0d9488, #14b8a6); transform: rotate(2deg) translate(0, 20px); z-index: 3; }
.hero-book-3 { background: linear-gradient(135deg, #b45309, #f59e0b); transform: rotate(10deg) translate(90px, -10px); z-index: 2; }
.hero-visual:hover .hero-book-1 { transform: rotate(-12deg) translate(-110px, -10px); }
.hero-visual:hover .hero-book-3 { transform: rotate(14deg) translate(110px, -10px); }

@media (max-width: 880px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 360px; transform: scale(0.85); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-tinted { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }

/* Book card */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.book-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; display: flex; flex-direction: column; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-5); }
.book-cover { aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: 1.75rem; position: relative; overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; line-height: 1.05; }
.book-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%), radial-gradient(circle at 20% 80%, rgba(0,0,0,0.15), transparent 50%); pointer-events: none; }
.book-cover .book-tag { position: absolute; top: 1rem; right: 1rem; padding: 0.375rem 0.75rem; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; border-radius: 999px; }
.book-cover .book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(to right, rgba(0,0,0,0.18), transparent); }
.book-cover .book-cover-text { position: relative; z-index: 1; }

.book-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.book-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-1); line-height: 1.25; margin-bottom: 0.375rem; }
.book-subtitle { font-size: 0.875rem; color: var(--ink-4); margin-bottom: 1rem; line-height: 1.4; }
.book-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--ink-4); margin-bottom: 1rem; }
.book-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.book-desc { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); margin-bottom: 1.25rem; flex: 1; }
.book-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.book-price { display: flex; align-items: baseline; gap: 0.5rem; }
.book-price .new { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink-1); }
.book-price .old { font-size: 0.9375rem; color: var(--ink-5); text-decoration: line-through; }

/* Page hero */
.page-hero { padding: 4rem 0 3rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.0625rem; max-width: 620px; margin: 0 auto; }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: 3rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; line-height: 1.7; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--brand); border-bottom: 1px solid var(--brand-soft); }
.prose a:hover { border-color: var(--brand); }
.prose strong { color: var(--ink-1); font-weight: 600; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feature { padding: 1.75rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 44px; height: 44px; background: var(--brand-soft); color: var(--brand); border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem; }
.feature h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.9375rem; line-height: 1.55; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 1.5rem 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink-1); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300; color: var(--ink-4); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 1.5rem; color: var(--ink-3); line-height: 1.65; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.form-control { padding: 0.75rem 0.875rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-1); transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.form-control { resize: vertical; min-height: 120px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info-card { background: var(--ink-1); color: white; padding: 2.5rem; border-radius: var(--radius-lg); }
.contact-info-card h3 { color: white; margin-bottom: 0.5rem; }
.contact-info-card > p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.contact-info-list { list-style: none; }
.contact-info-list li { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact-info-list strong { color: rgba(255,255,255,0.6); font-weight: 500; font-size: 0.875rem; }
.contact-info-list a { color: white; }
.contact-form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } .contact-info-card, .contact-form-card { padding: 2rem; } }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(12,10,9,0.4); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg-soft); z-index: 999; transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--font-display); font-size: 1.25rem; }
.cart-close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-3); }
.cart-close:hover { background: var(--bg-tinted); color: var(--ink-1); }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty-icon { width: 64px; height: 64px; background: var(--bg-tinted); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; color: var(--ink-4); }
.cart-empty h4 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.25rem; }
.cart-empty p { font-size: 0.875rem; color: var(--ink-4); }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-cover { width: 56px; height: 72px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.7rem; color: white; text-align: center; padding: 0.25rem; line-height: 1.1; font-weight: 600; overflow: hidden; }
.cart-item-info { min-width: 0; }
.cart-item-title { font-weight: 600; font-size: 0.9375rem; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.8125rem; color: var(--ink-4); margin-top: 0.125rem; }
.cart-item-remove { font-size: 0.75rem; color: var(--ink-5); text-decoration: underline; padding: 0; }
.cart-item-remove:hover { color: var(--danger); }
.cart-foot { border-top: 1px solid var(--line); padding: 1.5rem; background: var(--bg-tinted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-1); }

/* Footer */
.site-footer { padding: 4rem 0 2rem; background: var(--ink-1); color: rgba(255,255,255,0.7); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.75rem;}
.footer-tagline { font-size: 0.9375rem; line-height: 1.55; margin-bottom: 1.5rem; max-width: 320px; }
.site-footer h4 { color: white; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-list a:hover { color: white; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Util */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
