/* ============================================================
   Reagan Soft Innovation Limited — Design System
   Palette: White · Professional Deep Blue · Light Blue
   ============================================================ */
:root {
  --blue: #0a7bce;
  --blue-600: #0c6fb8;
  --blue-700: #0a5da0;
  --navy: #083b66;
  --navy-2: #0a3f6e;
  --cyan: #1e9ee8;
  --sky-50: #f2f9fe;
  --sky-100: #e4f2fc;
  --ink: #13283c;
  --ink-2: #33506b;
  --muted: #5c7589;
  --faint: #8ca3b5;
  --line: #dbe9f3;
  --line-2: #eef4f9;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5fafd;

  --green: #157f5a;
  --green-bg: #e7f7f0;
  --yellow: #ffd34d;
  --red: #b3403a;
  --red-bg: #fdeeed;
  --amber: #9a6b10;
  --amber-bg: #fdf4e3;
  --violet: #6a4fb8;
  --violet-bg: #f0edfc;
  --cyan-c: #0e7490;
  --cyan-bg: #e4f7fb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(8, 59, 102, .06);
  --shadow: 0 8px 26px rgba(8, 59, 102, .10);
  --shadow-lg: 0 22px 55px rgba(8, 59, 102, .14);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1160px;
  --sidew: 250px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #c9dcea transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
p { margin: 0 0 14px; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 12px; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
ul { padding-left: 20px; }
label { color: var(--ink-2); }
strong, b { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #c9dcea; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #9fc3dc; }

.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid rgba(10, 123, 206, .45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 2.4px; font-weight: 800;
  color: var(--blue); text-transform: uppercase; margin-bottom: 10px;
}
.cta .eyebrow { color: #7fd0ff; }
.cta .btn-outline { border-color: #7fd0ff; color: #fff; }
.cta .btn-outline:hover { background: #7fd0ff; border-color: #7fd0ff; color: var(--navy); }

.service-block { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 18px; }
.brand img { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 4px 14px rgba(8, 59, 102, .18); border: 1px solid rgba(10, 123, 206, .25); }
.topbar .brand img { width: 58px; height: 58px; border-radius: 14px; }
.brand b { color: var(--blue); font-weight: 800; }
.brand-text { line-height: 1.2; }
.brand-tagline { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; color: var(--blue-700); font-style: italic; white-space: nowrap; }
.sidebar-brand .brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand .brand img { width: 56px; height: 56px; border-radius: 14px; }
.info-card .brand img { width: 60px; height: 60px; border-radius: 15px; }
.links { display: flex; gap: 26px; align-items: center; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.links a { color: inherit; padding: 6px 2px; position: relative; }
.links a:hover { color: var(--blue); }
.links a.active { color: var(--blue); }
.links a.active::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-login {
  padding: 10px 18px !important; border-radius: 10px; background: var(--navy); color: #fff !important;
  font-weight: 700;
}
.nav-login:hover { background: var(--blue-700); }

.menu {
  display: none; border: 0; background: none; padding: 10px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 22px; height: 2.5px; margin: 0 auto;
  background: var(--navy); border-radius: 3px; position: relative; transition: all .25s ease;
}
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }
.menu.open .menu-icon { background: transparent; }
.menu.open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu.open .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  --hero-min-height: clamp(620px, 90vh, 1000px);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: var(--hero-min-height);
  background:
    radial-gradient(1200px 700px at 78% 18%, rgba(18, 118, 190, .45), transparent 65%),
    linear-gradient(180deg, #0a3a63 0%, #06294a 100%);
  color: #fff;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.02); transform-origin: center;
  backface-visibility: hidden;
}
.hero-slide.s-active .hero-bg {
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
/* Copy is centred, so the scrim is even too: a soft pool behind the text
   with darker top and bottom bands to seat the chip and the buttons. */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1150px 640px at 50% 47%, rgba(4, 26, 48, .72) 0%, rgba(4, 26, 48, .44) 54%, transparent 80%),
    linear-gradient(180deg, rgba(4, 26, 48, .72) 0%, rgba(4, 26, 48, .30) 32%, rgba(4, 26, 48, .38) 64%, rgba(4, 26, 48, .84) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero-band { scroll-margin-top: 80px; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto;
  padding: 118px 0 126px;
  text-align: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 28px rgba(4,26,48,.32);
  padding: 8px 16px; border-radius: 100px; margin: 0 auto 26px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #56c7ff; box-shadow: 0 0 0 4px rgba(86,199,255,.25); }
.hero .hero-title {
  color: #fff; margin: 0 auto 22px;
  font-family: var(--font-disp);
  font-size: clamp(32px, 4.9vw, 58px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  max-width: 860px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .55);
}
.hero .hero-title .accent {
  color: #8fd8ff;
  text-shadow: 0 0 28px rgba(86, 199, 255, .45), 0 2px 26px rgba(0, 0, 0, .5);
}
.hero .lead {
  margin: 0 auto 38px; color: rgba(255, 255, 255, .94);
  max-width: 640px; font-size: clamp(15.5px, 1.5vw, 18.5px); line-height: 1.66;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .55);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.hero-actions .btn-primary { box-shadow: 0 10px 30px rgba(10, 123, 206, .45), inset 0 1px 0 rgba(255,255,255,.32); }

/* ---------- Hero band (pricing + trust below the image) ---------- */
.hero-band {
  background:
    radial-gradient(600px 380px at 88% 8%, rgba(30, 158, 234, .16), transparent 70%),
    radial-gradient(520px 340px at 4% 96%, rgba(10, 123, 206, .10), transparent 70%),
    linear-gradient(180deg, var(--sky-50), #fff);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 78px;
}
.hero-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin-bottom: 28px; }
.hero-price-item { background: #fff; border: 1px solid var(--sky-100); border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow-sm); }
.hero-price-item .hp-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.hero-price-item .hp-value { display: block; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; white-space: nowrap; }
.hero-price-item .hp-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .tick { color: var(--green); }
.hero-motto { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); font-style: italic; font-size: 16px; }
.hero-motto svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.hero-byline { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.hero-byline img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(8,59,102,.22); }
.hero-byline b { color: var(--navy); }

/* ---------- Split code banner ---------- */
.split-banner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.split-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split-media img { width: 100%; height: 340px; object-fit: cover; display: block; }
.split-shine { position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); animation: shine 6s ease-in-out infinite; }
.split-body .feature-list { margin-top: 8px; }

/* ---------- Studio media grid ---------- */
.studio-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 16px; }
.studio-tile { position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); min-height: 220px; }
.studio-tile img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; transition: transform .7s ease; }
.studio-tile:hover img { transform: scale(1.03); }
.studio-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 16px 18px; color: #fff; background: linear-gradient(0deg, rgba(8,59,102,.94), rgba(8,59,102,0)); }
.studio-tile figcaption span { display: block; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #7fd0ff; font-weight: 800; margin-bottom: 4px; }
.studio-tile figcaption b { font-size: 15px; color: #fff; }
.studio-tile-lg { grid-row: span 2; }
.studio-tile-lg img { min-height: 456px; }
.studio-tile-wide { grid-column: span 2; }
.studio-band { display: grid; grid-template-columns: 1.05fr .95fr; margin-top: 16px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--navy); box-shadow: var(--shadow-lg); }
.studio-band img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.studio-band-body { padding: 26px 30px; color: #dbeafe; }
.studio-band-body h3 { color: #fff; }
.studio-band-body p { color: #9db6cc; font-size: 14.5px; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.studio-chips span { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #cfe0ef; border-radius: 999px; padding: 5px 12px; font-size: 12px; }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .studio-tile-lg { grid-row: span 1; grid-column: span 2; }
  .studio-tile-lg img { min-height: 260px; }
  .studio-tile-wide { grid-column: span 2; }
  .studio-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-tile-lg, .studio-tile-wide { grid-column: span 1; }
}

/* ---------- Founder card ---------- */
.founder-stack { display: grid; gap: 22px; }
.founder-card {
  position: relative; display: grid; grid-template-columns: 46% 1fr; gap: 22px; align-items: stretch;
  background: var(--navy); color: #dbeafe; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-photo { position: relative; min-height: 330px; }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,59,102,0) 40%, var(--navy) 100%); }
.founder-info { align-self: center; padding: 24px 26px 26px 0; position: relative; z-index: 2; }
.founder-role { display: inline-block; font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #7fd0ff; font-weight: 800; margin-bottom: 8px; }
.founder-info h3 { color: #fff; margin-bottom: 10px; font-size: 24px; }
.founder-info p { color: #cfe0ef; font-size: 14.5px; margin-bottom: 16px; }
.founder-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 14px; }
.founder-brand img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.founder-brand b { color: #7fd0ff; }
.founder-contact { display: grid; gap: 6px; font-size: 13px; color: #9db6cc; }
.founder-contact span { display: inline-flex; align-items: center; gap: 7px; }
.founder-contact svg { width: 15px; height: 15px; color: #7fd0ff; }

.portal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.portal-card-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 18px; }
.portal-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.portal-metric { background: var(--sky-50); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; }
.portal-metric small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.portal-metric strong { font-size: 24px; color: var(--navy); display: block; line-height: 1.2; }
.portal-progress { background: var(--sky-100); height: 9px; border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.portal-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
.portal-rows { display: grid; gap: 10px; margin-bottom: 18px; }
.portal-row { display: flex; align-items: center; gap: 11px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 13px; }
.portal-row .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.portal-row b { display: block; font-size: 14px; color: var(--ink); }
.portal-row small { color: var(--muted); font-size: 12.5px; }

/* ---------- Buttons (3D · depth + press) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  text-align: center; font-family: inherit; line-height: 1.2; white-space: nowrap;
  position: relative; will-change: transform;
}
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 17px; height: 17px; transition: transform .2s ease; }

.btn-primary {
  background: linear-gradient(180deg, #1686d6 0%, var(--blue) 100%);
  color: #fff;
  border-color: rgba(8, 59, 102, .10);
  box-shadow: 0 1px 2px rgba(8, 59, 102, .18), 0 10px 24px rgba(10, 123, 206, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(8, 59, 102, .14), 0 16px 30px rgba(10, 123, 206, .34), inset 0 1px 0 rgba(255, 255, 255, .32); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(8, 59, 102, .14), 0 6px 14px rgba(10, 123, 206, .22); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-dark {
  background: linear-gradient(180deg, #0c4a80 0%, var(--navy) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 1px 2px rgba(4, 30, 54, .35), 0 10px 24px rgba(8, 59, 102, .26), inset 0 1px 0 rgba(255, 255, 255, .20);
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(4, 30, 54, .3), 0 16px 30px rgba(8, 59, 102, .34), inset 0 1px 0 rgba(255, 255, 255, .24); }
.btn-dark:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(4, 30, 54, .25), 0 6px 14px rgba(8, 59, 102, .2); }

.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: 0 1px 2px rgba(8, 59, 102, .05); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--sky-50); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(10, 123, 206, .12); }
.btn-ghost:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(8, 59, 102, .05); }

.btn-light {
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
  color: var(--navy);
  border-color: rgba(30, 80, 130, .18);
  box-shadow: 0 1px 2px rgba(4, 30, 54, .14), 0 10px 24px rgba(4, 30, 54, .22), inset 0 1px 0 #fff;
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(4, 30, 54, .12), 0 16px 30px rgba(4, 30, 54, .30), inset 0 1px 0 #fff; }
.btn-light:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(4, 30, 54, .12), 0 6px 14px rgba(4, 30, 54, .18), inset 0 1px 0 #fff; }

.btn-danger { background: var(--red-bg); color: var(--red); border-color: rgba(179, 64, 58, .25); box-shadow: 0 1px 2px rgba(179, 64, 58, .10); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(179, 64, 58, .26); }
.btn-danger:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(179, 64, 58, .12); }

.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: 0 1px 2px rgba(10, 123, 206, .08); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(10, 123, 206, .22); }
.btn-outline:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(10, 123, 206, .08); }

.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--blue); border-color: var(--blue); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-badge {
  position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 99px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Focus & a11y ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, .icon-btn:focus-visible,
.tab:focus-visible, .page-link:focus-visible, .quick-cta:focus-visible, .menu:focus-visible {
  outline: 3px solid rgba(10, 123, 206, .45); outline-offset: 2px; border-radius: var(--radius-sm);
}
.side-nav a:focus-visible, .side-bottom a:focus-visible, .topbar .menu-dark:focus-visible { outline-color: #7fd0ff; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid rgba(10, 123, 206, .28); outline-offset: 0; }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 42px; }
.section-head p { margin: 0; color: var(--muted); max-width: 420px; }
.section-head .section-sub { max-width: 660px; margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(10,123,206,.3); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-100); color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.card .price {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.card .price strong { font-size: 19px; color: var(--blue); display: block; margin-top: 2px; }
.card .price .price-note { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* Premium service cards */
.svc-card {
  --ac1: #1e9eea; --ac2: #0a73d6; --ac-dark: #0a73d6;
  --ac-tint: #e3f3fe; --ac-line: rgba(10, 123, 206, .22);
  --ac-glow: rgba(30, 158, 234, .20); --ac-glow2: rgba(10, 123, 206, .30);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff, #f7fbfe);
  padding: 26px 26px 24px;
  overflow: hidden;
}
.svc-card.accent-2 { --ac1: #8b5cf6; --ac2: #6d28d9; --ac-dark: #6d28d9; --ac-tint: #efeaff; --ac-line: rgba(109, 40, 217, .22); --ac-glow: rgba(139, 92, 246, .20); --ac-glow2: rgba(109, 40, 217, .30); }
.svc-card.accent-3 { --ac1: #10b981; --ac2: #047857; --ac-dark: #047857; --ac-tint: #ddf7ee; --ac-line: rgba(4, 120, 87, .20); --ac-glow: rgba(16, 185, 129, .20); --ac-glow2: rgba(4, 120, 87, .28); }
.svc-card.accent-4 { --ac1: #f59e0b; --ac2: #d97706; --ac-dark: #b45309; --ac-tint: #fdf1dd; --ac-line: rgba(217, 119, 6, .24); --ac-glow: rgba(245, 158, 11, .22); --ac-glow2: rgba(217, 119, 6, .30); }
.svc-card::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--ac-glow), transparent 68%);
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  border-radius: 0 0 4px 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--ac1), var(--ac2), transparent);
}
.svc-card:hover { transform: translateY(-5px); border-color: var(--ac-line); box-shadow: 0 18px 40px rgba(6, 41, 74, .14), 0 4px 12px rgba(6, 41, 74, .08); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.svc-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ac1), var(--ac2));
  box-shadow: 0 10px 20px var(--ac-glow2);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-days {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--ac-dark); background: var(--ac-tint); border: 1px solid var(--ac-line);
  padding: 5px 11px; border-radius: 100px; white-space: nowrap;
}
.svc-days svg { width: 13px; height: 13px; flex-shrink: 0; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 15px; flex-grow: 1; margin-bottom: 0; }
.svc-price { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.svc-note { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ac-dark); margin-bottom: 4px; }
.svc-price strong { display: block; font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.svc-btn {
  margin-top: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--ac1), var(--ac2));
  box-shadow: 0 10px 22px var(--ac-glow2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.svc-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 28px var(--ac-glow2); }
.svc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Feature list in pricing / service cards */
.feature-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.feature-list .fcheck { color: var(--green); margin-top: 3px; display: inline-flex; }
.feature-list .fcheck svg { width: 16px; height: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps .step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; position: relative;
}
.steps .step-num { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--cyan); }
.steps .step h3 { margin: 12px 0 8px; font-size: 17px; }
.steps .step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.step-line { height: 3px; background: var(--sky-100); border-radius: 99px; margin: 0 6px; margin-top: 44px; }

/* ---------- About / info cards ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.info-card {
  background: var(--navy); color: #e8f1fa; border-radius: var(--radius-xl); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.info-card .brand { color: #fff; margin-bottom: 8px; }
.info-card h3 { color: #fff; }
.info-card p { color: #cfe0ef; }
.info-list { display: grid; gap: 12px; margin-top: 18px; }
.info-line { display: flex; gap: 12px; align-items: flex-start; color: #dbeafe; font-size: 14.5px; }
.info-line svg { width: 18px; height: 18px; color: #7fd0ff; flex-shrink: 0; margin-top: 3px; }

/* Light-on-white variant of .info-line, for the "who we are" column. */
.info-lines { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 500px; }
.info-lines li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.info-lines b { color: var(--ink); }
.info-lines .il-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  background: var(--sky-100); color: var(--blue);
  display: grid; place-items: center;
}
.info-lines .il-icon svg { width: 19px; height: 19px; }

/* ---------- Studio (Jinja workstation feature) ---------- */
.studio { display: grid; grid-template-columns: .82fr 1.18fr; gap: 52px; align-items: center; }
.studio-media { margin: 0; position: relative; }
.studio-frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid rgba(10, 123, 206, .18);
  box-shadow: 0 30px 70px rgba(8, 59, 102, .20), 0 8px 20px rgba(8, 59, 102, .10);
  background: var(--navy);
  aspect-ratio: 3 / 4;
}
.studio-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.studio-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 34%, rgba(4, 30, 54, .28));
}
.studio-glow {
  position: absolute; z-index: 0; right: -30px; top: -30px;
  width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--pgl), transparent 70%);
  opacity: .55; filter: blur(10px);
}
.studio-media figcaption {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.studio-body h2 { margin-bottom: 14px; }
.studio-body .lead { margin-bottom: 4px; }
.studio-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Six promises read better as a 3 x 2 block than as 4 + 2 orphans. */
.steps.six { grid-template-columns: repeat(3, 1fr); }
.steps.six .step { display: flex; flex-direction: column; }
.steps.six .step h3 { margin-top: 14px; }

/* Contact channels laid out across the row. */
.contact-list.three { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.contact-list.three .contact-item { padding: 15px 16px; }
.contact-item a { color: var(--blue); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.value-card .card-icon { background: var(--sky-100); color: var(--blue); width: 44px; height: 44px; border-radius: 12px; }
.value-card .card-icon svg { width: 22px; height: 22px; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy), var(--blue-700));
  color: #fff; border-radius: var(--radius-xl);
  padding: 54px 48px; margin: 84px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #cfe0ef; margin: 0; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3d5e6; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; color: #9db6cc; }
.footer-tagline { display: flex; align-items: center; gap: 8px; color: #7fd0ff !important; font-style: italic; font-weight: 600; margin-bottom: 10px; }
.footer-tagline svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-founder { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-founder strong { color: #fff; }
.footer-col b { display: block; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #9db6cc; font-size: 14.5px; padding: 4px 0; }
.footer-col a:hover { color: #7fd0ff; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; color: #9db6cc; font-size: 14.5px; margin-bottom: 8px; }
.footer-contact svg { width: 17px; height: 17px; color: #7fd0ff; margin-top: 4px; flex-shrink: 0; }
.footer-contact a { color: #9db6cc; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #7fd0ff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; display: grid; place-items: center; color: #cfe0ef; }
.footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13.5px; color: #8aa4ba; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #c3d5e6; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Public inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky-50), #fff); border-bottom: 1px solid var(--line); }
.page-hero .container { padding: 64px 0 60px; }
.page-hero .lead { margin: 0; }
.page-hero h1 { margin-bottom: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--blue); font-weight: 500; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-2); }
.faq-item .faq-body { padding: 4px 22px 18px; color: var(--muted); font-size: 15px; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 34px; margin-bottom: 10px; font-size: 21px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; }
.legal ul { color: var(--muted); font-size: 15.5px; line-height: 1.75; padding-left: 20px; display: grid; gap: 6px; margin-bottom: 14px; }
.legal ul li::marker { color: var(--blue); }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--blue-700); }

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px;
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(30,158,234,.14), transparent 70%),
    linear-gradient(180deg, var(--sky-50), #fff);
}
.auth-card {
  width: min(440px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 36px;
}
.auth-card .brand { justify-content: center; margin: 0 auto 18px; }
.auth-card .brand img { width: 46px; height: 46px; }
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-back { display: flex; justify-content: center; margin-top: 14px; font-size: 13.5px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,123,206,.12); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) calc(1.25em + 2px), calc(100% - 14px) calc(1.25em + 2px); background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
input[type="file"].input { padding: 9px 12px; }
.hint { font-size: 12.5px; color: var(--muted); }
.file-input-label { display: inline-flex; gap: 8px; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Alerts ---------- */
.alert {
  padding: 13px 16px; border-radius: 11px; font-size: 14.5px; margin: 0 0 18px;
  background: var(--red-bg); color: var(--red); border: 1px solid rgba(179,64,58,.2);
  line-height: 1.5;
}
.alert.success { background: var(--green-bg); color: var(--green); border-color: rgba(21,127,90,.22); }
.alert.info { background: var(--sky-100); color: var(--blue-700); border-color: rgba(10,123,206,.2); }
.alert.warning { background: var(--amber-bg); color: var(--amber); border-color: rgba(154,107,16,.22); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-body { background: var(--bg-soft); min-height: 100vh; }
.dash-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidew); background: var(--navy); color: #b9d0e4; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  transition: transform .25s ease;
}
.sidebar-brand { padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand .brand { color: #fff; }
.sidebar-brand .brand img { width: 36px; height: 36px; }
.sidebar-brand .brand-text { font-size: 14.5px; line-height: 1.2; }
.side-nav { flex-grow: 1; padding: 14px 12px; overflow-y: auto; display: grid; gap: 3px; align-content: start; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 10px;
  color: #b9d0e4; font-weight: 600; font-size: 14.5px;
}
.side-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.side-nav a.active svg { color: #7fd0ff; }
.side-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
.side-bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 3px; }
.side-bottom a { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 10px; color: #b9d0e4; font-weight: 600; font-size: 14.5px; }
.side-bottom a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-bottom a svg { width: 19px; height: 19px; }

.dash-shell { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  background: #fff; border-bottom: 1px solid var(--line); height: 64px;
  display: flex; align-items: center; gap: 14px; padding: 0 26px;
  position: sticky; top: 0; z-index: 40;
}
.dash-topbar-title { flex-grow: 1; }
.dash-crumb { font-size: 15px; font-weight: 800; color: var(--ink); }
.dash-topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 11px; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 11px; background: var(--sky-100); color: var(--blue-700);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.user-meta { line-height: 1.25; }
.user-meta strong { font-size: 14px; display: block; }
.user-meta small { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .5px; }

.dash-main { flex-grow: 1; padding: 30px 26px 60px; max-width: 1280px; width: 100%; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h2 { margin-bottom: 6px; }
.dash-head .sub { color: var(--muted); margin: 0; font-size: 15px; }
.dash-head .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.stat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat small { color: var(--muted); font-weight: 700; font-size: 12.5px; display: block; }
.stat strong { font-size: 26px; color: var(--navy); line-height: 1.15; display: block; }
.stat a { font-size: 12.5px; font-weight: 700; }

.stats.two { grid-template-columns: repeat(2, 1fr); }
.stats.three { grid-template-columns: repeat(3, 1fr); }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; padding: 11px 14px; color: var(--muted); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--sky-50); }
.table .row-title { font-weight: 700; color: var(--ink); }
.table .row-sub { font-size: 12.5px; color: var(--muted); }
.table .actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.blue   { background: var(--sky-100); color: var(--blue-700); }
.badge.sky    { background: var(--cyan-bg); color: var(--cyan-c); }
.badge.green  { background: var(--green-bg); color: var(--green); }
.badge.red    { background: var(--red-bg); color: var(--red); }
.badge.amber  { background: var(--amber-bg); color: var(--amber); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.gray   { background: #eef2f6; color: var(--muted); }

/* Progress */
.progress { background: var(--sky-100); height: 9px; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; transition: width .3s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.progress.sm { height: 6px; }
.progress.lg { height: 12px; }

/* Timeline */
.timeline { position: relative; padding-left: 26px; display: grid; gap: 18px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 3px solid var(--line);
}
.tl-item.done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.tl-item.current::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px var(--sky-100); }
.tl-item b { display: block; font-size: 14.5px; color: var(--ink); }
.tl-item.done b { color: var(--green); }
.tl-item span { font-size: 12.5px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Empty states */
.empty {
  text-align: center; padding: 48px 20px; color: var(--muted); border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.empty svg { width: 42px; height: 42px; color: var(--faint); margin: 0 auto 10px; }
.empty h4 { margin-bottom: 6px; }
.empty p { margin: 0 auto 14px; max-width: 360px; font-size: 14.5px; }

/* Toolbar / filters */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .input, .toolbar .select { width: auto; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.page-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: #fff; }
.page-link:hover { border-color: var(--blue); color: var(--blue); }
.page-link.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Modals & confirm */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 35, 64, .55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto; padding: 28px;
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 6px; }
.modal .modal-body { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h3 { margin-bottom: 4px; }
.modal-close { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 26px; line-height: 1; padding: 2px 9px; border-radius: 9px; }
.modal-close:hover { color: var(--red); background: var(--red-bg); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.modal .field:last-child { margin-bottom: 0; }

/* Messages */
.chat { display: grid; gap: 14px; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.msg .bubble { padding: 12px 15px; border-radius: 14px; font-size: 14.5px; background: var(--bg-soft); border: 1px solid var(--line-2); white-space: pre-wrap; }
.msg .meta { font-size: 11.5px; color: var(--faint); }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.out .bubble { background: var(--blue); color: #fff; border-color: transparent; }
.msg .bubble .internal-flag { font-size: 11px; font-weight: 800; color: var(--amber); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* Misc */
.meta-row { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; color: var(--ink); text-align: right; }

.file-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.file-card.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; }
.file-card b { overflow-wrap: anywhere; }
.grid-3 .file-card, .grid-2 .file-card { margin-bottom: 0; }
.file-card .fc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.file-card .fc-icon svg { width: 20px; height: 20px; }
.file-card b { display: block; font-size: 14px; }
.file-card small { color: var(--muted); font-size: 12px; }

.doc-summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.doc-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.doc-line:last-child { border-bottom: 0; }
.doc-line span:last-child { font-weight: 700; }
.doc-line.total { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 12px; font-size: 17px; }

.notif-item { display: flex; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; align-items: flex-start; }
.notif-item.unread { border-left: 4px solid var(--blue); background: var(--sky-50); }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.notif-icon svg { width: 19px; height: 19px; }

.convo-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.convo-row:last-child { border-bottom: 0; }
.panel-quote { background: var(--sky-50); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; color: var(--ink-2); }
.panel.is-unread { border-left: 4px solid var(--blue); }
.check { display: flex; gap: 9px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.line-item { display: grid; grid-template-columns: 1fr 90px 120px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }

.quick-cta { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: all .15s ease; }
.quick-cta:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: var(--ink); }
.quick-cta b { display: block; font-size: 14.5px; }
.quick-cta small { color: var(--muted); font-size: 12.5px; }

.loading { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border: 2.5px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pay / status tiles */
.pay-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.pay-tile h4 { display: flex; align-items: center; gap: 9px; }
.pay-tile h4 svg { width: 19px; height: 19px; color: var(--blue); }

/* ============================================================
   MOTION & POLISH
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shine { from { transform: translateX(-60%); } to { transform: translateX(220%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(21, 127, 90, .45); } 70% { box-shadow: 0 0 0 9px rgba(21, 127, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 127, 90, 0); } }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(7px); opacity: .35; } }

.hero-inner > *, .hero-band > *, .page-hero > * { animation: fadeUp .6s ease both; }
.hero-inner > *:nth-child(2), .hero-band > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3), .hero-band > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4), .hero-band > *:nth-child(4) { animation-delay: .24s; }

/* Bound to .s-active so the copy re-enters on every slide change, not just
   on first paint. Specificity beats the generic rule above. */
.hero-slide.s-active .hero-inner > * { animation: fadeUp .62s cubic-bezier(.2, .7, .3, 1) both; }
.hero-slide.s-active .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-slide.s-active .hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero-slide.s-active .hero-inner > *:nth-child(3) { animation-delay: .23s; }
.hero-slide.s-active .hero-inner > *:nth-child(4) { animation-delay: .32s; }

.hero-tag .dot { animation: pulseDot 2.2s ease-in-out infinite; }
.portal-card { animation: floaty 7s ease-in-out infinite; }

.brand img, .sidebar-brand .brand img, .footer-brand .brand img { transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), box-shadow .35s ease; }
.brand:hover img, .info-card .brand:hover img { transform: scale(1.07) rotate(-3deg); box-shadow: 0 8px 22px rgba(8, 59, 102, .28); }

.card::after, .price-card::after, .value-card::after, .stat::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.card:hover::after, .price-card:hover::after, .value-card:hover::after, .stat:hover::after {
  animation: shine .8s ease; opacity: 1;
}
.card, .price-card, .value-card, .stat, .panel { position: relative; }

.card:hover .card-icon { transform: translateY(-3px) scale(1.08); }
.card-icon { transition: transform .25s cubic-bezier(.2, .8, .3, 1.2); }

.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 160px at 10% 0%, rgba(30, 158, 234, .35), transparent 60%),
    radial-gradient(600px 160px at 90% 100%, rgba(30, 158, 234, .28), transparent 60%);
}

.info-card { position: relative; overflow: hidden; }
.info-card::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(127, 208, 255, .32), transparent 65%);
}

.progress span { position: relative; overflow: hidden; }
.progress span::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shine 2.4s ease-in-out infinite;
}

.price-card, .value-card, .stat, .folio-card, .convo-row { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.price-card:hover, .value-card:hover, .folio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .hero-slide.s-active .hero-bg { animation: none; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { --hero-min-height: clamp(560px, 78vh, 880px); }
  .hero-inner { padding: 84px 0 92px; }
  .hero-band { padding: 54px 0 62px; }
  .cards, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-banner { grid-template-columns: 1fr; gap: 26px; }
  .service-block { grid-template-columns: 1fr; gap: 30px; }
  .founder-card { grid-template-columns: 40% 1fr; }
}

@media (max-width: 860px) {
  .menu { display: block; }
  .links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 18px 6%; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .links a { padding: 12px 10px; border-radius: 9px; width: 100%; }
  .links a:hover, .links a.active { background: var(--sky-50); }
  .links a.active::after { display: none; }
  .nav-login { text-align: center; margin-top: 6px; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; transform: translateX(-100%);
    box-shadow: var(--shadow-lg); width: 270px;
  }
  .sidebar.open { transform: translateX(0); }
  .dash-main { padding: 22px 16px 50px; }
  .dash-topbar { padding: 0 16px; gap: 10px; }
  .dash-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-topbar-right { flex-shrink: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 34px; }
  .studio-media { max-width: 460px; }
  .steps.six { grid-template-columns: repeat(2, 1fr); }
  .contact-list.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: 92%; }
  .section { padding: 60px 0; }
  .cards, .value-grid, .steps, .stats { grid-template-columns: 1fr; }
  .steps.six { grid-template-columns: 1fr; }
  .contact-list.three { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 38px 26px; }
  .user-meta { display: none; }
  .topbar .brand-tagline { display: none; }
  .hero-motto { font-size: 14px; }
  .folio-grid { grid-template-columns: 1fr; }
  .stats.two, .stats.three { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; }
  .modal-actions .btn { flex: 1 1 auto; }
  .line-item { grid-template-columns: 1fr 68px 86px 34px; gap: 6px; }
  .line-item .input, .line-item .select { padding: 10px; }

  .hero-overlay { background:
    radial-gradient(760px 460px at 50% 46%, rgba(4, 26, 48, .80) 0%, rgba(4, 26, 48, .56) 58%, transparent 84%),
    linear-gradient(180deg, rgba(4,26,48,.88) 0%, rgba(4,26,48,.62) 50%, rgba(4,26,48,.9) 100%); }
  .hero-inner { padding: 92px 0 100px; }
  .hero .hero-title { font-size: clamp(27px, 8vw, 36px); }
  .hero .lead { margin-bottom: 30px; }
  .hero-actions .btn-lg { padding: 13px 24px; font-size: 15px; }
  .hero-band { padding: 46px 0 54px; }
  .svc-card { padding: 22px 20px 20px; }
  .svc-icon { width: 48px; height: 48px; border-radius: 13px; }
  .svc-icon svg { width: 23px; height: 23px; }
  .svc-card p { font-size: 14.5px; }
  .svc-price strong { font-size: 19px; }
  .split-media img { height: 220px; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { min-height: 260px; }
  .founder-photo::after { background: linear-gradient(180deg, rgba(8,59,102,0) 45%, var(--navy) 100%); }
  .founder-info { padding: 0 22px 26px; }
}

/* Pricing tables */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.price-ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.range-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon body" "amount amount";
  gap: 4px 16px; padding: 26px; border: 1px solid var(--sky-100); border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 55%, #eef7fe 100%); box-shadow: var(--shadow-sm); align-items: center;
}
.range-card .card-icon { grid-area: icon; }
.range-card h3 { font-size: 19px; margin: 0 0 4px; }
.range-card p { font-size: 14px; color: var(--muted); margin: 0; }
.range-amount { grid-area: amount; display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--sky-100); }
.range-amount strong { font-size: 32px; font-weight: 800; color: var(--navy); }
.range-amount .rp-from { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.range-amount .rp-to { font-size: 13px; font-weight: 700; color: var(--muted); }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured .card-icon { background: var(--blue); color: #fff; }
.price-card .amount { font-size: 30px; font-weight: 800; color: var(--navy); margin: 10px 0 2px; }
.price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card .price-note { font-size: 13px; color: var(--muted); }
.price-card .deliver { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 14px; }
.price-card .deliver svg { width: 16px; height: 16px; color: var(--blue); }
.price-card .btn { margin-top: 20px; }

/* ============================================================
   Portfolio — the delivered work
   ============================================================ */
.folio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.folio-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.folio-card:hover { transform: translateY(-4px); border-color: var(--sky-100); box-shadow: var(--shadow-lg); }
.folio-card.is-featured { border-color: rgba(10,93,160,.28); }
.folio-card[hidden] { display: none; }

.folio-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.folio-body h3 { font-size: 18px; text-wrap: balance; }
.folio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag { font-size: 12px; font-weight: 700; color: var(--blue-700); background: var(--sky-100); padding: 4px 10px; border-radius: 99px; }

/* Service + client, on one line that is allowed to wrap cleanly. */
.folio-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.folio-client {
  font-size: 11.5px; font-weight: 700; color: var(--faint);
  letter-spacing: .04em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.folio-client::before { content: '·'; margin-right: 10px; color: var(--line); }

/* No mid-word ellipsis: the copy is written to fit, and the card
   grows to whatever height it needs so the grid stays even. */
.folio-desc { font-size: 14.5px; line-height: 1.62; color: var(--muted); margin: 0 0 16px; text-wrap: pretty; }

.folio-count {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  padding: 9px 15px 9px 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.folio-count b { color: var(--navy); font-weight: 800; }
.folio-count .tick { color: var(--green); display: inline-flex; }
.folio-count svg { width: 17px; height: 17px; }

/* ---------- What the gallery adds up to ---------- */
.folio-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 26px;
}
.fs-item {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.fs-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sky-100), #d7ecfb); color: var(--blue-700);
  border: 1px solid #fff;
}
.fs-ico svg { width: 20px; height: 20px; }
.fs-txt { display: flex; flex-direction: column; min-width: 0; }
.fs-txt b { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.fs-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Filter bar ---------- */
.folio-filter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.ff-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 99px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ff-chip svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.ff-chip:hover { border-color: var(--blue); color: var(--blue-700); }
.ff-chip.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 6px 16px rgba(8,59,102,.20);
}
.ff-chip.is-active svg { color: var(--pgl); }
.ff-count {
  margin: 0; font-size: 12.5px; font-weight: 700; color: var(--faint);
  font-family: var(--font-mono); letter-spacing: .02em;
}

.folio-none {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 26px 0 0; padding: 26px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg);
  font-size: 14.5px; color: var(--muted);
}
.folio-none[hidden] { display: none; }
.folio-none svg { width: 19px; height: 19px; color: var(--faint); flex-shrink: 0; }
.folio-reset {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 800;
  color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.folio-upgrade {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 22px 0 0; padding: 13px 16px;
  background: var(--amber-bg); border: 1px solid #f2e0b8; border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.55; color: #7a5410;
}
.folio-upgrade svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.folio-upgrade b { font-family: var(--font-mono); font-weight: 700; }

/* ---------- Cover: drawn, not photographed ---------- */
.folio-cover {
  position: relative; overflow: hidden; height: 190px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}
.folio-cover.tone-1 { background: linear-gradient(140deg, #eaf6ff 0%, #d5eafb 100%); }
.folio-cover.tone-2 { background: linear-gradient(140deg, #e6f5fc 0%, #cfe6f6 100%); }
.folio-cover.tone-3 { background: linear-gradient(140deg, #f1f9fe 0%, #dcecf9 100%); }
.folio-cover.tone-4 { background: linear-gradient(140deg, #e9f4fd 0%, #d1e6f7 100%); }
.folio-cover.is-featured { color: #7fd0ff; background: linear-gradient(140deg, #0a3f6e 0%, #083b66 55%, #062f54 100%); border-bottom-color: rgba(10,63,110,.9); }

/* Layer 1 — the sector backdrop, anchored to the bottom edge. */
.folio-scene {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.folio-card:hover .folio-scene { transform: scale(1.035); }
.fs-sun { fill: currentColor; opacity: .16; }
.fs-hill { fill: currentColor; opacity: .13; }
.fs-hill-2 { opacity: .09; }
.fs-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .3; }
.fs-wave { opacity: .22; }
.fs-furrow { opacity: .2; }
.fs-road { opacity: .28; }
.fs-pulse { opacity: .38; stroke-width: 2.4; }
.fs-bars { opacity: .3; }
.fs-mark { fill: currentColor; opacity: .17; }
.fs-mark-in { fill: #fff; opacity: .85; }

/* Layer 2 — the delivery: a browser window and the app beside it. */
.folio-devices {
  position: absolute; right: -2%; bottom: -3%; z-index: 1;
  width: 76%; max-width: 330px; height: auto;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
.folio-card:hover .folio-devices { transform: translate(-5px, -4px); }
.fd-frame { fill: rgba(255,255,255,.62); stroke: currentColor; stroke-width: 2; stroke-opacity: .38; }
.fd-bar { fill: currentColor; opacity: .16; }
.fd-dot { fill: currentColor; opacity: .3; }
.fd-url { fill: currentColor; opacity: .12; }
.fd-solid { fill: currentColor; opacity: .16; }
.fd-line { fill: currentColor; opacity: .18; }
.fd-cta { fill: currentColor; opacity: .34; }
.fd-card { fill: currentColor; opacity: .12; }
.fd-phone { fill: rgba(255,255,255,.78); stroke: currentColor; stroke-width: 2; stroke-opacity: .45; }
.fd-notch { fill: currentColor; opacity: .28; }
.folio-cover.is-featured .fd-frame,
.folio-cover.is-featured .fd-phone { fill: rgba(255,255,255,.10); }
.folio-cover.is-featured .fd-bar,
.folio-cover.is-featured .fd-solid,
.folio-cover.is-featured .fd-line,
.folio-cover.is-featured .fd-card,
.folio-cover.is-featured .fd-url { opacity: .22; }
.folio-cover.is-featured .fd-cta { opacity: .55; }
.folio-cover.is-featured .fs-mark-in { fill: #0a3f6e; opacity: .55; }

.folio-status {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 99px;
  background: var(--green-bg); color: var(--green);
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.folio-status svg { width: 13px; height: 13px; stroke-width: 3; }
.folio-cover.is-featured .folio-status { background: rgba(21,127,90,.22); color: #6fe0b4; }

.folio-glyph {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.78); color: var(--blue-700);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(8,59,102,.12);
}
.folio-glyph svg { width: 21px; height: 21px; }
.folio-cover.is-featured .folio-glyph { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }

.folio-meta {
  position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 700;
}
.folio-ref {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em;
  color: var(--navy); background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.95); border-radius: 6px; padding: 3px 7px;
}
.folio-when { margin-left: auto; color: var(--muted); font-weight: 600; }
.folio-cover.is-featured .folio-ref { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.24); color: #cfe8fb; }
.folio-cover.is-featured .folio-when { color: #a9c9e6; }

/* ---------- What was handed over ---------- */
.folio-kit { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.folio-kit li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 99px;
  background: linear-gradient(150deg, var(--sky-50), var(--sky-100));
  border: 1px solid #d3e8f8;
  font-size: 12px; font-weight: 700; color: var(--blue-700); white-space: nowrap;
}
.folio-kit svg { width: 14px; height: 14px; stroke-width: 2.1; flex-shrink: 0; }

/* ---------- Scope of work, from the project's own requirements ---------- */
.folio-scope { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 7px; }
.folio-scope li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.folio-scope svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; margin-top: 3px; stroke-width: 2.6; }

.folio-scope-all { margin: 2px 0 0; }
.folio-scope-all > summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  list-style: none; padding: 6px 0; min-height: 32px;
  font-size: 12.5px; font-weight: 800; color: var(--blue);
}
.folio-scope-all > summary::-webkit-details-marker { display: none; }
.folio-scope-all > summary svg { width: 14px; height: 14px; transition: transform .22s ease; }
.folio-scope-all[open] > summary svg { transform: rotate(45deg); }
.folio-scope-all > summary:hover { color: var(--blue-700); }
.folio-scope-all ul { list-style: none; margin: 4px 0 0; padding: 0 0 2px; display: grid; gap: 7px; }
.folio-scope-all ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.folio-scope-all ul svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; margin-top: 3px; stroke-width: 2.6; }

/* ---------- The live site ---------- */
.folio-live {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  margin: 16px 0 0; padding: 11px 13px;
  border: 1px solid var(--sky-100); border-radius: var(--radius);
  background: linear-gradient(150deg, #f7fbff 0%, #eef7fe 100%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.folio-live:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(10,123,206,.14); transform: translateY(-1px); }
.folio-live .fl-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--blue); color: #fff;
}
.folio-live .fl-ico svg { width: 18px; height: 18px; }
.folio-live .fl-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.folio-live .fl-txt b { font-size: 13.5px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.folio-live .fl-txt small {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--blue-700); overflow-wrap: anywhere;
}
.folio-live .fl-go { flex-shrink: 0; color: var(--blue); display: inline-flex; transition: transform .2s ease; }
.folio-live .fl-go svg { width: 18px; height: 18px; }
.folio-live:hover .fl-go { transform: translateX(3px); }

.folio-foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.folio-foot-done { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.folio-foot-done svg { width: 16px; height: 16px; color: var(--green); stroke-width: 3; }
.folio-foot-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.folio-foot-when svg { width: 14px; height: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 42px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 6px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact-item .ci-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; color: var(--ink); }
.contact-item span { color: var(--muted); font-size: 14px; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .folio-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .folio-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .price-ranges { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing-grid, .folio-grid { grid-template-columns: 1fr; }
  .range-amount { flex-wrap: wrap; }
}

/* ============================================================
   Portfolio on smaller screens
   ------------------------------------------------------------
   The grid is the easy half. The hard half is everything that has
   to stay legible and tappable once the card is the full width of
   a phone: the cover art must not be cropped into a stripe, the
   deliverable badges must not overflow, a 42-character domain must
   break rather than push the card sideways, and every control has
   to clear 44px so a thumb can hit it first time.
   ============================================================ */
@media (max-width: 860px) {
  /* One column gives the drawn cover room to breathe, so it grows
     back instead of being squeezed into a letterbox. */
  .folio-grid { grid-template-columns: 1fr; gap: 18px; }
  .folio-cover { height: 210px; }
  .folio-devices { width: 68%; max-width: 300px; }

  .folio-filter { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ff-bar { width: 100%; }
  .ff-chip { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 720px) {
  .folio-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fs-item { padding: 13px 14px; gap: 11px; }
  .fs-ico { width: 36px; height: 36px; border-radius: 10px; }
  .fs-ico svg { width: 18px; height: 18px; }
  .fs-txt b { font-size: 21px; }
  .fs-txt small { font-size: 11.5px; }
}

@media (max-width: 640px) {
  .folio-body { padding: 20px 18px; }
  .folio-body h3 { font-size: 17.5px; }
  .folio-desc { font-size: 14px; }
  .folio-cover { height: 196px; }
  .folio-devices { width: 72%; right: -4%; }

  .folio-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .folio-foot-when { margin-left: 0; }

  .folio-live { padding: 12px 13px; }
  .folio-live .fl-ico { width: 36px; height: 36px; }
}

@media (max-width: 520px) {
  .folio-cover { height: 182px; }

  /* Chips stop insisting on one line each, so a long label such as
     "Support & maintenance" reflows inside its own pill rather than
     dragging the card wider than the screen. */
  .folio-kit li { white-space: normal; }

  .folio-stats { grid-template-columns: 1fr 1fr; }
  .ff-bar { gap: 6px; }
  .ff-chip { padding: 9px 12px; font-size: 12.5px; gap: 6px; }
}

@media (max-width: 420px) {
  .folio-body { padding: 18px 15px; }
  .folio-cover { height: 168px; }
  .folio-devices { width: 78%; right: -8%; }
  .folio-status { top: 11px; left: 11px; font-size: 10.5px; padding: 4px 9px 4px 8px; }
  .folio-glyph { top: 10px; right: 11px; width: 36px; height: 36px; border-radius: 11px; }
  .folio-glyph svg { width: 19px; height: 19px; }
  .folio-meta { left: 13px; right: 13px; bottom: 11px; }

  .folio-stats { grid-template-columns: 1fr; }
  .fs-item { padding: 12px 14px; }
  .ff-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .ff-chip { width: 100%; }
  .folio-none { flex-direction: column; gap: 8px; padding: 22px 16px; }
}

/* Touch devices: a card that lifts on tap and then STAYS lifted feels
   broken, and the reveal animation fights the tap. Opt the hover
   effects out wherever there is no real pointer. */
@media (hover: none) {
  .folio-card:hover { transform: none; box-shadow: 0 1px 2px rgba(8,59,102,.06), 0 12px 30px rgba(8,59,102,.07); }
  .folio-card:hover .folio-scene,
  .folio-card:hover .folio-devices,
  .folio-live:hover .fl-go { transform: none; }
  .ff-chip, .folio-live, .folio-scope-all > summary { min-height: 44px; }
  .folio-scope-all > summary { padding: 8px 0; }
  .folio-live { padding: 13px; }
}

/* Print (quotations / invoices) */
@media print {
  .topbar, .sidebar, .dash-topbar, .no-print, .site-footer, .tabs, .toolbar, .dash-head .actions { display: none !important; }
  body { background: #fff; }
  .dash-layout { display: block; }
  .dash-shell { display: block; }
  .dash-main { padding: 0; max-width: 100%; }
  .panel { border: 0; padding: 0; box-shadow: none; }
  .doc-summary { background: #fff; border: 1px solid #ccc; }
}

/* ============================================================
   Pricing architecture (2026)
   Authoritative ranges: websites 500K–10M · systems 20M–40M
   ============================================================ */

/* Homepage pricing band */
.pricing-band { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pband-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--sky-100); border-radius: var(--radius-xl); padding: 30px; background: linear-gradient(155deg, #fff 55%, #eef7fe 100%); box-shadow: var(--shadow-sm); }
.pband-card h3 { margin: 0; font-size: 20px; }
.pband-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pband-card .card-icon { margin: 0 0 6px; }
.pband-amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.pband-amount span { font-size: 15px; color: var(--muted); font-weight: 700; }
.pband-card .btn { margin-top: auto; }
.pband-card.alt { background: var(--navy); border-color: transparent; color: #dbeafe; }
.pband-card.alt p { color: #9db6cc; }
.pband-card.alt .card-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.pband-card.alt h3 { color: #fff; }
.pband-card.alt .pband-amount { color: #fff; }
.pband-card.alt .pband-amount span { color: #7fd0ff; }

/* Pricing page: two big range bands with factors */
.price-bands { display: grid; gap: 26px; }
.price-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; background: #fff; box-shadow: var(--shadow-sm); }
.price-band .eyebrow { color: var(--blue); }
.price-band h2 { margin: 6px 0 10px; }
.price-band p { color: var(--muted); margin: 0; }
.pb-amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 20px 0 24px; font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.pb-amount .pb-to { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.pb-factors { background: var(--sky-50); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px; }
.pb-factors b { display: block; font-size: 14px; }
.pb-factors .feature-list { margin-top: 12px; }
.price-band.alt { background: var(--navy); border-color: transparent; color: #dbeafe; }
.price-band.alt p { color: #9db6cc; }
.price-band.alt h2 { color: #fff; }
.price-band.alt .pb-amount { color: #fff; }
.price-band.alt .pb-amount .pb-to { color: #7fd0ff; }
.price-band.alt .pb-factors { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #dbeafe; }
.price-band.alt .pb-factors b { color: #fff; }
.price-band#apps .pb-factors b { color: var(--yellow); }
.price-band#apps .pb-factors .feature-list { color: var(--yellow); }
.price-band#apps .pb-factors .feature-list li { color: var(--yellow); }

.svc-card .amount { font-size: 22px; line-height: 1.35; letter-spacing: -.3px; }

@media (max-width: 900px) {
  .price-band { grid-template-columns: 1fr; padding: 28px; }
  .hero-pricing { max-width: none; }
}
@media (max-width: 640px) {
  .pricing-band { grid-template-columns: 1fr; }
  .pband-amount { font-size: 24px; }
  .pb-amount { font-size: 26px; }
  .hero-price-item .hp-value { font-size: 16px; white-space: normal; }
  .price-band { padding: 24px; }
  .pb-factors { padding: 18px; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 99px;
  background: #25d366; color: #fff; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(18, 140, 62, .35), 0 2px 6px rgba(18, 140, 62, .2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-float:hover { transform: translateY(-2px); background: #1ebe5b; box-shadow: 0 12px 30px rgba(18, 140, 62, .42); }
.wa-float:active { transform: translateY(0); }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; padding: 13px; }
  .wa-float span { display: none; }
}

/* ---------- Payment instructions (client invoice tab) ---------- */
.pay-details { display: grid; gap: 12px; margin: 0 0 18px; }
.pay-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sky-50); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 15px 18px;
}
.pay-box .pbx-icon { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.pay-box .pbx-icon svg { width: 19px; height: 19px; }
.pay-box b { display: block; color: var(--ink); font-size: 14.5px; }
.pay-box p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.pay-box .pbx-num { display: block; font-size: 16px; font-weight: 800; color: var(--navy); }

/* ---------- Nav: Start a Project ---------- */
.nav-start {
  padding: 9px 16px !important; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff !important; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 14px rgba(10, 123, 206, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.nav-start svg { width: 16px; height: 16px; }
.nav-start:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 8px 20px rgba(10, 123, 206, .4); }

/* ---------- Deposit ribbon (pricing page) ---------- */
.deposit-ribbon {
  background: linear-gradient(135deg, var(--navy), #0b5a9c);
  color: #fff; padding: 20px 0;
}
.deposit-ribbon .container { display: flex; align-items: center; gap: 18px; }
.dr-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; flex-shrink: 0; }
.dr-icon svg { width: 22px; height: 22px; }
.deposit-ribbon b { font-size: 15.5px; display: block; }
.deposit-ribbon p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 13.5px; }
.deposit-ribbon .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; margin-left: auto; flex-shrink: 0; }
.deposit-ribbon .btn-ghost:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* ---------- Deposit callout (client portal) ---------- */
.deposit-callout {
  display: flex; gap: 15px; align-items: center;
  background: linear-gradient(135deg, #fff7e0, #fffdf6);
  border: 1px solid #f2c94c; border-left: 4px solid #e6a700;
  border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 22px;
}
.dc-icon { width: 46px; height: 46px; border-radius: 13px; background: #ffe9a8; color: #8a6400; display: grid; place-items: center; flex-shrink: 0; }
.dc-icon svg { width: 23px; height: 23px; }
.dc-body { flex: 1; min-width: 0; }
.dc-body b { color: #6b4e00; font-size: 15px; display: block; }
.dc-body p { margin: 4px 0 0; color: #8a6a1a; font-size: 13.5px; }
.deposit-callout .btn-primary { flex-shrink: 0; }

/* ---------- Process flow (process page) ---------- */
.process-flow { max-width: 760px; margin: 0 auto; display: grid; gap: 0; }
.pf-step { display: flex; gap: 22px; padding: 14px 0 30px; position: relative; }
.pf-step::before {
  content: ''; position: absolute; left: 27px; top: 46px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--sky-100), var(--sky-100));
}
.pf-step:last-child::before { display: none; }
.pf-num {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(10, 123, 206, .28); z-index: 1;
}
.pf-body { padding-top: 4px; }
.pf-body h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.pf-body p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 560px; }

/* ---------- Checkout page ---------- */
.checkout-hero { background: linear-gradient(180deg, var(--sky-50) 0%, var(--navy) 260%); }
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 34px; flex-wrap: wrap; }
.cs-step { display: flex; gap: 10px; align-items: center; }
.cs-dot {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  color: var(--faint); display: grid; place-items: center; flex-shrink: 0; transition: all .2s ease;
}
.cs-dot svg { width: 18px; height: 18px; }
.cs-step b { display: block; font-size: 14px; color: var(--ink); }
.cs-step small { font-size: 12px; color: var(--muted); }
.cs-step.done .cs-dot { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.cs-step.current .cs-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(10, 123, 206, .15); }
.cs-step.current b { color: var(--blue); }
.cs-line { flex: 1; max-width: 64px; min-width: 22px; height: 2px; background: var(--sky-100); margin: 0 14px; }
.checkout-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.checkout-col { display: grid; gap: 20px; }
.program-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.pc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pc-head h3 { margin: 0; font-size: 18px; }
.pc-tag { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; }
.pc-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pc-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.pc-meta .feature-list { font-size: 14px; }
.pc-features { margin: 0; }
.deposit-box {
  background: linear-gradient(135deg, var(--navy), #0b5a9c); color: #fff;
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 14px 30px rgba(8, 59, 102, .22); overflow: hidden; position: relative;
}
.deposit-box::after {
  content: ''; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.db-label { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.82); }
.db-label small { font-weight: 600; opacity: .75; }
.db-amount { margin-top: 8px; }
.db-amount strong, .db-value { display: block; margin-top: 4px; font-size: 40px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; }
.db-amount small { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.db-note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.85); display: flex; gap: 7px; align-items: flex-start; }
.db-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.pay-panel { border-left: 3px solid var(--blue); }
.checkout-form .panel-head { margin-bottom: 16px; }
.checkout-total {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--sky-50); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; margin: 4px 0 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.checkout-total b { color: var(--navy); font-size: 16px; white-space: nowrap; }

/* ---------- Checkout / ribbon / process responsive ---------- */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .checkout-steps { justify-content: flex-start; }
  .cs-line { max-width: 34px; }
}
@media (max-width: 640px) {
  .deposit-ribbon .container { flex-wrap: wrap; }
  .deposit-ribbon .btn-ghost { margin-left: 64px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cs-step b, .cs-step small { display: none; }
  .cs-line { display: none; }
  .cs-step { flex-direction: column; text-align: center; }
  .checkout-total { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .deposit-callout { flex-wrap: wrap; }
  .deposit-callout .btn-primary { width: 100%; }
  .pf-step { gap: 16px; }
  .pf-step::before { left: 21px; }
  .pf-num { width: 44px; height: 44px; font-size: 14px; border-radius: 12px; }
}

/* ============================================================
   Small-screen pass — every public page, not just the gallery
   ============================================================
   A phone is not a narrow desktop. Three things go wrong most often
   and are cheap to fix once, here, rather than page by page:

     1. Long unbroken strings — a domain, a reference number, an
        email — push the layout wider than the screen and leave the
        whole page scrolling sideways.
     2. Anything tappable is smaller than a fingertip, because the
        desktop size was designed for a mouse.
     3. Fixed furniture sits under the home indicator, so the last
        line of a footer or a floating button is unreachable on an
        iPhone.
   ============================================================ */
@media (max-width: 640px) {
  /* 1 · Nothing may be wider than the screen. */
  h1, h2, h3, h4, h5, h6, p, li, td, th, small, a, button, summary {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
  pre, code, .mono, .folio-ref, .folio-live .fl-txt small { overflow-wrap: anywhere; }

  /* 2 · Fingertip-sized targets, and never a tap that fires twice. */
  .btn, .ff-chip, .nav-login, .folio-live, .wa-float { touch-action: manipulation; }
  .footer-col a, .footer-contact a, .side-nav a { min-height: 40px; }

  /* 3 · Clear the home indicator and the notch. */
  .footer-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

  /* The page head on a phone: a tighter rhythm, and a headline that
     is allowed to break rather than shrink into a single clipped line. */
  .page-hero { padding-top: 44px; }
  .page-hero h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.16; }
  .page-hero .lead { font-size: 15.5px; }
  .page-img img { height: 190px; }
  .section-head h2 { text-wrap: balance; }
  .eyebrow { font-size: 11.5px; }
}

/* Very small phones (SE, older Androids): the last 15% of width. */
@media (max-width: 360px) {
  .container { width: 94%; }
  .btn { width: 100%; }
  .page-hero h1 { font-size: 25px; }
  .folio-body { padding: 16px 13px; }
  .folio-cover { height: 156px; }
  .folio-desc { font-size: 13.5px; }
  .folio-kit li { font-size: 11.5px; padding: 4px 9px 4px 8px; }
  .folio-scope li, .folio-scope-all ul li { font-size: 13px; }
  .folio-foot-done { font-size: 12.5px; }
}

/* Landscape phones: the sticky bar plus a tall hero eats the screen,
   so the hero stops insisting on a minimum height. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { --hero-min-height: 520px; }
  .page-hero { padding-top: 30px; padding-bottom: 30px; }
}

/* ============================================================
   PAYMENT DETAILS GATE
   ============================================================
   The form a client fills in before they can hand over money, the
   notice that stands in for a payment form while it is incomplete,
   and the progress meter both share.

   Two rules run through all of it:
     · the state a client is in is shown before it is asked about —
       the meter and the checklist update as they type, so nothing
       here is a surprise on submit;
     · nothing that blocks them is a dead end — every blocked state
       carries the button that unblocks it.
   ============================================================ */

/* ---------- Progress meter ---------- */
.billing-meter { margin: 0 0 20px; }
.bm-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.bm-label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.bm-count { font-size: 12.5px; color: var(--muted); }
.bm-count b { color: var(--blue); font-weight: 800; font-size: 14px; }
.bm-track {
  height: 8px; border-radius: 99px; background: var(--sky-100);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(8, 59, 102, .07);
}
.bm-fill {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .3s ease;
}
.billing-meter.is-complete .bm-fill { background: linear-gradient(90deg, var(--green), #1aa876); }
.billing-meter.is-complete .bm-count b { color: var(--green); }

/* ---------- Field groups ---------- */
.billing-form { display: block; }
.billing-intro { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.billing-group {
  border: 0; border-top: 1px solid var(--line-2); margin: 0 0 4px;
  padding: 20px 0 4px;
}
.billing-group:first-of-type { border-top: 0; padding-top: 4px; }
.billing-group legend {
  padding: 0; font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: -.01em; margin-bottom: 3px;
}
.bg-blurb { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }

/* ---------- Business / individual choice ---------- */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-box {
  display: block; padding: 13px 15px; border: 2px solid var(--line);
  border-radius: var(--radius); background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.choice-box b { display: block; font-size: 14px; color: var(--ink); }
.choice-box small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.choice:hover .choice-box { border-color: var(--sky-100); }
.choice input:checked + .choice-box {
  border-color: var(--blue); background: var(--sky-50);
  box-shadow: 0 0 0 3px rgba(10, 123, 206, .12);
}
.choice input:checked + .choice-box b { color: var(--blue-700); }
/* Keyboard users get a ring on the visible box, not the hidden input. */
.choice input:focus-visible + .choice-box { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Field states ---------- */
/* Used by the payer-type switch to take a question away without
   taking the answer with it — see the note in app.js. */
.is-hidden { display: none !important; }
.field .opt { font-weight: 600; color: var(--faint); font-size: 12px; margin-left: 4px; }
.field.has-error .input,
.field.has-error .select { border-color: var(--red); background: #fffbfb; }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(179, 64, 58, .14); }
.field-error {
  color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 6px;
  display: flex; gap: 6px; align-items: flex-start; line-height: 1.45;
}
.field-error::before { content: '!'; font-weight: 800; flex-shrink: 0; }

/* A field the client has just filled in correctly, so the list of
   things left to do visibly shrinks as they work. */
.field.is-done .input,
.field.is-done .select { border-color: rgba(21, 127, 90, .45); }

/* The number we will actually dialled, echoed back while they type. */
.phone-echo { font-size: 12.5px; font-weight: 700; margin-top: 6px; min-height: 17px; }
.phone-echo.ok { color: var(--green); }
.phone-echo.warn { color: var(--amber); font-weight: 600; }

/* ---------- Terms ---------- */
.billing-terms { padding-bottom: 0; }
.terms-done {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--green-bg); border: 1px solid rgba(21, 127, 90, .22);
  border-radius: var(--radius); margin-bottom: 4px;
}
.td-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green);
  color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.td-icon svg { width: 15px; height: 15px; }
.terms-done b { display: block; color: var(--green); font-size: 14px; }
.terms-done small { display: block; color: #2c6b56; font-size: 12.5px; margin-top: 2px; }

.terms-tick {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 15px 16px; border: 2px solid var(--line);
  border-radius: var(--radius); background: #fff;
  transition: border-color .18s ease, background .18s ease;
}
.terms-tick:hover { border-color: var(--sky-100); }
.terms-tick input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.terms-tick b { display: block; font-size: 14px; color: var(--ink); line-height: 1.45; }
.terms-tick small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.terms-tick:has(input:checked) { border-color: var(--blue); background: var(--sky-50); }
.terms-tick.has-error { border-color: var(--red); background: #fffbfb; }

.terms-privacy {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.terms-privacy svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--green); }

.billing-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.billing-actions .btn-block { margin-top: 0; }
.billing-actions p svg { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- The "cannot pay yet" notice ---------- */
.billing-lock {
  border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg); background: #fff; padding: 22px;
}
.bl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.bl-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--sky-100); color: var(--blue-700);
  display: grid; place-items: center;
}
.bl-icon svg { width: 21px; height: 21px; }
.bl-head h3 { margin: 0 0 4px; font-size: 17px; }
.bl-head p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.bl-sub { font-size: 13px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }

.bl-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.bl-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.bl-list b { color: var(--ink); }
.bl-list small { color: var(--muted); display: block; font-size: 12.5px; margin-top: 1px; }
.bl-tick {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: var(--sky-100); color: var(--blue-700);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.bl-tick svg { width: 12px; height: 12px; }
.bl-tick.ok { background: var(--green); color: #fff; }
.bl-list li.is-done .bl-tick { background: var(--green); color: #fff; }
.bl-list li.is-done b { color: var(--green); text-decoration: line-through; text-decoration-color: rgba(21, 127, 90, .35); }
.bl-list.compact { gap: 6px; margin: 10px 0 0; }
.bl-list.compact li { font-size: 12.5px; }
.bl-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.bl-why li { font-size: 13px; color: var(--muted); line-height: 1.55; }
.bl-why b { display: block; color: var(--navy); font-size: 13.5px; margin-bottom: 2px; }

/* ---------- Invoice recipient summary ---------- */
.billing-summary {
  display: flex; gap: 12px; align-items: center; padding: 13px 15px;
  background: var(--sky-50); border: 1px solid var(--line-2);
  border-radius: var(--radius); margin-bottom: 18px;
}
.bs-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  display: grid; place-items: center;
}
.bs-icon svg { width: 17px; height: 17px; }
.billing-summary > div { flex: 1; min-width: 0; }
.billing-summary b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.billing-summary small { display: block; font-size: 13.5px; color: var(--navy); font-weight: 700; margin-top: 2px; line-height: 1.4; word-break: break-word; }
.bs-edit {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 12.5px; font-weight: 700; color: var(--blue);
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
}
.bs-edit:hover { background: var(--sky-100); }
.bs-edit svg { width: 13px; height: 13px; }

/* ---------- Page furniture ---------- */
.billing-layout { align-items: start; }
.billing-panel { margin-bottom: 0; }
.billing-aside { display: grid; gap: 0; }
.billing-aside .panel { margin-bottom: 22px; }
.billing-step-panel .panel-head { margin-bottom: 8px; }
.billing-step-panel > p { margin: 0 0 18px; }
.billing-blocked-note { background: var(--sky-100); border-color: rgba(10, 123, 206, .2); color: var(--blue-700); }
.billing-blocked-note b { display: flex; align-items: center; gap: 7px; }
.billing-blocked-note b svg { width: 15px; height: 15px; }
.billing-blocked-note p { margin: 5px 0 0; line-height: 1.55; }
.billing-ok-note b { display: flex; align-items: center; gap: 7px; }
.billing-ok-note b svg { width: 15px; height: 15px; }
.billing-ok-note p { margin: 5px 0 0; }
.billing-summary-errors {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 20px;
}
.billing-summary-errors b { display: flex; align-items: center; gap: 7px; }
.billing-summary-errors b svg { width: 15px; height: 15px; }
.billing-summary-errors p { margin: 0; line-height: 1.55; }
.billing-schema-note p { margin: 6px 0 0; line-height: 1.55; }
.billing-schema-note code {
  background: rgba(179, 64, 58, .1); padding: 1px 6px;
  border-radius: 5px; font-family: var(--font-mono, monospace); font-size: 12.5px;
}
.billing-schema-note b { display: flex; align-items: center; gap: 7px; }
.billing-schema-note b svg { width: 15px; height: 15px; }

/* The deposit callout switches to a cooler, informational tone while
   the gate is shut, so "you must act" and "pay here" never look alike. */
.deposit-callout.gated { background: var(--sky-50); border-color: var(--line); border-left-color: var(--blue); }
.deposit-callout.gated .dc-icon { background: var(--sky-100); color: var(--blue-700); }
.deposit-callout.gated .dc-body b { color: var(--navy); }
.deposit-callout.gated .dc-body p { color: var(--ink-2); }

/* The sidebar count of outstanding payment details. */
.side-badge.warn { background: var(--amber); color: #4a3400; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .billing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .choice-row { grid-template-columns: 1fr; }
  .billing-lock, .billing-panel { padding: 18px 16px; }
  .bm-count { font-size: 12px; }
  .billing-summary { flex-wrap: wrap; }
  .bs-edit { margin-left: 46px; margin-top: -6px; }
  .terms-tick { padding: 13px 14px; gap: 10px; }
  .deposit-callout.gated { flex-wrap: wrap; }
  .deposit-callout.gated .btn-primary { width: 100%; }
}

/* The meter animates as they type, which is a nicety rather than
   information — drop it for anyone who has asked for less movement. */
@media (prefers-reduced-motion: reduce) {
  .bm-fill, .choice-box, .terms-tick, .bl-tick { transition: none; }
}

/* ===================================================================
   Responsive hardening
   -------------------------------------------------------------------
   Measured against a real browser at 320-1920px. Each block below fixes
   a defect that was actually observed, not a hypothetical one.

   The recurring theme is CSS Grid's default `min-width: auto` on grid
   items: a grid child refuses to shrink below its content's min-content
   width, so one wide table or one long <select> inside a card pushes the
   whole page sideways. `min-width: 0` hands that decision back to the
   track sizing. The existing `.table-wrap { overflow-x: auto }` then does
   its job and the card scrolls its own table instead of the page.
   =================================================================== */

/* --- Grid children must be allowed to shrink --- */
.grid-2 > *, .grid-3 > *, .cards > *, .stats > *, .steps > *,
.report-grid > *, .pricing-grid > *, .folio-grid > *, .value-grid > *,
.checkout-grid > *, .billing-layout > *, .contact-grid > *,
.price-ranges > *, .price-bands > *, .portal-metrics > *,
.range-card, .folio-stats > * {
  min-width: 0;
}

/* A flex child holding text or a control needs the same escape hatch. */
.toolbar > *, .panel-head > *, .dash-head > *, .form-actions > *,
.notif-item > *, .line-item > * {
  min-width: 0;
}

/* --- Selects and inputs must not out-grow their container ---
   A <select> is sized by its widest option, so a long project or client
   name ("RSI-2026-00004 — Customer Feedback Portal") pushed the toolbar
   off the side of a 320px screen. */
.select, .input, .textarea {
  max-width: 100%;
}
.toolbar .select, .toolbar .input {
  width: auto;
  min-width: 0;
  flex: 1 1 180px;
}
.toolbar .field {
  margin-bottom: 0;
  flex: 1 1 180px;
  max-width: 100%;
}

/* --- report-grid replaces a hard-coded inline grid in admin/reports.php ---
   An inline `grid-template-columns` cannot be overridden by a media query
   without !important, so the two columns never collapsed. */
.report-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }

/* --- form-actions replaces a non-wrapping inline flex row --- */
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* --- Primary navigation ---
   Measured: the inline menu needs 1203px, and the shell is 92% of the
   viewport, so the links only fit at >=1250px. The hamburger used to appear
   only below 860px and the inline menu overflowed every width in between.
   Collapse up to 1279px so the last overflow-free inline width (1280px) is
   the first one that shows the full menu. */
@media (max-width: 1279px) {
  .menu { display: block; }
  .links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 18px 6%; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .links a { padding: 12px 10px; border-radius: 9px; width: 100%; }
  .links a:hover, .links a.active { background: var(--sky-50); }
  .links a.active::after { display: none; }
  .nav-login { text-align: center; margin-top: 6px; }
  .topbar { position: relative; }
}
@media (min-width: 1280px) {
  /* Safety net: if the menu ever grows again, wrap rather than overflow. */
  .nav { flex-wrap: wrap; }
  .links { min-width: 0; }
}

/* --- Touch targets ---
   Anything tappable should clear ~32px on a touch screen. These are the
   small-but-real tap targets the audit flagged: panel "View all" links,
   footer links, tabs, and the small icon buttons. */
@media (hover: none), (max-width: 860px) {
  .panel-head .small,
  .panel-head a.small,
  a.small {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 2px;
  }
  .footer-col a { display: inline-block; min-height: 34px; padding: 4px 0; }
  /* The footer sign-in links and the small "Open" links inside admin stat
     tiles are plain inline text, so they are only as tall as the line box. */
  .footer-bottom a, .foot-bottom a { display: inline-flex; align-items: center; min-height: 34px; padding: 2px 4px; }
  .stat a { display: inline-flex; align-items: center; min-height: 32px; }
  /* "Manage all payment details" is the main route to the billing page,
     so give it a finger-sized target even though it reads as prose. */
  .form-note a { display: inline-flex; align-items: center; min-height: 30px; }
  .tabs a { display: inline-flex; align-items: center; min-height: 40px; }
  .side-nav a, .side-bottom a { min-height: 40px; }
  .billing-check-list a, .bl-tick { min-height: 40px; }
  .btn { min-height: 42px; }
  .menu, .nav-toggle { min-width: 44px; min-height: 44px; }
  select.select, .toolbar .select { min-height: 42px; }
}

/* --- Very small phones ---
   320px is the narrowest device still in real use, so it gets its own
   pass rather than inheriting the 360px layout. */
@media (max-width: 360px) {
  .container { width: min(var(--maxw), 94%); }
  .panel { padding: 18px 15px; }
  .section { padding: 48px 0; }
  .dash-main { padding: 18px 12px 46px; }
  .stat, .info-card, .price-band, .billing-panel, .billing-lock { padding-left: 15px; padding-right: 15px; }
  .toolbar .select, .toolbar .input, .toolbar .field { flex-basis: 100%; }
  .form-actions .btn { width: 100%; }
  .choice-box { padding: 11px 12px; }
  .line-item { grid-template-columns: 1fr; gap: 6px; }
}

/* The deposit ribbon aligns its button 64px in, level with the text
   beside the icon. Below ~390px that indent plus the button was wider
   than the container, so the button hung off the right edge. Stack the
   ribbon instead of indenting it. */
@media (max-width: 420px) {
  .deposit-ribbon .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .deposit-ribbon .btn-ghost { margin-left: 0; width: 100%; justify-content: center; }
}
