/* ==========================================================================
   SwansonX — site styles
   Blue + white trust palette. Edit the tokens below to restyle the whole site.
   ========================================================================== */

:root {
  /* --- Brand colours (change these to recolour everything) --- */
  --navy:        #0A2540;
  --navy-soft:   #143A5E;
  --blue:        #1D6FE0;
  --blue-dark:   #1558B8;
  --blue-100:    #E8F1FE;
  --blue-50:     #F5F9FF;
  --sky:         #38BDF8;

  --ink:         #10233A;
  --muted:       #55677D;
  --border:      #DCE6F2;
  --white:       #FFFFFF;
  --off:         #F7FAFF;

  --ok:          #0E9F6E;

  /* --- Type --- */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Shape --- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 1px 3px rgba(10, 37, 64, .05);
  --shadow:    0 4px 6px -1px rgba(10, 37, 64, .07), 0 10px 20px -6px rgba(10, 37, 64, .10);
  --shadow-lg: 0 20px 45px -15px rgba(10, 37, 64, .22);

  --maxw: 1140px;
  --gut: 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img, video { display: block; max-width: 100%; height: auto; }
/* SVGs keep their own width/height attributes. Forcing height:auto here makes
   Firefox stretch inline icons to fill their flex container. */
svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout helpers --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tint { background: var(--blue-50); border-block: 1px solid var(--border); }
.section--navy { background: var(--navy); color: #C9DAF0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--sky); }

.lede { font-size: clamp(1.03rem, .98rem + .3vw, 1.2rem); color: var(--muted); }
.section--navy .lede { color: #A9C4E4; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(29,111,224,.65); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px -8px rgba(29,111,224,.7); }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--light:hover { background: #fff; color: var(--navy); }

.btn--lg { padding: 17px 34px; font-size: 1.03rem; }
.btn--block { width: 100%; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--navy); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  /* The swan is white, so it needs a dark tile to read against the header. */
  background: #080A10;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 10px -3px rgba(10,37,64,.45);
}
.brand__mark img { width: 26px; height: auto; }
.site-footer .brand__mark { box-shadow: none; background: #05070C; }

.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; }
.nav__links a {
  color: var(--navy); font-weight: 600; font-size: .95rem; position: relative; padding-block: 6px;
}
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm);
  width: 42px; height: 42px; cursor: pointer; place-items: center; color: var(--navy);
}

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px var(--gut) 20px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__cta .btn--ghost { display: none; }
}

/* Phones: drop the header quote button so the top bar can't overflow sideways.
   The CTA still appears in the hero and at the bottom of every page. */
@media (max-width: 640px) {
  .nav__cta .btn { display: none; }
}

/* --- Blog post cover --- */
/* --- Post byline --- */
.byline { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.byline__pic {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: var(--shadow-sm); background: var(--blue-50);
}
.byline__text { display: flex; flex-direction: column; gap: 2px; }
.byline .by { font-weight: 700; color: var(--blue); font-size: .92rem; }
.byline .post-meta { margin-bottom: 0; }

/* --- About portrait --- */
.portrait { margin: 0 auto 18px; width: 132px; }
.portrait img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--shadow); background: var(--blue-50);
}

