/* ──────────────────────────────────────────────────────────
   Scara Noastră — landing & legal pages
   Palette mirrors the app's antd theme: white canvas, slate
   text, hairline gray borders, Daybreak Blue primary.
   Typography: Cairo Play 700 for the wordmark + all headings.
   Manrope for body. No serif, no small-caps, no parchment.
   ────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;        /* matches app's colorBgLayout */
  --bg-card: #ffffff;
  --bg-tint: #e6f4ff;        /* antd blue-1, soft accent */

  /* Text */
  --ink: #0f172a;            /* slate-900 — headings */
  --ink-body: #334155;       /* slate-700 — paragraphs */
  --ink-soft: #64748b;       /* slate-500 — meta / labels */
  --ink-muted: #94a3b8;      /* slate-400 — hints */

  /* Borders */
  --rule: #e5e7eb;           /* matches app's table border */
  --rule-strong: #cbd5e1;    /* slate-300 */

  /* Primary (antd Daybreak Blue) */
  --blue: #1677ff;
  --blue-hover: #4096ff;
  --blue-active: #0958d9;
  --blue-tint: #e6f4ff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.1);

  --radius: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Sections referenced from the navbar get extra top-margin when scrolled into
   view, so their title isn't hidden behind the sticky/floating topbar. */
section[id] {
  scroll-margin-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--blue-hover);
}

/* Brand wordmark — Cairo Play 700 is the only family we use for "Scara Noastră" */
.brand,
.display,
.brand-mark .name,
h1,
h2,
h3,
h4 {
  font-family: "Cairo Play", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

/* ─── Page frame ─── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--tint {
  background: var(--bg-soft);
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* ─── Top bar ─── */
/*
   Two flavors:
   - .topbar (default, used on legal pages): position: sticky, always visible.
   - .topbar.topbar--floating (marketing index.html): position: fixed, hidden by
     default, slides in after the user scrolls past the hero. JS toggles
     `is-visible` on the same element.
*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 2404;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}

.topbar--floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.topbar--floating.is-visible {
  transform: translateY(0);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark .name {
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--ink-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--blue);
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.nav .nav-cta:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  background: var(--blue-active);
  border-color: var(--blue-active);
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-tint);
}

.btn .arrow {
  transition: transform 0.15s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* ─── Hero ─── */
/* Hero shares the same horizontal footprint as .hero-screenshot below so the
   text/coin edges line up with the screenshot edges at every viewport width.
   Overrides .page's max-width (1200) and zero horizontal padding. */
.hero {
  position: relative;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--blue-tint);
  color: var(--blue-active);
  border: 1px solid #bae0ff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}

.hero-tagline {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-coin {
  display: flex;
  justify-content: center;
}

/* ─── Hero screenshot (below the fold of the hero) ─── */
.hero-screenshot {
  margin: 0 auto clamp(48px, 7vw, 96px);
  max-width: 1100px;
  padding: 0 clamp(20px, 4vw, 56px);
}

.hero-screenshot .frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-screenshot .frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-screenshot .frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  z-index: 1;
}

.hero-screenshot .frame::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  box-shadow: 18px 0 0 #d1d5db, 36px 0 0 #d1d5db;
  z-index: 2;
}

.hero-screenshot .frame img {
  margin-top: 32px;
}

/* ─── Flipping coin (kept from previous design) ─── */
.coin {
  position: relative;
  width: clamp(180px, 18vw, 260px);
  aspect-ratio: 1 / 1;
  perspective: 1800px;
}

.coin .ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1500px;
  height: 1500px;
  margin-top: -750px;
  margin-left: -750px;
  background: repeating-conic-gradient(
    from -4deg,
    rgba(148, 163, 184, 0) 0deg 18deg,
    rgba(239, 245, 247, 0.94) 18deg 34deg,
    rgba(148, 163, 184, 0) 34deg 46deg
  );
  -webkit-mask: radial-gradient(
    closest-side,
    transparent 7%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 0.95) 38%,
    rgba(0, 0, 0, 0.55) 46%,
    rgba(0, 0, 0, 0.18) 50%,
    transparent 54%
  );
  mask: radial-gradient(
    closest-side,
    transparent 7%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 0.95) 38%,
    rgba(0, 0, 0, 0.55) 46%,
    rgba(0, 0, 0, 0.18) 50%,
    transparent 54%
  );
  opacity: 0.8;
  animation: rotate 90s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.coin-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: coin-flip 13s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 13s loop. Flip = 1.1s (~8.46%), hold = 5.4s (~41.54%). */
