/* Kelvin website visual system.
   Sizes follow the Tailwind type scale, spacing uses only
   0 2 4 8 12 16 24 32 40 48 64 80 96 px, radii use Tailwind steps,
   motion uses one decelerating curve. */

@font-face {
  font-family: Geist;
  src: url("/assets/geist-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/assets/geist-latin-600.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #181818;
  --surface: #1f1f1f;
  --raised: #272727;
  --line: #313131;
  --text: #f3efdf;
  --muted: #a8a498;
  --amber: #edb877;
  --sun: #e39b55;
  --sans: Geist, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}
.muted {
  color: var(--muted);
}

/* Navigation: a compact pill that floats off the top edge. */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  background: #1f1f1fb8;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  white-space: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a,
.menu-panel a {
  text-decoration: none;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 9999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--raised);
  color: var(--text);
}
.menu-toggle,
.menu-panel {
  display: none;
}

@media (max-width: 719px) {
  .nav {
    width: calc(100% - 32px);
    justify-content: space-between;
  }
  .nav-optional {
    display: none;
  }
  .js .nav-links {
    display: none;
  }
  .js .menu-toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 9999px;
    background: var(--raised);
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 500ms var(--ease);
  }
  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }
  .menu-toggle span:last-child {
    transform: translateY(4px);
  }
  .menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
  }
  .menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
  }
  .js .menu-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 96px 24px 48px;
    background: #181818f0;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 500ms var(--ease),
      visibility 0s 500ms;
  }
  .menu-open .menu-panel {
    opacity: 1;
    visibility: visible;
    transition: opacity 500ms var(--ease);
  }
  .menu-panel a {
    padding: 12px 0;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 40px;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 500ms var(--ease),
      transform 500ms var(--ease);
  }
  .menu-panel a[aria-current="page"] {
    color: var(--amber);
  }
  .menu-open .menu-panel a {
    opacity: 1;
    transform: none;
  }
  .menu-open .menu-panel a:nth-child(2) {
    transition-delay: 60ms;
  }
  .menu-open .menu-panel a:nth-child(3) {
    transition-delay: 120ms;
  }
  .menu-open .menu-panel a:nth-child(4) {
    transition-delay: 180ms;
  }
  .menu-open .menu-panel a:nth-child(5) {
    transition-delay: 240ms;
  }
  .menu-open {
    overflow: hidden;
  }
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 300ms var(--ease),
    transform 500ms var(--ease);
}
a.button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}
a.button:active {
  transform: scale(0.98);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: #edb87766;
  transition: color 300ms var(--ease);
}
.text-link:hover {
  color: var(--amber);
}
.text-link .icon {
  width: 16px;
  height: 16px;
}

/* Shared section type */
.section {
  padding-block: 96px;
}
.kicker {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 40px;
}
.lede {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}
.center {
  text-align: center;
}
.center .lede {
  margin-inline: auto;
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  gap: 64px;
  margin-top: 64px;
  padding-top: 96px;
  padding-bottom: 80px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--amber);
}
.hero h1 {
  max-width: 680px;
  padding-bottom: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  -webkit-text-fill-color: var(--amber);
}
.hero .lede {
  margin-top: 24px;
}
.hero-action {
  margin-top: 32px;
}
.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.proof-line li {
  list-style: none;
}
.proof-line li + li::before {
  content: "·";
  margin-right: 12px;
  color: var(--line);
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
/* The sun sits up and to the left so it shows behind the menu. */
.sun,
.ring {
  position: absolute;
  top: 40%;
  left: 36%;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
}
.sun {
  width: min(320px, 72vw);
  aspect-ratio: 1;
  background: var(--sun);
}
.ring {
  aspect-ratio: 1;
  border: 1px solid #edb8772e;
}
.ring-one {
  width: min(420px, 92vw);
}
.ring-two {
  width: min(520px, 112vw);
}
.hero-visual {
  overflow-x: clip;
  overflow-y: visible;
}
.hero-visual img {
  position: relative;
  width: min(340px, 78vw);
  transform: translate(24px, 24px);
  filter: drop-shadow(0 24px 48px #000000a6);
}
@media (min-width: 960px) {
  .hero-visual {
    overflow: visible;
  }
  .hero-visual img {
    transform: translate(48px, 24px);
  }
}
.hero-visual figcaption {
  position: absolute;
  bottom: -32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

/* Proof strip */
.strip {
  background: var(--surface);
}
.strip-inner {
  display: grid;
  gap: 24px;
  padding-block: 32px;
}
.strip-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}
.strip-item .icon {
  color: var(--amber);
}
.strip-item b {
  display: block;
  font-weight: 600;
}
.strip-item span {
  color: var(--muted);
}

/* Benefits */
.benefits {
  display: grid;
  gap: 96px;
  margin-top: 64px;
}
.benefit {
  display: grid;
  align-items: center;
  gap: 40px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--amber);
}
.benefit-icon .icon {
  width: 20px;
  height: 20px;
}
.benefit h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.benefit p {
  margin-top: 12px;
  color: var(--muted);
}
.benefit ul {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
}
.benefit li {
  display: flex;
  gap: 8px;
  list-style: none;
  color: var(--muted);
}
.benefit li b {
  color: var(--text);
  font-weight: 600;
}
.benefit li::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 8px;
  border-radius: 9999px;
  background: var(--amber);
}
.shot {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.shot img {
  width: 100%;
  border-radius: 12px;
}
.extras {
  display: grid;
  gap: 16px;
  margin-top: 96px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.card .icon {
  color: var(--amber);
}
.card h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Tagline reveal */
.tagline {
  padding-block: 64px;
}
.tagline p {
  max-width: 680px;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 40px;
  text-align: center;
}
@media (max-width: 767px) {
  /* Small screens wrap by balance; forced breaks would strand a word. */
  .tagline br {
    display: none;
  }
}
.js .tagline .word {
  color: #f3efdf4d;
  transition: color 500ms var(--ease);
}
.js .tagline .word.is-lit {
  color: var(--text);
}

/* How it works */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  counter-reset: step;
}
.steps li {
  list-style: none;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--raised);
  color: var(--amber);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.steps h3 {
  font-size: 20px;
  line-height: 28px;
}
.steps p {
  font-size: 16px;
  line-height: 24px;
}

/* Privacy proof */
.privacy {
  display: grid;
  align-items: center;
  gap: 48px;
}
.privacy .text-link {
  margin-top: 24px;
}
.facts {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.fact {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--raised);
}
.fact .icon {
  color: var(--amber);
}
.fact b {
  display: block;
  font-weight: 600;
}
.fact span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* FAQ and disclosures */
.faq {
  display: grid;
  gap: 8px;
  max-width: 800px;
  margin: 48px auto 0;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease);
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  background: var(--raised);
}
summary .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 500ms var(--ease);
}
details[open] summary .icon {
  transform: rotate(45deg);
}
details > :not(summary) {
  padding-inline: 24px;
  color: var(--muted);
}
details > :last-child {
  padding-bottom: 24px;
}
details > p + p,
details > ol {
  margin-top: 12px;
}
details ol {
  display: grid;
  gap: 8px;
  padding-left: 48px;
}

