/* ---------------------------------------------------------------------------
   DreamSoft shared site styles.
   Same light theme as index.html — tokens, nav, buttons and footer extracted
   so product pages don't each carry their own copy. index.html keeps its own
   inline styles; this file is for the pages added around it.
--------------------------------------------------------------------------- */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1fb;
  --panel: #ffffff;
  --border: #e3e6ef;
  --text: #14161f;
  --muted: #676c7e;
  --accent: #4f6bed;
  --accent-soft: #e8ecff;
  --accent-dark: #1f2c66;
  --wa: #25d366;
  --wa-soft: #e4f9ec;
  --wa-dark: #0f7a3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ---- Nav ---- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav.wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.brand-mark.wa { background: linear-gradient(135deg, var(--wa), #128c7e); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(79,107,237,0.55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(79,107,237,0.65); }
.btn-wa { background: var(--wa-dark); color: #fff; box-shadow: 0 8px 24px -8px rgba(15,122,61,0.5); }
.btn-wa:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

/* ---- Common blocks ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.78rem;
  padding: 0.4rem 0.85rem; border-radius: 999px; letter-spacing: 0.02em;
}
.eyebrow.wa { background: var(--wa-soft); color: var(--wa-dark); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2.1rem; margin: 0.6rem 0 0.75rem; }
.section-head p { color: var(--muted); font-size: 1rem; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; transition: transform .15s ease, box-shadow .15s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(30,40,90,0.3); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-icon.wa { background: var(--wa-soft); color: var(--wa-dark); }
.feature-card h3 { font-size: 1.02rem; margin: 0 0 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.chip { font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.chip.wa { background: var(--wa-soft); color: var(--wa-dark); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 24px; padding: 3.5rem 2.5rem; text-align: center; color: #fff;
}
.cta-banner.wa { background: linear-gradient(135deg, #0b5d31, var(--wa-dark)); }
.cta-banner h2 { margin: 0 0 0.75rem; font-size: 1.9rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 32rem; margin: 0 auto 1.75rem; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: none; }
.cta-banner.wa .btn-primary { color: var(--wa-dark); }
.cta-banner .btn-ghost { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---- FAQ ---- */
.faq { max-width: 46rem; margin: 0 auto; }
details.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 0.75rem; }
details.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; flex-shrink: 0; transition: transform .15s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { color: var(--muted); font-size: 0.88rem; margin: 0.75rem 0 0; }

/* ---- Long-form document pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.doc h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.doc .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.15rem; margin: 2.25rem 0 0.75rem; }
.doc p, .doc li { color: #2c2e3a; font-size: 0.95rem; }
.doc ul { padding-left: 1.3rem; }
.contact-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; margin-top: 2.5rem; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--accent); }
/* `.footer-grid a` (0,2,0) outranks `.btn-primary` (0,1,0), which paints a
   button's label in the muted link colour and leaves it invisible on the
   filled background. Restate the button colours at matching specificity. */
.footer-grid a.btn-primary { color: #fff; }
.footer-grid a.btn-primary:hover { color: #fff; }
.footer-grid a.btn-wa { color: #fff; }
.footer-grid a.btn-wa:hover { color: #fff; }
.footer-grid a.btn-ghost { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}
