:root {
  --green-400: #96a88e;
  --green-500: #7a8f71;
  --green-600: #5a6b52;
  --green-700: #3d4839;
  --beige-100: #edeae2;
  --beige-200: #e2ded0;
  --beige-300: #d4d0c4;
  --charcoal-900: #101820;
  --charcoal-800: #1a2430;
  --charcoal-700: #253040;
  --charcoal-600: #354050;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(16, 24, 32, 0.08);
  --shadow-card: 0 10px 24px rgba(16, 24, 32, 0.05);
  --radius-s: 8px;
  --radius-m: 10px;
  --radius-l: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 56px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --max-width: 1120px;
  --page-padding: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal-900);
  background: var(--beige-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section-beige {
  background: var(--beige-100);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--charcoal-900);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.heading-hero,
h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.06;
}

.heading-section,
h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.heading-card,
h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.text-body {
  font-size: 18px;
  line-height: 1.5;
}

.text-section {
  font-size: 16px;
  line-height: 1.6;
}

.text-card {
  font-size: 14px;
  line-height: 1.55;
}

.text-muted {
  color: rgba(16, 24, 32, 0.42);
}

.text-muted-strong {
  color: rgba(16, 24, 32, 0.5);
}

.text-muted-soft {
  color: rgba(16, 24, 32, 0.35);
}

.text-green {
  color: var(--green-500);
}

.text-green-light {
  color: var(--green-400);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-m);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--charcoal-900);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--charcoal-800);
  transform: translateY(-1px);
}

.btn-secondary {
  color: rgba(16, 24, 32, 0.52);
  font-size: 15px;
  font-weight: 500;
}

.btn-secondary:hover {
  color: var(--charcoal-900);
}

.btn-primary img {
  width: 21px;
  height: 21px;
  filter: invert(1);
}

.btn-primary img + span {
  padding-right: 0;
}

.site-shell {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 234, 226, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav--scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.footer-brand img {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.nav-wordmark,
.footer-wordmark {
  font-family: "Darker Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal-900);
}

.footer-wordmark {
  font-size: 23px;
}

.nav-wordmark .dot,
.footer-wordmark .dot {
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(16, 24, 32, 0.45);
  transition: color 0.2s ease;
}

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

.nav-cta {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13px;
}

.hero {
  padding: 72px 0 0;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.hero h1 {
  max-width: 660px;
  margin: 0 auto 18px;
}

.hero-sub {
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(16, 24, 32, 0.42);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.hero-trust {
  margin-top: 12px;
  margin-bottom: 56px;
  font-size: 13px;
  color: rgba(16, 24, 32, 0.45);
  letter-spacing: 0.01em;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-screenshot {
  max-width: 860px;
  margin: 0 auto;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.pdf-analogy {
  padding: 80px 0;
}

.pdf-analogy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bento {
  padding: 96px 0;
}

.bento-header {
  margin-bottom: 32px;
}

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

.bento-card {
  overflow: hidden;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.bento-card--preview,
.bento-card--edit,
.bento-card--split,
.bento-card--dark {
  display: flex;
  flex-direction: column;
}

/* Preview card — green accent background */
.bento-card--preview {
  background: linear-gradient(160deg, #eef3eb, #d8e3d2);
  border-color: #c8d4c0;
}

.bento-card--dark {
  border-color: transparent;
  background: var(--charcoal-900);
}

.bento-card-body {
  padding: 24px 24px 0;
}

.bento-card-body p {
  margin-top: 8px;
  color: rgba(16, 24, 32, 0.5);
  font-size: 14px;
  line-height: 1.6;
}

.bento-card-image {
  margin-top: auto;
  padding: 16px;
}

.bento-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-m);
}

.bento-card--dark .bento-card-body h3,
.bento-card--dark .bento-card-body p {
  color: var(--white);
}

.bento-card--dark .bento-card-body p {
  color: rgba(255, 255, 255, 0.4);
}

.bento-card--no-ide {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  padding: 40px 40px 0;
}

.no-ide-copy {
  flex: none;
}

.no-ide-copy p {
  max-width: none;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(16, 24, 32, 0.55);
}

.no-ide-image {
  margin-top: 24px;
  overflow: hidden;
}

.no-ide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-soft);
}

.format-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.format-chip {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.format-chip strong {
  font-size: 36px;
  letter-spacing: -1.5px;
}

.format-chip--pdf span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.format-chip--md span {
  display: block;
  margin-top: 8px;
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--green-700);
  text-align: center;
}

.format-chip--pdf {
  background: linear-gradient(160deg, #ffebe8, #ffd3d0);
  color: #c73d35;
}

.format-chip--md {
  background: linear-gradient(160deg, #eef3eb, #d8e3d2);
  color: var(--green-700);
}

.ai-tools {
  padding: 80px 0;
}

.ai-tools-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.ai-tools-text h2 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: 36px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.ai-tools-text p {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

.ai-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 80px;
  row-gap: 40px;
}

.ai-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ai-logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ai-logo-item img.invert-logo {
  filter: invert(1);
}

.ai-logo-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.testimonials {
  padding: 96px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.t-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
  border: 1px solid #eeeeee;
  border-radius: var(--radius-xl);
  background: var(--white);
}

.t-card--featured {
  min-height: 476px;
  grid-row: span 2;
  background: var(--beige-100);
  border-color: var(--beige-300);
}

.stars {
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green-500);
}

.quote {
  flex: 1;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(16, 24, 32, 0.62);
}

.t-card--featured .quote {
  font-size: 18px;
  color: rgba(16, 24, 32, 0.72);
}

.t-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.t-name {
  font-size: 13px;
  font-weight: 600;
}

.t-role {
  font-size: 12px;
  color: rgba(16, 24, 32, 0.35);
}

.bottom-cta {
  padding: 96px 0;
  text-align: center;
}

.bottom-cta-inner {
  max-width: 620px;
  margin: 0 auto;
}

.bottom-cta h2 {
  margin-bottom: 16px;
  font-size: 44px;
  letter-spacing: -1px;
}

.bottom-cta-sub {
  margin-bottom: 36px;
  font-size: 16px;
  color: rgba(16, 24, 32, 0.42);
}

.sidepad-promo {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--beige-300);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(16, 24, 32, 0.4);
}

.sidepad-promo a {
  color: var(--green-600);
  font-weight: 600;
}

.sidepad-promo a:hover {
  color: var(--green-500);
}

.features-header {
  padding: 72px 0 48px;
}

.features-header h1 {
  max-width: 660px;
  margin-bottom: 16px;
}

.features-header p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(16, 24, 32, 0.46);
}

/* Features Tips */

.features-tips {
  padding-bottom: 96px;
}

.tip-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tip-hero-text {
  flex: 1;
}

.tip-hero-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-500);
}

.tip-hero h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.tip-hero p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(16, 24, 32, 0.55);
}

