:root {
  --ink: #0b1a2b;
  --ink-2: #12263d;
  --ink-3: #1b3350;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --text: #13202f;
  --muted: #5a6676;
  --line: #e2ded5;
  --line-dark: rgba(244, 241, 234, 0.12);
  --on-ink: #f4f1ea;
  --on-ink-muted: #a9b4c2;
  --accent: #1d8a5c;
  --accent-bright: #3ccf8e;
  --accent-soft: #e3f1ea;
  --radius: 14px;
  --max: 1160px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(11, 26, 43, 0.04), 0 12px 32px -12px rgba(11, 26, 43, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 26, 43, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-ink);
  text-decoration: none;
}

.logo svg { width: 34px; height: 34px; }

.logo-word {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.logo-word small {
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--on-ink-muted);
  margin-left: 6px;
  font-size: 12px;
}

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

.nav a {
  color: var(--on-ink-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--on-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent-bright); color: var(--ink); }
.btn-primary:hover { background: #5bdca2; }

.btn-ghost { color: var(--on-ink); border: 1px solid rgba(244, 241, 234, 0.28); }
.btn-ghost:hover { border-color: var(--on-ink); }

.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-3); }

.nav .btn { padding: 9px 18px; font-size: 14px; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .logo-word small { display: none; }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(60, 207, 142, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(60, 120, 207, 0.18), transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding: 112px 0 0;
}

.hero-pitch {
  position: absolute;
  right: -160px;
  top: 40px;
  width: 760px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero .eyebrow { color: var(--accent-bright); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
}

.hero-lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--on-ink-muted);
  max-width: 600px;
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 104px;
  border-top: 1px solid var(--line-dark);
}

.fact {
  padding: 28px 24px 32px 0;
  border-right: 1px solid var(--line-dark);
}

.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }

.fact span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: 6px;
}

.fact strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .hero { padding-top: 72px; }
}

@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; margin-top: 72px; }
  .fact, .fact + .fact { padding: 20px 0; border-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line-dark); }
}

/* Sections */

.section { padding: 120px 0; }
.section-tight { padding: 96px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 520px;
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
}

/* About */

.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
}

.about-copy p {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 20px;
}

.about-copy p:first-child {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.45;
  color: var(--text);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 72px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.pillar-icon svg { width: 22px; height: 22px; }

.pillar h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr; margin-top: 48px; }
}

/* Products */

.products { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product + .product {
  margin-top: 120px;
  padding-top: 120px;
  border-top: 1px solid var(--line);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.product-badge.alt { background: #eef0f4; color: var(--ink-3); }

.product h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.product-copy > p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231d8a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-bright);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--accent); }

.product-visual {
  position: relative;
  border-radius: 24px;
  padding: 48px;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-ss {
  background:
    radial-gradient(400px 260px at 20% 10%, rgba(60, 207, 142, 0.22), transparent 70%),
    linear-gradient(160deg, var(--ink-2), var(--ink));
}

.visual-fa {
  background:
    radial-gradient(420px 300px at 85% 90%, rgba(60, 207, 142, 0.25), transparent 70%),
    linear-gradient(200deg, #e9efe9, #dfe8e2);
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 40px; }
  .product + .product { margin-top: 88px; padding-top: 88px; }
  .product-fa .product-visual { order: 2; }
  .product-visual { padding: 28px 16px; min-height: 0; }
}

/* Chat widget mock */

.chat {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.chat-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(60, 207, 142, 0.2);
}

.chat-head span { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--on-ink-muted); }

.chat-body { padding: 18px 16px; display: grid; gap: 12px; background: #f7f8fa; }

.bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
}

.bubble.me {
  justify-self: end;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.form-row b { color: var(--text); font-weight: 600; width: 46px; }

.pips { display: flex; gap: 4px; }

.pips em {
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #9aa3af;
}

.pips .w { background: var(--accent); }
.pips .l { background: #c4513f; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #eceef1;
  color: #9aa3af;
  font-size: 13px;
}

.chat-input i {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* Phone mock */

.phone {
  width: 260px;
  border-radius: 40px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 40px 70px -25px rgba(11, 26, 43, 0.5);
}

.screen {
  border-radius: 31px;
  background: #fbfaf7;
  overflow: hidden;
  padding: 14px 16px 18px;
  font-size: 12px;
  line-height: 1.4;
}

.notch {
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto 16px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.app-top b { font-size: 16px; font-family: var(--display); font-weight: 500; }

.streak {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1dd;
  color: #a85b00;
}

.card-today {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(140deg, var(--ink-2), var(--ink-3));
  color: var(--on-ink);
  margin-bottom: 12px;
}

.card-today small { color: var(--on-ink-muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.card-today p { margin: 4px 0 10px; font-size: 14px; font-weight: 600; }

.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); }
.bar i { display: block; height: 100%; width: 60%; border-radius: inherit; background: var(--accent-bright); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }

.tile {
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ebe8e1;
  font-weight: 600;
}

.tile span { display: block; width: 22px; height: 22px; border-radius: 7px; margin-bottom: 8px; }
.tile:nth-child(1) span { background: #d9f2e5; }
.tile:nth-child(2) span { background: #dde6f7; }
.tile:nth-child(3) span { background: #fbe6d3; }
.tile:nth-child(4) span { background: #efe0f5; }

.board { background: #fff; border: 1px solid #ebe8e1; border-radius: 12px; padding: 4px 10px; }

.board div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f0ede7;
}

.board div:last-child { border-bottom: 0; }
.board .you { font-weight: 700; color: var(--accent); }

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  padding: 40px 36px 8px 0;
}

.principle + .principle { padding-left: 36px; border-left: 1px solid var(--line); }

.principle b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 16px;
}

.principle h3 { font-size: 20px; margin: 0 0 10px; }
.principle p { color: var(--muted); margin: 0; font-size: 16px; }

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* Contact */

.contact {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(60, 207, 142, 0.14), transparent 60%),
    var(--ink);
  color: var(--on-ink);
}

.contact .eyebrow { color: var(--accent-bright); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact h2 { margin-bottom: 20px; }
.contact-lead { color: var(--on-ink-muted); font-size: 18px; margin: 0 0 36px; max-width: 460px; }

.contact-cards { display: grid; gap: 14px; }

.contact-card {
  display: block;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-ink);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

a.contact-card:hover { border-color: rgba(60, 207, 142, 0.6); background: rgba(60, 207, 142, 0.05); }

.contact-card span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: 6px;
}

.contact-card strong { font-weight: 500; font-size: 18px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Footer */

.site-footer {
  background: #07121f;
  color: var(--on-ink-muted);
  font-size: 15px;
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-grid p { margin: 18px 0 0; max-width: 320px; }

.footer-grid h4 {
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--on-ink-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--on-ink); }

.footer-legal {
  padding-top: 28px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Legal pages */

.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(60, 207, 142, 0.14), transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding: 88px 0 72px;
}

.page-hero .eyebrow { color: var(--accent-bright); }

.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.page-hero p { color: var(--on-ink-muted); margin: 0; font-size: 17px; max-width: 640px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 120px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  font-size: 14px;
}

.toc h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }

.doc { max-width: 720px; }

.doc > p:first-child { font-size: 19px; color: var(--text); }

.doc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 56px 0 14px;
  scroll-margin-top: 100px;
}

.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2f3b4a; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 28px 0;
}

.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 88px; }
  .toc { position: static; }
  .toc:not([data-toc]) { order: 2; }
}

/* Motion */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.hero-in > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.08s; }
.hero-in > *:nth-child(3) { animation-delay: 0.16s; }
.hero-in > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in > * { animation: none; }
}
