/* ===========================================================================
   MechanoMan — marketing site + billing portal
   Design system: one stylesheet, zero build step.
   Brand: industrial steel-blue with a hi-vis amber accent (mobile mechanic).
   =========================================================================== */

:root {
  /* Palette */
  --steel-950: #0b1220;
  --steel-900: #0f192b;
  --steel-800: #16233b;
  --steel-700: #1f3354;
  --steel-600: #2c456f;
  --steel-500: #3a5a8c;
  --slate-400: #8aa0c2;
  --slate-300: #aebed6;
  --slate-200: #d4def0;
  --paper: #f5f7fb;
  --white: #ffffff;

  --amber: #ff9e1b;
  --amber-600: #f08a00;
  /* For amber TEXT on light backgrounds — amber-600 is only ~2.5:1 on white,
     below WCAG AA. Keep amber/amber-600 for fills, icons and buttons. */
  --amber-text: #b45309;
  --amber-soft: rgba(255, 158, 27, 0.14);

  --green: #2bb673;
  --green-soft: rgba(43, 182, 115, 0.14);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.12);
  --blue-soft: rgba(58, 90, 140, 0.12);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo,
    Consolas, monospace;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.08);
  --shadow-md: 0 8px 30px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.18);
  --ring: 0 0 0 3px rgba(255, 158, 27, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--steel-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.muted { color: var(--steel-700); opacity: 0.85; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 14px;
}
.section-lead {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 1.08rem;
  color: var(--steel-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
  background: var(--amber);
  color: var(--steel-950);
  box-shadow: 0 6px 18px rgba(255, 158, 27, 0.32);
}
.btn--primary:hover { background: var(--amber-600); box-shadow: 0 10px 26px rgba(255, 158, 27, 0.40); }

.btn--ghost {
  background: transparent;
  color: var(--steel-900);
  border-color: rgba(31, 51, 84, 0.22);
}
.btn--ghost:hover { border-color: var(--steel-600); background: var(--white); }

.btn--on-dark { color: var(--slate-200); border-color: rgba(174, 190, 214, 0.25); }
.btn--on-dark:hover { color: var(--white); border-color: var(--slate-300); background: rgba(255,255,255,0.06); }

.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 15px 30px; font-size: 1.04rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(31, 51, 84, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand .brand-mark { width: 34px; height: 34px; }
.brand b { color: var(--amber-600); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 0.96rem; color: var(--steel-700); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--steel-950); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(31,51,84,0.2);
  border-radius: 9px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--slate-200);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255, 158, 27, 0.16), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, rgba(58, 90, 140, 0.45), transparent 55%),
    linear-gradient(180deg, var(--steel-950), var(--steel-900));
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(174,190,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174,190,214,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
}
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--amber); }
.hero-sub { font-size: 1.16rem; color: var(--slate-300); max-width: 540px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 0.94rem; color: var(--slate-300); }
.hero-points svg { color: var(--green); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-soft);
  border: 1px solid rgba(255,158,27,0.3);
  color: var(--amber);
  font-weight: 600; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,158,27,0.25); }

/* Hero device mock */
.device {
  background: linear-gradient(180deg, #1b2a46, #131f34);
  border: 1px solid rgba(174,190,214,0.16);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
}
.device-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.device-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(174,190,214,0.3); }
.device-bar span:nth-child(1){ background:#ff5f57; } .device-bar span:nth-child(2){ background:#febc2e; } .device-bar span:nth-child(3){ background:#28c840; }
.device-screen { background: var(--steel-950); border-radius: 12px; padding: 16px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(174,190,214,0.05); border: 1px solid rgba(174,190,214,0.08); margin-bottom: 10px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row .l { display: flex; align-items: center; gap: 11px; }
.mock-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--slate-200); flex: none; }
.mock-title { color: var(--slate-200); font-weight: 600; font-size: 0.9rem; }
.mock-sub { color: var(--slate-400); font-size: 0.78rem; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.tag--paid { background: var(--green-soft); color: var(--green); }
.tag--due { background: var(--amber-soft); color: var(--amber); }
.tag--open { background: var(--blue-soft); color: var(--slate-300); }

/* ---------- Logo / trust strip ---------- */
.trust { border-bottom: 1px solid rgba(31,51,84,0.08); background: var(--white); }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding-top: 26px; padding-bottom: 26px; }
.trust span { font-size: 0.86rem; font-weight: 600; color: var(--steel-700); display: inline-flex; align-items: center; gap: 9px; }
.trust svg { color: var(--amber-600); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(31,51,84,0.08);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,158,27,0.35); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-600);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--steel-700); margin: 0; font-size: 0.97rem; }

