/* Curael landing page. Values come from the Curael UI kit tokens (ui-kit/tokens.css).
   Manrope is self-hosted (SIL OFL 1.1, see assets/fonts/OFL.txt). No external requests. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0E2033;          /* Ink Navy */
  --navy-900: #0E2033;
  --navy-850: #132A40;
  --navy-800: #1B3650;
  --teal: #3F9A93;          /* Tidal Teal, brand node */
  --teal-600: #168179;      /* AA on white: primary buttons */
  --teal-700: #066963;      /* links + hover */
  --teal-800: #02524D;
  --teal-50: #F0F9F8;
  --teal-100: #E1F2F0;
  --glacier: #5DB8AE;       /* Glacier: accents on navy */
  --slate: #5A6B7B;         /* Slate: muted text */
  --slate-700: #455666;
  --mist: #EEF2F3;          /* Mist */
  --canvas: #F6FBFD;
  --line: #E1E5E8;
  --white: #FFFFFF;
  --error: #A81E27;
  --error-bg: #FFF3F2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14,32,51,.05), 0 1px 3px rgba(14,32,51,.08);
  --shadow-md: 0 2px 4px -1px rgba(14,32,51,.06), 0 6px 14px -3px rgba(14,32,51,.10);
  --shadow-xl: 0 8px 16px -4px rgba(14,32,51,.08), 0 28px 56px -12px rgba(14,32,51,.22);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --wrap: 1160px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(63,154,147,.28); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; line-height: 1;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 2px rgba(14,32,51,.18), inset 0 1px 0 rgba(255,255,255,.14); }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--primary:active { background: var(--teal-800); transform: translateY(1px); }
