/* ==========================================================================
   xPaperFlow - Main Stylesheet
   Modern, responsive, single-file CSS
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors - aligned with logo (deep navy + bright blue) */
  --c-navy-900: #0B2545;
  --c-navy-800: #0F2E55;
  --c-navy-700: #134B8A;
  --c-navy-600: #1A5DA8;
  --c-blue-500: #1E88E5;
  --c-blue-400: #42A5F5;
  --c-blue-100: #DBEAFE;
  --c-blue-50:  #EFF6FF;

  /* Neutrals */
  --c-bg:       #FFFFFF;
  --c-bg-soft:  #F7FAFC;
  --c-bg-tint:  #F1F5F9;
  --c-border:   #E2E8F0;
  --c-border-strong: #CBD5E1;

  /* Text */
  --c-text:     #0F172A;
  --c-text-2:   #334155;
  --c-text-3:   #64748B;
  --c-text-mute:#94A3B8;

  /* Accent / status */
  --c-success:  #10B981;
  --c-warning:  #F59E0B;
  --c-danger:   #EF4444;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10:128px;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 20px 40px rgba(11, 37, 69, 0.10);
  --sh-xl: 0 30px 60px rgba(11, 37, 69, 0.14);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --nav-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue-500); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--c-navy-700); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--c-navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em; color: var(--c-text-2); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.text-center { text-align: center; }
.muted { color: var(--c-text-3); }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--c-blue-500);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section--tint { background: var(--c-bg-soft); }

/* FAQ list */
.faq-list { max-width: 820px; margin: 28px auto 0; }
.faq-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  margin-bottom: 12px; padding: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--c-blue-500); box-shadow: 0 4px 18px rgba(11,37,69,0.06); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  font-weight: 600; color: var(--c-navy-900); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--c-blue-500); font-weight: 400;
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item > p { margin: 0; padding: 0 24px 18px; color: var(--c-text-2); line-height: 1.7; }
.faq-item > p a { color: var(--c-blue-500); }
.section--dark {
  background: linear-gradient(135deg, var(--c-navy-900) 0%, var(--c-navy-700) 100%);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--c-text-3); }
