/* ── Kellen.com Design System ───────────────────────────────────────────── */

:root {
  --bg:        #f7f5f0;
  --bg-alt:    #efece4;
  --ink:       #1C1A17;
  --ink-soft:  #2a2a2a;
  --muted:     #6b665e;
  --rule:      rgba(28,26,23,.09);
  --accent:    #C44E3A;
  --accent-dk: #b0432f;
  --cream:     #fdfbf6;
  --serif:     "Fraunces", Georgia, serif;
  --sans:      "Manrope", system-ui, -apple-system, sans-serif;
  --mono:      "JetBrains Mono", "Fira Mono", monospace;
  --maxw:      1100px;
  --r:         10px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ── Typography ── */
.serif { font-family: var(--serif); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }

/* ── Layout ── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,240,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 22px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: rgba(28,26,23,.06);
}
.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta:active { transform: scale(.98); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, color .15s;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: #FBF6EC;
  font-size: 16px;
  padding: 14px 28px;
}
.btn-primary:hover { background: var(--accent-dk); }

.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 11px 20px;
  border: 1px solid rgba(28,26,23,.2);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  padding: 13px 24px;
}
.btn-ink:hover { background: var(--accent); }

/* ── Sections ── */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.flush-top { padding-top: 0; }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: "";
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--rule);
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Hero ── */
.hero {
  padding: 88px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 strong {
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "opsz" 144;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── Value stats ── */
.value-band {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0;
}
.value-band .section-label { color: rgba(253,251,246,.4); }
.value-band .section-label::after { background: rgba(253,251,246,.15); }
.value-band .section-headline {
  color: var(--cream);
  margin-bottom: 48px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid rgba(253,251,246,.1);
  border-radius: var(--r);
  overflow: hidden;
}
.value-card {
  padding: 32px 28px;
  background: rgba(253,251,246,.04);
  border-right: 1px solid rgba(253,251,246,.08);
}
.value-card:last-child { border-right: none; }
.value-card-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(253,251,246,.4);
  margin-bottom: 16px;
}
.value-card-pro {
  font-size: 13px;
  color: rgba(253,251,246,.45);
  margin-bottom: 6px;
  text-decoration: line-through;
  text-decoration-color: rgba(196,78,58,.6);
}
.value-card-price {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 72;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
}
.value-card-price sub {
  font-size: 18px;
  font-family: var(--sans);
  font-weight: 500;
  vertical-align: baseline;
  letter-spacing: 0;
}
.value-card-desc {
  font-size: 13px;
  color: rgba(253,251,246,.5);
  line-height: 1.5;
  margin-top: 10px;
}
.value-card-savings {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C44E3A;
  background: rgba(196,78,58,.12);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── App cards (home) ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.app-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.app-card:hover {
  border-color: rgba(28,26,23,.2);
  box-shadow: 0 4px 24px rgba(28,26,23,.07);
}
.app-card-top {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--rule);
}
.app-card-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.app-card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  margin-bottom: 10px;
}
.app-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.app-card-bottom {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-card-price {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.app-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .15s;
}
.app-card:hover .app-card-link { gap: 9px; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.feature-list li svg { flex-shrink: 0; margin-top: 4px; }

/* ── Ownership band ── */
.own-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 72px 0;
}
.own-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.own-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.own-point {
  display: flex;
  gap: 16px;
}
.own-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(28,26,23,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.own-point-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.own-point-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── App detail page hero ── */
.app-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.app-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  background: var(--bg-alt);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--rule);
}
.app-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}
.app-hero h1 strong {
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "opsz" 144;
}
.app-hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 36px;
}

/* ── How it works ── */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}
.step-body {}
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.step-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(28,98,69,.08);
  color: #1c6245;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Pricing table ── */
.price-table {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
.price-row {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.price-row:last-child { border-bottom: none; }
.price-row-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.price-row-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.price-row-cost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}
.price-row-value {
  font-family: var(--mono);
  font-size: 11px;
  color: #1c6245;
  background: rgba(28,98,69,.07);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.price-row.free .price-row-cost { color: #1c6245; }

/* ── Comparison callout ── */
.comparison {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 28px 32px;
  margin: 32px 0;
}
.comparison-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.comparison-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.comparison-col-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--mono);
  font-size: 9px;
}
.comparison-price {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  line-height: 1;
  margin-bottom: 6px;
}
.comparison-price.pro { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196,78,58,.5); }
.comparison-price.kellen { color: var(--accent); }
.comparison-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img { height: 20px; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}
.footer-link:hover { color: var(--ink); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Caret SVG helper ── */
.caret-up   { display: inline-block; }
.caret-right { display: inline-block; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ── Utility ── */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
  .value-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .own-grid { grid-template-columns: 1fr; gap: 40px; }
  .comparison-cols { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .section-headline { font-size: 26px; }
  .value-card-price { font-size: 40px; }
}

/* ── Entrance animations ── */
.rise {
  opacity: 0;
  transform: translateY(12px);
  animation: rise .65s cubic-bezier(.2,.7,.2,1) forwards;
}
.rise:nth-child(1) { animation-delay: .05s; }
.rise:nth-child(2) { animation-delay: .12s; }
.rise:nth-child(3) { animation-delay: .19s; }
.rise:nth-child(4) { animation-delay: .26s; }
.rise:nth-child(5) { animation-delay: .33s; }
.rise:nth-child(6) { animation-delay: .40s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}
