/* -------------------------------------------------------
   Design tokens — same palette as the LeafWiki app
------------------------------------------------------- */
:root {
  --brand:        hsl(142, 72%, 29%);
  --brand-dark:   hsl(143, 64%, 24%);
  --brand-light:  hsl(142, 77%, 73%);

  --bg:           hsl(0, 0%, 100%);
  --fg:           hsl(222, 47%, 11%);

  --surface:      hsl(210, 40%, 98%);
  --surface-alt:  hsl(210, 40%, 96%);
  --border:       hsl(214, 32%, 91%);

  --interface-text: hsl(215, 25%, 27%);
  --muted:          hsl(215, 16%, 47%);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --max-w: 960px;
}

/* -------------------------------------------------------
   Reset & base
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-alt);
  padding: 0.1em 0.3em;
  border: 1px solid var(--border);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* -------------------------------------------------------
   Layout
------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------------------------------------------
   Navigation — matches the app's header style exactly
------------------------------------------------------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon { font-size: 1.2rem; line-height: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  padding-left: 1.5rem;
}

.nav__links a {
  display: block;
  padding: 0.35rem 0.7rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.1s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--fg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--interface-text);
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    gap: 0;
  }
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  white-space: nowrap;
  line-height: 1.5;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn--secondary {
  background: var(--bg);
  color: var(--interface-text);
  border-color: var(--border);
}
.btn--secondary:hover {
  background: var(--surface-alt);
  border-color: hsl(214, 32%, 82%);
  color: var(--fg);
}
.btn--sm {
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
}

.btn--sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
}

/* -------------------------------------------------------
   Hero — left-aligned, text-forward
------------------------------------------------------- */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.875rem;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero__meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero__meta a:hover { color: var(--fg); }

.hero__note-link {
  font-size: 0.9rem;
  color: var(--interface-text);
  line-height: 1.7;
  margin-top: 1rem;
}

.hero__note-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------
   Sections
------------------------------------------------------- */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading .section__title {
  margin-bottom: 0.35rem;
}

.section-heading__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

/* -------------------------------------------------------
   Screenshot
------------------------------------------------------- */
.screenshot {
  border: 1px solid var(--border);
  display: block;
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.1);
}

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

/* -------------------------------------------------------
   Feature list
------------------------------------------------------- */
.feature-list {
  columns: 2;
  column-gap: 3rem;
  list-style: none;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--interface-text);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .feature-list { columns: 1; }
}

/* -------------------------------------------------------
   Two-column layout
------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 680px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------------------------------------------
   Use cases / who it's for
------------------------------------------------------- */
.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.use-case-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.use-case-item:last-child { border-bottom: none; }

.use-case-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.use-case-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* -------------------------------------------------------
   Roadmap list
------------------------------------------------------- */
.roadmap-list {
  border: 1px solid var(--border);
}

.roadmap-group {
  border-bottom: 1px solid var(--border);
}

.roadmap-group:last-child { border-bottom: none; }

.roadmap-group__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.roadmap-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.roadmap-item:last-child { border-bottom: none; }

.roadmap-item__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
  color: var(--muted);
  margin-top: 0.1em;
}

.roadmap-item__icon--done  { color: var(--brand); }
.roadmap-item__icon--next  { color: var(--brand); }

.roadmap-item__title  { color: var(--fg); font-weight: 500; }
.roadmap-item__desc   { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* -------------------------------------------------------
   Installation block
------------------------------------------------------- */
.install-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.install-block {
  border: 1px solid hsl(220, 15%, 22%);
  overflow: hidden;
  background: hsl(220, 15%, 11%);
}

.install-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid hsl(220, 15%, 20%);
  background: hsl(220, 15%, 14%);
}

.install-block__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(220, 15%, 55%);
  font-family: var(--font-mono);
}

.install-block__copy {
  font-size: 0.7rem;
  color: hsl(220, 15%, 50%);
  background: none;
  border: 1px solid hsl(220, 15%, 28%);
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.install-block__copy:hover { color: hsl(0, 0%, 85%); border-color: hsl(220, 15%, 45%); }
.install-block__copy.copied { color: var(--brand-light); border-color: var(--brand); }

.install-block__content pre {
  margin: 0;
  border: none;
  padding: 1.25rem;
  background: transparent;
  overflow-x: auto;
}

.install-block__content code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: none;
  border: none;
  padding: 0;
  color: hsl(0, 0%, 82%);
  line-height: 1.7;
}