/* ---------- Workflow / how it works ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step { position: relative; background: var(--white); border: 1px solid rgba(31,51,84,0.08); border-radius: var(--radius-sm); padding: 22px 18px; box-shadow: var(--shadow-sm); }
.flow-step .n { counter-increment: step; font-family: var(--font-mono); font-weight: 700; color: var(--amber-text); font-size: 0.82rem; }
.flow-step h4 { margin: 8px 0 6px; font-size: 1.02rem; }
.flow-step p { margin: 0; font-size: 0.88rem; color: var(--steel-700); }
.flow-step .arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--slate-400); z-index: 2; background: var(--paper); border-radius: 50%; }
.flow-step:last-child .arrow { display: none; }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.audience { padding: 30px; border-radius: var(--radius); border: 1px solid rgba(31,51,84,0.1); background: var(--white); box-shadow: var(--shadow-sm); }
.audience h3 { display: flex; align-items: center; gap: 11px; }
.audience .badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--steel-700); flex: none; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; color: var(--steel-800); }
.checklist svg { color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Feature spotlight (alternating) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spotlight + .spotlight { margin-top: clamp(48px, 7vw, 84px); }
.spotlight.reverse .spot-media { order: -1; }
.spot-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.spot-copy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.spot-copy ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel-800); }
.spot-copy ul svg { color: var(--amber-600); flex: none; margin-top: 4px; }
.spot-media {
  background: linear-gradient(180deg, var(--white), #eef2f9);
  border: 1px solid rgba(31,51,84,0.1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

/* Mini UI panels used in spotlights */
.panel { background: var(--white); border: 1px solid rgba(31,51,84,0.1); border-radius: 11px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(31,51,84,0.08); font-weight: 700; font-size: 0.92rem; }
.panel-body { padding: 14px 16px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(31,51,84,0.1); font-size: 0.9rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--steel-700); }
.kv .v { font-weight: 600; font-family: var(--font-mono); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 10px; font-size: 0.82rem; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(31,51,84,0.1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--steel-500), var(--amber)); }
.role-row { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 6px; font-size: 0.8rem; align-items: center; }
.role-row.head { font-weight: 700; color: var(--steel-700); }
.role-row .yes { color: var(--green); font-weight: 700; }
.role-row .no { color: var(--slate-400); }
.role-row .part { color: var(--amber-text); font-weight: 600; }

/* offline badge */
.status-strip { display:flex; align-items:center; gap:10px; background: var(--amber-soft); border:1px solid rgba(255,158,27,0.3); color:var(--amber-600); border-radius: 9px; padding: 9px 13px; font-size: 0.85rem; font-weight:600; }
.status-strip .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:0.3 } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--steel-950); letter-spacing: -0.03em; }
.stat .num b { color: var(--amber-text); }
.stat .lbl { color: var(--steel-700); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(31,51,84,0.1); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--amber); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--steel-950); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price-name { font-weight: 700; font-size: 1.1rem; }
.price-desc { color: var(--steel-700); font-size: 0.9rem; min-height: 40px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price-amount .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount .per { color: var(--steel-700); font-size: 0.92rem; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.price-card ul li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--steel-800); }
.price-card ul svg { color: var(--green); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- Plan comparison table ---------- */
.cmp-wrap { overflow-x: auto; margin: 30px auto 0; max-width: 900px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; text-align: center; }
.cmp th, .cmp td { padding: 12px 18px; border-bottom: 1px solid rgba(31,51,84,0.1); }
.cmp thead th { vertical-align: top; border-bottom-width: 2px; }
.cmp .plan-name { font-weight: 800; font-size: 1.05rem; color: var(--steel-900); }
.cmp .plan-pop { display: inline-block; margin-left: 6px; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-text); border: 1px solid rgba(255,158,27,0.5); border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
.cmp .plan-price { display: block; font-weight: 700; font-size: 0.95rem; color: var(--steel-700); margin: 4px 0 12px; }
.cmp .plan-price small { font-weight: 500; font-size: 0.78rem; opacity: 0.8; }
.cmp .feat { text-align: left; font-size: 0.93rem; color: var(--steel-800); font-weight: 500; }
.cmp .feat .beta { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-text); border: 1px solid rgba(255,158,27,0.5); border-radius: 4px; padding: 1px 5px; vertical-align: middle; margin-left: 4px; }
.cmp tbody td { font-size: 0.92rem; color: var(--steel-800); }
.cmp .grp th { text-align: left; background: rgba(31,51,84,0.035); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: var(--steel-700); }
.cmp .tick svg { color: var(--green); vertical-align: middle; }
.cmp .dash { color: var(--slate-400); }
.cmp .incl { color: var(--green); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cmp .addon-price { font-weight: 700; color: var(--steel-800); }
.cmp .addon-price small { font-weight: 500; font-size: 0.78rem; color: var(--steel-700); opacity: 0.8; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid rgba(31,51,84,0.1); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.2s ease; color: var(--steel-700); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--steel-700); margin: 0 0 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(255,158,27,0.2), transparent 60%),
    linear-gradient(180deg, var(--steel-900), var(--steel-950));
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 66px);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--slate-300); max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-950); color: var(--slate-300); padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer-grid h4 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--slate-300); font-size: 0.93rem; transition: color 0.15s; }
.footer-grid a:hover { color: var(--amber); }
.footer-about p { color: var(--slate-400); font-size: 0.92rem; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(174,190,214,0.12); margin-top: 40px; padding-top: 22px; font-size: 0.86rem; color: var(--slate-400); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; }
.footer-brand .brand-mark { width: 30px; height: 30px; }

