:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #14221d;
  --muted: #53635c;
  --line: #dbe5df;
  --brand: #0f6b52;
  --brand-dark: #0a4f3d;
  --brand-soft: #dff2ea;
  --accent: #2c8c6d;
  --shadow: 0 18px 50px rgba(20, 34, 29, .08);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 247, .92);
  border-bottom: 1px solid rgba(219, 229, 223, .9);
}
.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; gap: 12px; }
.brand-logo { width: 212px; height: auto; }
.brand-fallback { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 650; }
.nav-links a { text-decoration: none; color: #31443c; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.button-primary { color: #fff; }
.nav-links a.button-primary:hover { color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(15, 107, 82, .18); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.button-secondary:hover { box-shadow: var(--shadow); }

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 64px; }
.eyebrow { color: var(--brand); font-size: 15px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(48px, 6vw, 76px); margin-bottom: 24px; }
h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 20px; }
h3 { font-size: 25px; margin-bottom: 12px; }
.lead { font-size: clamp(21px, 2.2vw, 27px); color: #405149; max-width: 760px; margin: 0 0 30px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: linear-gradient(160deg, #0c5d48, #123c31);
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  right: -95px;
  bottom: -105px;
  pointer-events: none;
}
.hero-card-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.hero-card .app-icon { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.hero-card-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.66); margin-bottom: 3px; }
.hero-card-title { font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.hero-flow { display: grid; gap: 0; position: relative; z-index: 1; }
.hero-flow-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; }
.hero-flow-number { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 850; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); }
.hero-flow-step b { display: block; font-size: 19px; line-height: 1.2; }
.hero-flow-step small { display: block; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.35; margin-top: 4px; }
.hero-flow-line { width: 2px; height: 20px; background: rgba(255,255,255,.18); margin: 4px 0 4px 20px; }
.hero-card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-size: 16px; font-weight: 650; position: relative; z-index: 1; }

.section { padding: 84px 0; }
.section-white { background: #fff; }
.section-soft { background: var(--surface-soft); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 20px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p { color: var(--muted); margin-bottom: 0; }
.step-number { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; margin-bottom: 22px; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-box { border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); background: #fff; }
.fit-box.highlight { background: #103f33; color: #fff; border-color: transparent; }
.fit-box.highlight p, .fit-box.highlight li { color: rgba(255,255,255,.82); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: #3f5149; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 14px; font-weight: 900; }
.highlight .check-list li::before { background: rgba(255,255,255,.14); color: #fff; }

.cta { background: #123f33; color: #fff; border-radius: 30px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.78); margin: 0; max-width: 680px; font-size: 20px; }
.cta .button-primary { background: #fff; color: var(--brand-dark); white-space: nowrap; box-shadow: none; }

.page-hero { padding: 74px 0 46px; }
.page-hero .lead { max-width: 820px; }
.form-shell { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 750; font-size: 16px; }
input, select, textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #cbd8d1;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,107,82,.12); border-color: var(--brand); }
.form-note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.form-status { background: #f5f8f6; border: 1px dashed #b9c9c0; color: var(--muted); border-radius: 14px; padding: 16px; margin: 22px 0; font-size: 15px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.info-panel p { color: var(--muted); }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); color: #5a6b63; font-size: 15px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid, .fit-grid, .info-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-card { min-height: 320px; }
  .nav-links a:not(.button) { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 38px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 72px; }
  .brand-logo { width: 180px; }
  .nav-links { gap: 10px; }
  .nav-links .button { min-height: 46px; padding: 0 16px; font-size: 15px; }
  .hero { padding: 54px 0 52px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .section { padding: 62px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-shell { padding: 24px; }
}

/* Ship2Invoice uses an intentionally light brand presentation.
   Prevent browser/device automatic dark-mode transformations. */
:root {
  color-scheme: only light;
}

html,
body {
  color-scheme: only light;
}

.site-header,
main,
.site-footer {
  color-scheme: only light;
}

.brand-logo {
  forced-color-adjust: none;
}
/* ==========================================================
   Ship2Invoice Documentation Center
   ========================================================== */

.docs-hero {
  padding-bottom: 58px;
}

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

.doc-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--ink);
  text-decoration: none;
}

.doc-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.doc-card-label {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.doc-card-link {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.doc-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #a9c5b8;
}

.doc-card-action {
  display: inline-block;
  margin-top: 22px;
  color: var(--brand-dark);
  font-weight: 800;
}

.docs-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px;
  background: var(--surface-soft);
}

.docs-callout h2 {
  margin-bottom: 12px;
}

.docs-callout p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.content-shell {
  max-width: 920px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 58px 22px 24px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 28px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
}

.faq-answer p:first-child {
  margin-top: 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Long-form documentation pages */

.doc-section {
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-of-type {
  border-bottom: 0;
}

.doc-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 18px;
}

.doc-section p,
.doc-list,
.doc-steps {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.doc-list,
.doc-steps {
  padding-left: 24px;
}

.doc-list li,
.doc-steps li {
  margin: 10px 0;
}

.doc-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 16px 16px 0;
  line-height: 1.6;
}

.doc-note strong {
  color: var(--brand-dark);
}

.doc-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 18px;
  color: var(--brand-dark);
}

.doc-flow span {
  color: var(--brand);
  font-size: 24px;
  font-weight: 800;
}

/* Release notes */

.release-entry {
  padding-bottom: 54px;
}

.release-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.release-heading h2 {
  margin-bottom: 0;
}

.release-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

.release-entry h3 {
  margin-top: 38px;
  font-size: 24px;
}

.release-entry > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .release-heading {
    flex-direction: column;
  }
}

/* ==========================================================
   Ship2Invoice Legal Center
   ========================================================== */

.legal-hero {
  padding-bottom: 52px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}

.legal-content {
  max-width: 940px;
}

.legal-intro {
  margin-bottom: 54px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.legal-intro p {
  color: var(--ink);
  line-height: 1.7;
}

.legal-intro p:first-child {
  font-weight: 850;
}

.legal-section {
  padding: 0 0 44px;
  margin: 0 0 44px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(27px, 3vw, 36px);
  margin-bottom: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 25px;
}

.legal-section li {
  margin: 9px 0;
}

.legal-caps {
  padding: 26px;
  border: 1px solid #c5d4cc;
  border-radius: 18px;
  background: #f5f8f6;
}

.legal-caps p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.legal-end {
  margin-top: 58px;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--muted);
}

/* ============================================================
   SHIP2INVOICE DEMO VIDEO
   ============================================================ */

.demo-section .section-head {
  max-width: 820px;
}

.demo-video-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #0f1915;
}

.demo-note {
  max-width: 980px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .demo-video-shell {
    padding: 6px;
    border-radius: 20px;
  }

  .demo-video {
    border-radius: 14px;
  }

  .demo-actions {
    justify-content: flex-start;
  }
}
