/* =====================================================================
   SessionBridge — design system
   Type: Fraunces (display) + Inter (text) + JetBrains Mono (labels)
   ===================================================================== */

:root {
  /* Ink & neutrals */
  --ink:        #16262e;
  --ink-2:      #35505a;
  --muted:      #6c8089;
  --line:       rgba(22, 38, 46, 0.10);
  --line-2:     rgba(22, 38, 46, 0.06);

  /* Surfaces */
  --paper:      #fbf7ee;   /* warm paper background */
  --paper-2:    #f3ecdd;   /* deeper cream band */
  --card:       #ffffff;

  /* Brand — deep slate/teal */
  --navy:       #143039;
  --navy-2:     #1c414c;
  --slate:      #2f5a63;
  --teal:       #2f7d78;   /* calming secondary accent */
  --teal-soft:  #e2efec;

  /* Warm accent */
  --gold:       #e0a95f;
  --gold-2:     #c98a45;
  --gold-soft:  #f7ecd8;

  /* Semantic */
  --success:    #3f8a63;
  --danger:     #b8433f;

  /* Effect tokens */
  --shadow-sm:  0 2px 8px rgba(20, 48, 57, 0.06);
  --shadow:     0 14px 40px -18px rgba(20, 48, 57, 0.30);
  --shadow-lg:  0 30px 70px -30px rgba(20, 48, 57, 0.45);
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --max:        1160px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper texture via layered radial tints */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(47, 125, 120, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 108%, rgba(224, 169, 95, 0.07), transparent 60%);
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin: 0 0 20px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 0 0 10px; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--teal);
  opacity: 0.6;
}

/* ============================ NAV ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 238, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em;
}
.brand img { height: 34px; width: 34px; border-radius: 9px; object-fit: cover; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.96rem; font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 12px 26px -12px rgba(201, 138, 69, 0.9); }
.btn-primary:hover { background: var(--gold-2); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(201, 138, 69, 0.9); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 78% 10%, rgba(47, 125, 120, 0.45), transparent 55%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-2) 48%, var(--slate) 100%);
  color: #fff;
  padding: 92px 0 108px;
  overflow: hidden;
}
/* decorative bridge-arc lines */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 150%, transparent 38%, rgba(255,255,255,0.05) 38.4%, transparent 39%),
    radial-gradient(circle at 50% 150%, transparent 48%, rgba(255,255,255,0.045) 48.4%, transparent 49%),
    radial-gradient(circle at 50% 150%, transparent 58%, rgba(255,255,255,0.04) 58.4%, transparent 59%);
  background-size: 140% 140%;
  background-position: center bottom;
  opacity: 0.9;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.18rem; color: rgba(255, 255, 255, 0.84); max-width: 48ch; margin: 0; }
.hero-single .wrap { grid-template-columns: 1fr; }
.hero-single { padding: 74px 0 82px; }
.hero-single .lede { margin-top: 6px; }

/* Phone mockup */
.mockup {
  justify-self: center;
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 610;
  background: linear-gradient(180deg, #22454f, #16303a);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08) inset;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mockup-screen {
  height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mockup-top {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; padding: 22px 20px 18px;
}
.mockup-top .m-eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.mockup-top .m-title { font-family: var(--font-display); font-size: 1.15rem; margin-top: 4px; }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow-sm); }
.m-card .m-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.m-card .m-text { font-size: 0.74rem; color: var(--ink-2); line-height: 1.5; }
.m-mood { display: flex; gap: 7px; margin-top: 8px; }
.m-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 0.7rem; }
.m-dot.on { background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); }
.m-review { display: flex; align-items: center; gap: 8px; background: var(--teal-soft); border-radius: 12px; padding: 10px 12px; }
.m-review .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 0.6rem; flex: none; }
.m-review .m-text { font-size: 0.68rem; color: var(--slate); }

/* ============================ TRUST STRIP ============================ */
.trust-strip { background: var(--navy); color: #fff; padding: 22px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; }
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item .t-big { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.trust-item .t-small { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* ============================ SECTIONS ============================ */
section { padding: 92px 0; position: relative; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--navy); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: var(--gold); }
section.dark .eyebrow::before { background: var(--gold); }
section.dark p { color: rgba(255,255,255,0.8); }

.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* ============================ CARDS / GRIDS ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--teal-soft));
  color: var(--gold-2);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 30px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px rgba(20,48,57,0.06);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.steps.connected .step::after {
  content: ""; position: absolute; top: 52px; right: -26px; width: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
}
.steps.connected .step:last-child::after { display: none; }

/* ============================ CALLOUT ============================ */
.callout {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 48px 46px;
  background: linear-gradient(150deg, var(--navy), var(--slate));
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.callout::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,125,120,0.55), transparent 70%);
}
.callout h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; position: relative; }
.callout p { color: rgba(255,255,255,0.85); position: relative; max-width: 62ch; }
.callout .btn { position: relative; margin-top: 22px; }
.callout.teal { background: linear-gradient(150deg, var(--teal), var(--slate)); }

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; color: var(--slate);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ============================ COMPARE TABLE ============================ */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-col .col-head { padding: 18px 24px; font-family: var(--font-display); font-size: 1.15rem; }
.compare-col.is .col-head { background: var(--teal-soft); color: var(--teal); }
.compare-col.isnot .col-head { background: var(--gold-soft); color: var(--gold-2); }
.compare-col ul { list-style: none; margin: 0; padding: 8px 24px 20px; }
.compare-col li { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 0.97rem; color: var(--ink-2); display: flex; gap: 11px; align-items: flex-start; }
.compare-col li:last-child { border-bottom: 0; }
.compare-col li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background-repeat: no-repeat; background-position: center; }
.compare-col.is li::before { background-color: var(--teal-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f7d78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.compare-col.isnot li::before { background-color: var(--gold-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c98a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }

/* ============================ NOTICE ============================ */
.notice {
  border-left: 4px solid var(--gold-2);
  background: linear-gradient(180deg, #fff, var(--gold-soft));
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  margin: 26px 0;
  font-size: 0.98rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.notice.crisis { border-left-color: var(--danger); background: linear-gradient(180deg, #fff, #fbeceb); }

/* ============================ STATUS LIST ============================ */
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.status-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.status-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.status-list .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 5px rgba(224,169,95,0.15); background: var(--gold-2); }
.status-list .dot.done { background: var(--success); box-shadow: 0 0 0 5px rgba(63,138,99,0.15); }
.status-list strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.status-list span.desc { color: var(--ink-2); font-size: 0.95rem; }

/* ============================ FORMS ============================ */
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 0.98rem; font-family: inherit;
  background: #fff; color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,125,120,0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 62px 0 34px; font-size: 0.93rem; }
.site-footer .wrap.top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand img { box-shadow: none; }
.site-footer .foot-tag { max-width: 34ch; color: rgba(255,255,255,0.62); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer nav a { color: rgba(255,255,255,0.72); transition: color 0.18s ease; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .fine {
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.5); max-width: 940px;
}

/* ============================ SCROLL REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mockup { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .mockup { order: -1; width: 260px; }
  .grid-3, .grid-2, .steps, .two-col, .compare-grid { grid-template-columns: 1fr; }
  .steps.connected .step::after { display: none; }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 22px 26px; box-shadow: var(--shadow);
  }
  .site-header.open .nav-cta { display: inline-flex; }
  .callout { padding: 36px 28px; }
  section { padding: 68px 0; }
}
