/* Jodd homepage — ink on paper, one signature: the note that peels back
   to reveal it was an email all along. Everything else stays quiet. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Archivo:wght@400;500;600;700&family=Caveat:wght@500;600&display=swap');

:root {
  --paper: #faf7f0;
  --paper-raised: #ffffff;
  --ink: #1c2333;
  --ink-soft: #5b6270;
  --rule: #e4ddcb;
  --reveal-bg: #14171f;
  --reveal-text: #d8e0ea;
  --reveal-accent: #7fd68a;
  --focus: #3b6fed;

  --grad: linear-gradient(
    90deg,
    #f0396b,
    #f2803c,
    #f6d53f,
    #4cc96b,
    #3b6fed,
    #7b5cf0
  );

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand: 'Caveat', cursive;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171f;
    --paper-raised: #1c2130;
    --ink: #ece7db;
    --ink-soft: #9aa2b0;
    --rule: #2c3243;
    --reveal-bg: #05070b;
    --reveal-text: #cdd6e0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  padding: 22px 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: block;
  box-shadow: 0 1px 4px rgba(28, 35, 51, 0.22), 0 0 0 1px rgba(28, 35, 51, 0.06);
}

.brand-rule {
  height: 3px;
  width: 34px;
  border-radius: 3px;
  background: var(--grad);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

@media (max-width: 620px) {
  .nav .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav-links {
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  border-image: var(--grad) 1;
  border-bottom: 2px solid;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 24px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.15s ease;
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.hint-hand {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
}

/* ---------- The peel-reveal note (signature element) ---------- */

.stage {
  position: relative;
  perspective: 1400px;
  min-height: 320px;
}

.note-peel {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.note-peel .raw {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}

.note-peel:hover .raw,
.note-peel:focus-visible .raw,
.note-peel.is-open .raw {
  opacity: 1;
}

.note-peel .front {
  z-index: 1;
}

.note-peel:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
  border-radius: 10px;
}

.raw {
  background: var(--reveal-bg);
  color: var(--reveal-text);
  border-radius: 10px;
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.raw .hdr-key {
  color: var(--reveal-accent);
}

.raw .hdr-val {
  color: var(--reveal-text);
}

.raw .body {
  margin-top: 12px;
  color: #8892a0;
}

.front {
  position: relative;
  background: var(--paper-raised);
  border-radius: 10px;
  padding: 22px 20px 26px;
  box-shadow: 0 18px 34px -18px rgba(28, 35, 51, 0.35);
  transform-origin: top right;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s ease;
  border-top: 5px solid transparent;
  border-image: var(--grad) 1;
}

.note-peel:hover .front,
.note-peel:focus-visible .front,
.note-peel.is-open .front {
  transform: rotate(11deg) translate(56px, -34px);
  box-shadow: 0 28px 50px -20px rgba(28, 35, 51, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .note-peel:hover .front,
  .note-peel:focus-visible .front,
  .note-peel.is-open .front {
    transform: none;
  }
  .stage {
    min-height: 0;
  }
  .note-peel .raw {
    position: static;
    margin-top: 14px;
    opacity: 1;
  }
}

.front .note-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 10px;
}

.front .note-line {
  height: 9px;
  border-radius: 3px;
  background: var(--rule);
  margin-bottom: 9px;
}

.front .note-line:nth-child(3) {
  width: 82%;
}
.front .note-line:nth-child(4) {
  width: 60%;
}

.peel-note {
  text-align: center;
  font-family: var(--hand);
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Sequence ---------- */

.sequence {
  padding: 76px 0;
  border-top: 1px solid var(--rule);
}

h2 {
  font-family: var(--mono);
  font-size: 1.5rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
}

.step {
  position: relative;
  padding-top: 46px;
  font-size: 14px;
}

.step-dot {
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.step b {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 4px;
}

.step span {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .steps::before {
    display: none;
  }
}

/* ---------- Trust ---------- */

.trust {
  padding: 76px 0;
  border-top: 1px solid var(--rule);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 3px;
}

.trust-list b {
  font-family: var(--sans);
  display: block;
}

.trust-list span {
  color: var(--ink-soft);
  font-size: 15px;
}

.scope-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px;
}

.scope-card .eyebrow {
  margin-bottom: 8px;
}

.scope-card code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.scope-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.scope-card a {
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

/* ---------- Features ---------- */

.features {
  padding: 76px 0;
  border-top: 1px solid var(--rule);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.feature b {
  display: block;
  font-family: var(--sans);
  font-size: 15.5px;
  margin-bottom: 6px;
}

.feature span {
  color: var(--ink-soft);
  font-size: 14.5px;
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 48px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.jot-note {
  font-family: var(--hand);
  font-size: 16px;
}

/* ---------- Privacy page ---------- */

.legal {
  padding: 64px 0 96px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 1.9rem;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 44px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  text-decoration-color: var(--rule);
}
