:root {
  --bg: #f4efe7;
  --bg-deep: #ead8bf;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: rgba(255, 248, 239, 0.92);
  --ink: #1d241f;
  --muted: #526158;
  --line: rgba(44, 57, 48, 0.12);
  --forest: #214631;
  --moss: #476b4f;
  --gold: #d6a34f;
  --clay: #bf6c45;
  --rose: #b1565d;
  --shadow: 0 28px 80px rgba(48, 44, 30, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

.docs-container {
  width: min(calc(100% - 2rem), 900px);
  margin: 4rem auto 8rem;
  padding: 3rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.docs-content h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.docs-content h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.docs-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.docs-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.docs-content li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.docs-nav-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.docs-nav-sidebar a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.screen-doc-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
}

.screen-doc-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--forest);
}

.ai-highlight {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  background: rgba(214, 163, 79, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.delete-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

.delete-form label > span {
  color: var(--ink);
}

.delete-form input[type="email"],
.delete-form textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.85);
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.delete-form input[type="email"]:focus,
.delete-form textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(71, 107, 79, 0.18);
}

.delete-confirm {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.delete-confirm input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.delete-form .button {
  min-height: 3rem;
}

.delete-form button.button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.delete-feedback {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--clay);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 163, 79, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(177, 86, 93, 0.2), transparent 22%),
    linear-gradient(180deg, #f9f3ea 0%, var(--bg) 45%, #efe7dc 100%);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.7;
  pointer-events: none;
}

.aurora-left {
  top: 8rem;
  left: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(71, 107, 79, 0.18);
}

.aurora-right {
  top: 24rem;
  right: -10rem;
  width: 22rem;
  height: 22rem;
  background: rgba(214, 163, 79, 0.18);
}

.site-header,
.hero,
.feature-strip,
.screenshots-section,
.story-grid,
.insight-section,
.cta-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.95rem;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.62);
  backdrop-filter: blur(14px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.eyebrow,
.panel-kicker,
.screen-label,
.stack-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--moss);
}

.hero h1,
.story-grid h2,
.insight-section h2,
.cta-section h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 7vw, 6.6rem);
}

.hero-text,
.story-grid p,
.insight-copy p,
.cta-section p,
.stack-item p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff9f0;
  background: linear-gradient(135deg, var(--forest), #356349);
  box-shadow: 0 18px 40px rgba(33, 70, 49, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 252, 247, 0.75);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.hero-points li,
.feature-strip article,
.panel,
.stack-item,
.insight-board,
.cta-section {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-points li {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 27rem);
  padding: 1.15rem;
  border-radius: 2.2rem;
  border: 1px solid rgba(43, 57, 48, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 235, 222, 0.86));
  box-shadow:
    0 18px 34px rgba(85, 65, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(6deg);
}

.phone-topbar {
  display: flex;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
}

.phone-topbar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(82, 97, 88, 0.32);
}

.screen-card,
.mini-card,
.board-card-large,
.board-note {
  border-radius: var(--radius-lg);
}

.screen-next {
  padding: 1.35rem;
  background: linear-gradient(180deg, #214631, #2a5a3d);
  color: #f7efe2;
}

.screen-next h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

.screen-next p {
  margin: 0;
  color: rgba(247, 239, 226, 0.82);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.08);
  font-size: 0.9rem;
}

.session-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #f2b95f;
  box-shadow: 0 0 0 0 rgba(242, 185, 95, 0.6);
  animation: pulse 2.4s infinite;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.mini-card {
  padding: 1rem 0.9rem;
  min-height: 6.25rem;
}

.mini-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(29, 36, 31, 0.7);
}

.mini-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.mini-card.warm {
  background: rgba(255, 235, 201, 0.88);
}

.mini-card.cool {
  background: rgba(217, 233, 221, 0.9);
}

.mini-card.rose {
  background: rgba(241, 220, 220, 0.92);
}

.wave-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  align-items: end;
  height: 6rem;
  margin-top: 1rem;
}

