/* Change Order AI — marketing site
   Blueprint blue accent, three status colours that mean one thing each.
   Committed light design with a dark navy hero, matching the app's restraint. */

:root {
  --ink: #0a1628;
  --ink-2: #142542;
  --blueprint: #175cd3;
  --blueprint-light: #5b92f5;
  --blueprint-wash: #eef3fd;
  --approved: #0f733d;
  --approved-wash: #e8f5ed;
  --pending: #996105;
  --blocking: #b31c1c;
  --text: #16202e;
  --text-soft: #566274;
  --line: #dfe4ec;
  --page: #ffffff;
  --panel: #f6f8fc;
  --radius: 14px;
  --measure: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blueprint); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #0f47ab; }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 16px;
}

.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }

.site-head nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 15px;
}

.site-head nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-head nav a:hover { color: #fff; }

@media (max-width: 640px) {
  .site-head nav a.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blueprint); color: #fff; }
.btn-primary:hover { background: #0f47ab; color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(91, 146, 245, 0.35), transparent 62%),
    linear-gradient(168deg, #0d1e3a 0%, #0a1628 55%, #091425 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}

/* Faint blueprint grid, drawn not imported. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blueprint-light);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 30px;
  max-width: 34em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* Steps rail in the hero */
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--blueprint);
  color: #fff;
}

.step b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.step span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.62); line-height: 1.45; }

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }

.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.dark {
  background: linear-gradient(168deg, #0d1e3a, #0a1628);
  color: #fff;
}
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255, 255, 255, 0.74); }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
  font-weight: 700;
}

h3 { font-size: 1.06rem; letter-spacing: -0.01em; margin: 0 0 6px; font-weight: 650; }

.section-lede {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 42em;
  margin: 0 0 44px;
}

.dark .section-lede { color: rgba(255, 255, 255, 0.7); }

/* ---------- Cards ---------- */

/* min(100%, …) in the track minimum lets the column shrink below its ideal width on a
   narrow phone instead of forcing the whole document wider than the viewport. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

/* Two-up, so a four-card set never leaves an orphan on a three-column row. */
.cards.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  max-width: 900px;
}

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

.dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.dark .card p { color: rgba(255, 255, 255, 0.7); }

.card .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blueprint-wash);
  color: var(--blueprint);
  margin-bottom: 14px;
}
.dark .card .mark { background: rgba(91, 146, 245, 0.16); color: var(--blueprint-light); }

.card .mark svg { width: 19px; height: 19px; }

/* ---------- The problem strip ---------- */

.quote {
  border-left: 3px solid var(--blueprint);
  padding: 4px 0 4px 22px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  font-weight: 500;
}

/* ---------- Feature list ---------- */

.featlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 4px 32px;
}

.featlist li {
  display: flex;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  align-items: flex-start;
}

.dark .featlist li { border-color: rgba(255, 255, 255, 0.1); }

.featlist li svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px; color: var(--approved); }
.dark .featlist li svg { color: #5ccc82; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.plan.featured {
  border-color: var(--blueprint);
  box-shadow: 0 12px 40px -18px rgba(23, 92, 211, 0.55);
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin: 0 0 8px;
}

.price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--text-soft); letter-spacing: 0; }
.price-alt { font-size: 14.5px; color: var(--text-soft); margin: 6px 0 20px; }

.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 15.5px;
}
.plan li svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; color: var(--approved); }

.keep {
  margin-top: 44px;
  background: var(--approved-wash);
  border: 1px solid #c6e3d1;
  border-radius: var(--radius);
  padding: 24px;
}
.keep h3 { color: var(--approved); }
.keep p { margin: 0; color: #24503a; font-size: 15.5px; }

.renewal {
  margin: 26px 0 0;
  font-size: 13.5px;
  color: var(--text-soft);
  max-width: 48em;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 2px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  position: relative;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.16s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

details p { margin: 0 0 18px; color: var(--text-soft); font-size: 15.5px; max-width: 46em; }

/* ---------- Disclaimer ---------- */

.disclaimer {
  border: 1px solid var(--line);
  border-left: 3px solid var(--pending);
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 20px 22px;
  font-size: 15px;
  color: #5a4a24;
}
.disclaimer strong { color: #3f3316; }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 52px 0 44px;
  font-size: 14.5px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-foot a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }

.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.foot-legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.48);
  max-width: 60em;
}

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

.doc { padding: 56px 0 80px; }

.doc h1 {
  color: var(--text);
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: 1.35rem;
  margin: 42px 0 12px;
  scroll-margin-top: 90px;
}

.doc h3 { font-size: 1.05rem; margin: 26px 0 8px; }

.doc p, .doc li { font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 7px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 15.5px;
}
.doc th, .doc td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.doc th { background: var(--panel); font-weight: 650; }

.doc .tablewrap { overflow-x: auto; }

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 8px;
}
.toc ol { margin: 8px 0 0; padding-left: 20px; font-size: 15.5px; }
.toc li { margin: 4px 0; }

.callout {
  background: var(--blueprint-wash);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 15.5px;
}
.callout p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
