/* Folio landing page. Uses the site's brand green and ink navy, with dark mode via the .dark class. */

.folio {
  --f-ink: #111827;
  --f-muted: #4b5563;
  --f-line: #e5e7eb;
  --f-card: #ffffff;
  --f-soft: #f3f4f6;
  --f-accent: #15803d;
  --f-accent-soft: #dcfce7;
  --f-solid-bg: #15803d;
  --f-solid-fg: #ffffff;
  color: var(--f-ink);
}

.dark .folio {
  --f-ink: #f9fafb;
  --f-muted: #9ca3af;
  --f-line: #2a3f61;
  --f-card: #182b49;
  --f-soft: #10203a;
  --f-accent: #4ade80;
  --f-accent-soft: #14532d;
  --f-solid-bg: #4ade80;
  --f-solid-fg: #052e16;
}

.folio h1, .folio h2, .folio h3 { letter-spacing: 0; }

/* Hero */
.folio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.folio-title {
  font-size: clamp(2.5rem, 5.4vw, 4.7rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--f-ink);
}
.folio-intro {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--f-muted);
}
.folio-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.folio-note { margin-top: 1.75rem; color: var(--f-muted); text-transform: none; }

.folio-btn {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: 0.95rem 1.4rem; border-radius: 3px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.folio-btn-solid { background: var(--f-solid-bg); color: var(--f-solid-fg); }
.folio-btn-solid:hover { transform: translateY(-2px); opacity: 0.92; }
.folio-link {
  font-size: 0.9rem; color: var(--f-ink); text-decoration: none;
  padding: 0.5rem 0; border-bottom: 1px solid var(--f-line);
}
.folio-link:hover { border-color: var(--f-accent); color: var(--f-accent); }
.folio a:focus-visible, .folio button:focus-visible, .folio-source:focus-visible {
  outline: 3px solid var(--f-accent); outline-offset: 4px;
}

.folio-hero-art { margin: 0; }
.folio-hero-art img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--f-line); border-radius: 3px;
}
.folio-hero-art figcaption {
  display: flex; justify-content: space-between;
  margin-top: 0.75rem; font-size: 0.72rem; color: var(--f-muted);
}

/* Sections */
.folio-section { border-top: 1px solid var(--f-line); padding: 4rem 0; }
.folio-section-title {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: end; margin-bottom: 2.5rem;
}
.folio-section h2, .folio-closing h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; line-height: 1.1; color: var(--f-ink);
}
.folio-section-title p { color: var(--f-muted); line-height: 1.7; max-width: 26rem; }

/* Demo */
.folio-demo {
  display: grid; grid-template-columns: 1fr 9rem 1.15fr; align-items: center;
  background: var(--f-soft); border: 1px solid var(--f-line); border-radius: 3px;
  padding: 2.5rem 2rem;
}
.folio-paper {
  background: #fff; color: #111827; padding: 1.6rem; max-width: 23rem;
  font-size: 0.75rem; transform: rotate(-2deg);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}