/* ---------- Misc ---------- */
.badge-soft { display:inline-flex; align-items:center; gap:7px; font-size:0.8rem; font-weight:600; padding:5px 12px; border-radius:999px; background: var(--blue-soft); color: var(--steel-700); }
.divider { height:1px; background: rgba(31,51,84,0.08); border:0; margin: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ===========================================================================
   Billing portal
   =========================================================================== */
.portal-body { background:
  radial-gradient(900px 480px at 80% -10%, rgba(255,158,27,0.10), transparent 60%),
  radial-gradient(700px 500px at 0% 0%, rgba(58,90,140,0.12), transparent 55%),
  var(--paper); min-height: 100vh; }
.portal-shell { max-width: 460px; margin: 0 auto; padding: 40px 24px 60px; }
.portal-shell.wide { max-width: 720px; }
.portal-shell.xwide { max-width: 1080px; }
.portal-card { background: var(--white); border: 1px solid rgba(31,51,84,0.1); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 32px; }
.portal-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.portal-logo .brand { font-size: 1.3rem; }
.portal-card h1 { font-size: 1.5rem; text-align: center; }
.portal-card .sub { text-align: center; color: var(--steel-700); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--steel-800); }
.field input {
  width: 100%; padding: 12px 14px; font-size: 0.98rem; font-family: inherit;
  border: 1px solid rgba(31,51,84,0.2); border-radius: var(--radius-sm);
  background: var(--white); color: var(--steel-900); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { outline: none; border-color: var(--amber); box-shadow: var(--ring); }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9rem; margin-bottom: 16px; display: none; }
