:root {
  --wine: #421d24;
  --wine-hover: #5a2a33;
  --violet: #714cb6;
  --lilac: #d4c7ff;
  --lagoon: #0c4243;
  --parchment: #f2f0eb;
  --mist: #e3e3e2;
  --ink: #292827;
  --stone: #666666;
  --paper: #ffffff;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  font-feature-settings: "ss01" 1; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--lilac); }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 460; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: .98; letter-spacing: -0.028em; }
h2 { font-size: clamp(32px, 4.4vw, 49px); line-height: 1.08; letter-spacing: -0.027em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; }
p { margin: 0; }
.link { color: var(--violet); text-decoration: none; font-weight: 460; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.announce { background: var(--wine); color: #fff; font-size: 14px; text-align: center; padding: 10px 16px; }
.announce a { color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 2px 10px; margin-left: 8px; text-decoration: none; white-space: nowrap; }

header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 240, 235, .7);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.top.scrolled { border-bottom-color: var(--mist); }
header.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-weight: 460; }
.nav-links a:hover { color: var(--violet); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 16px; text-decoration: none;
  font: inherit; font-weight: 460; font-size: 16px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-hover); }
.btn-lilac { background: var(--lilac); color: var(--ink); border-color: var(--ink); height: 38px; padding: 0 16px; border-radius: 8px; }
.btn-lilac:hover { background: #c8b8ff; }
.btn-ghost { background: transparent; color: var(--ink); padding: 0; height: auto; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-outline-light { border-color: #fff; color: #fff; border-radius: 8px; height: 42px; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* Liquid glass */
.glass {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(41,40,39,.05);
  border-radius: 16px;
}

footer.site { background: var(--wine); color: #fff; padding: 64px 0; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
footer.site h4 { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
footer.site li a, footer.site p { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
footer.site li a:hover { color: #fff; }
footer.site .brand { color: #fff; margin-bottom: 16px; }
footer.site .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.6); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

[hidden] { display: none !important; }

/* Floating WhatsApp button (hidden until a number is set in config.js) */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px; background: #128c4a; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(18, 140, 74, .35);
}
.wa-float:hover { background: #0f7a40; }
.wa-float svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 0 14px; } }
footer.site .cols { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* Module name next to the YeidiSoft brand on module pages */
.brand-mod { font-weight: 460; color: var(--stone); padding-left: 10px; margin-left: 2px; border-left: 1px solid #cfcbc2; }
footer.site .brand-mod { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); }
