/* Swyft Advance — direction 3b "Cream & aubergine" (approved by Inga Pross, 2026-09-01) */
:root {
  --cream: #F7F3EC;
  --paper: #FDFBF7;
  --white: #ffffff;
  --line: #E6DFD2;
  --ink: #3A2244;
  --aubergine: #4A2355;
  --aubergine-deep: #351840;
  --berry: #A5457E;
  --berry-dark: #8A3468;
  --body: #6B5876;
  --muted: #9B8AA5;
  --lilac: #C9B4D2;
  --error: #B3261E;
  --ok: #2F6B4F;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 48px rgba(74, 35, 85, .10);
  --wrap: 1200px;
  /* Type scale: serif titles + numbers at 600, Public Sans for everything else */
  --fs-h1: 58px; --fs-h2: 40px; --fs-h3: 26px; --fs-h4: 22px; --fs-num: 27px; --fs-num-lg: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; }
h1, h2, h3, h4 { line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 52px; }
.serif { font-family: var(--serif); }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--berry); }
.sr-only { position: absolute; 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; font-family: var(--sans); font-weight: 600; font-size: 15.5px; padding: 15px 32px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-berry { background: var(--berry); color: #fff; }
.btn-berry:hover { background: var(--berry-dark); }
.btn-aub { background: var(--aubergine); color: var(--cream); }
.btn-aub:hover { background: var(--aubergine-deep); }
.btn-ghost { background: transparent; color: var(--aubergine); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--aubergine); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-under { font-size: 14.5px; font-weight: 600; color: var(--aubergine); text-decoration: none; border-bottom: 1.5px solid var(--aubergine); padding-bottom: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: #5C4568; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--berry); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .phone { font-size: 14px; font-weight: 600; color: var(--aubergine); text-decoration: none; }
.header-cta .btn { padding: 11px 26px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--aubergine); cursor: pointer; }

/* Hero */
.hero .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 1.08; font-weight: 600; color: var(--ink); margin-top: 12px; text-wrap: pretty; }
.hero .lede { font-size: 17px; line-height: 1.7; color: var(--body); margin-top: 20px; max-width: 470px; }
.hero .actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; color: var(--aubergine); line-height: 1.2; }
.stat:last-child b { color: var(--berry); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Card + fields */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card h2, .card h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; color: var(--ink); }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fields { display: grid; gap: 12px; margin-top: 20px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(165, 69, 126, .15); background: #fff; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A5457E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field.invalid .input, .field.invalid .dropzone, .field.invalid .sigpad { border-color: var(--error); }
.field .err { display: none; font-size: 12.5px; color: var(--error); margin-top: 5px; }
.field.invalid .err { display: block; }
.row { display: grid; gap: 14px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.row-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* Solutions band */
.band { background: var(--aubergine); color: var(--cream); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; }
.band .eyebrow { color: var(--lilac); }
.band h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; margin-top: 8px; max-width: 640px; }
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.solution h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; }
.solution p { font-size: 14px; line-height: 1.65; color: var(--lilac); margin-top: 8px; }
.solution .num { font-family: var(--serif); font-style: italic; color: #E7A6CB; font-size: 15px; margin-bottom: 10px; }

/* Generic sections */
.section .wrap { padding-top: 88px; padding-bottom: 88px; }
.section h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; margin-top: 8px; color: var(--ink); text-wrap: pretty; }
.section .intro { font-size: 17px; color: var(--body); margin-top: 16px; max-width: 620px; line-height: 1.7; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; color: var(--berry); font-size: 18px; }
.step h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; margin-top: 10px; }
.step p { font-size: 14.5px; color: var(--body); margin-top: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--body); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--aubergine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23F7F3EC' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }

.program { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.program + .program { margin-top: 24px; }
.program h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; }
.program > p { color: var(--body); margin-top: 10px; max-width: 720px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin-top: 28px; }
.benefit b { display: block; font-size: 15px; color: var(--aubergine); }
.benefit span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; line-height: 1.6; }

.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 18px; font-size: 14px; color: var(--aubergine); font-weight: 500; }

.example { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.example dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 22px; }
.example dt { font-size: 12.5px; color: var(--muted); }
.example dd { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; color: var(--aubergine); }
.example p { font-size: 14.5px; color: var(--body); margin-top: 10px; }
.example p b { color: var(--ink); }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--berry); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--body); max-width: 760px; }

/* CTA */
.cta { text-align: center; }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; color: var(--cream); margin: 0 auto; max-width: 760px; }
.cta p { color: var(--lilac); margin-top: 12px; font-size: 17px; }
.cta .actions { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.cta .btn-ghost { color: var(--cream); border-color: rgba(247, 243, 236, .35); }
.cta .btn-ghost:hover { border-color: var(--cream); }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; font-size: 13px; color: var(--muted); }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--berry); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; line-height: 1.6; }

/* Legal pages */
.legal .wrap { max-width: 860px; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.1; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal .doc { margin-top: 36px; color: var(--body); font-size: 15.5px; }
.legal .doc h2, .legal .doc h3, .legal .doc h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 32px 0 10px; line-height: 1.3; }
.legal .doc h2 { font-size: 26px; } .legal .doc h3 { font-size: 21px; } .legal .doc h4 { font-size: 18px; }
.legal .doc p, .legal .doc ul, .legal .doc ol { margin: 0 0 14px; }
.legal .doc ul, .legal .doc ol { padding-left: 22px; }
.legal .doc li { margin-bottom: 6px; }
.legal .doc a { color: var(--berry); }

/* Responsive */
@media (max-width: 1080px) {
  .solutions, .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .header-cta .phone { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header .wrap { position: relative; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; }
  .section h2, .band h2 { font-size: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .solutions, .steps, .benefits, .example dl { grid-template-columns: 1fr; }
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .program { padding: 26px 20px; }
  .stats { gap: 24px; }
  .header-cta .btn { padding: 10px 18px; }
  .logo img { height: 34px; }
  .cta h2 { font-size: 32px; }
}
