/* FolioTree marketing site — tokens aligned with src/index.css (light theme) */

:root {
  --color-page-bg: #e8ebe8;
  --color-surface: #f3f0ea;
  --color-card: #ffffff;
  --color-card-muted: #f8faf8;
  --color-brand: #3f624d;
  --color-brand-hover: #2d4536;
  --color-brand-accent: #a3b18a;
  --color-border: #c5d0c8;
  --color-border-strong: #059669;
  --color-text: #3d3b37;
  --color-text-muted: #73716d;
  --color-btn-text: #ffffff;
  --color-focus: #2d4536;
  --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgb(45 69 54 / 0.06);
  --shadow-md: 0 4px 20px rgb(45 69 54 / 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 72rem;
  --header-height: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-page-bg) 40%, var(--color-page-bg) 100%);
  overflow-x: hidden;
}

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

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-brand);
  color: var(--color-btn-text);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(243 240 234 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: auto;
}

.site-logo img {
  height: 2.25rem;
  width: auto;
}

.site-logo span {
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: 0.375rem 0.25rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-btn-text);
}

.btn--primary:hover {
  background: var(--color-brand-hover);
  color: var(--color-btn-text);
}

.btn--secondary {
  background: var(--color-card);
  color: var(--color-brand-hover);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-card-muted);
  border-color: var(--color-brand-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-card-muted);
}

.btn--disabled {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

.badge-soon {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.125rem 0.5rem;
  margin-left: 0.375rem;
  border-radius: 999px;
  background: var(--color-brand-accent);
  color: var(--color-brand-hover);
  vertical-align: middle;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

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

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4rem 0 3rem;
  }
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__emblem-wrap {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 18rem;
}

.hero__emblem-wrap img {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9375rem;
  margin: 0;
}

.callout {
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.375rem;
  box-shadow: var(--shadow-sm);
}

.callout h2 {
  margin-top: 0;
}

.callout ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.callout li {
  margin-bottom: 0.5rem;
}

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

/* Screenshot placeholders */
.screenshot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot-slot {
  aspect-ratio: 9 / 19.5;
  max-height: 22rem;
  background: linear-gradient(145deg, var(--color-card-muted) 0%, #e5ebe5 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.screenshot-slot__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

.screenshot-slot__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin: 0.375rem 0 0;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  background: var(--color-card-muted);
  font-weight: 700;
  color: var(--color-text);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  width: 38%;
}

.compare-table td {
  color: var(--color-text-muted);
}

.compare-note {
  font-size: 0.875rem;
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  background: var(--color-card-muted);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.compare-note strong {
  color: var(--color-text);
}

/* Page (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.content-block {
  padding: 1.5rem 0 2rem;
}

.content-block h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p,
.content-block ul {
  color: var(--color-text-muted);
  max-width: 42rem;
}

.placeholder-banner {
  background: #fff8e6;
  border: 1px solid #e8d48a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #5c4a1f;
}

.placeholder-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #3d3212;
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--color-text-muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer__brand {
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.site-footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 22rem;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
