/* DigitalSellerOS — premium, clean, mobile-first */
:root {
  --navy: #14253B;
  --blue: #315B91;
  --blue-light: #E8EEF6;
  --bg: #F8FAFC;
  --text: #263445;
  --muted: #5A6B80;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --teal: #00A896;
  --gold: #C9A227;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 37, 59, .08);
  --shadow-lg: 0 10px 30px rgba(20, 37, 59, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin-bottom: .6rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand span em { font-style: normal; color: var(--blue); }
.main-nav { display: none; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--blue-light); text-decoration: none; }
.btn.header-cta { display: none; }
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 9px; width: 44px; height: 44px; font-size: 1.3rem; color: var(--navy); cursor: pointer; line-height: 1; }
.mobile-nav { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 4px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: var(--white); font-weight: 700; padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer; font-size: 1rem; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { background: var(--navy); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1E3A5C 55%, var(--blue) 100%); color: var(--white); padding: 64px 0 72px; }
.hero h1 { color: var(--white); font-size: 2.15rem; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.12rem; color: #D5DEE9; max-width: 560px; }
.hero .btn { margin-top: .5rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: #AEBED2; }
.hero-note strong { color: var(--white); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badges span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #EAF0F7; font-size: .85rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-products { grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #EDF1F6; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35rem; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--blue); }
.card-tag { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 1rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--teal); color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; z-index: 2; }
.cat-chip { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin: 0 6px 6px 0; }

/* ---------- Category cards ---------- */
.grid-cats { grid-template-columns: 1fr 1fr; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card:hover a { text-decoration: none; }
.cat-card h3 { margin-bottom: .3rem; }
.cat-card p { color: var(--muted); font-size: .93rem; margin-bottom: .6rem; }
.cat-count { font-size: .85rem; font-weight: 700; color: var(--blue); }
.cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 13px; background: var(--blue-light); color: var(--blue); font-size: 1.05rem; font-weight: 800; letter-spacing: .03em; margin-bottom: .7rem; }

/* ---------- Feature / why / steps ---------- */
.feature-grid { grid-template-columns: 1fr; }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.feature .f-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.step-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-size: 1rem; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-family: var(--font); }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.product-layout { display: grid; gap: 32px; padding: 28px 0 56px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { border: 2px solid var(--border); border-radius: 10px; overflow: hidden; padding: 0; background: var(--white); cursor: pointer; width: 76px; height: 76px; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.buy-box .price { font-size: 2rem; }
.buy-box .price small { font-size: .9rem; }
.buy-box .tagline { font-size: 1.05rem; color: var(--muted); }
.etsy-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.etsy-note a { font-weight: 700; }
.refund-note { background: #FFF8E6; border: 1px solid #F0DFA8; color: #6B5B12; border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-top: 16px; }
.product-details h2 { margin-top: 2.2rem; }
.check-list { list-style: none; }
.check-list li { padding: 7px 0 7px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--teal); font-weight: 800; }
.sheet-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.sheet-pills span { background: var(--blue-light); color: var(--navy); font-size: .86rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.meta-line { color: var(--muted); font-size: .93rem; }
.compat-box { background: var(--blue-light); border: 1px solid #CBD8EA; border-radius: var(--radius); padding: 22px; margin-top: 2rem; }
.compat-box h3 { margin-bottom: .4rem; }
.compat-box p { margin-bottom: .4rem; }
.compat-box p:last-child { margin-bottom: 0; }
.sample-box { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 10px; padding: 16px 18px; margin-top: 1.4rem; font-size: .95rem; }
.sample-box strong { color: var(--navy); }

/* ---------- Generic content pages ---------- */
.page-head { background: var(--navy); color: var(--white); padding: 52px 0; }
.page-head h1 { color: var(--white); }
.page-head p { color: #C6D2E0; max-width: 640px; margin-bottom: 0; }
.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h2 { margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: .4rem; }
.callout { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin: 28px 0; }
.callout .btn { margin: 6px 10px 6px 0; }
.notice { background: #FFF8E6; border: 1px solid #F0DFA8; border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: .95rem; }

/* ---------- Shop ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filter-row a { background: var(--white); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px; }
.filter-row a:hover, .filter-row a.active { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C6D2E0; padding: 52px 0 0; margin-top: 20px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
.site-footer h3, .site-footer h4 { color: var(--white); }
.site-footer h4 { font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C6D2E0; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { font-size: .93rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet & desktop ---------- */
@media (min-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-cats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.9rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .main-nav { display: flex; gap: 4px; align-items: center; }
  .btn.header-cta { display: inline-block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-cats { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