/* Final call to action */
.get {
  display: grid;
  justify-items: center;
  text-align: center;
}
.get > img {
  width: 88px;
  height: 88px;
  margin-bottom: 32px;
  border-radius: 24px;
}
.get .hero-action {
  display: grid;
  justify-items: center;
}
.get .proof-line {
  justify-content: center;
}
.requirements {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.get .text-link {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  display: grid;
  gap: 24px;
  margin-top: 64px;
  padding-block: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.footer-rule {
  height: 1px;
  background: var(--line);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer a {
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}
.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer-brand span {
  color: var(--muted);
  font-weight: 400;
}

/* Document pages: support, privacy, not found */
.doc {
  max-width: 680px;
  margin-top: 64px;
  padding-top: 96px;
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
}
.doc .date {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.doc > h2 {
  margin-top: 48px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.doc > p:not(.kicker, .lede, .date) {
  margin-top: 16px;
  color: var(--muted);
}
.doc > p a,
.doc details a {
  text-underline-offset: 4px;
  text-decoration-color: #edb87766;
}
.doc .faq {
  margin-top: 24px;
}
.contact {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.contact a {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: #edb87766;
}
.contact p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.not-found {
  display: grid;
  justify-items: center;
  min-height: 100vh;
  align-content: center;
  padding-block: 96px;
  text-align: center;
}
.not-found .sunset {
  width: 96px;
  height: 48px;
  margin-bottom: 32px;
  border-radius: 96px 96px 0 0;
  background: var(--sun);
}
.not-found .lede {
  margin-inline: auto;
}
.not-found .button {
  margin-top: 32px;
}

/* Scroll reveals: only when JavaScript runs, once per element. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .strip-inner,
  .extras {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .footer-rule {
    grid-column: 1 / -1;
  }
}
@media (min-width: 768px) {
  .hero h1,
  .doc h1 {
    font-size: 60px;
  }
  .display {
    font-size: 48px;
    line-height: 1;
  }
  .tagline p {
    font-size: 48px;
    line-height: 1;
  }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding-bottom: 96px;
  }
  .hero-visual {
    min-height: 560px;
  }
  .benefit {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
  .benefit:nth-child(even) .shot {
    order: -1;
  }
  .privacy {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 72px;
  }
}
@media (max-width: 639px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .section,
  .tagline {
    padding-block: 64px;
  }
  .hero {
    padding-top: 64px;
  }
  .hero-visual {
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-property: opacity, color, background-color, visibility !important;
  }
  .js [data-reveal],
  .menu-panel a {
    transform: none !important;
  }
  a.button:hover,
  a.button:active {
    transform: none;
  }
}

.doc > h2 + details {
  margin-top: 24px;
}
.doc > details + details {
  margin-top: 8px;
}
