/* =========================================================================
   Swaree — marketing site
   "Warm editorial soirée": cream paper canvas, coral warmth, the spots motif.
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body).
   ========================================================================= */

:root {
  --cream: #FFFCF6;
  --cream-2: #F6F1E7;
  --cream-3: #EFE7D7;
  --ink: #1D1C18;
  --ink-soft: #3a382f;
  --muted: #7c7a70;
  --faint: #b7b3a6;
  --line: #ece6d8;

  --coral: #FF6F5E;
  --coral-d: #EF5642;
  --coral-ink: #E14B36;
  --coral-soft: #FFEDE9;

  --teal: #12B7A6;
  --teal-d: #0B8E80;
  --teal-soft: #DBF5F1;

  --white: #ffffff;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;

  --maxw: 1200px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-card: 0 10px 30px -12px rgba(40, 30, 20, 0.16);
  --shadow-hero: 0 30px 70px -28px rgba(60, 30, 20, 0.30);
  --glow-coral: 0 18px 50px -18px rgba(255, 111, 94, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* warm atmospheric background: layered coral/teal glows + paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 760px at 8% -8%, #FFE7E0 0%, rgba(255,231,224,0) 52%),
    radial-gradient(1000px 700px at 104% 8%, #E7F6F2 0%, rgba(231,246,242,0) 48%),
    radial-gradient(900px 900px at 50% 118%, #FCEFE2 0%, rgba(252,239,226,0) 60%),
    var(--cream);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--ink); }
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--coral); }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--muted); }

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(40,30,20,0.4);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand .word { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-weight: 600; font-size: 15px; color: var(--ink-soft); position: relative; }
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a.link:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav-links a.link { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--glow-coral); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px -16px rgba(255,111,94,0.7); background: var(--coral-d); }
.btn-ghost { background: rgba(29,28,24,0.04); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(29,28,24,0.07); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 { font-size: clamp(40px, 7.4vw, 88px); }
.hero h1 .accent { color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; left: 0; right: 0; bottom: -0.16em; width: 100%; height: 0.22em; }
.hero .lead { margin-top: 26px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .tick { color: var(--teal-d); font-weight: 800; }

/* floating dot field (logo motif) */
.dotfield { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dotfield span {
  position: absolute; border-radius: 50%; background: var(--coral); opacity: 0.16;
}

/* ---- the live "claim" card (showpiece) ---- */
.claimcard {
  background: var(--white); border-radius: var(--r-xl); padding: 26px;
  box-shadow: var(--shadow-hero); border: 1px solid rgba(255,255,255,0.7);
  position: relative; max-width: 420px; margin-left: auto;
}
.claimcard .cc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tag {
  font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); background: var(--cream-2);
  padding: 6px 11px; border-radius: 999px;
}
.status {
  font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.status.full { background: var(--teal-soft); color: var(--teal-d); }
.claimcard h3 { font-size: 27px; letter-spacing: -0.02em; }
.cc-meta { color: var(--muted); font-size: 14px; font-weight: 600; margin: 7px 0 20px; }
.cc-meta b { color: var(--ink-soft); font-weight: 700; }
.spots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.spot {
  aspect-ratio: 1; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--white);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.spot.open {
  background: transparent; color: var(--faint);
  border: 2px dashed var(--cream-3);
}
.spot.pop { animation: pop 0.5s var(--ease); }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.cc-btn {
  width: 100%; padding: 16px; border-radius: 16px; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--white);
  background: var(--coral); box-shadow: var(--glow-coral);
  transition: background 0.4s var(--ease), transform 0.2s var(--ease);
}
.cc-btn.done { background: var(--teal); box-shadow: 0 18px 50px -18px rgba(18,183,166,0.6); }
.cc-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--r-xl); }
.cc-confetti i { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0; }

/* hero responsive: let the accent wrap so it can't widen the viewport */
@media (max-width: 600px) {
  .hero { padding-top: 126px; }
  .hero h1 .accent { white-space: normal; }
  .hero h1 .accent svg { display: none; }
  .claimcard { margin: 0 auto; max-width: 100%; }
  .band h2 br { display: none; }
}

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(255,252,246,0.5); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); opacity: 0.55; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "•"; color: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================================
   Generic section
   ========================================================================= */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 18px; }
.section-head .lead { margin-top: 20px; }