.notice.show { display: block; }
.notice--error { background: var(--red-soft); color: #b42318; border: 1px solid rgba(229,72,77,0.3); }
.notice--ok { background: var(--green-soft); color: #15803d; border: 1px solid rgba(43,182,115,0.3); }
.notice--info { background: var(--blue-soft); color: var(--steel-800); border: 1px solid rgba(58,90,140,0.25); }

.portal-foot { text-align: center; margin-top: 18px; font-size: 0.86rem; color: var(--steel-700); }
.portal-foot a { color: var(--amber-text); font-weight: 600; }

.spinner { width: 17px; height: 17px; border: 2.5px solid rgba(11,18,32,0.25); border-top-color: var(--steel-950); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
.btn--primary .spinner { border-color: rgba(11,18,32,0.3); border-top-color: var(--steel-950); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Account view */
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, var(--steel-600), var(--steel-800)); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.account-head .who { line-height: 1.3; }
.account-head .who .name { font-weight: 700; font-size: 1.1rem; }
.account-head .who .email { color: var(--steel-700); font-size: 0.9rem; }
.role-chip { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); }

.acct-grid { display: grid; gap: 12px; margin: 6px 0 22px; }
.acct-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid rgba(31,51,84,0.1); border-radius: var(--radius-sm); background: #fafbfe; }
.acct-item .k { color: var(--steel-700); font-size: 0.9rem; }
.acct-item .v { font-weight: 600; }

.portal-actions { display: grid; gap: 12px; }
.linkbtn { background: none; border: none; color: var(--steel-700); font-size: 0.9rem; text-decoration: underline; padding: 8px; }
.linkbtn:hover { color: var(--steel-950); }

/* Workspace (business) cards */
.ws-list { display: grid; gap: 14px; }
.ws-card { border: 1px solid rgba(31,51,84,0.12); border-radius: var(--radius-sm); padding: 18px; background: #fafbfe; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-name { margin: 0; font-size: 1.06rem; }
.ws-meta { font-size: 0.88rem; margin: 6px 0 14px; min-height: 1.2em; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-actions .btn { padding: 9px 16px; font-size: 0.88rem; }
.ws-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Subscription status chips */
.status-chip { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; }
.status--trialing { background: var(--blue-soft); color: var(--steel-800); }
.status--active { background: var(--green-soft); color: #15803d; }
.status--past_due { background: var(--red-soft); color: #b42318; }
.status--canceled { background: rgba(31,51,84,0.08); color: var(--steel-700); }
.status--pending { background: var(--amber-soft); color: var(--amber-text); }

/* Side-by-side fields (colour pickers) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid rgba(31,51,84,0.2); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }

/* ---------- Platform admin view ---------- */
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip {
  border: 1px solid rgba(31,51,84,0.18); background: var(--white); color: var(--steel-700);
  font-size: 0.82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-chip:hover { border-color: var(--steel-600); color: var(--steel-950); }
.filter-chip.is-active { background: var(--steel-900); border-color: var(--steel-900); color: var(--white); }

.admin-table-wrap { overflow-x: auto; border: 1px solid rgba(31,51,84,0.1); border-radius: var(--radius-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--white); }
.admin-table th {
  text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--steel-700); background: #fafbfe;
  padding: 10px 12px; border-bottom: 1px solid rgba(31,51,84,0.1); white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(31,51,84,0.07); vertical-align: middle; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .c-name { font-weight: 600; }
.admin-table .c-stripe a { color: var(--amber-text); font-weight: 600; }
.admin-table .c-actions { display: flex; align-items: center; gap: 8px; }

.btn--xs { padding: 6px 12px; font-size: 0.8rem; }
.status-select {
  font-family: inherit; font-size: 0.8rem; color: var(--steel-700);
  border: 1px solid rgba(31,51,84,0.2); border-radius: 7px; padding: 5px 7px; background: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-media { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step .arrow { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .spotlight, .spotlight.reverse .spot-media { grid-template-columns: 1fr; order: 0; }
  .spotlight { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile menu */
.mobile-menu { display: none; background: var(--white); border-bottom: 1px solid rgba(31,51,84,0.1); padding: 12px 24px 18px; }
.mobile-menu ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 11px 6px; font-weight: 500; color: var(--steel-800); border-radius: 8px; }
.mobile-menu a:hover { background: var(--paper); }
.mobile-menu .btn { width: 100%; justify-content: center; }

/* ---------- Customer portal ---------- */
/* Invoice status chips (subscription chips above cover the staff statuses). */
.status--sent { background: var(--blue-soft); color: var(--steel-800); }
.status--partially_paid { background: var(--amber-soft); color: var(--amber-text); }
.status--paid { background: var(--green-soft); color: #15803d; }
.status--overdue { background: var(--red-soft); color: #b42318; }
.status--void { background: rgba(31,51,84,0.08); color: var(--steel-700); }

/* Job (order tracking) chips — prefixed so they can't collide with the
   subscription chips above (canceled vs cancelled, etc.). */
.status--job_scheduled { background: var(--blue-soft); color: var(--steel-800); }
.status--job_in_progress { background: var(--amber-soft); color: var(--amber-text); }
.status--job_completed { background: var(--green-soft); color: #15803d; }
.status--job_cancelled { background: rgba(31,51,84,0.08); color: var(--steel-700); }

/* The business's identity above the card, branded per tenant. */
.pc-brandbar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 3px solid rgba(31,51,84,0.15);
}
.pc-brandlogo { max-height: 44px; max-width: 160px; object-fit: contain; }
.pc-brandname { font-weight: 800; font-size: 1.25rem; color: var(--steel-950); }

/* Invoice line items. */
.pc-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 0.92rem; }
.pc-table th {
  text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--steel-700); padding: 8px 10px;
  border-bottom: 2px solid rgba(31,51,84,0.15);
}
.pc-table td { padding: 10px; border-bottom: 1px solid rgba(31,51,84,0.08); vertical-align: top; }
.pc-table .num { text-align: right; white-space: nowrap; }
.pc-subhead { font-size: 1.02rem; margin: 18px 0 10px; }

/* ---------- App-download badges ---------- */
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-badge { display: inline-flex; line-height: 0; transition: transform 0.15s ease, opacity 0.15s ease; }
.app-badge img { height: 46px; width: auto; display: block; }
.app-badge:hover { transform: translateY(-2px); }
.hero-badges { margin-top: 22px; }
.get-app .app-badges { justify-content: center; margin-top: 24px; }
.footer-badges { margin-top: 16px; }
.footer-badges .app-badge img { height: 40px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
