/* =================================================================
   SharePoint Connector by CaRD — modern stylesheet
   Brand palette kept from the original site: navy #001b5e + orange #ff5e13
   Self-contained, no external fonts or trackers (privacy-friendly).
   ================================================================= */

:root {
  --navy:        #001b5e;
  --navy-2:      #0c2e60;
  --navy-deep:   #001541;
  --orange:      #ff5e13;
  --orange-2:    #ff7a3c;
  --gold:        #f9b700;

  --ink:         #14213d;
  --text:        #515b6e;
  --muted:       #8a93a6;
  --line:        #e6e9f1;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fc;
  --bg-tint:     #eef2fb;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 50px -22px rgba(0, 27, 94, .35);
  --shadow-sm:   0 8px 24px -12px rgba(0, 27, 94, .28);
  --container:   1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --maxline: 68ch;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img, svg { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-brand { background: var(--orange); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,94,19,.7); }
.btn-brand:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { height: 38px; width: auto; }
.brand-text { position: relative; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; padding-left: 15px; }
.brand-text::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 30px; background: var(--line); }
.brand-text b { color: var(--navy); font-size: 1.04rem; font-weight: 800; letter-spacing: -.01em; }
/* subtitle hidden — the CaRD logo carries the company tagline, the bold label names the product */
.brand-text span { display: none; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--navy-2); font-weight: 600; font-size: .96rem; }
.nav-links a:not(.btn):hover { color: var(--orange); }
.nav-cta { color: #fff !important; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding-left: 6px; border-left: 1px solid var(--line); }
.lang-switch a { color: var(--muted); padding: 3px 6px; border-radius: 6px; }
.lang-switch a:hover { color: var(--orange); }
.lang-switch .active { color: var(--navy); background: var(--bg-tint); padding: 3px 8px; border-radius: 6px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 24px; height: 2.4px; background: var(--navy); border-radius: 2px; transition: .3s; }
.burger span + span { margin-top: 5px; }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 22px;
    transform: translateY(-140%); transition: transform .32s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .lang-switch { border-left: 0; padding-left: 0; margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 88% -8%, rgba(255,94,19,.20), transparent 60%),
    radial-gradient(800px 460px at 6% 110%, rgba(79,140,255,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-block: 84px 92px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--orange); }
.hero .lead { font-size: 1.18rem; color: #c9d4ee; max-width: 46ch; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-badges img { height: 34px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; list-style: none; padding: 0; }
.trust-pills li { font-size: .9rem; color: #aebbd8; display: flex; align-items: center; gap: 8px; }
.trust-pills li::before { content: "✓"; color: var(--orange); font-weight: 800; }

/* hero visual */
.hero-visual { position: relative; }
.flowcard {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px);
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 84px; }
.section { padding-block: 84px; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { font-size: 1.1rem; color: var(--text); }
.section-head .eyebrow { color: var(--orange); justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(255,94,19,.14), rgba(0,27,94,.10)); color: var(--orange);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .98rem; margin: 0; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.split .checklist { margin-top: 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,94,19,.12); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.checklist b { display: block; color: var(--ink); }
.checklist span { font-size: .96rem; }

/* ---------- Systems / logos band ---------- */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.syschip {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); text-align: center; align-items: center;
}
.syschip .t { font-weight: 800; color: var(--navy); font-size: 1rem; }
.syschip .d { font-size: .82rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat .n { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.stat .n .u { color: var(--orange); }
.stat .l { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- AI banner ---------- */
.aibanner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius); color: #fff; padding: 50px; position: relative; overflow: hidden;
}
.aibanner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,94,19,.30), transparent 70%); }
.aibanner h2 { color: #fff; }
.aibanner p { color: #c9d4ee; max-width: 60ch; }
.aibanner .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.aibanner .pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 16px; font-size: .88rem; font-weight: 600; }
.tag-optional { display: inline-block; background: rgba(255,94,19,.2); color: var(--orange-2); border: 1px solid rgba(255,94,19,.4); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.step { position: relative; padding: 30px 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 11px; background: var(--orange); color:#fff; font-weight:800; display:grid; place-items:center; box-shadow: 0 8px 18px -8px rgba(255,94,19,.8); }
.step h3 { margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.contact-info .card-info { background: var(--navy); color:#fff; border-radius: var(--radius); padding: 34px; }
.contact-info .card-info h3 { color:#fff; }
.contact-info .card-info a { color: var(--orange-2); }
.contact-info .meta { list-style:none; padding:0; margin: 18px 0 0; display:grid; gap:16px; }
.contact-info .meta li { display:flex; gap:14px; align-items:flex-start; color:#c9d4ee; font-size:.96rem; }
.contact-info .meta svg { flex:0 0 22px; color: var(--orange-2); margin-top:2px; }
.contact-info .meta b { color:#fff; display:block; }

.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:700; color: var(--ink); font-size:.9rem; margin-bottom:7px; }
.field input, .field select, .field textarea {
  width:100%; padding: 13px 15px; border:1.5px solid var(--line); border-radius: 11px; font: inherit; color: var(--ink);
  background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,94,19,.12); }
.field .req { color: var(--orange); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:.85rem; color: var(--muted); }
.consent input { width:18px; height:18px; margin-top:3px; flex:0 0 auto; }
.form .btn { width:100%; justify-content:center; margin-top: 6px; }
.form-note { font-size:.8rem; color: var(--muted); margin-top:14px; text-align:center; }
.alert { padding:14px 18px; border-radius:11px; font-size:.92rem; margin-bottom:20px; }
.alert-error { background:#fdecec; color:#a3261d; border:1px solid #f5c6c2; }
.alert-ok { background:#e9f8ef; color:#1c7a44; border:1px solid #b8e6c9; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline:auto; }
.faq details { border:1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; background:#fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor:pointer; font-weight:700; color: var(--ink); padding: 16px 0; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--orange); font-size:1.4rem; font-weight:700; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; margin:0; font-size:.98rem; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(135deg, var(--orange) 0%, var(--red, #ee390f) 100%); color:#fff; border-radius: var(--radius); padding: 48px; text-align:center; }
.cta-strip h2 { color:#fff; }
.cta-strip p { color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 auto 24px; }
.cta-strip .btn-brand { background:#fff; color: var(--navy); }
.cta-strip .btn-brand:hover { background: var(--navy); color:#fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color:#aebbd8; padding-top: 64px; font-size:.95rem; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { color:#9fb0d8; max-width: 38ch; font-size:.92rem; }
.footer-logos { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.footer-logos img { height: 38px; background:#fff; border-radius:8px; padding:6px 10px; }
.footer-col h4 { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col a { display:block; color:#9fb0d8; padding:5px 0; font-weight:500; }
.footer-col a:hover { color: var(--orange-2); }
.footer-legal { border-top:1px solid rgba(255,255,255,.1); padding-block: 22px; }
.footer-legal .row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:center; }
.footer-legal a { color:#9fb0d8; }
.footer-legal a:hover { color: var(--orange-2); }
.footer-tm { font-size:.78rem; color:#6f7fa6; margin-top:14px; line-height:1.6; }

/* ---------- Legal pages ---------- */
.legal-main { padding-block: 56px 80px; }
.legal-main .container { max-width: 860px; }
.legal-main h1 { margin-bottom: .4em; }
.legal-main h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal-main address { font-style: normal; line-height: 1.8; }
.breadcrumb { font-size:.85rem; color: var(--muted); margin-bottom: 22px; }
.legal-note { background: var(--bg-tint); border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size:.92rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 70px; }
  .hero-visual { order: 2; }
  .grid-3, .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .grid-3, .grid-4, .grid-2, .steps, .stats, .form-row { grid-template-columns: 1fr; }
  .aibanner, .cta-strip { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .brand img { height: 32px; }
  .brand-text { padding-left: 12px; }
  .brand-text b { font-size: .95rem; }
}