/* ---- problem ---- */
.problem { background: linear-gradient(180deg, transparent, rgba(255,237,233,0.35) 50%, transparent); }
.bubbles { display: grid; gap: 14px; max-width: 460px; }
.bubble {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px;
  padding: 14px 18px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-card);
  font-size: 15px;
}
.bubble.right { border-radius: 20px 20px 6px 20px; margin-left: auto; background: var(--coral-soft); border-color: #ffd9d1; }
.bubble small { display: block; color: var(--faint); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; margin-bottom: 3px; text-transform: uppercase; }
.bubble .strike { color: var(--coral-ink); }

.pains { display: grid; gap: 18px; }
.pain { display: flex; gap: 16px; align-items: flex-start; }
.pain .n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--coral); background: var(--coral-soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pain h3 { font-size: 19px; }
.pain p { color: var(--muted); font-size: 15px; margin-top: 3px; }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.step .step-n { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--coral-ink); letter-spacing: 0.1em; }
.step h3 { font-size: 24px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .vignette { margin-top: 22px; height: 132px; border-radius: var(--r-md); background: var(--cream-2); position: relative; overflow: hidden; border: 1px solid var(--line); }

/* mini app vignettes */
.vg-row { position: absolute; left: 14px; right: 14px; background: var(--white); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 10px; }
.vg-row .t { font-weight: 700; font-size: 13px; }
.vg-row .s { margin-left: auto; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink); }
.vg-row .s.teal { background: var(--teal-soft); color: var(--teal-d); }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 9px; font-family: var(--display); }
.av-stack { display: flex; }
.av-stack .av { margin-left: -7px; border: 2px solid #fff; }
.av-stack .av:first-child { margin-left: 0; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(40,30,20,0.24); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--coral-soft); color: var(--coral-ink); }
.feature.teal .ico { background: var(--teal-soft); color: var(--teal-d); }
.feature h3 { font-size: 19px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---- coordinator (no chat) band ---- */
.band {
  background: var(--ink); color: var(--cream); border-radius: var(--r-xl); padding: 64px 56px;
  position: relative; overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(255,111,94,0.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(18,183,166,0.22), transparent 55%); }
.band-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } .band { padding: 44px 30px; } }
.band h2 { color: var(--cream); font-size: clamp(30px, 4.4vw, 46px); }
.band p { color: rgba(255,252,246,0.72); margin-top: 18px; font-size: 17px; }
.band .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.band .chip { padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(255,252,246,0.08); border: 1px solid rgba(255,252,246,0.16); }
.band .chip.no { color: #ffb4a8; text-decoration: line-through; text-decoration-color: rgba(255,180,168,0.5); }
.band .chip.yes { color: #7fe6d8; }

/* ---- use cases ---- */
.uses { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.use { padding: 12px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; box-shadow: var(--shadow-card); font-size: 15px; }
.use span { color: var(--coral); }

/* ---- final CTA ---- */
.cta-final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.cta-final h2 { font-size: clamp(40px, 6.4vw, 80px); }
.cta-final .lead { margin: 22px auto 0; max-width: 40ch; }
.cta-final .hero-cta { justify-content: center; }
.cta-final .mark { width: 80px; height: 80px; margin: 0 auto 26px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand .word { font-size: 20px; }
.footer .tag-line { color: var(--muted); margin-top: 12px; font-size: 14px; max-width: 28ch; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--body); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 800; }
.footer-col a { display: block; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--coral-ink); }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }

/* =========================================================================
   Reveal on scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Legal / document pages
   ========================================================================= */
.doc { max-width: 760px; margin: 0 auto; padding: 150px 28px 90px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); }
.doc .updated { color: var(--faint); font-weight: 700; font-size: 14px; margin-top: 14px; letter-spacing: 0.02em; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p { color: var(--ink-soft); margin-bottom: 14px; }
.doc a { color: var(--coral-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.doc .back:hover { color: var(--coral-ink); }
.doc-divider { height: 1px; background: var(--line); margin: 46px 0; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { color: var(--ink-soft); margin-bottom: 9px; }
.doc li::marker { color: var(--coral); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc .lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 8px; }
.doc .note { font-size: 14.5px; color: var(--muted); background: var(--cream-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 8px 0 14px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc .toc a { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.doc .toc a:hover { color: var(--coral-ink); }
.doc section { scroll-margin-top: 100px; }