/* --- Testimonial band --- */
.testimonial { padding: 40px 0 4px; }
.testimonial__card {
  max-width: 840px; margin-inline: auto; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 34px; box-shadow: var(--shadow);
}
.testimonial__stars { display: flex; flex-wrap: nowrap; justify-content: center; gap: 3px; color: #F5A623; margin-bottom: 14px; }
.testimonial__stars svg { width: 19px; height: 19px; flex: none; }
.testimonial__quote {
  font-family: var(--font-head); font-size: 1.1rem; line-height: 1.62;
  color: var(--navy); margin: 0; font-weight: 500;
}
.testimonial__cite {
  display: block; margin-top: 16px; font-style: normal;
  font-size: .9rem; font-weight: 700; color: var(--muted);
}
@media (max-width: 560px) {
  .testimonial { padding-top: 28px; }
  .testimonial__card { padding: 24px 20px; }
  .testimonial__quote { font-size: 1.01rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(60px, 8vw, 108px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(56,189,248,.20), transparent 62%),
    radial-gradient(760px 420px at 8% 4%, rgba(29,111,224,.14), transparent 58%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 78%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--blue) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: var(--muted); max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.trustline { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; font-size: .92rem; color: var(--muted); font-weight: 500; }
.trustline li { display: flex; align-items: center; gap: 7px; }
.trustline svg { color: var(--ok); flex: none; }

/* Hero visual — the "browser" mock */
.mock {
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(.6deg);
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--off); border-bottom: 1px solid var(--border); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD9EA; flex: none; }
.mock__url { margin-left: 8px; font-size: .74rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.mock__hero { height: 92px; border-radius: var(--r); background: linear-gradient(120deg, var(--navy), var(--blue)); }
.mock__line { height: 10px; border-radius: 999px; background: var(--blue-100); }
.mock__line--short { width: 55%; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__card { height: 58px; border-radius: var(--r-sm); background: var(--off); border: 1px solid var(--border); }
.mock__btn { height: 34px; width: 128px; border-radius: 999px; background: var(--blue); }

/* --- Cards / grids --- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C2D6F0; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .97rem; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue);
}
.section--navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--navy .card p { color: #A9C4E4; }
.section--navy .icon { background: rgba(56,189,248,.16); color: var(--sky); }

/* --- Section heading block --- */
.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.head.center { margin-inline: auto; }
.head h2 { margin-bottom: 14px; }

/* --- Steps --- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.section--navy .step::before { background: var(--sky); color: var(--navy); }
.section--navy .step p { color: #A9C4E4; }

/* --- Comparison table --- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
table.cmp thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .92rem; letter-spacing: .01em; }
table.cmp thead th:first-child { border-top-left-radius: var(--r-lg); }
table.cmp thead th:last-child { border-top-right-radius: var(--r-lg); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 600; color: var(--navy); }
table.cmp .yes { color: var(--ok); font-weight: 700; }
table.cmp .no  { color: #94A6BD; }

/* --- Pricing --- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.price { position: relative; display: flex; flex-direction: column; height: 100%; }
.price--featured { border-color: var(--blue); box-shadow: 0 18px 40px -18px rgba(29,111,224,.45); }
.price__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px;
  white-space: nowrap;
}
.price__name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.price__amt { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.price__amt small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__note { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.price hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

.ticks { list-style: none; padding: 0; display: grid; gap: 11px; margin-bottom: 26px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.ticks svg { flex: none; margin-top: 4px; color: var(--ok); }
.price .btn { margin-top: auto; }

/* --- FAQ --- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 20px; color: var(--muted); font-size: .97rem; }
.faq details + details { margin-top: 0; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #143C6B 55%, var(--blue-dark) 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #B9D0EC; max-width: 56ch; margin: 0 auto 28px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Contact form --- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .93rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,111,224,.14);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* --- Blog --- */
.post-list { display: grid; gap: 22px; }
.post-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C2D6F0; text-decoration: none; }
.post-card h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .98rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.post-meta .by { font-weight: 600; color: var(--blue); }

.post-header { padding-block: clamp(40px, 5vw, 68px) 0; }
.post-body { max-width: 720px; margin-inline: auto; padding-block: 36px clamp(50px, 6vw, 80px); font-size: 1.06rem; }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 { font-size: 1.6rem; margin-top: 2em; }
.post-body h3 { font-size: 1.25rem; margin-top: 1.7em; }
.post-body ul, .post-body ol { padding-left: 1.4em; display: grid; gap: .5em; }
.post-body blockquote {
  border-left: 4px solid var(--blue); background: var(--blue-50);
  padding: 16px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--navy); font-style: italic;
}
.post-body code { background: var(--blue-50); border: 1px solid var(--border); padding: .12em .42em; border-radius: 5px; font-size: .88em; }
.post-body pre { background: var(--navy); color: #DCE9FA; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font-size: .9rem; }
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.post-body img { border-radius: var(--r); border: 1px solid var(--border); }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }

.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .93rem; margin-bottom: 18px; }

.empty-note { background: var(--blue-50); border: 1px dashed #B9CFEC; border-radius: var(--r); padding: 26px; color: var(--muted); text-align: center; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: #A9C4E4; padding-block: 56px 30px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .93rem; max-width: 40ch; }
.footer__title { font-family: var(--font-head); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__list a { color: #A9C4E4; font-size: .93rem; }
.footer__list a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .87rem;
}

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.stack-24 > * + * { margin-top: 24px; }

/* --- Contact form status message --- */
.form-status {
  border-radius: var(--r);
  padding: 18px 20px;
  font-size: .97rem;
  line-height: 1.6;
  border: 1.5px solid;
}
.form-status--ok  { background: #ECFDF5; border-color: #A7E5CB; color: #08543C; }
.form-status--err { background: #FEF2F2; border-color: #F6C6C6; color: #8A1C1C; }
.form-status a { color: inherit; text-decoration: underline; }