@keyframes coin-flip {
  0% { transform: rotateY(0deg); }
  8.46% { transform: rotateY(180deg); }
  50% { transform: rotateY(180deg); }
  58.46% { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.coin-face.back {
  transform: rotateY(180deg);
}

.coin-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Section heads (reused across feature / audience / pricing) ─── */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.section-head .lede {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ─── Features grid ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.feature:hover {
  border-color: #bae0ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ─── Feature screenshot carousel ─── */
/*
   Full-bleed horizontal scroll-snap carousel. Each .feature-shot is fixed
   at min(900px, 75vw); at any snap point, the centered slide is flanked by
   peeks of the adjacent slides, so the carousel visibly "starts and ends
   off the page" on both sides — signaling there's more to scroll.

   Lives outside the section's .page wrapper so it can use full viewport width.
*/
.feature-carousel {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
}

.feature-carousel-track {
  display: flex;
  gap: 24px;
  /* Track padding equals (100vw - slide_width) / 2 so center-snap aligns the
     first/last slide with the viewport center on the edges. */
  padding: 8px 12.5vw 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feature-carousel-track::-webkit-scrollbar {
  display: none;
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-carousel .feature-shot {
  flex: 0 0 min(900px, 75vw);
  scroll-snap-align: center;
  position: relative;
}

.feature-carousel .feature-shot figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.feature-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-body);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.feature-carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-carousel-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-50%) scale(1.06);
}

.feature-carousel-btn--prev {
  left: clamp(8px, 3vw, 32px);
}

.feature-carousel-btn--next {
  right: clamp(8px, 3vw, 32px);
}

@media (max-width: 640px) {
  .feature-carousel-btn {
    display: none;
  }
}

/* ─── Audience cards (3 columns) ─── */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.audience-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--blue-tint);
  color: var(--blue-active);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.audience-card h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.audience-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-body);
}

/* ─── Pricing ─── */
/*
   Type scale (deliberately tight):
   - Cairo Play 700 lives only on .amount (the big price). Nowhere else.
   - Manrope 0.95rem is the single body size for note, list, and calculator.
   - Manrope 0.8rem is the tier pill.
   - Vertical rhythm is set by the card's flex `gap`, not by per-element margins.
*/
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Corner ribbon (modeled after antd Badge.Ribbon): sits at the card's top-right,
   overflows 8px past the right edge with a darker triangular fold tail below
   that sells the "ribbon wrapping the card" effect. */
.pricing-tier {
  position: absolute;
  top: 20px;
  right: -8px;
  z-index: 2;
  padding: 6px 14px;
  background: var(--blue);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px 0 0 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.25);
}

