:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #aeaeb2;
  --paper: #ffffff;
  --paper-gray: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #2e6bf0;
  --accent-deep: #2456d4;
  --blob-periwinkle: #c5d3fa;
  --blob-cyan: #d2e7ef;
  --blob-light: #e8edfc;
  --blob-stone: #e7e5de;
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; }

a { color: var(--accent); text-decoration: none; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-brand img { border-radius: 6px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 26px;
  border-radius: 980px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(46, 107, 240, 0.3), 0 6px 20px -6px rgba(46, 107, 240, 0.45);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(46, 107, 240, 0.3), 0 10px 26px -6px rgba(46, 107, 240, 0.5);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover { border-color: var(--ink-faint); transform: translateY(-1px); }

.btn-large { font-size: 17px; padding: 15px 34px; }

.btn-quiet {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.btn-quiet:hover { text-decoration: underline; }

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

.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(46, 107, 240, 0.05), transparent 70%),
    var(--paper);
}

.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-icon {
  margin: 0 auto 30px;
  border-radius: 24px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero-kairos {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  margin-top: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 18px auto 0;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 34px;
}

.hero-fine {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 16px;
}

/* ---------- Hero app preview (Bear-style flat composite) ---------- */

.stage {
  background: linear-gradient(180deg, #eef0f3 0%, #f5f6f8 100%);
  padding: 90px 24px 130px;
}

.hero-flat {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-shot {
  box-shadow: 0 50px 110px -32px rgba(30, 35, 60, 0.35);
}

.hero-pop {
  position: absolute;
  width: clamp(220px, 28%, 300px);
  right: -3%;
  bottom: -7%;
  z-index: 2;
  box-shadow: 0 34px 70px -22px rgba(30, 35, 60, 0.4);
}

/* ---------- Window frames & placeholders ---------- */

.window-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.window-chrome {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.placeholder .placeholder-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(0, 0, 0, 0.015) 14px, rgba(0, 0, 0, 0.015) 28px),
    #fcfcfd;
}

.placeholder-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 9px 16px;
}

.popover-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.popover-frame .placeholder-body { aspect-ratio: 3 / 3.6; }

/* Real app screenshots dropped into the frames */

.shot { border: none; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.stack-back.shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
}

.stack-front.shot img {
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
  object-position: right top;
}

.calm-window.shot img {
  aspect-ratio: 16 / 7.6;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Bands & shared section bits ---------- */

.band { padding: 110px 24px; }
.band-gray { background: var(--paper-gray); }

.narrow { max-width: 640px; margin: 0 auto; text-align: center; }
.wide { max-width: 1040px; margin: 0 auto; }

.statement {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.statement-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 18px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 56px;
}

/* ---------- Full-screen feature sections ---------- */

.feat {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.feat-gray { background: var(--paper-gray); }

.feat-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  min-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.feat h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.feat p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 16px;
  max-width: 420px;
}

/* Organic blobs (Bear-style) */

.blob {
  position: absolute;
  z-index: 0;
  animation: blob-drift 22s ease-in-out infinite alternate;
}

.blob-a {
  width: 60vw;
  height: 60vw;
  max-width: 880px;
  max-height: 880px;
  left: -22vw;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blob-periwinkle);
  border-radius: 44% 56% 58% 42% / 48% 38% 62% 52%;
}

.blob-b {
  width: 58vw;
  height: 58vw;
  max-width: 840px;
  max-height: 840px;
  right: -24vw;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blob-cyan);
  border-radius: 58% 42% 45% 55% / 42% 56% 44% 58%;
}

.blob-c {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  left: -18vw;
  top: -16vw;
  background: var(--blob-light);
  border-radius: 52% 48% 60% 40% / 55% 45% 55% 45%;
}

.blob-d {
  width: 48vw;
  height: 48vw;
  max-width: 660px;
  max-height: 660px;
  right: -20vw;
  bottom: -22vw;
  background: var(--blob-light);
  border-radius: 46% 54% 50% 50% / 58% 44% 56% 42%;
}

@keyframes blob-drift {
  0% { border-radius: 44% 56% 58% 42% / 48% 38% 62% 52%; }
  50% { border-radius: 54% 46% 44% 56% / 40% 54% 46% 60%; }
  100% { border-radius: 46% 54% 60% 40% / 56% 42% 58% 44%; }
}

/* Floating card cluster (Bear-style) */

.cluster {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.cluster-main { position: relative; z-index: 1; }

.cluster-stack {
  max-width: 520px;
  padding: 30px 0 50px;
}

.stack-back {
  width: 86%;
  transform: rotate(-3deg);
}

.stack-back .placeholder-body { aspect-ratio: 4 / 3; }

.stack-front {
  position: absolute;
  width: 62%;
  right: -6%;
  bottom: 0;
  transform: rotate(3.5deg);
  z-index: 2;
}

.stack-front .placeholder-body { aspect-ratio: 4 / 2.6; }

/* Invoice feature window */

.feat-tilt { overflow: hidden; }

.feat-tilt .feat-inner {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.invoice-shot {
  box-shadow: 0 50px 110px -30px rgba(30, 35, 60, 0.32);
}

/* Calm section — centered text, wide window emerging at bottom */

.feat-calm { padding-top: 110px; }

.calm-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.calm-inner .feat-text {
  text-align: center;
  margin-bottom: 64px;
}

.calm-inner .feat-text p { margin-inline: auto; }

.calm-window {
  width: min(880px, 100%);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
}

.calm-window .placeholder-body { aspect-ratio: 16 / 7.6; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.step h4 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }

.step p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; max-width: 260px; margin-inline: auto; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card-pro {
  border: 2px solid var(--accent);
  box-shadow: 0 22px 50px -22px rgba(46, 107, 240, 0.3);
}

.price-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

.price-amount {
  font-size: 17px;
  font-weight: 650;
  margin-top: 6px;
}

.price-amount span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 2px;
}

.price-card ul {
  list-style: none;
  margin: 24px 0 30px;
  flex: 1;
}

.price-card li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 7px 0 7px 26px;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0.78);
}