.section-head--light p { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:focus-visible { outline: 3px solid var(--c-blue-100); outline-offset: 2px; }
.btn--primary {
  background: var(--c-navy-900);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}
.btn--primary:hover { background: var(--c-navy-700); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 37, 69, 0.32); }
.btn--accent {
  background: var(--c-blue-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.30);
}
.btn--accent:hover { background: var(--c-navy-700); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-navy-900);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { border-color: var(--c-navy-900); background: var(--c-bg-soft); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--sh-sm); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav__brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.nav__brand picture,
.nav__brand .nav__brand-logo {
  display: block;
}
.nav__brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav__brand-name { font-weight: 800; color: var(--c-navy-900); font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--c-text-2);
  font-weight: 500; font-size: 0.95rem;
  border-radius: var(--r-sm);
  transition: all 0.15s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--c-navy-900); background: var(--c-bg-tint); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-navy-900);
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 2px; background: currentColor; border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%,  7px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* Mobile drawer - hidden on desktop, slides in below the nav on small screens.
   The drawer is a SIBLING of .nav (not a child) so that the parent's
   `backdrop-filter` does not become its containing block, which would
   otherwise collapse the fixed-positioned drawer to zero height. */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: 0; bottom: 0; left: 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 24px;
  overflow-y: auto;
  z-index: 40;
}
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__drawer.is-open { display: block; animation: fadeUp 0.3s var(--ease); }
  .nav__drawer ul { list-style: none; padding: 0; margin: 0 0 24px; }
  /* Drawer link styles - exclude .btn so button colors/backgrounds
     are not overridden (`.btn--primary` would otherwise get dark-navy
     text on a dark-navy background). */
  .nav__drawer a:not(.btn) {
    display: block; padding: 14px 0;
    color: var(--c-navy-900); font-weight: 600; font-size: 1.05rem;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__drawer .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 9vw, 120px);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(30, 136, 229, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(19, 75, 138, 0.10), transparent 60%),
    linear-gradient(180deg, #FAFCFE 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--c-blue-50);
  color: var(--c-navy-700);
  border: 1px solid var(--c-blue-100);
  border-radius: var(--r-full);
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--c-navy-700), var(--c-blue-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  font-size: 1.15rem; line-height: 1.65;
  color: var(--c-text-3);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 0.875rem; color: var(--c-text-3);
}
.hero__meta strong { display: block; color: var(--c-navy-900); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.hero__meta span { display: block; }

/* Hero illustration - dashboard mockup */
.hero__visual { position: relative; }
.dash-mock {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transform: rotate(-0.5deg);
}
.dash-mock__top {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.dash-mock__top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); }
.dash-mock__top .dot:nth-child(1) { background: #FF5F57; }
.dash-mock__top .dot:nth-child(2) { background: #FEBC2E; }
.dash-mock__top .dot:nth-child(3) { background: #28C840; }
.dash-mock__top .url {
  margin-left: 12px; font-size: 0.75rem; color: var(--c-text-3);
  background: #fff; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c-border);
}
.dash-mock__body { padding: 24px; }
.dash-mock__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-mock__title { font-size: 0.95rem; font-weight: 700; color: var(--c-navy-900); }
.dash-mock__pill {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--c-blue-50); color: var(--c-navy-700);
}
.dash-mock__progress {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 18px;
}
.dash-mock__progress .step {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--c-bg-tint);
}
.dash-mock__progress .step.done { background: var(--c-blue-500); }
.dash-mock__progress .step.active { background: linear-gradient(90deg, var(--c-blue-500) 50%, var(--c-bg-tint) 50%); }
.dash-mock__stages {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  font-size: 0.65rem; color: var(--c-text-3); text-align: center; font-weight: 500;
  margin-bottom: 22px;
}
.dash-mock__stages span.active { color: var(--c-navy-900); font-weight: 600; }
.dash-mock__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-mock__card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
}
.dash-mock__card h5 { margin: 0 0 4px; font-size: 0.75rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.dash-mock__card .v { font-size: 1.4rem; font-weight: 800; color: var(--c-navy-900); line-height: 1.1; }
.dash-mock__card .d { font-size: 0.7rem; color: var(--c-success); font-weight: 600; margin-top: 4px; }
.dash-mock__list { list-style: none; padding: 0; margin: 0; }
.dash-mock__list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 0.825rem;
  border-bottom: 1px solid var(--c-border);
}
.dash-mock__list li:last-child { border-bottom: 0; }
.dash-mock__list .left { display: flex; align-items: center; gap: 8px; color: var(--c-text-2); }
.dash-mock__list .left .av {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-blue-100); color: var(--c-navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.tag--blue   { background: var(--c-blue-50);   color: var(--c-navy-700); }
.tag--green  { background: #DCFCE7;            color: #166534; }
.tag--amber  { background: #FEF3C7;            color: #92400E; }
.tag--rose   { background: #FFE4E6;            color: #9F1239; }
.tag--gray   { background: var(--c-bg-tint);   color: var(--c-text-3); }

.hero__floater {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  font-size: 0.85rem; font-weight: 500;
  animation: float 4s ease-in-out infinite;
}
.hero__floater--tl { top: 24px; left: -24px; }
.hero__floater--br { bottom: 32px; right: -16px; animation-delay: 1.2s; }
.hero__floater .ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-blue-50); color: var(--c-navy-700); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: 2; }
  .hero__floater { display: none; }
  .dash-mock { transform: none; }
}

/* ---------- Stats Strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 0;
}
.stat { text-align: center; padding: 12px; }
.stat__num {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--c-navy-900);
  line-height: 1.1; letter-spacing: -0.02em;
}
.stat__num .unit { color: var(--c-blue-500); }
.stat__label { display: block; font-size: 0.875rem; color: var(--c-text-3); margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature Grid (Homepage) ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-navy-700), var(--c-blue-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-blue-100); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-blue-50);
  color: var(--c-navy-700);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--c-text-3); margin: 0; }
.feature-card .more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 0.875rem; font-weight: 600;
  color: var(--c-blue-500);
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Roles (Tabbed) ---------- */
.roles {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
}
.roles__nav { display: flex; flex-direction: column; gap: 6px; }
.roles__nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: transparent; border: 1px solid transparent;
  border-radius: var(--r-md); text-align: left;
  color: var(--c-text-2); font-weight: 500;
  transition: all 0.15s var(--ease);
}
.roles__nav button:hover { background: var(--c-bg-soft); color: var(--c-navy-900); }
.roles__nav button.is-active {
  background: #fff; border-color: var(--c-border); color: var(--c-navy-900); font-weight: 600;
  box-shadow: var(--sh-sm);
}
.roles__nav .ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-blue-50); color: var(--c-navy-700); flex-shrink: 0; }
.roles__panel {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 40px; box-shadow: var(--sh-sm);
  display: none;
}
.roles__panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }
.roles__panel h3 { font-size: 1.5rem; }
.roles__panel ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles__panel li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; color: var(--c-text-2); font-size: 0.95rem;
}
.roles__panel li::before {
  content: '✓'; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-blue-50); color: var(--c-navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
@media (max-width: 800px) {
  .roles { grid-template-columns: 1fr; gap: 24px; }
  .roles__nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .roles__nav button { white-space: nowrap; }
  .roles__panel { padding: 28px; }
  .roles__panel ul { grid-template-columns: 1fr; }
}

/* ---------- Why section ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card {
  padding: 32px; background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.why-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-navy-900); color: #fff; font-weight: 700; font-size: 1rem;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.2rem; }
.why-card p { color: var(--c-text-3); margin: 0; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Workflow timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 12px; bottom: 12px;
  width: 2px; background: var(--c-border);
}
.t-step {
  position: relative; padding-left: 76px; margin-bottom: 36px;
}
.t-step:last-child { margin-bottom: 0; }
.t-step__dot {
  position: absolute; left: 14px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-navy-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--c-border);
}
.t-step__dot--accent { background: var(--c-blue-500); }
.t-step h3 { margin-bottom: 6px; font-size: 1.25rem; }
.t-step p { color: var(--c-text-3); margin: 0; }
.t-step .tag { margin-top: 10px; }

/* ---------- Feature detail (for features.html) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--c-border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row--reverse .feature-row__visual { order: -1; }
.feature-row__copy h2 { margin-bottom: 16px; }
.feature-row__copy p { font-size: 1.05rem; }
.feature-row__checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-row__checklist li {
  display: flex; gap: 12px; padding: 8px 0;
  color: var(--c-text-2); font-size: 0.95rem;
}
.feature-row__checklist li::before {
  content: ''; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-blue-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23134B8A'><path d='M13.3 4.3a.75.75 0 0 1 0 1.06l-7 7a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06L5.8 10.8l6.44-6.5a.75.75 0 0 1 1.06 0z'/></svg>") center / 14px no-repeat;
}
.feature-row__visual {
  background: linear-gradient(135deg, var(--c-blue-50) 0%, #fff 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature-row--reverse .feature-row__visual { order: 0; }
}

/* ---------- Testimonials / Quote ---------- */
.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.quote blockquote {
  margin: 0; padding: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.5; color: #fff; font-weight: 500;
}
.quote .who {
  margin-top: 24px; font-size: 0.9rem; color: rgba(255,255,255,0.7);
}
.quote .who strong { color: #fff; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-navy-900) 0%, var(--c-navy-700) 100%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.25), transparent 70%);
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-banner__text { position: relative; z-index: 1; }
.cta-banner__actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-banner { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-md);
}
.contact-info { padding: 40px; background: var(--c-navy-900); color: #fff; }
.contact-info h2 { color: #fff; margin-bottom: 12px; }
.contact-info p { color: rgba(255,255,255,0.78); margin-bottom: 32px; }
.contact-info__item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-info__item .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.contact-info__item .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.contact-info__item .value { color: #fff; font-size: 0.95rem; line-height: 1.5; }
.contact-info__item a { color: #fff; }
.contact-info__item a:hover { color: var(--c-blue-400); }

.contact-form { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--c-blue-500);
  box-shadow: 0 0 0 3px var(--c-blue-100);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-status { padding: 12px 16px; border-radius: var(--r-md); font-size: 0.9rem; font-weight: 500; margin-top: 12px; display: none; }
.form-status.is-success { display: block; background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.form-status.is-error   { display: block; background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

.map-wrap {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-navy-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand {
  margin-bottom: 16px;
}
/* The logo is dark navy + blue on a white background. The footer is
   dark navy, so we put the logo on a small white card that visually
   echoes the navbar treatment and guarantees the logo renders exactly
   as designed. */
.footer__brand a {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.footer__brand picture,
.footer__brand .footer__brand-logo {
  display: block;
}
.footer__brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer__brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 320px; margin: 14px 0 0; line-height: 1.55; }
.footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.55; margin: 0 0 12px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.footer__bottom a { color: rgba(255,255,255,0.7); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__bottom { flex-direction: column; gap: 12px; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--c-bg-soft) 0%, #fff 100%);
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.page-banner h1 { margin-bottom: 16px; }
.page-banner p { font-size: 1.15rem; color: var(--c-text-3); max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--c-text-3); margin-bottom: 16px; }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-navy-700); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
/* Fallback: if JS is disabled or IO never fires, show content after a short delay */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .cta-banner, .nav__drawer { display: none; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__floater { animation: none; }
}
