@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Light theme matches the app: mint background, beige cards, forest-green actions.
   .theme-dark sections use the deep forest from the logo for contrast. */
:root {
  --bg: #eef3ec;
  --bg-2: #dfe8dd;
  --surface: #f8f9f5;
  --surface-2: #e8e5de;
  --line: #d2dccf;
  --line-strong: #b9c9b7;
  --ink: #17241b;
  --ink-soft: #4a5d4f;
  --ink-faint: #75887a;
  --mint: #dce7db;
  --sage: #5e8f67;
  --accent: #2f5d3a;
  --forest: #2f5d3a;
  --amber: #b07f28;
  --miss: #b3412f;
  --btn-bg: #2f5d3a;
  --btn-ink: #ffffff;
  --header-bg: rgba(238, 243, 236, 0.82);
  --float-bg: rgba(248, 249, 245, 0.94);
  --glow: rgba(125, 171, 132, 0.35);
  --checker: rgba(47, 93, 58, 0.045);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 36, 27, 0.06), 0 24px 50px -24px rgba(23, 36, 27, 0.35);
  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

.theme-dark {
  --bg: #0c120e;
  --bg-2: #111a14;
  --surface: #15201a;
  --surface-2: #1b2a21;
  --line: #24352b;
  --line-strong: #2f4537;
  --ink: #eaf1e9;
  --ink-soft: #a3b6a8;
  --ink-faint: #6f8577;
  --sage: #7dab84;
  --accent: #a8d5ae;
  --amber: #e8b04b;
  --miss: #f07a63;
  --btn-bg: #dce7db;
  --btn-ink: #0c120e;
  --float-bg: rgba(21, 32, 26, 0.92);
  --glow: rgba(47, 93, 58, 0.55);
  --checker: rgba(220, 231, 219, 0.035);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--bg);
  color: var(--ink);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(740px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.93rem;
  font-weight: 500;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav {
    gap: 16px;
  }
  .nav .hide-sm {
    display: none;
  }
}

/* Buttons and badges */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--btn-ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
  font-size: 1.12rem;
}

.store-badge svg {
  width: 26px;
  height: 26px;
}

.store-badge span {
  display: flex;
  flex-direction: column;
}

.store-badge small {
  font-weight: 400;
  font-size: 0.66rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Eyebrows and tags */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow.gold {
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
  background: rgba(125, 171, 132, 0.16);
  color: var(--accent);
  border: 1px solid rgba(94, 143, 103, 0.3);
}

.tag.premium {
  background: rgba(194, 154, 85, 0.14);
  color: var(--amber);
  border-color: rgba(194, 154, 85, 0.4);
}

.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.fine {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 78% 42%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(125, 171, 132, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 75% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 75% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.hero-note strong {
  color: var(--accent);
  font-weight: 500;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--float-bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  line-height: 1.35;
}

.float-card b {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

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

.float-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--miss);
  box-shadow: 0 0 0 4px rgba(179, 65, 47, 0.16);
}

.float-card .dot.ok {
  background: var(--forest);
  box-shadow: 0 0 0 4px rgba(47, 93, 58, 0.16);
}

.float-card.top {
  top: 2%;
  left: -6%;
}

.float-card.bottom {
  bottom: 3%;
  right: -4%;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 0;
    padding: 40px 0;
  }
  .float-card.top {
    left: 0;
  }
  .float-card.bottom {
    right: 0;
  }
}

/* Phone frames */

.phone {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1179 / 2556;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #26372c, #0a0f0c 60%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(220, 231, 219, 0.08);
  justify-self: center;
}

.phone img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #eef3ec;
}

/* Integrations strip */

.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}

.strip-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip strong {
  color: var(--ink);
  font-weight: 700;
}

/* Sections */

.section {
  position: relative;
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Signature features */

.jewel {
  overflow: hidden;
}

.jewel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 85% 50%, var(--glow), transparent 70%);
  pointer-events: none;
}

.jewel.alt {
  background: var(--bg);
}

.jewel.alt::before {
  background: radial-gradient(50% 60% at 15% 50%, rgba(232, 176, 75, 0.08), transparent 70%);
}

.jewel-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.jewel-grid.reverse .jewel-copy {
  order: 2;
}

.feature-steps {
  list-style: none;
  counter-reset: fs;
  padding: 0;
  margin: 28px 0 20px;
}

.feature-steps li {
  counter-increment: fs;
  position: relative;
  padding: 0 0 20px 52px;
  color: var(--ink-soft);
}

.feature-steps li::before {
  content: counter(fs);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.feature-steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 2px;
}

/* Illustration panels */

.art-panel {
  padding: 18px;
  border-radius: var(--radius);
  background: #111a14;
  border: 1px solid #24352b;
  box-shadow: var(--shadow);
}

.art-panel img {
  width: 100%;
  height: auto;
}

.theme-dark .art-panel {
  background: #0f1712;
}

.hero-panel {
  width: min(480px, 100%);
  padding: 10px;
  border-radius: 28px;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(47, 93, 58, 0.35), transparent 70%),
    #0f1712;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.loop-panel {
  padding: 24px 28px 12px;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.loop-steps b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.jewel-visual {
  display: grid;
  gap: 18px;
}

.chip-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.chip-title,
.chip-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}

.chip i {
  font-style: normal;
  color: var(--ink-faint);
}

.chip.ok {
  border-color: var(--sage);
  color: var(--forest);
  background: rgba(125, 171, 132, 0.14);
}

.chip.drop {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  position: relative;
  padding: 0 0 16px 34px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.check-list strong {
  color: var(--ink);
}

/* Feature cards */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card.wide {
  grid-column: span 2;
}

.card-art {
  padding: 14px;
  background: #111a14;
  border-bottom: 1px solid #24352b;
}

.card-art img {
  width: 100%;
  height: auto;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-body .tag {
  margin-right: 6px;
}

.card-body h3 {
  margin: 12px 0 8px;
}

.card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card-body strong {
  color: var(--ink);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.mini-list b {
  color: var(--ink);
}

/* Real app */

.real-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}

.real-phones .phone {
  max-width: 240px;
}

.real-phones .phone.lift {
  margin-top: -24px;
}

.real-phones figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -38px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.real-app {
  padding-bottom: 130px;
}

@media (max-width: 900px) {
  .jewel-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .jewel-grid.reverse .jewel-copy {
    order: 0;
  }
  .loop-steps,
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .real-phones {
    gap: 14px;
  }
  .real-phones .phone.lift {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .loop-steps,
  .bento {
    grid-template-columns: 1fr;
  }
  .card.wide {
    grid-column: auto;
  }
  .loop-panel {
    padding: 12px;
  }
  .real-phones .phone:not(.lift) {
    display: none;
  }
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.plan {
  position: relative;
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan.featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(125, 171, 132, 0.22), transparent 60%),
    var(--surface);
  border-color: var(--sage);
}

.plan h3 {
  font-size: 1.6rem;
}

.plan ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.plan li .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent);
}

.plan .muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* CTA band */

.cta-band {
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}

.cta-band .narrow {
  position: relative;
}

.cta-band .cta-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(125, 171, 132, 0.5);
}

.cta-band .cta-row {
  justify-content: center;
}

/* Long-form pages */

.doc {
  padding: 64px 0 96px;
}

.doc h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
}

.doc .meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
}

.doc h3 {
  margin-top: 1.5em;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc strong {
  color: var(--ink);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 1em 0 1.5em;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.doc th {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.5em 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--sage);
  transition: transform 0.2s;
}

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

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