.pricing-tier::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--blue-active);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.pricing-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.pricing-price .amount {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 6.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pricing-price .amount-old {
  position: relative;
  display: inline-block;
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #4b4b4b;
}

.pricing-price .amount-old-text {
  display: inline-block;
}

.pricing-price .amount-old-x {
  position: absolute;
  inset: -8% -6%;
  width: auto;
  height: auto;
  pointer-events: none;
  stroke: #e11d48;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
}

.pricing-price .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.pricing-note {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-style: italic;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-list li {
  position: relative;
  padding-left: 28px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.5;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231677ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.5l3 3 6-6'/></svg>") center / 12px 12px no-repeat;
}

.pricing-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.5;
  cursor: text;
}

.pricing-calc input {
  width: 72px;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  text-align: center;
  -moz-appearance: textfield;
}

.pricing-calc input::-webkit-outer-spin-button,
.pricing-calc input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pricing-calc input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.pricing-calc strong {
  font-weight: 700;
  color: var(--ink);
}

.pricing-card .btn {
  width: 100%;
}

/* ─── Contact / lead form ─── */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.contact-left p {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lead-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-form input[type="email"] {
  flex: 1 1;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lead-form input[type="email"]::placeholder {
  color: var(--ink-muted);
}

.lead-form input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.lead-form button {
  padding: 13px 24px;
  background: var(--blue);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lead-form button:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.lead-form button:disabled {
  background: var(--rule-strong);
  border-color: var(--rule-strong);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lead-form-message {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lead-form-message[hidden] {
  display: none;
}

.lead-form-message[data-state="success"] {
  color: #15803d;
}

.lead-form-message[data-state="error"] {
  color: #b91c1c;
}

.lead-form-message[data-state="pending"] {
  color: var(--ink-soft);
}

.contact-right {
  display: flex;
  justify-content: center;
}

/* ─── Footer ─── */
.footer-rule {
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 56px) 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

footer h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

footer .footer-brand {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  color: var(--ink);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer ul a {
  color: var(--ink-body);
  font-size: 0.92rem;
}

footer ul a:hover {
  color: var(--blue);
}

footer ul li {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ─── Page-load reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.32s; }
.reveal.d4 { animation-delay: 0.46s; }
.reveal.d5 { animation-delay: 0.6s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .coin-inner,
  .coin .ray {
    animation: none;
  }
  .topbar--floating {
    transition: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(40px, 8vw, 64px);
  }

  .hero-eyebrow,
  .hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-coin {
    order: -1;
    margin-bottom: 12px;
  }

  .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-right {
    order: -1;
  }

  .lead-form {
    justify-content: center;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .topbar {
    padding: 12px 18px;
  }

  .nav {
    gap: 14px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav .nav-cta {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .coin {
    width: clamp(160px, 50vw, 220px);
  }

  /* The pricing calc already flex-wraps on small viewports — no special-casing needed. */

  .lead-form {
    flex-direction: column;
  }

  .lead-form input[type="email"],
  .lead-form button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ──────────────────────────────────────────────────────────
   404 PAGE
   Centered single-column layout: coin → "404" numeral →
   headline → lede → CTA pair. Reuses the global type system.
   ────────────────────────────────────────────────────────── */

.notfound {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 56px) clamp(48px, 8vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow: clip;
}

.notfound .coin {
  width: clamp(140px, 16vw, 200px);
  margin-bottom: 4px;
}

/* Lifted above the coin's rays. Mirrors the parent's flex column so the
   per-element gap stays visually identical. */
.notfound-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 999;
}

.notfound-code {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}

.notfound h1 {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.notfound-lede {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 480px;
}

.notfound-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .notfound-cta {
    width: 100%;
    flex-direction: column;
  }
  .notfound-cta .btn {
    width: 100%;
  }
}

/* ──────────────────────────────────────────────────────────
   LEGAL PAGES (Termeni / Confidențialitate / Cookie-uri /
   Prelucrare date)
   Same palette + type system as the marketing page.
   ────────────────────────────────────────────────────────── */

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 56px) clamp(72px, 10vw, 120px);
}

.legal-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(48px, 7vw, 72px);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--blue-tint);
  color: var(--blue-active);
  border: 1px solid #bae0ff;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.legal-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.legal-hero h1 {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}

.legal-hero .lede {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0 0 22px;
}

.legal-hero .lede em,
.legal-hero .lede i {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.chapter {
  display: block;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule);
}

.chapter:first-of-type {
  border-top: none;
  padding-top: 0;
}

.chapter-body h2 {
  font-family: "Cairo Play", sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

.chapter-body h2 .chapter-num {
  font-family: "Cairo Play", sans-serif;
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
  margin-right: 14px;
  letter-spacing: 0;
}

.chapter-body ol {
  list-style: none;
  counter-reset: para;
  padding: 0 0 0 0;
  margin: 0;
}

.chapter-body ol > li {
  counter-increment: para;
  position: relative;
  padding-left: 56px;
  margin: 0 0 22px;
}

.chapter-body ol > li::before {
  content: counters(para, ".", decimal) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--blue);
}

.chapter-body .sub-list {
  list-style: none;
  counter-reset: subpara;
  padding: 0;
  margin: 14px 0 0 24px;
}

.chapter-body .sub-list > li {
  counter-increment: subpara;
  position: relative;
  padding-left: 40px;
  margin: 0 0 10px;
}

.chapter-body .sub-list > li::before {
  content: counter(subpara, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--blue);
}

.chapter-body p,
.chapter-body li > div,
.chapter-body ol > li > div p {
  margin: 0 0 12px;
  color: var(--ink-body);
  font-size: 1rem;
  line-height: 1.65;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

.chapter-body strong {
  font-weight: 600;
  color: var(--ink);
}

.chapter-body em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-body);
}

.chapter-body a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.chapter-body a:hover {
  color: var(--blue-hover);
  border-bottom-color: var(--blue-hover);
}

.chapter-body .note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 0.96rem;
  color: var(--ink-body);
}

.legal-footnote {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 720px) {
  .chapter-body ol > li {
    padding-left: 40px;
  }

  .chapter-body .sub-list {
    margin-left: 8px;
  }

  .chapter-body .sub-list > li {
    padding-left: 30px;
  }

  .chapter-body p {
    font-size: 0.97rem;
  }
}

/* ──────────────────────────────────────────────────────────
   COOKIE BANNER
   ────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-body);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text strong {
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.cookie-banner-text a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  text-decoration: none;
}

.cookie-banner-text a:hover {
  color: var(--blue-hover);
  border-bottom-color: var(--blue-hover);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-banner-actions button[data-cookie-action="reject"] {
  background: transparent;
  color: var(--ink-body);
  border-color: var(--rule-strong);
}

.cookie-banner-actions button[data-cookie-action="reject"]:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cookie-banner-actions button[data-cookie-action="accept"]:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px 18px;
    gap: 14px;
  }

  .cookie-banner-actions {
    justify-content: flex-end;
  }
}