.price-card .btn { text-align: center; }

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 36px auto 0;
}

/* ---------- FAQ ---------- */

.faq { text-align: left; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 0 0 18px;
  max-width: 560px;
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding: 150px 24px;
  text-align: center;
}

.closing .narrow { position: relative; z-index: 1; }

.closing h2 {
  font-size: clamp(32px, 5.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 36px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-inner nav { display: flex; gap: 22px; }

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

/* ---------- Legal / support pages ---------- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.page h1 {
  font-size: clamp(30px, 4.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page .page-date { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 40px; }

.page h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 36px 0 10px;
}

.page p { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }

.page ul { margin: 0 0 14px 22px; }

.page li { font-size: 16px; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .blob { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .feat-inner,
  .feat-tilt .feat-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding: 80px 24px;
    text-align: center;
  }

  .feat-inner .feat-text { order: 1; }
  .feat-inner .feat-visual { order: 2; }

  .feat p { margin-inline: auto; }

  .blob-a { left: -45vw; width: 90vw; height: 90vw; }
  .blob-b { right: -45vw; width: 90vw; height: 90vw; }

  .stack-front { right: 0; }

  .calm-inner { min-height: 0; padding-top: 0; }

  .steps { grid-template-columns: 1fr; gap: 44px; }

  .pricing { grid-template-columns: minmax(0, 420px); }

  .band { padding: 80px 24px; }

  .closing { padding: 110px 24px; }
}

@media (max-width: 560px) {
  .nav-links { gap: 18px; }
  .nav-links a:nth-child(3) { display: none; }

  .hero { padding-top: 64px; }

  .hero-cta { flex-direction: column; gap: 16px; }

  .stage { padding: 50px 18px 70px; }

  .hero-pill { bottom: 54%; }

  .footer-inner { flex-direction: column; gap: 14px; }
}
