/* FlowMade marketing site — neutral, responsive foundation.
 *
 * Deliberately unbranded (issue #151): a simple, accessible, mobile-first
 * layout that final styling can replace. No animation, no decoration that
 * would block or outshine the content.
 */

:root {
  --ink: #1a1a2e;
  --ink-soft: #55565f;
  --ink-faint: #8a8b96;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --line: #e2e5ea;
  --focus: #1a1a2e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Accessibility helpers --- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 16px;
  z-index: 100;
  border-bottom: 2px solid var(--ink);
}

.skip-link:focus {
  left: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: inherit;
}

/* --- Navigation --- */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: 14px;
}

.lang-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.lang-link:hover {
  text-decoration: underline;
}

.lang-current {
  color: var(--ink);
  font-weight: 600;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: none;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #26263f;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.125rem;
}

/* --- Sections --- */

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 640px;
}

/* --- Hero --- */

.hero {
  padding: 96px 0;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Scenario --- */

.scenario {
  background: var(--bg-alt);
}

.scenario-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 640px;
  counter-reset: scenario;
}

.scenario-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-step:last-child {
  border-bottom: none;
}

.scenario-step h3 {
  margin: 2px 0 4px;
  font-size: 1.125rem;
}

.scenario-step p {
  margin: 0;
  color: var(--ink-soft);
}

.step-kind {
  flex: 0 0 auto;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 10px;
  margin-top: 4px;
}

.scenario-outro {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
}

/* --- Card grids (pillars, glossary) --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.extended-title {
  margin: 40px 0 16px;
  font-size: 1.375rem;
}

/* --- Glossary comparison table --- */

.comparison-note {
  color: var(--ink-soft);
  margin: 32px 0 12px;
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 10px 16px;
  border: 1px solid var(--line);
}

.comparison-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
}

.comparison-footnote {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* --- Final CTA --- */

.final-cta {
  background: var(--ink);
  color: #ffffff;
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta .section-intro,
.final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.final-inner {
  max-width: 720px;
  text-align: center;
}

.final-inner .btn {
  background: #ffffff;
  color: var(--ink);
}

.final-inner .btn:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.footer-col a:hover {
  text-decoration: underline;
  color: var(--ink);
}

.copyright {
  color: var(--ink-faint);
  margin: 8px 0 0;
}

.footer-contact {
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* --- Language selection and 404 --- */

.selection-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.selection-inner {
  text-align: center;
  width: 100%;
}

.selection-inner .brand {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.lang-choices {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --- Legal pages --- */

.legal-main {
  padding: 56px 0 80px;
}

.legal-inner {
  max-width: 720px;
}

.legal-main h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

.legal-body p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-lines {
  margin: 8px 0 0;
}

/* The line list renders for both legal page types; on pages without lines
   (privacy) it stays in the DOM but hidden. */
.legal-lines:empty {
  display: none;
}

.legal-lines dt {
  font-weight: 700;
}

.legal-lines dd {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* --- Responsive --- */

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

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

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-inner .btn {
    width: 100%;
    text-align: center;
  }

  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
