/* Cin7Flow website styles.
   Same family as the Cin7 POD website (Inter, soft background washes, rounded
   cards, pill buttons, navy headings). Cin7Flow's own colour is teal, the
   colour of the Cin7Flow dashboard. To switch to POD blue, change the
   --teal-* values below to POD's --blue-* values. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-950: #061a3d;
  --navy-900: #092756;
  --teal-900: #08423f;
  --teal-800: #0a5c5a;
  --teal-700: #0b7671;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #7fe0d3;
  --teal-100: #d7f4f0;
  --teal-050: #effaf8;
  --ink: #101828;
  --text: #344054;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --line-teal: #c9ece7;
  --bg-soft: #f8fafc;
  --green: #16a34a;
  --green-ink: #12733a;
  --green-soft: #eafaf0;
  --amber: #d97706;
  --amber-ink: #9a4b00;
  --amber-soft: #fff4e5;
  --red: #dc2626;
  --shadow-soft: 0 24px 70px rgba(6, 26, 61, .12);
  --shadow-card: 0 14px 38px rgba(6, 26, 61, .08);
  --shadow-sm: 0 8px 22px rgba(6, 26, 61, .06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--navy-950); margin: 0 0 .5em; line-height: 1.12; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 900; letter-spacing: -.05em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 900; letter-spacing: -.04em; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.accent { background: linear-gradient(90deg, var(--teal-700), var(--teal-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
.measure { max-width: 72ch; }
.center-block { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.more-link { margin: 32px 0 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font: 800 15px/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 14px 30px rgba(11, 118, 113, .28); }
.btn-primary:hover { background: var(--teal-800); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--line-teal); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--teal-050); color: var(--teal-800); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-light:hover { background: var(--teal-050); color: var(--teal-900); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 18px; height: 18px; }

/* ── Header ──────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(6,26,61,.08); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy-950); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-800), var(--teal-500)); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(11,118,113,.25); flex: none; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.brand-mark.small svg { width: 19px; height: 19px; }
.brand-name { display: block; font-weight: 900; font-size: 23px; letter-spacing: -.045em; line-height: 1; }
.brand-name b { color: var(--teal-700); font-weight: 900; }
.brand-by { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: #44546c; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 11px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-700); }
.nav .btn { margin-left: 8px; min-height: 44px; padding: 10px 20px; font-size: 14px; }
.nav .btn-outline { color: var(--teal-700); }
.nav .btn-primary, .nav .btn-primary:hover, .nav .btn-primary[aria-current="page"] { color: #fff; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 15px var(--font); color: var(--navy-950); cursor: pointer; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; border-radius: 999px; padding: 10px 20px; border-bottom-color: transparent; }
  .nav .btn-outline { border-color: var(--line-teal); }
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: block; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 10px; }
.pill svg { width: 16px; height: 16px; flex: none; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-teal); color: var(--teal-700); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-sm); }

/* Teal background wash + curved shape used behind heroes */
.wash { position: relative; overflow: hidden; background:
  radial-gradient(circle at 12% 18%, rgba(20,184,166,.15), transparent 32%),
  radial-gradient(circle at 88% 16%, rgba(11,118,113,.12), transparent 30%),
  linear-gradient(180deg, #effaf8 0%, #fff 80%); }
.wash::after { content: ""; position: absolute; right: -10vw; bottom: -22vw; width: 70vw; height: 40vw; border-radius: 50%; background: linear-gradient(135deg, rgba(11,118,113,.13), rgba(20,184,166,.03)); transform: rotate(-10deg); pointer-events: none; }
.wash > .wrap { position: relative; z-index: 1; }

/* ── Home hero ───────────────────────────────────────── */
.hero { padding: 56px 0 104px; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero .lede { margin-bottom: 28px; }
.hero-login { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 0; }
.hero-login a { font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d3eeea; border-radius: 999px; padding: 9px 14px; color: var(--teal-900); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.chips svg { width: 17px; height: 17px; color: var(--teal-700); }
.page-hero { padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 56px); max-width: 20ch; margin: 18px 0 16px; }
.page-hero .btn-row { margin-top: 26px; }

/* Trust strip under the hero */
.trust { position: relative; z-index: 3; margin-top: -48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust div { display: flex; gap: 12px; align-items: center; }
.trust p { margin: 0; }
.trust-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--teal-050); display: grid; place-items: center; color: var(--teal-700); flex: none; }
.trust-icon svg { width: 22px; height: 22px; }
.trust strong { display: block; font-size: 15px; color: var(--navy-950); line-height: 1.3; }
.trust p span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; }
.card-title { font-size: 30px; letter-spacing: -.035em; }
.card .last { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-2.stretch { align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-050); display: grid; place-items: center; color: var(--teal-700); margin-bottom: 16px; }
.icon-tile svg { width: 26px; height: 26px; }
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { margin-bottom: 6px; color: var(--navy-900); }
.feature-card p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.feature-card .tag { align-self: flex-start; margin-top: auto; }
.tag { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 800; color: var(--teal-800); background: var(--teal-050); border: 1px solid var(--line-teal); border-radius: 999px; padding: 3px 10px; line-height: 1.5; }
.tag.status-live { color: var(--green-ink); background: var(--green-soft); border-color: #c4ecd2; }
.tag.status-soon { color: var(--amber-ink); background: var(--amber-soft); border-color: #f6dcb6; }
.tag.status-request { color: #44546c; background: #f1f4f8; border-color: #dfe5ee; }

/* Problem / solution */
.problem { border-radius: var(--radius-xl); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.problem.was { background: linear-gradient(180deg, #fff, #fff8f8); }
.problem.now { background: linear-gradient(180deg, #fff, #f0fbf8); }
.problem .eyebrow { color: #64748b; }
.problem h3 { font-size: 23px; margin-bottom: 16px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.list li::before { content: "✓"; color: var(--green); font-weight: 900; flex: none; }
.list.cross li::before { content: "✕"; color: var(--red); }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: var(--teal-700); color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 80px; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.035em; }
.feature-copy > p { color: var(--muted); font-size: 17px; }
.feature-copy .list { margin-bottom: 18px; }
.feature-copy p:last-child { margin: 0; }
.feature-copy p a { font-weight: 800; }

/* ── The flow card (Cin7Flow's signature picture) ────── */
.hero-visual-wrap { min-width: 0; }
.flow-stage { position: relative; padding: 78px 12px 84px; }
.flow-card { position: relative; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid #d6e6e8; box-shadow: 0 30px 80px rgba(6,26,61,.18); overflow: hidden; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(120deg, var(--navy-950), var(--teal-800) 72%, var(--teal-700)); color: #fff; }
.flow-head small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.flow-head strong { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.flow-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.flow-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.flow-strip { list-style: none; margin: 0; padding: 18px 20px 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; border-bottom: 1px solid var(--line); }
.flow-strip::before { content: ""; position: absolute; left: calc(20px + 10%); right: calc(20px + 10%); top: 26px; height: 3px; border-radius: 3px; background: var(--teal-100); }
.flow-strip::after { content: ""; position: absolute; left: calc(20px + 10%); right: calc(20px + 10%); top: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal-700), var(--teal-500)); transform-origin: left center; }
.flow-strip li { position: relative; z-index: 1; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--teal-900); padding-top: 22px; }
.flow-strip li::before { content: ""; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--teal-700); box-shadow: 0 0 0 4px #fff; }
.flow-docs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.flow-docs th { text-align: left; font-size: 11px; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: .06em; padding: 12px 8px 6px; border-bottom: 1px solid var(--line); }
.flow-docs td { padding: 9px 8px; border-bottom: 1px solid #f0f3f7; color: var(--ink); white-space: nowrap; }
.flow-docs th:first-child, .flow-docs td:first-child { padding-left: 20px; }
.flow-docs th:last-child, .flow-docs td:last-child { padding-right: 20px; }
.flow-docs .q, .vtable .q { text-align: right; font-variant-numeric: tabular-nums; }
.flow-docs td:first-child { font-weight: 600; }
.res { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.res::before { font-weight: 900; font-size: 11px; }
.res.ok { background: var(--green-soft); color: var(--green-ink); }
.res.ok::before { content: "✓"; }
.res.held { background: var(--amber-soft); color: var(--amber-ink); }
.res.held::before { content: "!"; }
.res.dup { background: #eef2f7; color: #44546c; }
.res.dup::before { content: "↻"; }
.flow-foot, .vfoot.ok { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--green-soft); border-top: 1px solid #c9ecd5; font-size: 13px; color: var(--green-ink); font-weight: 700; }
.tick { width: 22px; height: 22px; border-radius: 999px; background: var(--green); color: #fff; display: inline-grid; place-items: center; font-size: 12px; flex: none; }
.toast { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(6,26,61,.16); padding: 10px 14px; font-size: 13px; line-height: 1.35; color: var(--text); }
.toast strong { display: block; color: var(--navy-950); font-size: 13.5px; }
.toast-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.toast-icon svg { width: 18px; height: 18px; }
.toast.mail { top: 0; right: 0; }
.toast.mail .toast-icon { background: var(--amber-soft); color: var(--amber); }
.toast.inv { bottom: 0; left: 0; }
.toast.inv .toast-icon { background: var(--teal-050); color: var(--teal-700); }
.toast.mail::after, .toast.inv::after { content: ""; position: absolute; width: 2px; height: 22px; background: #c9d9df; }
.toast.mail::after { right: 70px; bottom: -23px; }
.toast.inv::after { left: 70px; top: -23px; }

/* One orchestrated moment on load: the strip fills, then files land. */
@media (prefers-reduced-motion: no-preference) {
  .flow-strip::after { animation: strip-fill 1.4s cubic-bezier(.4,0,.2,1) .2s both; }
  .flow-strip li::before { animation: dot-on .3s ease both; }
  .flow-strip li:nth-child(1)::before { animation-delay: .2s; }
  .flow-strip li:nth-child(2)::before { animation-delay: .5s; }
  .flow-strip li:nth-child(3)::before { animation-delay: .8s; }
  .flow-strip li:nth-child(4)::before { animation-delay: 1.1s; }
  .flow-strip li:nth-child(5)::before { animation-delay: 1.4s; }
  .flow-docs tbody tr { animation: row-in .45s ease both; }
  .flow-docs tbody tr:nth-child(1) { animation-delay: 1.6s; }
  .flow-docs tbody tr:nth-child(2) { animation-delay: 1.8s; }
  .flow-docs tbody tr:nth-child(3) { animation-delay: 2.0s; }
  .flow-docs tbody tr:nth-child(4) { animation-delay: 2.2s; }
  .flow-stage .toast { animation: row-in .5s ease both; }
  .flow-stage .toast.mail { animation-delay: 2.5s; }
  .flow-stage .toast.inv { animation-delay: 2.8s; }
}
@keyframes strip-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dot-on { from { background: var(--teal-100); } to { background: var(--teal-700); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Small product pictures (vignettes) ──────────────── */
.vcard { margin: 0; background: #fff; border: 1px solid #d6e6e8; border-radius: 22px; box-shadow: var(--shadow-soft); overflow: hidden; max-width: 520px; width: 100%; justify-self: center; }
.vhead { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--teal-050); border-bottom: 1px solid var(--line-teal); }
.vhead small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.vhead strong { display: block; font-size: 16px; font-weight: 800; color: var(--navy-950); line-height: 1.3; }
.vicon { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--teal-700); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.vicon svg { width: 20px; height: 20px; }
.vhead.amber { background: var(--amber-soft); border-bottom-color: #f6dcb6; }
.vhead.amber .vicon { color: var(--amber); }
.vhead.dark { background: var(--navy-950); border-bottom-color: var(--navy-950); }
.vhead.dark small { color: rgba(255,255,255,.65); }
.vhead.dark strong { color: #fff; }
.vhead.dark .vicon { background: rgba(255,255,255,.1); color: var(--teal-300); box-shadow: none; }
.vbody { padding: 16px 20px 20px; }
.vnote { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 4px; }
.vtable th { text-align: left; font-size: 11px; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: .06em; padding: 0 6px 7px 0; border-bottom: 1px solid var(--line); }
.vtable td { padding: 9px 6px 9px 0; border-bottom: 1px solid #f0f3f7; color: var(--ink); }
.vtable tr.chg td:last-child { color: var(--amber-ink); font-weight: 800; }
.vtable tr.del td { color: #64748b; text-decoration: line-through; text-decoration-color: rgba(220,38,38,.6); }
.vtable tr.del td:last-child { text-decoration: none; color: var(--red); font-weight: 800; }
.vtable tr.chg td:first-child::after, .vtable tr.del td:first-child::after { font-size: 11px; font-weight: 800; margin-left: 8px; text-decoration: none; display: inline-block; }
.vtable tr.chg td:first-child::after { content: "changed"; color: var(--amber-ink); }
.vtable tr.del td:first-child::after { content: "removed"; color: var(--red); }
.kind { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--teal-800); background: var(--teal-050); border-radius: 6px; padding: 2px 7px; }
.map-table td:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.map-table td:nth-child(3) { font-weight: 600; }
.vbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--teal-800); background: #fff; border: 1px solid var(--line-teal); }
.vbtn.primary { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.vbtn.ghost { border-color: transparent; color: var(--muted); }
.vfoot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: 13px; font-weight: 700; color: var(--muted); }
.vfoot svg { width: 18px; height: 18px; color: var(--teal-700); }
.filebody { margin: 0; padding: 18px 20px; background: #0b1f3f; color: #d4f3ee; font: 500 13px/1.75 var(--mono); overflow-x: auto; }
.filebody code { font: inherit; }
.mail-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mail-top strong { display: block; color: var(--navy-950); font-size: 15px; }
.mail-top small { display: block; color: var(--muted); font-size: 12.5px; }
.mail-time { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mail-subject { font-size: 18px; font-weight: 800; color: var(--navy-950); letter-spacing: -.02em; margin-bottom: 12px; }
.mail-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.mail-list li { display: flex; gap: 10px; align-items: baseline; }
.mail-list li::before { font-weight: 900; flex: none; width: 1em; text-align: center; }
.mail-list li.ok::before { content: "✓"; color: var(--green); }
.mail-list li.dup::before { content: "↻"; color: #64748b; }
.mail-list li.held::before { content: "!"; color: var(--amber); }

/* ── Features page ───────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; padding: 9px 15px; border: 1px solid #d3eeea; border-radius: 999px; text-decoration: none; color: var(--teal-900); font-weight: 700; font-size: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.toc a:hover { border-color: var(--teal-700); }
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.detail + .detail { margin-top: 24px; }
.detail-side { position: sticky; top: 100px; }
.detail-side .icon-tile { margin-bottom: 14px; }
.detail-side h2 { font-size: 28px; letter-spacing: -.035em; }
.detail-side .tag { margin: 0 6px 6px 0; }
.detail-body ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.detail-body li { display: flex; gap: 10px; align-items: baseline; }
.detail-body li::before { content: "✓"; color: var(--green); font-weight: 900; flex: none; }
.detail-body h3 { margin-top: 1.1em; font-size: 17px; }
.detail-body > p { color: var(--muted); font-size: 17px; }
.detail-body .vcard { margin-top: 26px; justify-self: start; }

/* ── Integrations page ───────────────────────────────── */
.int-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.int-card { display: flex; flex-direction: column; }
.int-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.int-top .icon-tile { margin: 0; flex: none; }
.int-top h3 { margin: 2px 0 6px; font-size: 20px; }
.int-kind { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 8px; }
.int-card > p { color: var(--muted); font-size: 15px; }
.int-card .list { gap: 8px; }
.int-card .list li { font-size: 14.5px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; justify-content: center; }
.formats li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 700; color: var(--navy-900); box-shadow: var(--shadow-sm); font-size: 15px; }

/* ── EDI page ────────────────────────────────────────── */
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.doc-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.doc-table th, .doc-table td { padding: 14px 18px; border-bottom: 1px solid #edf2f8; text-align: left; vertical-align: top; }
.doc-table thead th { background: var(--teal-050); color: var(--navy-900); font-weight: 900; font-size: 14px; }
.doc-table tbody th { color: var(--navy-950); font-weight: 800; white-space: nowrap; }
.doc-table tbody tr:last-child th, .doc-table tbody tr:last-child td { border-bottom: 0; }
.dir { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: #44546c; white-space: nowrap; }
.dir.in { background: var(--teal-050); color: var(--teal-800); }
.callout { border-radius: var(--radius-xl); padding: 34px; background: linear-gradient(135deg, var(--navy-950), var(--teal-800)); color: rgba(255,255,255,.86); box-shadow: var(--shadow-soft); }
.callout h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.callout p { font-size: 17px; max-width: 64ch; }
.callout p:last-child { margin: 0; }
.callout strong { color: #fff; }

/* ── Pricing ─────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--teal-600); transform: translateY(-8px); }
.plan-badge { align-self: flex-start; display: inline-flex; padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 900; color: var(--teal-800); background: var(--teal-050); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.plan.popular .plan-badge { background: var(--teal-700); color: #fff; }
.plan .plan-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 15px; min-height: 48px; margin: 0; }
.price { font-size: 44px; font-weight: 900; letter-spacing: -.05em; color: var(--navy-950); line-height: 1; margin: 16px 0 18px; }
.price .from { display: block; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; text-transform: none; }
.price .cur { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-right: 2px; vertical-align: 14px; }
.price .unit { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 8px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; flex: none; }
.plan .btn { margin-top: auto; width: 100%; }
.example { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.example-lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.example-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #edf2f8; font-size: 15px; }
.example-lines li:last-child { border-bottom: 0; background: var(--teal-050); }
.example-lines b { color: var(--navy-950); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 14px; }
details.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
details.qa summary { list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; position: relative; font-weight: 800; font-size: 16px; color: var(--navy-950); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 999px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
details.qa[open] summary::after { content: "−"; }
details.qa .a { padding: 0 20px 18px; color: var(--text); font-size: 15px; }

/* ── Demo and contact forms ──────────────────────────── */
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: start; }
.demo-panel { background: linear-gradient(135deg, var(--navy-950), var(--teal-800)); color: #fff; border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-soft); position: sticky; top: 100px; }
.demo-panel h2 { color: #fff; font-size: 30px; letter-spacing: -.035em; }
.demo-panel p { color: rgba(255,255,255,.86); }
.demo-panel .list { margin: 22px 0; }
.demo-panel .list li { color: rgba(255,255,255,.94); }
.demo-panel .list li::before { color: var(--teal-300); }
.demo-panel a { color: #fff; font-weight: 700; }
.panel-contact { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 10px; font-size: 15px; }
.panel-contact li { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.panel-contact svg { width: 18px; height: 18px; color: var(--teal-300); flex: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: 34px; }
.form-card h2 { font-size: 26px; letter-spacing: -.03em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 800; color: var(--navy-950); }
.field .opt { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 500 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #7b8796; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(20,184,166,.35); outline-offset: 0; border-color: var(--teal-700); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff8f8; }
.field-error { font-size: 13.5px; font-weight: 700; color: #b42318; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.field label.check, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; accent-color: var(--teal-700); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 44ch; }
.form-status { margin-top: 18px; border-radius: var(--radius-md); padding: 14px 18px; font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.error { background: #fff4f2; border: 1px solid #f7c9c0; color: #8f1d12; }
.form-done { text-align: center; padding: 20px 6px; }
.form-done .tick { width: 56px; height: 56px; font-size: 26px; margin-bottom: 16px; }
.form-done h2 { font-size: 28px; }
.form-done p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.contact-cards { display: grid; gap: 16px; }
.contact-cards .card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-cards .icon-tile { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-cards h3 { margin-bottom: 2px; font-size: 17px; }
.contact-cards p { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.contact-cards a { font-weight: 800; }

/* ── Plain text pages (privacy) ──────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 1.6em; }
.prose ul { display: grid; gap: 6px; }

/* ── Closing call to action ──────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--navy-950), var(--teal-700)); color: #fff; border-radius: var(--radius-xl); padding: 46px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-soft); }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); }
.cta-band p { color: rgba(255,255,255,.86); font-size: 17px; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────── */
.site-foot { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 56px 0 30px; margin-top: 32px; font-size: 14px; }
.site-foot a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 14px; color: #fff; margin-bottom: 12px; letter-spacing: 0; font-weight: 800; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-name b { color: var(--teal-300); }
.foot-brand .brand-by { color: rgba(255,255,255,.62); }
.foot-brand p { margin-top: 16px; max-width: 38ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.6); }
.foot-legal p { margin: 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan.popular { transform: none; }
  .grid-4, .trust { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 88px; }
  .hero-grid, .feature-row, .demo-grid, .detail, .cta-band, .grid-2, .int-list, .example { grid-template-columns: 1fr; }
  .feature-row { gap: 32px; }
  .feature-row.flip .feature-copy { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .demo-panel, .detail-side { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .lede { font-size: 17px; }
  .plans, .grid-3, .grid-4, .trust, .form-grid, .checks { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .flow-stage { padding: 92px 0 96px; }
  .flow-head, .flow-foot, .vhead, .vbody, .vfoot, .mail-top, .filebody { padding-left: 14px; padding-right: 14px; }
  .flow-docs th:first-child, .flow-docs td:first-child { padding-left: 14px; }
  .flow-docs th:last-child, .flow-docs td:last-child { padding-right: 14px; }
  .flow-docs th:nth-child(2), .flow-docs td:nth-child(2) { display: none; }
  .flow-strip { padding-inline: 8px; }
  .flow-strip::before, .flow-strip::after { left: calc(8px + 10%); right: calc(8px + 10%); }
  .flow-strip li { font-size: 10.5px; }
  .toast { max-width: 270px; font-size: 12.5px; }
  .form-card, .demo-panel, .callout { padding: 24px; }
  .chips li { font-size: 13px; }
  .vbtns .vbtn { font-size: 12.5px; }
  .filebody { font-size: 11.5px; }
}
/* EDI documents table becomes stacked cards on phones */
@media (max-width: 680px) {
  .doc-table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; min-width: 0; }
  .doc-table { min-width: 0; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-table tr { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px 18px; margin-bottom: 12px; }
  .doc-table th, .doc-table td, .doc-table tbody tr:last-child th, .doc-table tbody tr:last-child td { border: 0; padding: 0; }
  .doc-table tbody th { white-space: normal; font-size: 17px; padding-right: 110px; margin-bottom: 8px; }
  .doc-table td:nth-child(2) { margin-bottom: 8px; }
  .doc-table td:last-child { position: absolute; top: 16px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
