/* Nomad Technologies — one column of reading width, wider grids for products, a route motif from the
   mark (a start dot, a path, a destination ring) used sparingly as section markers. */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --sunken: #e9eef2;
  --ink: #0f1e33;
  --muted: #4e5d70;
  --line: #dce3e9;
  --accent: #0e6f65;
  --accent-bright: #5cc6b4;
  --accent-soft: #e2f3ef;
  --tile: #0f1e33;
  --on-tile: #ffffff;
  --iw-navy: #123a6b;
  --iw-blue: #2f6fb0;
  --iw-gold: #e9a23b;
  --iw-soft: #eaf1fa;
  --shadow: 0 1px 2px rgba(15, 30, 51, 0.06), 0 8px 24px rgba(15, 30, 51, 0.06);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --brand-iw: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b131d;
    --surface: #121d2a;
    --sunken: #0e1824;
    --ink: #eef3f7;
    --muted: #a3b1c0;
    --line: #233244;
    --accent: #5cc6b4;
    --accent-bright: #5cc6b4;
    --accent-soft: #12302c;
    --tile: #1a2a3c;
    --on-tile: #ffffff;
    --iw-soft: #17345a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.read { max-width: 72ch; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
section { padding-block: clamp(56px, 8vw, 104px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand span span { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sunken); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Route marker: the mark's start dot, path and destination ring, before section titles */
.route { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.route i { display: block; }
.route .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); }
.route .path { width: 36px; height: 2px; background: var(--line); }
.route .ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--accent-bright); }

/* Phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone { width: min(260px, 70vw); border-radius: 34px; padding: 9px; background: #0f1e33; box-shadow: 0 30px 60px -20px rgba(15, 30, 51, 0.45); }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 778; object-fit: cover; object-position: top; background: #f3f6fa; }
.phone.small { width: min(220px, 60vw); }
.phones .phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 560px) { .phones .phone:nth-child(2) { display: none; } }
figure { margin: 0; }
figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--muted); text-align: center; max-width: 30ch; margin-inline: auto; }

/* Cards and grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 820px) { .product { grid-template-columns: minmax(0, 1fr); } }
.product .phone { margin-inline: auto; }
.product-title { display: flex; align-items: center; gap: 14px; }
.product-title img { width: 52px; height: 52px; }
.pill { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill-quiet { background: var(--sunken); color: var(--muted); }
.placeholder { border-style: dashed; background: transparent; }

/* Incomewise brand bits */
.iw-word { font-family: var(--brand-iw); color: var(--iw-blue); letter-spacing: -0.01em; }
.iw-word b { font-weight: 600; }
.iw-word span { font-weight: 400; }
@media (prefers-color-scheme: dark) { .iw-word { color: #a9c8ea; } }
.iw-band { background: var(--iw-soft); }
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.split i { display: block; }
.split .s { flex: 20; background: var(--iw-gold); }
.split .n { flex: 50; background: var(--iw-navy); }
.split .w { flex: 30; background: var(--iw-blue); }
@media (prefers-color-scheme: dark) { .split .n { background: #a9c8ea; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.legend .s::before { background: var(--iw-gold); }
.legend .n::before { background: var(--iw-navy); }
.legend .w::before { background: var(--iw-blue); }
@media (prefers-color-scheme: dark) { .legend .n::before { background: #a9c8ea; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { list-style: none; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 14px; }
.steps { padding: 0; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.band { background: var(--tile); color: var(--on-tile); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; }
.band p { color: rgba(255, 255, 255, 0.78); }
.band .btn-primary { background: #ffffff; color: #0f1e33; }
.band a:not(.btn) { color: #9fe3d7; }

details { border-bottom: 1px solid var(--line); padding-block: 16px; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin-top: 10px; color: var(--muted); }

/* Legal and long reading pages */
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 44px; margin-bottom: 12px; }
.doc h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.1rem; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0; }
.doc .meta { color: var(--muted); margin-top: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--sunken); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h2 { font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.copyright { margin-top: 36px; color: var(--muted); font-size: 0.88rem; }
