/* Baaral homepage — palette mirrors the app (teal primary, soft grey page, white cards) */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6472;
  --line: #e6e6e6;
  --primary: #0f766e;
  --primary-hover: #0b5f58;
  --primary-ink: #ffffff;
  --primary-soft: #e3f3f1;
  --alt: #efefef;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -16px rgba(15, 23, 42, .25);
  --wa: #25d366;
  --radius: 16px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717;
    --surface: #242424;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, .1);
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-ink: #0b2f2b;
    --primary-soft: #12302d;
    --alt: #1f1f1f;
    --shadow-sm: none;
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 28px; height: 28px; color: var(--primary); }

/* logo colours: stem follows the theme so it stays visible on dark */
.lg-stem { fill: #0f766e; }
@media (prefers-color-scheme: dark) { .lg-stem { fill: #2dd4bf; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 10px 18px; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .lang button:focus-visible, .icon-btn:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); }
.btn-light { background: #fff; color: #0b5f58; }
.btn-light:hover { background: #e9fbf8; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.wordmark { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--surface); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.icon-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.show-sm { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 4vw, 48px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); justify-items: center; }
.hero-copy { text-align: center; max-width: 820px; }
.hero-copy .lead { margin-inline: auto; }
.hero-copy .cta-row { justify-content: center; }
.hero-shot { width: min(1060px, 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.fine.warn { color: #b45309; font-weight: 500; }
@media (prefers-color-scheme: dark) { .fine.warn { color: #fbbf24; } }

.hero-shot { position: relative; }
.glow {
  position: absolute; inset: -12% -8% -12% -4%; z-index: 0; filter: blur(30px); opacity: .9;
  background:
    radial-gradient(45% 55% at 70% 40%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 70%),
    radial-gradient(35% 40% at 25% 80%, rgba(245, 158, 11, .22), transparent 70%);
}
.frame {
  position: relative; z-index: 1; margin: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--alt); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.frame img { width: 100%; }

/* ---------- Pillars ---------- */
.pillars { padding: 24px 0 8px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pillar { padding: 24px; }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.pillar h2 { font-size: 22px; margin-bottom: 8px; }
.pillar p { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--alt); }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.left { text-align: left; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; }
.feat h3 { font-size: 18px; margin: 14px 0 8px; }
.feat p { color: var(--muted); }

/* ---------- Showcase ---------- */
.show { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.show:first-of-type { margin-top: 0; }
.show.flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
.show.flip .show-copy { order: 2; }
.show-copy h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin-bottom: 12px; }
.show-copy p { color: var(--muted); font-size: 18px; }
.tint-panel {
  display: flex; justify-content: center; padding: clamp(24px, 4vw, 48px);
  border-radius: 20px; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 40%, var(--surface)));
  border: 1px solid var(--line);
}
.shadow-img { width: min(100%, 420px); border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ---------- Get Baaral ---------- */
.get-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #14b8a6 0%, transparent 55%), #0f766e;
}
.get-card h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.get-card p { margin-top: 12px; opacity: .92; font-size: 17px; }
.get-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 96px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand .mark { width: 28px; height: auto; }
.foot-brand p, .foot-meta p { color: var(--muted); font-size: 15px; }
.foot-meta { display: grid; gap: 4px; text-align: right; }
.foot-meta a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #06361b; font-weight: 700; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.wa-float:hover { filter: brightness(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .show, .show.flip { grid-template-columns: 1fr; }
  .show.flip .show-copy { order: 0; }
  .get-card { grid-template-columns: 1fr; }
  .foot-meta { text-align: left; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex; }
  .icon-btn { display: inline-flex; }
  .bar { gap: 12px; }
  .bar-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 12px 14px; }
  .pillar-grid, .feature-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-copy { text-align: left; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .hero-copy .lead { margin-inline: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
