/* Softkeel — softkeel.com
   Palette derives from the logo: compass ring #378ADD, needle #0C447C,
   wordmark cream #F1EFE8. Dark-first, because the wordmark is cream. */

:root {
  --ink:        #080e18;
  --ink-2:      #0d1626;
  --surface:    #121e31;
  --surface-2:  #17253c;
  --line:       #22344f;
  --cream:      #f1efe8;
  --muted:      #a3b4ca;
  --muted-2:    #7b8da5;
  --blue:       #378add;
  --blue-lift:  #5aa3ec;
  --deep:       #0c447c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

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

a { color: var(--blue-lift); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue-lift);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0; z-index: 99;
}
.skip:focus { left: 0; top: 0; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 600; }

h1 { font-size: clamp(2.25rem, 6.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lede  { font-size: clamp(1.075rem, 2.1vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 1rem;
}
.measure { max-width: 62ch; }

/* ---------- logo ---------- */

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); }
.logo:hover { text-decoration: none; }
.logo svg { display: block; overflow: visible; }
.logo .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo .word {
  font-size: 1.32rem; font-weight: 500; letter-spacing: -0.03em; color: var(--cream);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); }
.nav a {
  color: var(--muted); font-size: .93rem; font-weight: 500;
}
.nav a:hover { color: var(--cream); text-decoration: none; }
.nav .btn { color: var(--ink); }
@media (max-width: 620px) {
  .nav .hide-sm { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .96rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: var(--blue); color: #06101d;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-lift); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost {
  background: transparent; color: var(--cream); border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--blue); color: var(--cream); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- sections ---------- */

section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.hairline { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: -35% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 48% at 22% 8%, rgba(55,138,221,.20), transparent 62%),
    radial-gradient(46% 40% at 88% 22%, rgba(12,68,124,.34), transparent 66%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 56ch; margin-top: 1.6rem; }
.hero .cta-row { margin-top: 2.4rem; }
.hero .fineprint {
  margin-top: 1.75rem; font-size: .87rem; color: var(--muted-2); max-width: 54ch;
}

/* ---------- the keel note ---------- */

.keel {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) { .keel { grid-template-columns: 1fr 1.25fr; } }
.keel-figure {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; max-width: 320px; width: 100%; margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(55,138,221,.14), transparent 68%);
}
.keel-figure svg { width: 68%; height: auto; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
         border-radius: 16px; overflow: hidden; margin-top: 3rem; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--ink-2); padding: 2rem 1.75rem; }
.step .n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(55,138,221,.14); color: var(--blue);
  font-size: .82rem; font-weight: 700; margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- features ---------- */

.features { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .18s ease, background .18s ease;
}
.feature:hover { border-color: rgba(55,138,221,.5); background: var(--surface-2); }
.feature .ico { color: var(--blue); margin-bottom: 1.1rem; display: block; }
.feature .ico svg { width: 24px; height: 24px; display: block; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- who it's for ---------- */

.for-list { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: 68ch; }
.for-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--cream);
  font-size: 1.02rem;
}
.for-list li:last-child { border-bottom: 1px solid var(--line); }
.for-list li::before {
  content: ""; position: absolute; left: .3rem; top: 1.62rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}

.disclaimer {
  margin-top: 2.5rem;
  border-left: 2px solid var(--line);
  padding: .35rem 0 .35rem 1.4rem;
  color: var(--muted-2);
  font-size: .92rem;
  max-width: 66ch;
}

/* ---------- privacy band ---------- */

.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.lock-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.lock-points h3 { margin-bottom: .4rem; }
.lock-points p { color: var(--muted); font-size: .96rem; margin: 0; }
.lock-points .k { color: var(--blue); font-size: .78rem; font-weight: 700;
                  letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .55rem; }

/* ---------- closing CTA ---------- */

.close-cta { text-align: center; }
.close-cta h2 { margin-inline: auto; max-width: 20ch; }
.close-cta .lede { margin: 1.4rem auto 0; max-width: 50ch; }
.close-cta .cta-row { justify-content: center; margin-top: 2.25rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 3rem;
  color: var(--muted-2);
  font-size: .9rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding-bottom: 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 2rem; }
.footer-legal p { max-width: 78ch; font-size: .85rem; line-height: 1.6; }

/* ---------- legal document pages ---------- */

.doc { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem); }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 3rem; }
.doc-head .updated { color: var(--muted-2); font-size: .9rem; margin: 1rem 0 0; }
.doc-body { max-width: 74ch; }
.doc-body h2 {
  font-size: 1.4rem; margin: 3rem 0 1rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin: 2rem 0 .75rem; color: var(--cream); }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body strong { color: var(--cream); font-weight: 600; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin: 0 0 1.15rem; }
.doc-body li { margin-bottom: .55rem; }
.doc-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem;
}
.doc-body th, .doc-body td {
  text-align: left; padding: .8rem .9rem; border: 1px solid var(--line); vertical-align: top;
}
.doc-body th { background: var(--surface); color: var(--cream); font-weight: 600; }
.doc-body td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.callout p { margin-bottom: .8rem; }
.callout p:last-child { margin-bottom: 0; }

.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
       padding: 1.5rem 1.75rem; margin-bottom: 3rem; }
.toc h2 { font-size: .78rem !important; letter-spacing: .14em; text-transform: uppercase;
          color: var(--blue) !important; margin: 0 0 .9rem !important;
          padding: 0 !important; border: 0 !important; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: .4rem; font-size: .92rem; }

/* ---------- 404 ---------- */

.center-page {
  min-height: 62vh; display: grid; place-content: center; text-align: center;
  padding-block: 5rem;
}
.center-page .cta-row { justify-content: center; margin-top: 2rem; }
