/* AFHultin & Co — shared look for every page: a pale blue ground with white cards, one blue, navy ink,
   a navy menu and a navy top on every page, round corners, soft shadows, and solid blue blocks.
   Tokens, type, buttons, the site menu, the site footer and the policy-page layout live here.
   Page-specific styles go in each page's own stylesheet. */
:root {
  color-scheme: light;
  --bg: #E8ECFF;
  --bg-2: #DCE2FF;
  --surface: #FFFFFF;
  --surface-2: #F3F5FF;
  --ink: #0A0F3C;                 /* the page's own text colours. Never remapped, so a light card inside a navy */
  --ink-2: #2E355F;               /* or blue block can take them back */
  --ink-3: #555C85;
  --ink-line: rgba(10, 15, 60, .16);
  --ink-line-2: rgba(10, 15, 60, .55);
  --line: var(--ink-line);
  --line-2: var(--ink-line-2);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: var(--ink-3);
  --acc: #2036F5;
  --acc-2: #4658FF;
  --acc-ink: #FFFFFF;
  --acc-soft: rgba(32, 54, 245, .1);
  --acc-text: #2036F5;   /* the accent when it is text or a thin line on the ground or a panel */
  --wire-bg: #2036F5;    /* the builder's blueprint: its ground and its lines */
  --wire-ink: #FFFFFF;
  --edge: 1px solid rgba(10, 15, 60, .12);      /* a panel's outline */
  --lift: 0 1px 2px rgba(10, 15, 60, .05), 0 18px 40px -18px rgba(10, 15, 60, .25);   /* and its soft shadow */
  --block: #2036F5;               /* the solid feature blocks: the plans band and the total */
  --block-ink: #FFFFFF;
  --block-ink-2: #DDE2FF;
  --block-line: rgba(255, 255, 255, .5);
  --block-acc: #FFFFFF;           /* a button or a highlight inside a block, and the type on it */
  --block-acc-ink: #2036F5;
  --foot: #0A0F3C;                /* navy: the menu, every page's top, the founder block and the footer */
  --foot-ink: #FFFFFF;
  --foot-ink-2: #C9CFF2;
  --foot-line: rgba(255, 255, 255, .2);
  --foot-acc: #8FA0FF;
  --coral: var(--acc-text);
  --sun: var(--acc-text);
  --blue: var(--acc-text);
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1200px;
  --pad: 40px;
  --gap: 16px;
  --sec: 88px;    /* the space above every section, on every page */
  --head: 28px;   /* the space under a section's heading */
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.2, .7, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.022em; line-height: 1.06; text-wrap: balance; }
/* Inter Tight sets its words close together; open them a little wherever it carries more than one word */
h1, h2, h3, .logo, .lane-name, .build-name, .pz-name, .pz-cap, .svc-name, .adder-name, .ex-plan, .ex-teaser { word-spacing: .05em; }
/* the punch word of a headline: in the accent on a light ground, in an accent box on the navy top */
.hot { color: var(--acc-text); }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc); color: var(--acc-ink); }
[id] { scroll-margin-top: 96px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
/* one rhythm: every section starts the same distance under the one before it, and every section heading
   sits the same distance over what it heads. A page's top section sets its own padding. */
main > section { padding-top: var(--sec); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 32px; margin-bottom: var(--head); }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 50px); }
.sec-note { font-size: 15px; color: var(--text-2); max-width: 46ch; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5ch;
  padding: 13px 22px; border-radius: 99px;
  border: 1.5px solid var(--line-2); background: transparent; color: var(--text);
  font: 600 15px/20px var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--out);
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: var(--acc-2); border-color: var(--acc-2); }
.btn .arr { transition: transform .25s var(--out); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- site menu ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);   /* solid, so it meets the navy top of the page without a seam */
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; word-spacing: .08em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo i { font-style: normal; color: var(--acc-text); }
.nav-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { padding: 10px 18px; }

/* ---------- navy: the menu, every page's top section, the founder block and the footer.
   Inside one, every colour is navy's own ---------- */
.site-nav, .hero, .phero, .site-foot {
  color: var(--text);
  --bg: var(--foot); --text: var(--foot-ink); --text-2: var(--foot-ink-2); --muted: var(--foot-ink-2);
  --line: var(--foot-line); --line-2: rgba(255, 255, 255, .6);
  --acc-text: var(--foot-acc); --acc-soft: rgba(255, 255, 255, .16);
}
/* the top runs the full width of the window, whatever the width of its content */
.hero, .phero { background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); padding-bottom: 52px; }
.hero .hot, .phero .hot { display: inline-block; padding: 0 .14em; border-radius: .16em; background: var(--acc); color: var(--acc-ink); }
/* a light card inside the top takes the page's own colours back */
.hero .sample, .hero .lane, .phero .thread {
  color: var(--text);
  --bg: var(--surface); --text: var(--ink); --text-2: var(--ink-2); --muted: var(--ink-3);
  --line: var(--ink-line); --line-2: var(--ink-line-2);
  --acc-text: var(--acc); --acc-soft: color-mix(in srgb, var(--acc) 10%, transparent);
}

