/* ============================================================
   Blupp — landing page styles  (illustration-led editorial)
   CleanSync tokens: warm off-white canvas, near-black ink,
   one restrained teal accent (--cs-brand-500). Inter, tight.
   B&W pencil illustrations blended with mix-blend-mode:multiply.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:        #f4f2ec;   /* warm off-white */
  --bg-2:      #ece8df;   /* sunken band */
  --ink:       #17191d;   /* near-black */
  --ink-soft:  #44494f;
  --ink-mut:   #767c84;
  --line:      #e0dccf;
  --accent:    #0e6e7e;   /* cs-brand-500 */
  --accent-700:#08434c;
  --paper:     #ffffff;

  --maxw: 1180px;
  --r-pill: 999px;
  --r-lg: 22px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11','ss01';
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; }

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

/* illustration blend — white paper melts into the canvas */
.ill img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); background: #f0f0f0; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translate(3px,-3px); }

/* ---- eyebrow --------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 1.5px;
  background: var(--accent);
}

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.scrolled { border-color: var(--line); }
.head-inner {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 26px; letter-spacing: -0.045em;
}
.brand .drop {
  width: 13px; height: 13px;
  border-radius: 62% 62% 62% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  flex: none;
}
.brand img { height: 30px; width: auto; display: block; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links {
  display: flex; gap: 32px;
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
}
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: var(--accent); transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }

.head-right { display: flex; align-items: center; gap: 16px; }
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px; background: rgba(255,255,255,.5);
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: none; background: transparent; color: var(--ink-mut);
  padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang button.active { background: var(--ink); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 56px 0 64px; overflow-x: clip; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 600;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 38px;
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
}
.trust-note {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink-mut); font-weight: 500;
}
.trust-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-ill { display: flex; justify-content: center; align-items: center; }
.hero-ill img { max-width: 450px; }

/* layout: split (default) */
:root[data-hero="split"] .hero-inner {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center;
}
/* layout: reverse */
:root[data-hero="reverse"] .hero-inner {
  display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 48px; align-items: center;
}
:root[data-hero="reverse"] .hero-copy { order: 2; }
:root[data-hero="reverse"] .hero-ill { order: 1; }
:root[data-hero="reverse"] .hero-ill img { transform: scaleX(-1); }
/* layout: stacked */
:root[data-hero="stacked"] .hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
:root[data-hero="stacked"] .eyebrow { justify-content: center; }
:root[data-hero="stacked"] .hero h1 { max-width: 17ch; }
:root[data-hero="stacked"] .hero-sub { margin-left: auto; margin-right: auto; max-width: 48ch; }
:root[data-hero="stacked"] .hero-cta { justify-content: center; }
:root[data-hero="stacked"] .trust-note { justify-content: center; }
:root[data-hero="stacked"] .hero-ill { margin-top: 28px; }
:root[data-hero="stacked"] .hero-ill img { max-width: 440px; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { scroll-margin-top: 96px; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 600;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head p {
  margin-top: 20px; font-size: 18px; color: var(--ink-soft);
  max-width: 52ch; text-wrap: pretty;
}

/* ============================================================
   How it works — alternating editorial rows
   ============================================================ */
.how { padding: 40px 0 56px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-ill { order: 2; }
.feature.flip .feature-copy { order: 1; }
.feature-ill { display: flex; justify-content: center; }
.feature-ill img { max-width: 380px; }
.feature-num {
  font-size: 15px; font-weight: 600; color: var(--accent);
  font-feature-settings: 'tnum'; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 12px;
}
.feature-num::after { content: ''; width: 46px; height: 1.5px; background: var(--line); }
.feature-copy h3 {
  margin: 18px 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 600;
}
.feature-copy p {
  font-size: 18px; line-height: 1.55; color: var(--ink-soft);
  max-width: 42ch; text-wrap: pretty;
}

/* ============================================================
   Safety — text + illustration + assurance row
   ============================================================ */
.safety { padding: 96px 0; }
.safety-top {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center;
}
.safety-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.03; letter-spacing: -0.03em; font-weight: 600;
}
.safety-copy h2 em { font-style: normal; color: var(--accent); }
.safety-copy p {
  margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--ink-soft);
  max-width: 50ch; text-wrap: pretty;
}
.safety-ill { display: flex; justify-content: center; }
.safety-ill img { max-width: 380px; }

.assure {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.assure-item { padding-top: 26px; border-top: 1.5px solid var(--ink); }
.assure-ico { color: var(--accent); margin-bottom: 18px; display: block; }
.assure-item h3 { margin: 0 0 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.assure-item p { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* ============================================================
   Closing CTA band (the one dark moment)
   ============================================================ */
.cta-band-wrap { padding: 0 0 96px; }
.cta-band {
  background: var(--ink); color: #fff;
  border-radius: 28px;
  padding: 80px 56px;
  text-align: center;
}
.cta-band h2 {
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 600;
  max-width: 18ch;
}
.cta-band h2 em { font-style: normal; color: #5fb4bf; }
.cta-band p {
  margin: 22px auto 0; font-size: 18px; color: rgba(255,255,255,.66);
  max-width: 46ch; text-wrap: pretty;
}
.cta-band .hero-cta { justify-content: center; margin-top: 38px; }

/* ============================================================
   Footer
   ============================================================ */
.foot { border-top: 1px solid var(--line); padding: 76px 0 44px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; align-items: start;
}
.foot-brand .brand { margin-bottom: 20px; }
.foot-brand .brand img { height: 52px; }
.foot-tag { font-size: 17px; color: var(--ink-soft); max-width: 30ch; text-wrap: pretty; }
.foot-col h4 {
  margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mut);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a, .foot-col li { font-size: 16px; color: var(--ink-soft); transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 14px; color: var(--ink-mut);
}

/* ============================================================
   Reveal
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  :root[data-hero="split"] .hero-inner,
  :root[data-hero="reverse"] .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  :root[data-hero="reverse"] .hero-copy { order: 1; }
  :root[data-hero="reverse"] .hero-ill { order: 2; }
  .hero-ill img, :root[data-hero="stacked"] .hero-ill img { max-width: 380px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-ill { order: 1; }
  .feature.flip .feature-copy { order: 2; }
  .feature-ill img { max-width: 320px; }
  .safety-top { grid-template-columns: 1fr; gap: 28px; }
  .assure { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 56px 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .head-right .lang { display: inline-flex; }
}
