/* ===== CarrierShift AI: base styles ===== */
:root {
  --bg: #0b1525;
  --bg-alt: #0e1a2e;
  --surface: #13243b;
  --surface-2: #182e4b;
  --border: #243b58;
  --text: #f4f7fb;
  --muted: #9cabbf;
  --accent: #a8e944;        /* logo lime: profit, highlights */
  --blue: #2864ff;          /* logo blue: buttons, links */
  --blue-light: #3fb8ff;    /* "Shift" gradient end */
  --accent-dark: #95d533;
  --warn: #f5b942;
  --loss: #ff5c5c;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.accent { color: var(--accent); }
.grad {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 22px 0 32px; }
.sub { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.mission-punch { color: var(--accent); font-weight: 800; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: 10px; border: 2px solid var(--blue);
  transition: background .2s, transform .2s, box-shadow .2s; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: #1f55e6; border-color: #1f55e6; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(40,100,255,.3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,21,37,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { border-radius: 9px; }
/* Text version of the logo name, matching the lockup: white "Carrier", blue-gradient "Shift", small lime "AI" */
.wordmark { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.wordmark .shift { background: linear-gradient(90deg, var(--blue), var(--blue-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .ai { color: var(--accent); font-size: 0.6em; font-weight: 800; margin-left: 4px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 90px 0 100px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(40,100,255,.22), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .18;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 0.92rem; flex-wrap: wrap; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

.hero-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; }
.hc-title { font-weight: 700; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; }
.pill { font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.pill-warn { background: rgba(245,185,66,.14); color: var(--warn); }
.hc-route { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; font-weight: 700; font-size: 1.1rem; }
.hc-route svg { width: 60px; color: var(--blue-light); flex-shrink: 0; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-stats div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.hc-stats dt { font-size: 0.78rem; color: var(--muted); }
.hc-stats dd { font-size: 1.2rem; font-weight: 700; }
.hc-result {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
  padding: 16px; border-radius: 10px; background: rgba(245,185,66,.08); border: 1px solid rgba(245,185,66,.3);
}
.hc-result strong { font-size: 1.6rem; color: var(--warn); }
.hc-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* Mission flow */
.shift-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.shift-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.shift-step h3 { margin: 12px 0 10px; }
.shift-step p { color: var(--muted); }
.shift-step:last-child { border-color: rgba(168,233,68,.45); background: linear-gradient(180deg, rgba(168,233,68,.08), var(--surface)); }
.shift-arrow { align-self: center; color: var(--blue-light); font-size: 1.6rem; }
.step-num { font-size: 0.85rem; font-weight: 800; color: var(--accent); letter-spacing: .08em; }

/* ===== Calculator ===== */
.calc { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; }
.calc-inputs { display: grid; gap: 22px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
legend { padding: 0 8px; font-weight: 700; font-size: 1rem; }
.hint { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 8px 0 12px; }
.hint:not(:first-of-type) { margin-top: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); font-size: 0.78rem; margin-top: -4px; }
input, select, textarea {
  margin-top: auto;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; font-size: 1rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,255,.25); }
textarea { resize: vertical; }

.calc-results {
  position: sticky; top: 90px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px;
}
.verdict { border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; transition: background .2s, border-color .2s; border: 1px solid; }
.verdict-label { font-weight: 800; font-size: 1.05rem; }
.verdict-text { font-size: 0.88rem; color: var(--muted); }
.verdict.good { background: rgba(168,233,68,.1); border-color: rgba(168,233,68,.4); }
.verdict.good .verdict-label { color: var(--accent); }
.verdict.warn { background: rgba(245,185,66,.1); border-color: rgba(245,185,66,.4); }
.verdict.warn .verdict-label { color: var(--warn); }
.verdict.bad { background: rgba(255,92,92,.1); border-color: rgba(255,92,92,.45); }
.verdict.bad .verdict-label { color: var(--loss); }

.big-number { text-align: center; padding: 22px 0 16px; }
.big-number span { font-size: 0.85rem; color: var(--muted); }
.big-number strong { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0; }
.big-number em { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.big-number strong.pos { color: var(--accent); }
.big-number strong.neg { color: var(--loss); }

.result-list { display: grid; gap: 8px; font-size: 0.92rem; }
.result-list > div { display: flex; justify-content: space-between; gap: 12px; }
.result-list dt { color: var(--muted); }
.result-list dt strong { color: var(--text); }
.result-list dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.result-list .divider { height: 1px; background: var(--border); margin: 6px 0; }
.result-list .highlight { background: rgba(168,233,68,.08); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
.result-list .highlight dt { color: var(--text); font-weight: 600; }
.result-list .highlight dd { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.calc-foot { font-size: 0.78rem; color: var(--muted); margin: 18px 0 16px; }

/* ===== Featured service + Rate Card ===== */
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  background: rgba(168,233,68,.14); color: var(--accent);
}
.rate-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rc-head img { border-radius: 8px; }
.rc-kicker { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.rc-head strong { font-size: 1.35rem; font-weight: 800; }
.rc-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 10px; border: 1px solid; border-left-width: 4px;
}
.rc-row span { font-weight: 800; font-size: 1.05rem; }
.rc-row em { font-style: normal; color: var(--muted); font-size: 0.85rem; grid-row: 2; }
.rc-row strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-row small { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.rc-premium { background: rgba(168,233,68,.08); border-color: rgba(168,233,68,.35); }
.rc-premium span, .rc-premium strong { color: var(--accent); }
.rc-target { background: rgba(40,100,255,.1); border-color: rgba(63,184,255,.35); }
.rc-target span, .rc-target strong { color: var(--blue-light); }
.rc-floor { background: rgba(255,92,92,.07); border-color: rgba(255,92,92,.4); }
.rc-floor span { color: var(--loss); }
.rc-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ===== Service page ===== */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--text); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.nav-links a[aria-current="page"] { color: var(--text); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.tile h3 { margin: 10px 0 8px; }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile .step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; }
/* AI-areas grid */
.areas .tile { transition: border-color .2s, transform .2s; }
.areas .tile:hover { border-color: rgba(63,184,255,.45); transform: translateY(-3px); }
.areas .tile h3 { margin-top: 16px; }
.area-icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(40,100,255,.14); color: var(--blue-light);
}
.area-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-cta {
  display: flex; flex-direction: column; justify-content: center;
  border-color: rgba(168,233,68,.4); background: linear-gradient(180deg, rgba(168,233,68,.1), var(--surface));
}
.tile-cta h3 { margin-top: 6px !important; }
.tile-link { margin-top: 14px; font-weight: 700; color: var(--accent); }
.tile-link-card { display: block; border-color: rgba(168,233,68,.35); }

/* Hero chat example */
.pill-blue { background: rgba(40,100,255,.18); color: var(--blue-light); }
.chat-msg { border-radius: 14px; padding: 14px 16px; font-size: 0.95rem; margin-top: 14px; }
.chat-user { background: var(--blue); color: #fff; margin-left: 48px; border-bottom-right-radius: 4px; }
.chat-ai { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--border); margin-right: 24px; border-bottom-left-radius: 4px; }
.chat-ai img { border-radius: 6px; flex-shrink: 0; margin-top: 2px; }
.chat-ai p + p { margin-top: 8px; }
.t-warn { color: var(--warn); }
.t-lime { color: var(--accent); }

/* Fair all the way around */
.fair { margin-top: 56px; }
.fair-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.fair-tile { border-top: 3px solid var(--blue); }
.fair-tile h3 { margin-top: 6px; }

/* Two ways we help */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.way { display: flex; gap: 18px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.way h3 { font-size: 1.35rem; margin-bottom: 8px; }
.way p { color: var(--muted); }
.way-dfy { border-color: rgba(63,184,255,.4); background: linear-gradient(135deg, rgba(40,100,255,.14), var(--surface) 70%); }
.way .area-icon { flex-shrink: 0; }
.sub-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.more-note { color: var(--muted); margin-top: 24px; }
.more-note a { color: var(--blue-light); font-weight: 600; }

/* Where AI fits */
.area-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chip { padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue-light); }
.chip strong { display: block; margin-bottom: 4px; }
.chip span { color: var(--muted); font-size: 0.9rem; }

.doc-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.doc-list li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-weight: 500; }
.doc-list li small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-light); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }
.cta-band {
  text-align: center; padding: 56px 32px; border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(40,100,255,.22), transparent 70%), var(--surface);
}
.cta-band .sub { max-width: 560px; margin: 14px auto 28px; }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; }
.about-copy .sig { color: var(--text); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.form-status { font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.form-status.error { color: var(--loss); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 0.88rem; }
.footer-logo img { height: 64px; width: auto; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner, .calc, .about, .contact, .feature { grid-template-columns: 1fr; }
  .feature { gap: 36px; }
  .grid-3, .grid-4, .area-chips { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .calc-results { position: static; }
  .shift-flow { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); justify-self: center; }
  .about, .contact { gap: 28px; }
}
/* Tap-to-open menu on tablets and phones (the full menu needs ~1050px) */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
}
@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .grid-2, .doc-list, .grid-3, .grid-4, .area-chips { grid-template-columns: 1fr; }
  .chat-user { margin-left: 24px; }
  .chat-ai { margin-right: 0; }
  .page-hero { padding: 56px 0 64px; }
  .wordmark { font-size: 1.2rem; }
}
