/* ── Embedded Fonts: Broadsheet LDO ── */
@font-face {
  font-family: 'Broadsheet LDO';
  src: url('fonts/broadsheet-regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Broadsheet LDO';
  src: url('fonts/broadsheet-bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Broadsheet LDO';
  src: url('fonts/broadsheet-italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Broadsheet LDO';
  src: url('fonts/broadsheet-bolditalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   Symptive — Shared Design System
   Brand colours: Visual Guide by ProPro Agency, 2025
   Typography: Broadsheet LDO (embedded)
   ═══════════════════════════════════════════════════════════ */

/* ── Embedded Fonts ── */
/* ── Brand Tokens ── */
:root {
  /* Official Symptive palette (Visual Guide 2025) */
  --black-violet:  #030004;
  --violet-femme:  #1F143A;
  --misty-winter:  #2F2C4D;
  --brand:         #B78AD2;   /* 528 U — primary */
  --brand-dark:    #8a5cb8;   /* derived darker for hover */
  --brand-deep:    #5e3690;   /* derived deep for text on light */
  --blue-finch:    #C0D1E6;
  --rose-quartz:   #ECD1D4;
  --off-white:     #F9F4FF;

  /* Functional mappings */
  --bg:            var(--off-white);
  --bg-surface:    #ffffff;
  --bg-tint:       #f2ecfc;   /* very light brand tint */
  --bg-dark:       var(--violet-femme);
  --bg-deep:       var(--black-violet);

  --text-primary:  var(--black-violet);
  --text-body:     #2a1f38;
  --text-muted:    #7a6e88;
  --text-subtle:   #a89fb8;
  --text-on-dark:  #f9f4ff;
  --text-on-brand: #ffffff;

  --accent:        var(--rose-quartz);
  --accent-rose:   #c2607a;   /* rose accent for tags/highlights */
  --accent-blue:   var(--blue-finch);

  --border:        rgba(183,138,210,0.18);
  --border-strong: rgba(183,138,210,0.35);
  --border-dark:   rgba(249,244,255,0.12);

  /* Type scale */
  --font-display:  'Broadsheet LDO', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad:   clamp(48px, 6.5vw, 84px);
  --container:     1100px;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     36px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography helpers ── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.display-italic {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.serif {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  font-size: 19px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-rose);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-rose);
  flex-shrink: 0;
}

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section { padding: var(--section-pad) clamp(20px, 4vw, 48px); }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 68px;
  background: rgba(249,244,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(31,20,58,0.08); }
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 48px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px; font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-deep); }
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 40px;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  color: var(--text-body);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(183,138,210,0.35);
}
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(183,138,210,0.4); }
.btn-outline {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-tint); border-color: var(--brand); }
.btn-white {
  background: #fff;
  color: var(--brand-deep);
}
.btn-white:hover { background: var(--off-white); transform: translateY(-1px); }
.btn-ghost-white {
  background: transparent;
  color: rgba(249,244,255,0.85);
  border: 1px solid rgba(249,244,255,0.25);
}
.btn-ghost-white:hover { background: rgba(249,244,255,0.1); }

/* ── App store badges ── */
.store-badges {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  vertical-align: middle;
}
.app-store-badge { display: inline-block; transition: opacity 0.2s, transform 0.15s; }
.app-store-badge:hover { opacity: 0.85; transform: translateY(-2px); }
.app-store-badge img { height: 50px; width: auto; display: block; }
.app-store-badge:last-child img { height: 74px; }

/* ── Cards ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-tint {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ── Section headers ── */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.section-heading em {
  font-style: italic;
  color: var(--brand-deep);
}
.section-subhead {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Footer ── */
.footer {
  background: var(--violet-femme);
  padding: 72px clamp(20px,4vw,48px) 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 32px;
}
.footer-logo svg { height: 28px; width: auto; margin-bottom: 14px; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(249,244,255,0.5);
  line-height: 1.65;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(249,244,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(249,244,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  font-size: 12px; color: rgba(249,244,255,0.3);
  flex-wrap: wrap; gap: 8px;
  text-align: center;
}

/* ── Cookie consent banner ── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px;
  background: var(--violet-femme);
  color: var(--off-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(31,20,58,0.28);
  animation: fadeUp 0.4s ease both;
}
.cookie-txt {
  flex: 1 1 280px;
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.5;
  color: rgba(249,244,255,0.8); margin: 0;
}
.cookie-txt a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: 40px;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cookie-accept { background: var(--brand); color: #fff; }
.cookie-accept:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cookie-decline { background: transparent; color: rgba(249,244,255,0.8); border-color: rgba(249,244,255,0.25); }
.cookie-decline:hover { background: rgba(249,244,255,0.1); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up  { animation: fadeUp 0.65s ease both; }
.anim-delay-1  { animation-delay: 0.1s; }
.anim-delay-2  { animation-delay: 0.2s; }
.anim-delay-3  { animation-delay: 0.35s; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Mobile nav ── */
@media(max-width:860px){
  .nav-links.open{
    display:flex;flex-direction:column;position:fixed;
    top:68px;left:0;right:0;
    background:rgba(249,244,255,0.98);
    backdrop-filter:blur(16px);
    padding:24px 32px 32px;gap:20px;
    border-bottom:1px solid var(--border);
    z-index:99;
  }
  .nav-links.open a{font-size:16px;}
}