.tip-hero p code {
  background: var(--beige-100);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.tip-hero-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 4px;
}

.tip-hero-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(16, 24, 32, 0.65);
}

.tip-hero-steps li:last-child {
  border-bottom: 0;
}

.tip-hero-steps li::before {
  content: counter(step);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.tip-hero-steps li code {
  background: var(--beige-100);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}

.tip-hero-image {
  flex: 0 0 420px;
}

.tip-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

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

.tip-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.09);
}

.tip-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-400) 100%);
}

.tip-icon svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  max-width: none;
}

.tip-title {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.tip-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(16, 24, 32, 0.5);
}

.tip-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
}

.tip-shortcuts .tip-shortcut {
  margin-top: 0;
}

.tip-shortcut {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--beige-100);
  font-size: 11.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(16, 24, 32, 0.5);
  letter-spacing: 0.2px;
}

.legal {
  padding: 72px 0 96px;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  margin-bottom: 8px;
  font-size: 36px;
  letter-spacing: -0.5px;
}

.legal-updated {
  margin-bottom: 32px;
  font-size: 13px;
  color: rgba(16, 24, 32, 0.35);
}

.legal-card h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(16, 24, 32, 0.62);
}

.legal-card p {
  margin-bottom: 16px;
}

.legal-card ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.footer {
  border-top: 1px solid var(--beige-300);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--page-padding);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-copy {
  max-width: 360px;
}

.footer-copyright,
.footer-note,
.footer-support {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(16, 24, 32, 0.3);
}

.footer-note a,
.footer-support a {
  color: var(--green-600);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 24px;
  max-width: 420px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(16, 24, 32, 0.32);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(16, 24, 32, 0.6);
}

.footer-download {
  margin-top: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  :root {
    --page-padding: 32px;
  }

  .heading-hero,
  h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }

  .heading-section,
  h2 {
    font-size: 32px;
  }

  .hero-sub,
  .features-header p {
    font-size: 17px;
  }

  .ai-tools-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .tip-hero {
    gap: 24px;
  }

  .tip-hero h2 {
    font-size: 18px;
  }

  .tip-hero-image {
    flex: 0 0 320px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card--no-ide {
    grid-column: 1 / -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .t-card--featured {
    min-height: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
  }

  .heading-hero,
  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .heading-section,
  h2 {
    font-size: 28px;
  }

  .heading-card,
  h3 {
    font-size: 22px;
  }

  .nav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-link {
    display: none;
  }

  .nav-wordmark {
    font-size: 24px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .bento-card--no-ide,
  .footer-inner {
    flex-direction: column;
  }

  .ai-tools-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .ai-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--no-ide {
    padding: 24px 24px 0;
  }

  .legal-card {
    padding: 24px;
  }

  .tip-hero {
    flex-direction: column;
  }

  .tip-hero-image {
    flex: none;
    width: 100%;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .bottom-cta h2 {
    font-size: 32px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
