/* ============================================================
   Nessi — Landing page styles
   Combined: design tokens + page-specific styles
   ============================================================ */

/* ============================================================
   Nessi marketing — shared base
   Uses Bubl palette tokens applied to a marketing context
   ============================================================ */
:root {
  /* Bubl brand gradient stops */
  --bubl-lilac:   #756EB1;
  --bubl-lavender:#7470AE;
  --bubl-cobalt:  #3C5AA7;
  --bubl-indigo:  #445AA3;
  --bubl-ocean:   #437EBE;
  --bubl-blue:    #1F7FC2;
  --bubl-cyan:    #3DB7D7;
  --bubl-aqua:    #00B8DA;

  --grad-wordmark: linear-gradient(135deg, #756EB1 0%, #3C5AA7 32%, #1F7FC2 70%, #00B8DA 100%);
  --grad-horiz:    linear-gradient(90deg, #7470AE 0%, #445AA3 33%, #437EBE 66%, #3DB7D7 100%);
  --grad-radial:   radial-gradient(ellipse at 30% 20%, rgba(117,110,177,0.18), transparent 60%),
                   radial-gradient(ellipse at 80% 80%, rgba(61,183,215,0.18), transparent 60%);

  /* Neutrals */
  --ink:    #0E1024;
  --ink-2:  #232539;
  --ink-3:  #5A5D74;
  --ink-4:  #8E91A8;
  --ink-5:  #B7B9CB;

  --line:   #E8E9F1;
  --line-2: #F1F2F8;

  --paper:  #FBFAF7;
  --paper-2:#F4F2EC;
  --paper-3:#EEEBE2;
  --cream:  #FAF7F0;

  --white:  #FFFFFF;
  --pitch:  #0A0B1E;
  --pitch-2:#13152B;

  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 1000px) { .container { padding: 0 40px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bubl-indigo);
  font-weight: 600;
}

.grad-text {
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Page-specific styles (extracted from index.html)
   ============================================================ */

/* ============ OPTION A — Product-led ============ */
body {
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(61,183,215,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 25%, rgba(117,110,177,0.12), transparent 60%),
    var(--paper);
  color: var(--ink);
}

/* ---- Nav ---- */
.a-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251,250,247,0.78);
  border-bottom: 1px solid rgba(14,16,36,0.06);
}
.a-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.a-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 19px;
  color: var(--ink);
}
.a-brand img { width: 30px; height: 30px; border-radius: 8px; }
.a-nav-links { display: none; gap: 32px; }
@media (min-width: 920px) { .a-nav-links { display: flex; } }
.a-nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.a-nav-links a:hover { color: var(--ink); }
.a-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-pill);
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.a-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.a-cta .arr { display: inline-block; transition: transform .2s var(--ease); }
.a-cta:hover .arr { transform: translateX(2px); }

