:root {
  color-scheme: light;
  --brand-blue: #0ea5e9;
  --brand-blue-dark: #0369a1;
  --brand-navy: #0f172a;
  --brand-sky: #f0f9ff;
  --brand-muted: #475569;
  --brand-border: #e2e8f0;
  --brand-card: #ffffff;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--brand-font, "Inter", "Segoe UI", system-ui, -apple-system, sans-serif);
  background: #ffffff;
  color: var(--brand-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.legacy-splash {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 40px;
  text-align: center;
}

body.legacy-splash h1 {
  margin-top: 0;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  border-bottom: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}

.brand .accent {
  color: var(--brand-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--brand-navy);
  font-weight: 600;
}

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

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.site-nav .nav-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.primary-button,
.outline-button,
.secondary-link,
.nav-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.35);
}

.primary-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(14, 165, 233, 0.4);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand-blue);
  font-weight: 700;
  color: var(--brand-blue);
  background: transparent;
}

.outline-button:hover {
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--brand-blue);
}

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

.site-main {
  flex: 1;
}

.hero {
  padding: clamp(4rem, 10vw, 6rem) 0 3rem;
  text-align: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--brand-blue);
}

.hero-subtitle {
  margin: 1.8rem auto 0;
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--brand-muted);
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-footnote {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.word-rotator {
  display: inline-flex;
  position: relative;
  min-width: 10ch;
  justify-content: center;
}

.word-rotator span {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.word-rotator span.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.feature-section {
  background: var(--brand-sky);
  padding: 3rem 0 4rem;
}

.feature-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Workflow timeline layout (features/index.html) */
.workflow-section {
  background: #ffffff;
  padding: 3rem 0 4rem;
}

.workflow-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.workflow-step {
  flex: 1 1 0;
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.workflow-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  font-weight: 700;
}

.workflow-arrow {
  font-size: 1.5rem;
  color: var(--brand-muted);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 740px) {
  .workflow-timeline {
    flex-direction: column;
    gap: 0.75rem;
  }
  .workflow-arrow {
    transform: rotate(90deg);
    margin: -6px 0;
  }
}

.cta-section {
  padding: 4rem 0;
}

.cta-panel {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: 24px;
  padding: clamp(2rem, 8vw, 3rem);
  text-align: center;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.cta-panel h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.cta-panel p {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: #e2e8f0;
}

.cta-panel .secondary-link {
  color: #cbd5f5;
}

.site-footer {
  background: var(--brand-navy);
  color: #e2e8f0;
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #e2e8f0;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.pricing-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-sky);
  color: var(--brand-blue-dark);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-hero h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
}

.pricing-hero p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.pricing-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-card {
  position: relative;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-card--featured {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 28px 42px rgba(14, 165, 233, 0.25);
  transform: translateY(-8px);
}

.pricing-card__tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.3);
}

.pricing-card__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.pricing-card__subtitle {
  margin: 0.4rem 0 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
  min-height: 1.9rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.pricing-card__amount {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__label {
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--brand-blue-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pricing-card__cta {
  align-self: stretch;
  justify-content: center;
}

.reassurance {
  margin-top: 2rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.faq {
  margin-top: 4rem;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.faq > p {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-list details {
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--brand-blue);
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.18);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-list summary::marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand-blue);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
  text-align: left;
}

.contact-card {
  margin-top: 3rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.contact-card a {
  font-weight: 600;
}

.example-hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 3rem;
}

.example-hero .hero-subtitle {
  max-width: 52rem;
  margin: 0.75rem auto 1.5rem;
}

.example-hero-media {
  margin: 2rem auto 0;
  max-width: 640px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
}

.example-hero-media img {
  width: 100%;
  display: block;
}

.example-list-section {
  padding: 3rem 0 4rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.example-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.example-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.example-card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-sky);
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-details {
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.example-link {
  margin-top: auto;
  font-weight: 600;
}

.example-detail-hero {
  padding: clamp(3rem, 8vw, 4.5rem) 0 2.5rem;
}

.example-detail-hero .hero-subtitle {
  max-width: 44rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.breadcrumb-link:hover {
  text-decoration: none;
}

.example-meta {
  display: inline-flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1.5rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.example-detail {
  padding-bottom: 4rem;
}

.example-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.75rem;
  color: var(--brand-muted);
}

.example-placeholder-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--brand-sky);
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.example-detail h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.example-detail h2:first-of-type {
  margin-top: 0;
}

.example-detail .example-detail-list li {
  line-height: 1.6;
}

@media (max-width: 720px) {
  .example-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .example-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Add these styles to your existing styles.css */

/* Workflow Timeline Section */
.workflow-section {
  background: #ffffff;
  padding: 4rem 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

.workflow-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 3rem;
}

.workflow-timeline {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.workflow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--brand-sky);
  border-radius: 20px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.workflow-step:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
}

.workflow-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 auto;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.workflow-step h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--brand-navy);
}

.workflow-step p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand-blue);
  font-weight: 300;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .workflow-timeline {
    flex-direction: column;
    gap: 2rem;
  }
  
  .workflow-arrow {
    transform: rotate(90deg);
    font-size: 2.5rem;
  }
  
  .workflow-step {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 900px) {
  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .cta-panel {
    text-align: left;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