.btn--primary[disabled] { opacity: .65; cursor: progress; }
.btn--quiet { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--quiet:hover { background: var(--mist); color: var(--navy); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--on-dark { background: #fff; color: var(--navy); }
.btn--on-dark:hover { background: var(--mist); color: var(--navy); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(14,32,51,.06);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--slate-700); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--navy); }
.nav .btn { height: 40px; padding: 0 16px; color: #fff; }
.nav .btn:hover { color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background:
  radial-gradient(900px 520px at 85% -10%, rgba(93,184,174,.20), transparent 60%),
  radial-gradient(700px 480px at -10% 30%, rgba(14,32,51,.045), transparent 60%),
  linear-gradient(180deg, #F6FBFD 0%, #FFFFFF 100%); }
.hero__ring { position: absolute; right: 60px; top: -10px; width: 620px; height: 620px; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--slate-700); letter-spacing: .005em; box-shadow: var(--shadow-sm);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63,154,147,.18); }
.hero h1 { margin-top: 24px; font-size: clamp(2.75rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.hero h1 .node { color: var(--teal); }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 1.25rem; line-height: 1.55; color: var(--slate-700); letter-spacing: -.01em; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__facts { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--slate-700); font-size: .9375rem; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }

/* ------------------------------------------------------------------ form card */
.card {
  background: #fff; border: 1px solid rgba(14,32,51,.08); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: 32px;
}
.card h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.03em; }
.card__sub { margin-top: 8px; color: var(--slate-700); font-size: .9375rem; line-height: 1.55; }
.form { margin-top: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field label, .field .label { font-size: .8125rem; font-weight: 600; color: var(--navy); letter-spacing: .005em; }
.opt { font-weight: 500; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1px solid #CED4D7; border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder { color: #8C9397; }
.field input:hover, .field select:hover { border-color: #B1B9BD; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(22,129,121,.16); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(168,30,39,.14); }
.field__error { color: var(--error); font-size: .8125rem; font-weight: 500; margin: 0; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 4px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-600); }
.consent label { font-size: .8125rem; line-height: 1.5; font-weight: 400; color: var(--slate-700); }
.consent__error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin-top: 2px; text-align: center; font-size: .75rem; color: var(--slate); }
.form-alert { display: none; padding: 12px 14px; border-radius: 10px; background: var(--error-bg); border: 1px solid #FECDC9; color: var(--error); font-size: .875rem; font-weight: 500; }
.form-alert.is-visible { display: block; }
.form-success { text-align: center; padding: 28px 8px 12px; }
.form-success[hidden] { display: none; }
.form-success__mark { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; }
.form-success h2 { font-size: 1.5rem; }
.form-success p { margin-top: 10px; color: var(--slate-700); }

/* ------------------------------------------------------------------ sections */
.section { padding: 112px 0; }
.section--tint { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overline { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.section h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.035em; max-width: 18em; }
.lead { margin-top: 20px; max-width: 40em; font-size: 1.125rem; line-height: 1.65; color: var(--slate-700); }
.section__head { margin-bottom: 56px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.feature { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature__no { font-size: .8125rem; font-weight: 700; color: var(--teal-700); letter-spacing: .08em; }
.feature h3 { margin-top: 20px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.025em; }
.feature p { margin-top: 12px; color: var(--slate-700); }

/* capture-once flow */
.flow { margin-top: 56px; padding: 40px 40px 32px; background: var(--navy); border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; }
.flow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 100% 0%, rgba(93,184,174,.22), transparent 70%); pointer-events: none; }
.flow__title { position: relative; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.flow__sub { position: relative; margin-top: 6px; color: #A9BACB; font-size: .9375rem; }
.flow__steps { position: relative; list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.flow__steps li { position: relative; padding-top: 34px; padding-right: 20px; }
.flow__steps li::before { content: ""; position: absolute; left: 0; top: 7px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(93,184,174,.75), rgba(93,184,174,.25)); }
.flow__steps li:last-child::before { right: 70%; }
.flow__steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--glacier); box-shadow: 0 0 0 5px rgba(93,184,174,.2); }
.flow__steps strong { display: block; font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.flow__steps span { display: block; margin-top: 4px; font-size: .875rem; color: #A9BACB; line-height: 1.5; }

.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.module:hover { border-color: rgba(22,129,121,.4); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.module__icon svg { width: 22px; height: 22px; }
.module h3 { margin-top: 18px; font-size: 1.0625rem; letter-spacing: -.015em; }
.module p { margin-top: 6px; font-size: .9375rem; line-height: 1.55; color: var(--slate-700); }
.fine { margin-top: 28px; font-size: .875rem; color: var(--slate); max-width: 52em; }

/* trust */
.trust { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 0% 0%, rgba(93,184,174,.16), transparent 70%); }
.trust .wrap { position: relative; }
.trust .overline { color: var(--glacier); }
.trust h2 { color: #fff; }
.trust .lead { color: #B9C7D4; }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.commit__item { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(255,255,255,.035); }
.commit__item h3 { font-size: 1.125rem; color: #fff; letter-spacing: -.015em; }
.commit__item p { margin-top: 10px; font-size: .9375rem; color: #B9C7D4; line-height: 1.6; }
.trust .fine { color: #8FA3B6; margin-top: 32px; }
.trust .fine a { color: var(--glacier); }

/* founder */
.founder { display: grid; grid-template-columns: 96px 1fr; gap: 40px; align-items: start; max-width: 980px; }
.founder__mark { width: 96px; height: 96px; border-radius: 24px; background: var(--navy); display: grid; place-items: center; }
.founder__mark img { width: 52px; height: auto; }
.founder h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: none; }
.founder .btn { margin-top: 32px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #fff; }
.site-footer__row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer img { height: 26px; width: auto; }
.site-footer__tag { margin-top: 14px; max-width: 28em; font-size: .9375rem; color: var(--slate-700); }
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; font-size: .9375rem; }
.site-footer__links a { color: var(--slate-700); text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { color: var(--navy); text-decoration: underline; }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: var(--slate); }

/* ------------------------------------------------------------------ document pages (privacy, thank-you, 404) */
.doc { padding: 72px 0 112px; }
.doc__inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); letter-spacing: -.04em; line-height: 1.08; }
.doc h2 { margin-top: 48px; font-size: 1.5rem; letter-spacing: -.025em; }
.doc h3 { margin-top: 28px; font-size: 1.0625rem; }
.doc p, .doc li { margin-top: 12px; color: var(--slate-700); }
.doc ul { padding-left: 22px; margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--slate-700); }
.doc th { color: var(--navy); font-weight: 600; background: var(--canvas); }
.doc .meta { margin-top: 16px; color: var(--slate); font-size: .9375rem; }
.draft-banner { margin-top: 28px; padding: 16px 18px; border-radius: 12px; background: #FFF7EE; border: 1px solid #FDDDB6; color: #714905; font-size: .9375rem; }
.draft-banner strong { color: #553503; }
.ph { background: #FEEDDA; color: #553503; padding: 0 5px; border-radius: 4px; font-weight: 600; }

.center-page { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; padding: 72px 0; text-align: center; }
.center-page .mark { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; }
.center-page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.04em; line-height: 1.08; }
.center-page p { margin: 18px auto 0; max-width: 34em; color: var(--slate-700); font-size: 1.125rem; }
.center-page .btn { margin-top: 32px; }
.center-page .big404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--navy); }
.center-page .big404 span { color: var(--teal); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .hero .card { animation: rise .9s .15s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__ring { width: 520px; height: 520px; right: -60px; top: -40px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .features, .commit { grid-template-columns: 1fr; }
  .card { max-width: 560px; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero__lead { font-size: 1.125rem; }
  .hero__actions .btn { width: 100%; }
  .hero__ring { width: 380px; height: 380px; right: -120px; top: -20px; opacity: .8; }
  .section { padding: 72px 0; }
  .section__head, .features, .flow, .commit { margin-top: 40px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .field__row { grid-template-columns: 1fr; }
  .flow { padding: 28px 24px; }
  .flow__steps { grid-template-columns: 1fr; gap: 28px; }
  .flow__steps li { padding: 0 0 0 40px; }
  .flow__steps li::before { left: 7px; top: 16px; bottom: -28px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(93,184,174,.6), rgba(93,184,174,.15)); }
  .flow__steps li:last-child::before { display: none; }
  .modules { grid-template-columns: 1fr; gap: 12px; }
  .module { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .module__icon { grid-row: 1 / 3; }
  .module h3 { margin-top: 0; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .wrap { padding: 0 20px; }
  .site-footer__legal { flex-direction: column; }
}
.center-page .big404 + h1 { margin-top: 12px; }