/* ---- Hero ---- */
.a-hero { padding: 56px 0 80px; position: relative; }
.a-hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .a-hero-grid { grid-template-columns: 1.1fr 0.95fr; gap: 64px; }
}
.a-headline {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.a-headline em {
  font-style: normal;
  background: var(--grad-wordmark);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.a-lead {
  font-size: 18.5px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 30px;
  max-width: 540px;
  text-wrap: pretty;
}
.a-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; margin-bottom: 12px;
}
.btn-grad {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  background: var(--grad-horiz);
  color: #fff;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(68,90,163,0.28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(68,90,163,0.36); }
.btn-grad .arr { transition: transform .2s var(--ease); }
.btn-grad:hover .arr { transform: translateX(3px); }
.a-number {
  font-family: var(--font-mono);
  font-size: 15px; color: var(--ink-2);
  font-weight: 500; letter-spacing: 0.02em;
  margin: 14px 0 0;
}
.a-hint {
  font-size: 13px; color: var(--ink-4); margin: 6px 0 0;
}

/* ---- Phone mockup ---- */
.phone-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone-glow {
  position: absolute;
  inset: -20px;
  border-radius: 64px;
  background: var(--grad-wordmark);
  filter: blur(48px);
  opacity: 0.30;
  z-index: 0;
  animation: orbit 8s linear infinite;
  background-size: 200% 200%;
}
@keyframes orbit {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}
.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 38 / 78;
  background: #0c0c14;
  border-radius: 54px;
  padding: 14px;
  box-shadow:
    0 30px 80px -20px rgba(14,16,36,0.28),
    0 12px 30px -12px rgba(14,16,36,0.18),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 42px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0c0c14;
  border-radius: 999px;
  z-index: 2;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, var(--font-sans);
}
.phone-status .right { display: flex; gap: 5px; align-items: center; }
.phone-status svg { width: 16px; height: 11px; }
.phone-header {
  padding: 10px 16px 14px;
  border-bottom: 1px solid #ECECEC;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  background: #F6F6F6;
}
.phone-header .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-wordmark);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(68,90,163,0.30);
}
.phone-header .who {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center;
  gap: 1px;
}
.phone-header .who .v { color: var(--ink-4); font-weight: 500; margin-left: 0; font-size: 12px; }
.phone-thread {
  flex: 1;
  padding: 14px 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, var(--font-sans);
}
.bub { max-width: 78%; padding: 9px 14px; font-size: 14.5px; line-height: 1.35; border-radius: 20px; }
.bub.me { align-self: flex-end; background: #007AFF; color: #fff; border-bottom-right-radius: 6px; }
.bub.them { align-self: flex-start; background: #E9E9EB; color: #111; border-bottom-left-radius: 6px; }
.bub.them a { color: #007AFF; text-decoration: underline; word-break: break-all; }
.phone-thread .bub { font-size: 13px; padding: 8px 12px; line-height: 1.3; }
.phone-input {
  padding: 10px 14px 16px;
  background: #F6F6F6;
  border-top: 1px solid #ECECEC;
  display: flex; align-items: center; gap: 8px;
}
.phone-input .field {
  flex: 1; height: 34px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #DEDEE3;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-4);
  display: flex; align-items: center;
}
.phone-input .send {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bubl-indigo);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(68,90,163,0.40);
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}
.phone-input .send svg { width: 14px; height: 14px; }

/* ---- Stat strip ---- */
.a-stats {
  padding: 0;
  background: var(--pitch);
  color: #fff;
  position: relative; overflow: hidden;
}
.a-stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(117,110,177,0.22), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(61,183,215,0.18), transparent 50%);
  pointer-events: none;
}
.a-stats .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.a-stats-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .a-stats-grid { grid-template-columns: repeat(3, 1fr); } }
.a-stat {
  padding: 36px 28px 32px 0;
  display: flex; flex-direction: column; gap: 10px;
  text-align: center;
  align-items: center;
}
@media (min-width: 800px) {
  .a-stat { border-right: 1px solid rgba(255,255,255,0.14); padding-left: 28px; }
  .a-stat:first-child { padding-left: 0; }
  .a-stat:last-child { border-right: none; padding-right: 0; }
}
@media (max-width: 799px) {
  .a-stat { border-bottom: 1px solid rgba(255,255,255,0.14); padding-left: 0; padding-right: 0; }
  .a-stat:last-child { border-bottom: none; }
}
.a-stat .num {
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  background: var(--grad-wordmark);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.a-stat .strong {
  font-weight: 700; font-size: 26px;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 12px;
  line-height: 1.1;
}
.a-stat .sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ---- Section base ---- */
.a-section { padding: 96px 0; position: relative; }
#how, #ask, #privacy { scroll-margin-top: 80px; }
.a-section.alt {
  background:
    radial-gradient(circle at 10% 0%, rgba(117,110,177,0.06), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(61,183,215,0.06), transparent 50%),
    var(--paper-2);
}
.a-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.a-section-head .eyebrow { display: block; margin-bottom: 14px; }
.a-section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.a-section-head h2 em {
  font-style: normal;
  background: var(--grad-wordmark);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.a-section-head p { font-size: 17px; line-height: 1.55; color: var(--ink-3); margin: 0; text-wrap: pretty; }

/* ---- Steps ---- */
.a-steps {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .a-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.a-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 6px rgba(14,16,36,0.03);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.a-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,16,36,0.08); border-color: rgba(68,90,163,0.25); }
.a-step .marker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bubl-indigo);
}
.a-step .marker .n {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-wordmark);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.a-step h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.a-step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.a-step .convo {
  margin-top: 6px;
  border-radius: 16px;
  padding: 14px;
  background: #F6F6F6;
  display: flex; flex-direction: column; gap: 6px;
}
.a-step .convo .bub { max-width: 90%; font-size: 13.5px; padding: 8px 12px; }

/* ---- Chips ---- */
.a-chips {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .a-chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .a-chips { grid-template-columns: repeat(3, 1fr); } }
.a-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.a-chip::before {
  content: '“';
  position: absolute; top: -2px; left: 12px;
  font-family: 'Caveat', cursive;
  color: var(--bubl-indigo);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.a-chip span { display: block; padding-left: 14px; }
.a-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(14,16,36,0.08);
  border-color: rgba(61,183,215,0.4);
}

/* ---- Privacy features ---- */
.a-feats {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .a-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .a-feats { grid-template-columns: repeat(4, 1fr); } }
.a-feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.a-feat:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(14,16,36,0.08); }
.a-feat .icn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(117,110,177,0.12), rgba(61,183,215,0.10));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bubl-indigo);
}
.a-feat .icn svg { width: 20px; height: 20px; }
.a-feat h3 { font-size: 16px; font-weight: 600; margin: 0; }
.a-feat p { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }

/* ---- CTA (minimal) ---- */
.a-cta-mini {
  padding: 56px 0 96px;
}
.a-cta-mini .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.a-cta-mini-h {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

/* ---- Footer ---- */
.a-footer {
  background: var(--pitch);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.a-footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.a-footer .brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em;
}
.a-footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
.a-footer-links {
  display: flex; gap: 32px; align-items: center;
  flex-wrap: wrap;
}
.a-footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 500;
  transition: color .2s var(--ease);
}
.a-footer-links a:hover { color: #fff; }
.a-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   Privacy page — hero variant + legal-doc prose
   ============================================================ */
.a-hero.legal-hero { padding: 72px 0 48px; }
.a-hero.legal-hero .legal-hero-inner {
  max-width: 760px;
}
.a-hero.legal-hero .a-headline {
  font-size: clamp(48px, 7vw, 84px);
  margin-bottom: 26px;
}
.a-hero.legal-hero .a-lead {
  font-size: 19px;
  max-width: 680px;
  margin-bottom: 0;
}
.a-hero.legal-hero .legal-meta {
  display: inline-block;
  margin-bottom: 22px;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-2);
}
.legal h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 14px;
  scroll-margin-top: 88px;
  line-height: 1.25;
}
.legal h2:first-child { margin-top: 0; }
.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 14px 0;
}
.legal ul {
  margin: 16px 0;
  padding-left: 22px;
  list-style: disc;
}
.legal li {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal li::marker { color: var(--ink-4); }
.legal a {
  color: var(--bubl-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .15s var(--ease);
}
.legal a:hover { text-decoration-thickness: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(14,16,36,0.04);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}
.legal .effective {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 14px;
}

