/* EduDoc Vault — hand-rolled stylesheet. No frameworks, no external CSS. */

/* ---------- Tokens ---------- */
:root {
  --ink: #1d2a35;
  --ink-soft: #4a5a68;
  --paper: #ffffff;
  --paper-warm: #faf7f1;
  --brand: #14467e;
  --brand-deep: #0d2f59;
  --accent: #d99a2b;
  --accent-deep: #b87f1c;
  --line: #e4e0d6;
  --ok: #2e7d4f;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 70, 126, 0.10);
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }

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

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.nav { display: flex; gap: 22px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #231a04;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(217, 154, 43, 0.18), transparent),
    linear-gradient(160deg, #f4f8fd 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--brand-deep);
  max-width: 18ch;
  margin: 0 auto 0.5em;
}
.hero .sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 1.6em;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Trust badges ---------- */
.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--brand-deep); }
.section-head p { color: var(--ink-soft); max-width: 62ch; margin: 0.4em auto 0; }

/* ---------- Product grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-media {
  background: #eef1f5;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
  background: #e8eef7;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.card-body h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 8px; }
.card-body p.desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 12px; }
.card-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-meta .dot { opacity: 0.5; }
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price { font-size: 1.35rem; font-weight: 800; color: var(--brand-deep); }
.btn-buy { padding: 10px 22px; font-size: 0.92rem; }
.sample-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sample-link:hover { color: var(--brand-deep); }

/* ---------- Preview showcase ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.showcase-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase-item figure { margin: 0; }
.showcase-item .shot {
  background: #eef1f5;
  aspect-ratio: 8.5 / 11;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}
.showcase-item .shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}
.showcase-item figcaption {
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.showcase-item figcaption strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  color: var(--brand-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-deep);
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-list .answer p { margin: 0 0 0.6em; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: #cfd9e6;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer p { margin: 0 0 0.8em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfd9e6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #aeb9c9;
}
.disclaimer strong { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* ---------- Checkout status ---------- */
.checkout-msg {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.checkout-msg.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav { display: none; }
  .section { padding: 48px 0; }
  .hero { padding: 52px 0 48px; }
}