/* ---------- site footer ---------- */
.site-foot { margin-top: var(--sec); background: var(--foot); }
.foot-in { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.foot-brand .logo { display: inline-block; font-size: 24px; }
.foot-brand p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 30ch; }
.foot-col h2 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-col a, .foot-col li { font-size: 15px; color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }

/* ---------- policy pages ---------- */
.doc { max-width: 780px; padding-top: 48px; }
.doc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.doc-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.doc h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 64px); }
.doc-meta { margin-top: 16px; color: var(--muted); font-size: 15px; }
.doc-short { margin-top: 36px; padding: 26px 28px; border-radius: var(--r); background: var(--surface); border: var(--edge); box-shadow: var(--lift); }
.doc-short h2 { font-size: 20px; margin-bottom: 12px; }
.doc-short ul { padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.doc-body { margin-top: 36px; }
.doc-body h2 { font-size: 26px; margin: 36px 0 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-family: var(--body); font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 26px 0 8px; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body p + p { margin-top: 12px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin-top: 10px; display: grid; gap: 8px; }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body a { color: var(--acc-text); }
.doc-contact { margin-top: 56px; padding: 28px; border-radius: var(--r); }
.doc-contact h2 { font-size: 24px; }
.doc-contact p { margin-top: 8px; }
.doc-contact .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- feature blocks: the plans band and the total. Inside one, every colour is the block's ---------- */
.plans-in, .adder-sum {
  background: var(--block); color: var(--block-ink);
  --text: var(--block-ink); --text-2: var(--block-ink-2); --muted: var(--block-ink-2);
  --line: var(--block-line); --line-2: var(--block-line);
  --acc: var(--block-acc); --acc-2: var(--block-acc); --acc-ink: var(--block-acc-ink); --acc-text: var(--block-acc);
  --acc-soft: color-mix(in srgb, var(--block-acc) 16%, transparent);
}

/* ---------- closing cards: a solid accent block ---------- */
.contact-card, .cta-card, .doc-contact { background: var(--acc); color: var(--acc-ink); box-shadow: var(--lift); }
.contact-card p, .cta-card p, .doc-contact p { color: var(--acc-ink); }
.contact-card h2 span, .cta-card h2 em { color: var(--acc-ink); }
.contact-card .btn, .cta-card .btn, .doc-contact .btn { border-color: var(--acc-ink); color: var(--acc-ink); }
.contact-card .btn-acc, .cta-card .btn-acc, .doc-contact .btn-acc { background: var(--acc-ink); border-color: var(--acc-ink); color: var(--acc); }
.contact-card .btn-acc:hover, .cta-card .btn-acc:hover, .doc-contact .btn-acc:hover { background: var(--acc-ink); border-color: var(--acc-ink); }
.contact-card :focus-visible, .cta-card :focus-visible, .doc-contact :focus-visible { outline-color: var(--acc-ink); }
.contact-card a:not(.btn), .cta-card a:not(.btn), .doc-contact a:not(.btn) { color: var(--acc-ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .nav-in { gap: 20px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; --sec: 60px; --head: 22px; }
  .nav-in { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
  .logo { font-size: 19px; }
  .nav-links {
    order: 3; width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none;
    padding: 12px 0; margin-top: 10px; border-top: 1px solid var(--line);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
  .nav-links a[href$="#contact"] { display: none; }  /* the Text us button is right above it */
  .nav-cta { padding: 8px 16px; font-size: 14px; }
  .doc { padding-top: 32px; }
  .doc-short, .doc-contact { padding: 22px 20px; }
}
@media (max-width: 380px) {
  .foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arr, .site-nav { transition: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-nav, .skip { position: static; background: none; }
  .nav-links, .nav-cta { display: none; }
  .site-nav, .hero, .phero, .me, .site-foot { background: none; box-shadow: none; clip-path: none; color: #000; --text: #000; --text-2: #000; --muted: #000; --acc-text: #000; }
  .doc-body p, .doc-body li, .doc-short ul { color: #000; }
}
@media (max-width: 380px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
}