.tok-k { color: hsl(142, 60%, 60%); }
.tok-s { color: hsl(35, 80%, 68%); }
.tok-f { color: hsl(200, 70%, 70%); }

/* -------------------------------------------------------
   Status notice
------------------------------------------------------- */
.status-notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--interface-text);
  line-height: 1.65;
  background: var(--surface);
}

.status-notice p + p { margin-top: 0.5rem; }

/* -------------------------------------------------------
   Prose (blog / long-form)
------------------------------------------------------- */
.prose { max-width: 680px; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.3rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.1rem; }

.prose p    { color: var(--fg); line-height: 1.75; margin-bottom: 1.1rem; font-size: 0.9375rem; }
.prose ul, .prose ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.prose li   { margin-bottom: 0.35rem; line-height: 1.65; color: var(--fg); font-size: 0.9375rem; }
.prose a    { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-dark); }

.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* -------------------------------------------------------
   Blog list
------------------------------------------------------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.blog-item__date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.blog-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  display: block;
  margin-bottom: 0.4rem;
}

.blog-item__title:hover { color: var(--brand); }

.blog-item__summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 680px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
   Page header (inner pages)
------------------------------------------------------- */
.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.page-header__desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 2.5rem;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__col-list a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}
.footer__col-list a:hover { color: var(--fg); }

@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { gap: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
}

/* -------------------------------------------------------
   Carousel
------------------------------------------------------- */
.carousel {
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 1.5rem 0;
}

.carousel__track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}

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

.carousel__slide figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.carousel__btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.6rem;
  line-height: 1.5;
}

.carousel__btn:hover { color: var(--fg); border-color: var(--fg); }

.carousel__dots {
  display: flex;
  gap: 0.4rem;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel__dot--active { background: var(--brand); }

/* -------------------------------------------------------
   Hosted page
------------------------------------------------------- */
.hosted-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.hosted-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: hsl(142, 45%, 94%);
  border: 1px solid hsl(142, 32%, 84%);
  padding: 0.35rem 0.55rem;
  margin-bottom: 1rem;
}

.hosted-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hosted-copy {
  font-size: 0.98rem;
  color: var(--interface-text);
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.waitlist-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
}

.waitlist-card__title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.waitlist-card__copy,
.waitlist-card__note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.waitlist-card__copy {
  margin-bottom: 1rem;
}

.waitlist-card__note {
  margin-top: 0.85rem;
}

.waitlist-card__success {
  border: 1px solid hsl(142, 32%, 84%);
  background: hsl(142, 45%, 94%);
  color: var(--brand-dark);
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.waitlist-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
}

.waitlist-form__input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.waitlist-form__input:focus {
  outline: 2px solid hsl(142, 77%, 73%);
  outline-offset: 1px;
  border-color: hsl(142, 50%, 50%);
}

.waitlist-form__submit {
  justify-content: center;
  width: 100%;
  margin-top: 0.1rem;
}

.waitlist-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.hosted-benefit-grid .benefit-item:nth-last-child(-n+3) {
  border-bottom: none;
}

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

/* -------------------------------------------------------
   Benefit grid
------------------------------------------------------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.benefit-item {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-item:nth-child(3n) { border-right: none; }
.benefit-item:nth-last-child(-n+3) { border-bottom: none; }

.benefit-item__icon {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
  margin-bottom: 0.875rem;
  display: block;
  flex-shrink: 0;
}

.benefit-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.benefit-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-item { border-right: none; }
  .benefit-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .benefit-item:last-child { border-bottom: none; }
}

/* -------------------------------------------------------
   Daily workflow list
------------------------------------------------------- */
.daily-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border: 1px solid var(--border);
}

.daily-item {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.daily-item:nth-child(3n) { border-right: none; }
.daily-item:nth-last-child(-n+3) { border-bottom: none; }

.daily-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.daily-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 680px) {
  .daily-item { border-right: none; }
  .daily-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .daily-item:last-child { border-bottom: none; }
}

/* -------------------------------------------------------
   Testimonials
------------------------------------------------------- */
.testimonial-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.testimonial-item {
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--border);
  margin-right: 2rem;
}

.testimonial-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.testimonial-item::before {
  content: '\201C';
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.testimonial-item__quote {
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-item__source {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .testimonial-list { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-item { border-right: none; padding-right: 0; margin-right: 0; }
}

/* -------------------------------------------------------
   Utilities
------------------------------------------------------- */
.mt-sm  { margin-top: 0.75rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2.5rem; }
.text-muted { color: var(--muted); font-size: 0.875rem; }