.folio-paper-top { display: flex; justify-content: space-between; font-size: 0.6rem; letter-spacing: 0.06em; }
.folio-paper-top span { color: #6b7280; letter-spacing: 0; }
.folio-paper h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; font-weight: 500; }
.folio-paper p { font-size: 0.62rem; color: #6b7280; margin: 0; }
.folio-paper-rule { height: 1px; background: #e5e7eb; margin: 1.2rem 0 0.7rem; }
.folio-row { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0; }
.folio-row-head { color: #6b7280; }
.folio-row-total { border-top: 1px solid #e5e7eb; margin-top: 0.3rem; font-weight: 700; }
.folio-paper-bottom { display: flex; justify-content: space-between; margin-top: 1.5rem; font-size: 0.55rem; color: #6b7280; }

.folio-source {
  background: #e5e7eb; border-radius: 3px; padding: 0.25rem 0.4rem; margin: -0.25rem -0.4rem;
  cursor: pointer; transition: background 0.2s;
}
.folio-source:hover, .folio-source.selected { background: #bbf7d0; }

.folio-bridge { text-align: center; font-size: 0.6rem; color: var(--f-accent); }
.folio-flow-line { height: 1px; background: var(--f-line); position: relative; margin: 0 0.75rem 1.2rem; }
.folio-flow-line i {
  position: absolute; width: 10px; height: 7px; background: var(--f-accent);
  top: -3px; left: 0; opacity: 0; animation: folio-stream 3s infinite ease-in-out;
}
.folio-flow-line i:nth-child(2) { animation-delay: 1s; }
.folio-flow-line i:nth-child(3) { animation-delay: 2s; }
@keyframes folio-stream {
  0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}

.folio-table {
  background: var(--f-card); border: 1px solid var(--f-line); border-radius: 3px;
  overflow: hidden; font-size: 0.75rem;
}
.folio-table-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; }
.folio-table-header strong { font-size: 0.85rem; font-weight: 500; }
.folio-status {
  font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 0.6rem;
  background: var(--f-accent-soft); color: var(--f-accent); padding: 0.3rem 0.5rem; border-radius: 3px;
}
.folio-table table { border-collapse: collapse; width: 100%; text-align: left; }
.folio-table thead { background: var(--f-soft); color: var(--f-muted); font-size: 0.65rem; }
.folio-table th, .folio-table td { padding: 0.75rem 1.2rem; }
.folio-table tbody th { font-weight: 400; color: var(--f-muted); }
.folio-table tbody td { font-weight: 500; }
.folio-table tbody tr { border-bottom: 1px solid var(--f-line); transition: background 0.35s; }
.folio-table tbody tr.selected { background: var(--f-accent-soft); }
.folio-table-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.2rem; font-size: 0.65rem; color: var(--f-muted);
}
#folio-replay { background: transparent; border: 0; color: var(--f-accent); font-size: 0.72rem; cursor: pointer; white-space: nowrap; }

/* Steps */
.folio-steps {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.folio-steps li { border-top: 1px solid var(--f-line); padding-top: 1.2rem; }
.folio-steps h3 { font-size: 1.3rem; font-weight: 400; margin: 0.5rem 0 0.6rem; }
.folio-steps p { color: var(--f-muted); line-height: 1.75; font-size: 0.9rem; max-width: 20rem; margin: 0; }

/* Capabilities */
.folio-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.folio-cap-list > div { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--f-line); }
.folio-cap-list > div:last-child { border-bottom: 0; margin-bottom: 0; }
.folio-cap-list h3 { font-size: 1.1rem; font-weight: 500; margin: 0 0 0.5rem; }
.folio-cap-list p { color: var(--f-muted); line-height: 1.75; font-size: 0.9rem; max-width: 26rem; margin: 0; }

/* Closing */
.folio-closing {
  text-align: center; padding: 4rem 1rem;
  background: var(--f-soft); border: 1px solid var(--f-line); border-radius: 3px;
}
.folio-closing h2 { margin: 0.5rem 0 1.75rem; }
.folio-secure { margin-top: 1.25rem; color: var(--f-muted); text-transform: none; }
.folio-legal { margin-top: 2rem; font-size: 0.8rem; color: var(--f-muted); line-height: 1.7; max-width: 44rem; }
.folio-legal a { color: var(--f-accent); text-decoration: underline; text-underline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 900px) {
  .folio-hero { grid-template-columns: 1fr; gap: 2rem; }
  .folio-section-title { grid-template-columns: 1fr; gap: 1rem; }
  .folio-demo { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1rem; }
  .folio-paper { margin: 0 auto; width: 100%; }
  .folio-bridge { height: 3rem; display: flex; flex-direction: column; justify-content: center; }
  .folio-flow-line { width: 5rem; margin: 0 auto 0.9rem; }
  .folio-steps, .folio-caps { grid-template-columns: 1fr; gap: 1.5rem; }
  .folio-section { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .folio *, .folio *::before, .folio *::after { animation: none !important; transition: none !important; }
  .folio-flow-line i { opacity: 1; left: 40%; }
  .folio-flow-line i:nth-child(2) { left: 60%; }
  .folio-flow-line i:nth-child(3) { left: 80%; }
}