.wave-cluster span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(214, 163, 79, 0.9), rgba(191, 108, 69, 0.8));
  animation: rise 4.2s ease-in-out infinite;
}

.wave-cluster span:nth-child(1) {
  height: 52%;
}

.wave-cluster span:nth-child(2) {
  height: 84%;
  animation-delay: 300ms;
}

.wave-cluster span:nth-child(3) {
  height: 68%;
  animation-delay: 800ms;
}

.wave-cluster span:nth-child(4) {
  height: 96%;
  animation-delay: 1200ms;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-strip article,
.panel,
.cta-section,
.insight-board,
.shot-card,
.screenshots-copy {
  border-radius: var(--radius-xl);
}

.feature-strip article {
  padding: 1.3rem 1.35rem;
  color: var(--muted);
  line-height: 1.6;
}

.feature-strip span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 800;
}

.screenshots-section {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 1.5rem;
  margin: 1rem auto;
  align-items: stretch;
}

.screenshots-copy {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.56), rgba(255, 248, 238, 0.84)),
    radial-gradient(circle at top left, rgba(214, 163, 79, 0.22), transparent 34%);
  box-shadow: var(--shadow);
}

.screenshots-copy h2 {
  margin: 0.35rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.shot-card {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.shot-card-offset {
  transform: translateY(1.5rem);
}

.shot-phone {
  padding: 0.55rem;
  border-radius: 2rem;
  border: 1px solid rgba(43, 57, 48, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 235, 222, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 28px rgba(62, 49, 31, 0.08);
}

.shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.55rem;
}

.shot-caption {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shot-tag {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(33, 70, 49, 0.08);
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin: 1rem auto;
}

.panel {
  padding: 2rem;
}

.panel-large {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.44), rgba(255, 248, 238, 0.84)),
    radial-gradient(circle at top left, rgba(214, 163, 79, 0.28), transparent 32%);
}

.panel-large h2,
.insight-section h2,
.cta-section h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  margin-top: 0.3rem;
}

.panel-stack {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.72), rgba(255, 247, 236, 0.82));
}

.stack-item {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.stack-item h3 {
  margin: 0.35rem 0;
  font-size: 1.2rem;
}

.insight-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem auto;
}

.insight-copy {
  padding: 1rem 0.5rem 1rem 0;
}

.insight-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1rem;
}

.board-card-large,
.board-note,
.board-chart {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.board-card-large,
.board-note {
  padding: 1.3rem;
}

.board-card-large p,
.board-note p {
  margin: 0;
  color: var(--muted);
}

.board-card-large strong {
  display: block;
  margin: 0.55rem 0 0.35rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.board-card-large small {
  color: var(--moss);
}

.board-chart {
  grid-row: span 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  min-height: 14rem;
}

.board-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(33, 70, 49, 0.9), rgba(214, 163, 79, 0.9));
}

.board-note {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 237, 207, 0.8), rgba(255, 247, 236, 0.92));
}

.cta-section {
  margin: 1rem auto 2.5rem;
  padding: 2.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.62), rgba(255, 248, 238, 0.88)),
    radial-gradient(circle at top center, rgba(71, 107, 79, 0.18), transparent 30%);
}

.cta-section .button {
  margin-top: 1.5rem;
}

.cta-text {
  max-width: 38rem;
  margin: 1rem auto 0;
}

.download-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 185, 95, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(242, 185, 95, 0);
  }
}

@keyframes rise {
  0%,
  100% {
    transform: scaleY(0.96);
  }
  50% {
    transform: scaleY(1.05);
  }
}

@media (max-width: 980px) {
  .hero,
  .screenshots-section,
  .story-grid,
  .insight-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    transform: none;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-card-offset {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    overflow-x: auto;
  }

  .hero-points,
  .screenshots-grid,
  .screen-grid,
  .insight-board {
    grid-template-columns: 1fr;
  }

  .board-chart {
    grid-row: auto;
  }

  .panel,
  .cta-section,
  .phone-frame {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
