






* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }  

body {
  font-family: var(--font);
  color: var(--body);
  line-height: 1.65;
  background-color: var(--surface);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--heading); }

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }

h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }

p { margin-bottom: 0.85rem; }

p:last-child { margin-bottom: 0; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--body);
  margin-top: 0.6rem;
}

.btn-primary, .btn-accent, .btn-outline {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary { background-color: var(--primary-dark); color: var(--white); }

.btn-primary:hover { background-color: var(--primary-darker); transform: translateY(-1px); }

.btn-accent { background-color: var(--accent); color: var(--heading); }

.btn-accent:hover { background-color: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background-color: transparent;
  color: var(--heading);
  border-color: rgba(15, 23, 42, 0.35);
}

.btn-outline:hover {
  background-color: rgba(15, 23, 42, 0.06);
  border-color: var(--heading);
}

.btn-primary[hidden], .btn-accent[hidden], .btn-outline[hidden] { display: none; }

:root:not([data-theme="light"]) .hero .btn-outline {
  color: var(--hero-heading);
  border-color: rgba(255, 255, 255, 0.45);
}
:root:not([data-theme="light"]) .hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--hero-heading);
}

.nav {
  position: fixed;
  top: 7px;
  left: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;   
  transition: box-shadow 0.3s, background-color 0.3s;
}

:root:not([data-theme="light"]) .nav.nav-swap { background: rgba(255, 255, 255, 0.96); }  
:root[data-theme="light"] .nav.nav-swap       { background: rgba(240, 253, 244, 0.96); }  

.nav.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.09); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 921px) {
  .nav {
    left: 0;
    right: 0;
    width: min(1152px, calc(100% - 3rem));
    margin: 0 auto;
  }
  .nav-inner { padding: 0 1rem; position: relative; }
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; }
  .nav-links + * { margin-left: auto; }
}
@media (min-width: 921px) and (max-width: 1080px) {
  .nav-inner { gap: 0.75rem; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 0 0.75rem; gap: 0.75rem; }
}
@media (max-width: 370px) {
  .nav-inner { padding: 0 0.5rem; gap: 0.5rem; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.nav-logo {
  --angle: 0deg;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  border: 4px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)) padding-box,
    conic-gradient(from var(--angle), #14532d, #16a34a, #86efac, #16a34a, #14532d) border-box;
  animation: spin 3s linear infinite;
}

.nav-logo .logo-dev { color: var(--primary); }

.logo-chevron {
  width: 0.5em;
  height: 0.62em;
  flex-shrink: 0;
  display: block;
  margin-top: 0.03em;
  stroke: var(--primary-darker);
  stroke-width: 3.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

@keyframes spin {
  to { --angle: 360deg; }
}

.footer-logo {
  --angle: 0deg;
  border: 4px solid transparent;
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  background:
    linear-gradient(var(--footer-bg), var(--footer-bg)) padding-box,
    conic-gradient(from var(--angle), #14532d, #16a34a, #86efac, #16a34a, #14532d) border-box;
  animation: spin 3s linear infinite;
}

.footer-logo .logo-chevron { stroke: var(--footer-chevron); }

@media (prefers-reduced-motion: reduce) {
  .nav-logo,
  .footer-logo { animation: none; }
}

.nav-login:hover { background-color: rgba(22, 163, 74, 0.18); }  

.nav-links { display: flex; list-style: none; gap: 0.1rem; margin-left: auto; }

.nav-links a {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--primary); background-color: var(--primary-light); }

.nav-mobile-cta { display: none; }

.nav-cta {
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background-color: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#pricing, #process, #examples, #contact {
  scroll-margin-top: 0;
}
#process, #contact { padding-top: 65px; }
#pricing { padding-top: 92px; }

.util-menu {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.util-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 10px;
  transition: border-color 0.2s, background-color 0.2s;
}

.util-toggle:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.util-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--heading);
  border-radius: 2px;
}

.util-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  z-index: 200;
}

.util-dropdown.open { display: block; }

.util-item {
  display: block;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  transition: background-color 0.15s, color 0.15s;
}

.util-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}


.hero {
  position: relative;
  isolation: isolate;
  background-image: radial-gradient(ellipse at center, rgba(55, 111, 87, 0.3) 0%, rgba(55, 111, 87, 0.15) 45%, rgba(55, 111, 87, 0.02) 100%);
  background-position: 0 0, bottom center;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--heading);
  padding-top: 64px;
  padding-bottom: 54vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: 0 0, bottom center;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  opacity: 1;                    
  transition: opacity 600ms ease;
}


:root[data-theme="light"] .hero::before { opacity: 0; }

.hero h1,
.hero-tagline,
.hero p { transition: color 600ms ease; }

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero h1,
  .hero-tagline,
  .hero p { transition: none; }
}

.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 2rem 1.5rem; }

.hero h1 { font-size: calc(clamp(2.2rem, 5vw, 3.75rem) + 2px); color: var(--hero-heading); margin-bottom: 0.25rem; letter-spacing: -0.025em; }

@media (min-width: 921px) {
  .hero h1 { white-space: nowrap; width: max-content; margin-left: 50%; transform: translateX(-50%); }
}

.hero-tagline { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 600; color: var(--hero-tagline); margin-bottom: 1.25rem; letter-spacing: -0.01em; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--hero-body);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.services {
  background-color: var(--forest-tint);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 66px;
  box-sizing: border-box;
  scroll-margin-top: 0;
}
@media (max-height: 880px) {
  .services { padding-top: 73px; }
  .services .section-inner { padding-top: 1.5rem; padding-bottom: 2rem; }
  .services .section-header { margin-bottom: 1.5rem; }
  .services .strip { padding-bottom: 1rem; }
  .services .strip-item a { width: 260px; }
  .services .strip-track { animation-duration: 158s; }
}
@media (min-width: 701px) and (max-width: 1100px) and (min-height: 1000px) {
  .services { padding-top: 101px; }   
  .services .section-header { margin-bottom: 3.5rem; }
  .services .service-grid { gap: 2rem; }
  .services .section-inner { padding-bottom: 5.75rem; }
  .services .strip-item a { width: 320px; }
  .services .strip-track { animation-duration: 192s; }
  .services .section-header h2 { font-size: 2rem; }
}
@media (min-width: 1440px) and (min-height: 1000px) {
  .services { padding-top: 81px; }
  .services .section-header { margin-bottom: 3.5rem; }
  .services .section-inner { padding-bottom: 4.5rem; }
  .services .strip-item a { width: 380px; }
  .services .strip-track { animation-duration: 226s; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--surface);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-tint) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-icon svg { width: 38px; height: 38px; }

.service-card h3 { margin-bottom: 0.35rem; }

.service-card p { color: var(--body); font-size: 0.9rem; margin: 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background-color: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.why-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-tint) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.why-icon svg { width: 36px; height: 36px; }

.why-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }

.why-card p { font-size: 0.88rem; color: var(--body); margin: 0; }

.pricing { background-color: var(--forest-tint); }

.pricing .section-inner { padding-top: 1.8rem; padding-bottom: 1.8rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-featured { border: 2px solid var(--primary); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-top {
  text-align: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-top h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }

.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.2rem;
  letter-spacing: -0.03em;
}

.price-sub { font-size: 0.82rem; color: var(--body); margin: 0; }

.pricing-features { list-style: none; margin-bottom: 1.1rem; flex: 1; }

.pricing-features li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-card .btn-primary,
.pricing-card .btn-accent,
.pricing-card .btn-outline { width: 100%; text-align: center; display: block; }

.pricing-card .btn-outline { margin-top: 0.6rem; }

.demo-menu { margin-top: 0.6rem; }

.demo-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.demo-mega-toggle[aria-expanded="true"] .demo-caret { transform: translateY(1px) rotate(-135deg); }

.pricing-card .demo-mega-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.6rem;
}

.demo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.34rem;
  border-radius: 100px;
  background-color: var(--primary-tint);
  color: var(--primary-darker);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.demo-mega {
  --gap: 1.75rem;                            
  --notch-x: 50%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.28s ease, opacity 0.2s ease;
}

.pricing-grid > .demo-mega { grid-column: 1 / -1; order: 1; }

.demo-mega.open { grid-template-rows: 1fr; opacity: 1; }

.demo-mega-launch { --notch-x: calc(16.6667% - var(--gap) / 3); }
.demo-mega-scale  { --notch-x: calc(83.3333% + var(--gap) / 3); }

.demo-mega[hidden] { display: none; }

.demo-mega > .demo-mega-inner { min-height: 0; overflow: hidden; padding-top: 12px; }

.demo-mega-inner > * { margin-inline: auto; }

.demo-mega-panel {
  position: relative;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem 1.5rem;
}

.demo-mega-panel::before,
.demo-mega-panel::after {
  content: '';
  position: absolute;
  left: var(--notch-x);
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  transform: translateX(-50%);
}

.demo-mega-panel::before {
  top: -12px;
  border-bottom: 12px solid var(--border);
}

.demo-mega-panel::after {
  top: -10px;
  border-bottom: 12px solid var(--surface);
}

.demo-mega-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.demo-mega-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.demo-mega-title { font-size: 1.05rem; margin: 0; }

.demo-mega-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.demo-mega-close:hover {
  background-color: rgba(15, 23, 42, 0.06);
  border-color: var(--heading);
  color: var(--heading);
}

.demo-mega-close svg { width: 16px; height: 16px; }

.demo-mega-grid {
  --card-gap: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}

.demo-card {
  flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.demo-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.demo-card-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
}

.demo-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.demo-card:hover .demo-card-shot img { transform: scale(1.03); }

.demo-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 1rem 0.95rem;
}

.demo-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.demo-card-kind {
  font-size: 0.75rem;
  color: var(--body);
  margin-bottom: 0.4rem;
}

.demo-card-desc {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.demo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.demo-card-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  background-color: var(--primary-tint);
  color: var(--primary-darker);
}

.demo-card-go {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.demo-card-go svg { width: 13px; height: 13px; }

.demo-card:hover .demo-card-go { color: var(--primary-darker); }

.demo-mega-foot {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--body);
  text-align: center;
}

@media (max-width: 1024px) {
  .demo-mega,
  .demo-mega-launch,
  .demo-mega-scale { --notch-x: 50%; }
  .pricing-grid > .demo-mega { order: 0; }
  .pricing-grid > .demo-mega-grow { order: -1; }
  .demo-mega-inner > * { max-width: 440px; }
  .demo-mega-grid { --card-gap: 0.9rem; }
  .demo-card { flex-basis: 100%; }
  .demo-mega-panel { padding: 1.1rem 1.1rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-mega { transition: none; }
  .demo-card,
  .demo-card-shot img { transition: none; }
  .demo-card:hover { transform: none; }
  .demo-card:hover .demo-card-shot img { transform: none; }
}

.pricing-note {
  max-width: 65ch;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: 0.87rem;
  color: var(--body);
}

.pricing-note a { font-weight: 600; text-decoration: underline; color: inherit; }

.retainer-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem calc(2rem - 2px) 1.5rem 2rem;
  background-color: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 12px;
  flex-wrap: wrap;
}

.retainer-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.retainer-icon svg { width: 24px; height: 24px; }

.retainer-body { flex: 1; min-width: 200px; max-width: 65ch; margin-inline: auto; }

.retainer-body h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.35rem; }

.retainer-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.75rem;
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
}

.retainer-tiers li {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.87rem;
}

.tier-name { font-weight: 600; color: var(--heading); }

.tier-price { font-weight: 700; color: var(--primary-dark); }

.tier-per { font-weight: 500; font-size: 0.8em; color: var(--body); }

.tier-note { color: var(--body); font-size: 0.82rem; }

.retainer-body p { font-size: 0.87rem; color: var(--body); line-height: 1.6; }

.retainer-cta { flex: 0 0 260px; text-align: center; white-space: nowrap; }

.process { background-color: var(--section-mint); }

.process-about { margin-top: 3.5rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.process-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background-color: var(--primary-dark);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }

.process-step p { font-size: 0.88rem; color: var(--body); margin: 0; }

.testimonials { background-color: var(--surface); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.testimonial-stars { color: var(--accent); font-size: 1rem; letter-spacing: 0.15em; }

.testimonial-card > p {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--body);
  flex: 1;
  margin: 0;
  line-height: 1.7;
}

.testimonial-author { display: flex; flex-direction: column; gap: 0.1rem; }

.testimonial-author strong { color: var(--heading); font-size: 0.9rem; }

.testimonial-author span { font-size: 0.82rem; color: var(--body); }



.about-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 3.5rem 3.25rem;
}

@media (max-width: 700px) {
  .about-card { padding: 2rem 1.5rem 2.25rem; }
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body);
  margin: 0 auto 2rem;
  max-width: 680px;
  text-align: center;
}

.about-lead strong { color: var(--heading); }

.about-commitments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}

.about-commitment { display: flex; gap: 0.7rem; align-items: flex-start; }

.about-commitment svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--primary); }

.about-commitment p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--body); }

.about-commitment strong { color: var(--heading); display: block; }

@media (max-width: 700px) {
  .about-commitments { grid-template-columns: 1fr; gap: 1.1rem; }
}

.contact { background-color: var(--forest-tint); }

.contact .section-inner { max-width: 760px; }

.contact-email { font-size: 0.93rem; margin-top: 0.4rem; }

.contact-email a {
  color: var(--on-forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.services .section-header h2,
.services .section-header p,
.pricing .section-header h2,
.pricing .section-header p,
.pricing-note,
.contact .section-header h2,
.contact .section-header p,
.contact-email {
  color: var(--tan-text);
}

.customer-form { margin-top: 2rem; display: grid; gap: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.customer-form input,
.customer-form textarea,
.customer-form select {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--heading);
  background-color: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.customer-form input::placeholder,
.customer-form textarea::placeholder { color: #94a3b8; }

.customer-form select {
  color: #94a3b8;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.customer-form select.has-value { color: var(--heading); }
.customer-form select option { color: var(--heading); }
.customer-form select option[value=""] { color: #94a3b8; }

.customer-form input:focus,
.customer-form textarea:focus,
.customer-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.customer-form textarea { min-height: 140px; resize: vertical; }

.customer-form .btn-accent {
  border: none;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  width: 100%;
  display: block;
}

.customer-form .btn-accent:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

#formStatus {
  font-size: 0.88rem;
  text-align: center;
  padding: 0.55rem;
  border-radius: 6px;
  min-height: 1.4rem;
}

#formStatus.success { color: var(--primary-dark); background-color: var(--primary-light); }

#formStatus.error { color: var(--danger); background-color: var(--danger-surface); }

.footer { background-color: var(--footer-bg); color: var(--footer-text); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--on-footer-strong);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  white-space: nowrap;
}

.footer-logo .logo-dev { color: var(--footer-dev); }

.footer-end { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.footer-links a { font-size: 0.95rem; font-weight: 600; color: var(--footer-text); transition: color 0.2s; }

.footer-links a:hover { color: var(--on-footer-strong); }

.footer-copy { font-size: 0.95rem; color: var(--footer-text); }

@media (min-width: 921px) {
  .footer-inner { gap: 1.5rem; }
  .footer-end, .footer-links { flex-wrap: nowrap; }
  .footer-end { gap: 1.5rem; }
  .footer-links { gap: 0.875rem; }
  .footer-links a, .footer-copy { font-size: 0.875rem; white-space: nowrap; }
  .footer-links .footer-dup { display: none; }
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-featured { order: -1; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    gap: 0.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-mobile-cta { display: block; }
  .nav-mobile-cta a {
    background-color: var(--accent);
    color: var(--heading);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    margin-top: 0.25rem;
  }
  .nav-mobile-cta a:hover { background-color: var(--accent-dark); color: var(--heading); }
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .footer-end { justify-content: center; }
  .footer-links { justify-content: center; row-gap: 1.25rem; }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions a { width: 100%; max-width: 300px; text-align: center; }
}






*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--forest-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 9999;
}

.modal-card {
  background: #f0fdf4;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  padding: 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 660px;
  display: flex;
  flex-direction: column;
}

:root[data-theme="light"] .modal-overlay { background: var(--primary-tint); }

:root[data-theme="light"] .modal-card { background: var(--white); }

.page-portal .modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-logo {
  --angle: 0deg;
  display: inline-block;
  font-family: 'Hanken Grotesk', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  border: 4px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)) padding-box,
    conic-gradient(from var(--angle), #14532d, #16a34a, #86efac, #16a34a, #14532d) border-box;
  animation: logo-spin 3s linear infinite;
  margin-bottom: 16px;
  text-decoration: none;
}

.modal-logo span { color: #16a34a; }

@keyframes logo-spin {
  to { --angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-logo, .brand-logo { animation: none; }
}

.modal-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-header p {
  color: #475569;
  font-size: 14px;
}

.modal-form-group {
  margin-bottom: 20px;
}

.modal-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
}

.modal-form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.modal-form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.modal-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);  
}

.modal-button:active { transform: translateY(0); }

.modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.modal-error {
  background: var(--danger-surface);
  border: 1px solid var(--danger-tint);
  color: var(--danger);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.modal-error.show { display: block; }

.modal-success {
  background: var(--primary-tint);
  border: 1px solid #86efac;
  color: var(--primary-dark);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.modal-success.show { display: block; }

.modal-loading {
  display: none;
  text-align: center;
  color: var(--body);
  font-size: 14px;
  margin-top: 10px;
}

.modal-loading.show { display: block; }

.modal-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--body);
}

.modal-link a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.modal-link a:hover { text-decoration: underline; }

.modal-footer {
  text-align: center;
  margin-top: auto;          
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--footer-text);
}

.modal-footer a {
  color: var(--primary-dark);
  text-decoration: none;
}

.modal-footer a:hover { text-decoration: underline; }

.modal-form { display: none; }

.modal-form.active { display: block; }

.modal-welcome {
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
  color: #0f172a;
}

.modal-otp-wrapper {
  margin-bottom: 20px;
}

.modal-otp-label {
  display: block;
  text-align: center;
  margin-bottom: 14px;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
}

.modal-otp-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-otp-box {
  width: 36px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  background: var(--surface);
  font-family: 'Hanken Grotesk', monospace;
  caret-color: transparent;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  line-height: 1;
  box-sizing: border-box;
}

.modal-otp-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.modal-otp-box.filled {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.modal-otp-hint {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 400px) {
  .modal-otp-group { gap: 6px; }
}

body.page-portal {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--forest-tint);
  color: var(--heading);
  min-height: 100vh;
}

.page-portal .form-group {
  margin-bottom: 20px;
}

.page-portal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--heading);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--heading);
}

.portal-hidden { display: none; }

.page-portal .empty-state {
  color: var(--heading);
  font-size: 14px;
}

.portal-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.09);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  --angle: 0deg;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  border: 4px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)) padding-box,
    conic-gradient(from var(--angle), #14532d, #16a34a, #86efac, #16a34a, #14532d) border-box;
  animation: logo-spin 3s linear infinite;
}

.brand-logo span { color: var(--primary); }

.header-divider {
  color: var(--border);
  font-size: 18px;
  font-weight: 300;
}

.header-subtitle {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-logout {
  padding: 7px 14px;
  background: transparent;
  border: 2px solid #f59e0b;
  color: var(--primary);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  border-color: #d97706;
  color: #d97706;
}

.portal-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tabs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
}

.tab-btn, .card-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab-btn:hover, .card-tab:hover { color: var(--primary); }

.tab-btn.active, .card-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.tab-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

.tab-panel { display: none; }

.tab-panel.visible { display: block; }

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tan-text);
}

.panel-heading p {
  font-size: 14px;
  color: var(--tan-text);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.portal-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--heading);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-title svg {
  width: 13px;
  height: 13px;
}

.welcome-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--primary-tint);
  color: var(--primary-darker);
  border: none;
}

.welcome-card .card-title { color: var(--primary-dark); opacity: 1; }

.welcome-text h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-darker);
}

.welcome-text p {
  font-size: 14px;
  opacity: 1;
  color: var(--primary-dark);
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  transition: background 0.2s;
}

.site-link:hover {
  background: var(--primary-dark);
  color: var(--white);
}

:root[data-theme="light"] .welcome-card {
  background: #376f57;  
  color: var(--white);
}

:root[data-theme="light"] .welcome-card .card-title { color: var(--white); opacity: 0.75; }

:root[data-theme="light"] .welcome-text h2 { color: var(--white); }

:root[data-theme="light"] .welcome-text p { color: var(--white); }

:root[data-theme="light"] .site-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] .site-link:hover {
  background: var(--white);
  color: var(--primary-darker);
}

.welcome-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--primary-dark);
}

.welcome-icon svg { width: 100%; height: 100%; display: block; }

:root[data-theme="light"] .welcome-icon { color: #86efac; }

.info-row {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-item:last-child { border-bottom: none; padding-bottom: 0; }

.info-item:first-child { padding-top: 0; }

.info-label {
  color: var(--heading);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}

.info-value {
  color: var(--heading);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.info-value a {
  color: var(--primary);
  text-decoration: none;
}

.info-value a:hover { text-decoration: underline; }

.status-main-card { grid-column: 1 / -1; }

.status-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-icon {
  font-size: 38px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-icon.down { background: var(--danger-tint); }

.status-icon.live { background: #dcfce7; }

.status-icon.pending { background: #fef9c3; }

.status-icon.issue { background: #fee2e2; }

.status-details h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.status-details p {
  font-size: 13px;
  color: var(--heading);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge.down { background: var(--danger-tint); color: var(--danger-ink); }

.status-badge.down::before { background: var(--danger); }

.status-badge.live { background: #dcfce7; color: #166534; }

.status-badge.live::before { background: #22c55e; }

.status-badge.pending { background: #fef9c3; color: #854d0e; }

.status-badge.pending::before { background: #eab308; }

.status-badge.issue { background: #fee2e2; color: #991b1b; }

.status-badge.issue::before { background: #ef4444; }

.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.link-row:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.link-row-label { flex: 1; }

.link-arrow { color: #cbd5e1; font-size: 12px; }

.support-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.support-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.support-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.support-row-value {
  font-size: 14px;
  color: var(--heading);
  font-weight: 500;
}

.support-row-value a {
  color: var(--primary);
  text-decoration: none;
}

.support-row-value a:hover { text-decoration: underline; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-col { grid-column: 1 / -1; }

.card-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 8px;
  margin-bottom: 20px;
}
.card-tab { padding: 12px 16px; }
.card-pane { grid-column: 1 / -1; }
.card-pane[hidden] { display: none; }

.settings-form .form-group input:focus,
.settings-form .form-group textarea:focus,
.settings-form .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.settings-form .form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.page-portal .btn-primary, .page-admin .btn-primary {
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.page-portal .btn-primary:hover, .page-admin .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  margin-top: 10px;
  font-size: 13px;
  display: none;
}

.form-note.show { display: block; }

.form-note.ok { color: var(--primary-dark); }

.form-note.err { color: #be123c; }

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--subtle);
}

#invoicesList .doc-row {
  background: var(--white);
}

.doc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
}

.doc-meta {
  font-size: 12px;
  color: var(--heading);
  margin-top: 2px;
}

.btn-dl {
  padding: 7px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--heading);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-dl:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.portal-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--tan-text);
  font-size: 15px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinner-rotate 0.75s linear infinite;
  margin: 0 auto 14px;
}


@keyframes spinner-rotate { to { transform: rotate(360deg); } }

.portal-footer {
  text-align: center;
  padding: 22px;
  font-size: 13px;
  color: var(--heading);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.portal-footer a {
  color: var(--primary);
  text-decoration: none;
}

.modal-card.wide {
  max-width: 800px; 
  min-height: unset; 
}

.modal-card.wide .modal-footer {
  margin-top: 16px;
  padding: 12px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creds-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 28px;
}

.creds-header .modal-logo { margin-bottom: 0; }

.creds-header h1 { margin-bottom: 0; font-size: 20px; }

.creds-pipe { display: none; }

.creds-header .creds-pipe {
  display: inline;
  color: #cbd5e1;
  font-weight: 300;
  font-size: 22px;
  flex-shrink: 0;
}

.creds-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  flex: 1;
}

.creds-col:first-child {
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

.creds-col:last-child {
  padding-left: 32px;
}

@media (max-width: 640px) {
  .creds-columns { grid-template-columns: 1fr; }
  .creds-col:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .creds-col:last-child { padding-left: 0; }
}

.doc-picker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-portal .doc-picker-row.form-group { margin-bottom: 12px; }
.page-portal .doc-picker-row label { margin-bottom: 0; }
.doc-picker-row select { flex: 1 1 260px; max-width: 520px; min-width: 0; }
.doc-picker-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-picker-actions[hidden], .doc-picker-actions [hidden] { display: none; }
.doc-picker-label { color: var(--heading); font-size: 14px; }
.page-portal .doc-picker-row label, .doc-picker-label { font-weight: 500; flex: 0 0 84px; }
@media (max-width: 480px) {
  .page-portal .doc-picker-row label, .doc-picker-label { flex-basis: 100%; }
  .doc-picker-row, .doc-picker-actions { row-gap: 8px; }
}
.page-portal .doc-picker-actions .btn-primary:not([hidden]) {
  min-height: 44px; padding: 0 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-portal .doc-picker-actions #docPdfBtn,
.page-portal .doc-picker-actions #docPdfBtn:hover { background: #FA0F00; }
.page-portal .doc-picker-actions #docWordBtn,
.page-portal .doc-picker-actions #docWordBtn:hover { background: #185ABD; }
.page-portal .doc-picker-actions #docPdfBtn,
.page-portal .doc-picker-actions #docWordBtn { font-size: 19px; font-weight: 700; color: var(--white); }

.page-portal .portal-tabs {
  position: sticky;
  top: 0;
  z-index: 99;
}

.portal-tabs .tabs-inner { align-items: center; gap: 16px; }

.portal-tabs .tab-list { display: flex; min-width: 0; }

.portal-tabs .site-select-inner {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-portal .site-select-inner.form-group { margin-bottom: 0; }

.page-portal .site-select-inner label { margin-bottom: 0; white-space: nowrap; }

.site-select-inner select { max-width: 260px; }

@media (max-width: 768px) {
  .portal-tabs .tabs-inner { flex-direction: column; align-items: stretch; gap: 0; overflow-x: visible; }
  .portal-tabs .tab-list { overflow-x: auto; }
  .portal-tabs .site-select-inner { order: -1; margin-left: 0; padding: 10px 8px 2px; }
  .site-select-inner select { max-width: none; flex: 1; }
}

@media (max-width: 768px) {
  .header-inner { padding: 14px 16px; }
  .header-subtitle { display: none; }
  .tabs-inner { padding: 0 8px; overflow-x: auto; }
  .tab-btn { padding: 13px 13px; font-size: 13px; }
  .portal-main { padding: 20px 16px 40px; }
  .portal-overview-wrap { padding: 12px 16px 0; }
  .card-grid,
  .settings-grid { grid-template-columns: 1fr; }
  .welcome-card { flex-direction: column; align-items: flex-start; }
  .welcome-icon { display: none; }
  .status-hero { flex-direction: column; align-items: flex-start; }
}




body.page-admin {
  font-family: var(--font);
  background: var(--forest-tint);
  color: var(--heading);
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
}

.panel-heading-row {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 400px) 1fr;
  align-items: center;
  gap: 16px;
}

.panel-heading-row h2 {
  margin-bottom: 0;
  line-height: 30px;         
  justify-self: start;
}

.panel-heading-balance { justify-self: end; }

.panel-heading-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-search {
  height: 30px;              
  width: 100%;
  padding: 0 14px 0 34px;    
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--heading);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-search::placeholder { color: var(--muted); }

.panel-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.message-count {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.loading {
  text-align: center;
  color: var(--tan-text);
  font-size: 14px;
  padding: 24px 0;
}

.error {
  background: #fee2e2;
  border: 1px solid var(--danger-tint);
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.page-admin .empty-state {
  text-align: center;
  color: var(--tan-text);
  font-size: 14px;
  padding: 40px 0;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.messages-grid {
  display: grid;
  gap: 12px;
}

.message-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.message-card:hover {
  box-shadow: var(--shadow-lg);
}

.message-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;                 
  user-select: none;
}

.message-summary::-webkit-details-marker { display: none; }

.message-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.summary-company {
  font-size: 13px;
  color: var(--heading);
}

.summary-spacer { flex: 1; }

.message-date {
  font-size: 12px;
  color: var(--heading);
  white-space: nowrap;
}

.summary-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);        
  transition: transform 0.2s;
  flex-shrink: 0;
}

.message-card[open] .summary-chevron {
  transform: rotate(45deg);         
}

.message-card[open] .message-summary {
  border-bottom: 1px solid var(--border);
}

.message-body {
  padding: 16px 22px 20px;
}

.message-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 14px;
}

.detail-field { font-size: 13px; }

.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
  margin-bottom: 3px;
}

.detail-value {
  color: var(--heading);
  word-break: break-word;
}

.detail-value a {
  color: var(--primary);
  text-decoration: none;
}

.detail-value a:hover { text-decoration: underline; }

.message-text {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 14px;
}

.message-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-accept {
  background: var(--primary);
  color: var(--white);
}

.btn-accept:hover { background: var(--primary-dark); }

.btn-decline {
  background: var(--surface);
  border: 1.5px solid #fcd34d;
  color: #854d0e;
}

.btn-decline:hover {
  background: #fef9c3;
  border-color: #f59e0b;
}

.actions-spacer { flex: 1; }

.btn-restore {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-restore:hover {
  background: var(--primary-light);
}

.btn-edit {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--heading);
}

.btn-edit:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-delete {
  background: var(--danger);
  color: var(--white);
}

.btn-delete:hover { background: var(--danger-dark); }

.btn-save {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
}

.btn-save:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--body);
  padding: 10px 20px;
}

.btn-cancel:hover { border-color: var(--muted); }

.portal-header .btn-primary {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-ghost {
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-copy {
  padding: 6px 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover { background: var(--primary-dark); }

.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
}

.status-pill.down { background: var(--danger-tint); color: var(--danger-ink); }

.status-pill.live { background: #dcfce7; color: #166534; }

.status-pill.pending { background: #fef9c3; color: #854d0e; }

.status-pill.issue { background: #fee2e2; color: #991b1b; }

.status-pill.declined { background: #f1f5f9; color: #64748b; }

.status-pill.accepted { background: #dcfce7; color: #166534; }

.client-section { margin-bottom: 14px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-link {
  display: inline-block;
  padding: 5px 12px;
  background: var(--subtle);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content--wide { max-width: 680px; }

.page-admin .modal-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--heading); }

.confirm-modal { text-align: center; }

.confirm-modal p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-actions--center { justify-content: center; }

.modal-actions--sticky {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 12px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}

.page-admin .form-group { margin-bottom: 15px; }

.page-admin .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--heading);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group label.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  margin-top: 28px; 
}

.form-group label.checkbox-label input[type="checkbox"] {
  width: auto;
}

.editor-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 8px;
  align-items: center;
}

.editor-row input {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--heading);
}

.editor-row .btn-remove-row {
  background: none;
  border: none;
  color: #991b1b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}

.client-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.client-modal-grid .full-col { grid-column: 1 / -1; }

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 6px;
  grid-column: 1 / -1;
}

.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.code-input {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  width: 140px;
  text-align: center;
  padding: 6px 10px;
}

.code-chip {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--heading);
  background: #f0fdf4;
  padding: 4px 16px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.code-reveal {
  text-align: center;
  padding: 24px 0;
}

.code-reveal-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.code-reveal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 22px;
}

.code-reveal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.code-reveal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.code-reveal-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--heading);
  background: var(--subtle);
  padding: 14px 28px;
  border-radius: 8px;
}

.code-reveal-done { margin-top: 24px; }

@media (max-width: 768px) {
  .header-inner { padding: 14px 16px; }
  .header-subtitle { display: none; }
  .tabs-inner { padding: 0 8px; overflow-x: auto; }
  .tab-btn { padding: 13px 13px; font-size: 13px; }
  .portal-main { padding: 20px 16px 40px; }
  .client-modal-grid { grid-template-columns: 1fr; }
  .message-actions { flex-wrap: wrap; }
  .panel-heading-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .panel-heading-balance { display: none; }
}




.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  margin-right: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover { background-color: rgba(22, 163, 74, 0.18); }  

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .theme-toggle {
    border-color: ButtonBorder;
    color: ButtonText;
  }

  .theme-toggle:focus-visible { outline-color: Highlight; }
}

.inv-item { margin-bottom: 10px; }
.inv-item:last-child { margin-bottom: 0; }

.inv-head { width: 100%; font: inherit; color: inherit; text-align: left;
            background: var(--white); cursor: pointer; }
.inv-head:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.inv-chev { flex: 0 0 auto; width: 0; height: 0; margin-right: 4px;
            border-top: 5px solid transparent; border-bottom: 5px solid transparent;
            border-left: 7px solid var(--body);
            transition: transform 0.15s ease; }
.inv-head[aria-expanded="true"] .inv-chev { transform: rotate(90deg); }

.inv-head .doc-name { flex: 1 1 auto; }

.inv-body { border: 1px solid var(--border); border-top: 0;
            border-radius: 0 0 8px 8px; background: var(--white);
            margin: -8px 0 0; padding: 14px 16px 16px; }
.inv-head[aria-expanded="true"] { border-radius: 8px 8px 0 0; }

.inv-ledger { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
.led-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }


.led-doc { font-size: 14px; line-height: 1.55; }
.led-h { font-size: 21px; margin: 0 0 2px; color: #0f172a; }
.led-meta { color: #475569; font-size: 13px; margin: 0 0 2px; }
.led-stamp { color: #64748b; font-size: 12px; margin: 0 0 20px; }
.led-sect { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em;
            color: #475569; font-weight: 700; margin: 24px 0 8px; }
.led-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.led-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #cbd5e1;
                font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
                color: #475569; }
.led-table td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.led-date { white-space: nowrap; color: #475569; }
.led-auth { white-space: nowrap; color: #475569; }
.led-detail { color: #64748b; font-size: 12px; margin-top: 2px; }
.led-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.led-note { color: #475569; font-size: 12.5px; margin: 10px 0 0; }
.led-total { display: flex; justify-content: space-between; align-items: baseline;
             border-top: 2px solid #cbd5e1; margin-top: 16px; padding-top: 12px;
             font-size: 15px; font-weight: 700; }
.led-foot { color: #64748b; font-size: 11.5px; margin-top: 24px; line-height: 1.6; }

@media print {
  .led-actions { display: none !important; }
  .inv-body { border: 0; padding: 0; margin: 0; }
  .inv-ledger { border-top: 0; padding-top: 0; margin-top: 0; }
  .led-table { page-break-inside: auto; }
  .led-table tr { page-break-inside: avoid; }
}

#panel-invoices .card-title {
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  font-weight: 700;
}

#clientsList .message-card { background: var(--white); }

#clientsList .status-pill {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 14pt;
  font-weight: 700;
}

#clientsList .doc-row { background: var(--white); }

#clientsList .inv-detail { margin-bottom: 8px; }
#clientsList .inv-detail:last-child { margin-bottom: 0; }

#clientsList summary.inv-head {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
#clientsList summary.inv-head::-webkit-details-marker { display: none; }
#clientsList summary.inv-head::marker { content: ""; }
#clientsList summary.inv-head:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

#clientsList .inv-detail[open] summary.inv-head { border-radius: 8px 8px 0 0; }
#clientsList .inv-detail[open] .inv-chev { transform: rotate(90deg); }

#clientsList .inv-actions { display: flex; gap: 8px; margin-top: 12px; }

#clientsList .inv-ledger { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
#clientsList .inv-ledger:empty { display: none; }

.led-problems { color: #991b1b; }
.led-problem-list { margin: 0 0 4px; padding-left: 20px; color: #991b1b; font-size: 13px; line-height: 1.6; }

.price-year {
  margin: 0.55rem 0 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  text-align: left;
}
.price-year-total {
  margin: 0;
  font-size: 0.95rem;
  color: var(--heading);
  line-height: 1.35;
}
.price-year-total strong { font-weight: 800; color: var(--primary); }
.price-year-then {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--body);
  line-height: 1.45;
}
@media (max-width: 560px) {
  .price-year-total { font-size: 0.9rem; }
}

.features-lead {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}

.pw-wrap {
  position: relative;
  display: block;
}

.pw-wrap > input {
  width: 100%;
  padding-right: 64px;
}

.pw-reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.75;
}

.pw-reveal:hover,
.pw-reveal:focus-visible { opacity: 1; }

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0;
}
.services-examples .btn-outline {
  display: inline-block;
  color: var(--on-forest-strong);
  border-color: var(--on-forest-strong);
}
.services-examples .btn-outline:hover { background-color: var(--on-forest-chip-hover); }
@media (min-width: 921px) {
  .services-examples .btn-accent { display: none; }
}

.strip {
  width: min(calc(1200px - 3rem), calc(100% - 3rem));
  margin-inline: auto;
  overflow: hidden;
  padding: 0.5rem 0 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  list-style: none;
  animation: strip-scroll 181s linear infinite;
}
.strip:hover .strip-track,
.strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes strip-scroll { to { transform: translateX(calc(-50% - 0.625rem)); } }
.strip-item a {
  display: block;
  width: 300px;
  text-decoration: none;
  color: inherit;
}
.strip-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--on-forest-rule);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  transition: transform 0.18s, border-color 0.18s;
}
.strip-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.strip-item a:hover .strip-shot,
.strip-item a:focus-visible .strip-shot { border-color: var(--on-forest-icon); transform: translateY(-3px); }
.strip-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; font-size: 0.88rem; }
.strip-meta b { color: var(--on-forest-strong); }
.strip-meta span { color: var(--tan-text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; mask-image: none; }
  .strip-track { animation: none; padding: 0 1.5rem; }
  .strip-item[aria-hidden="true"] { display: none; }
}

.strip-wrap { position: relative; --strip-card: 300px; }
.strip.is-scrollable { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.strip.is-scrollable::-webkit-scrollbar { display: none; }
.strip.is-scrollable.is-dragging { cursor: grabbing; user-select: none; }
.strip.is-scrollable.is-dragging a { pointer-events: none; }
.strip.is-scrollable .strip-track { animation: none; }
.strip-btn {
  position: absolute; z-index: 2;
  top: calc(0.5rem + var(--strip-card) * 0.3125);
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--on-forest-strong);
  background: var(--forest-tint);
  color: var(--on-forest-strong);
  cursor: pointer;
  transition: background-color 0.18s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.strip-btn:hover { background-color: var(--on-forest-chip-hover); }
.strip-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.strip-prev { left: max(0.25rem, calc((100% - 1200px) / 2 + 0.25rem)); }
.strip-next { right: max(0.25rem, calc((100% - 1200px) / 2 + 0.25rem)); }
@media (max-height: 880px) { .services .strip-wrap { --strip-card: 260px; } }
@media (min-width: 701px) and (max-width: 1100px) and (min-height: 1000px) { .services .strip-wrap { --strip-card: 320px; } }
@media (min-width: 1440px) and (min-height: 1000px) { .services .strip-wrap { --strip-card: 380px; } }
@media (max-width: 620px) { .strip-btn { width: 2.25rem; height: 2.25rem; } }

.why { background-color: var(--section-mint); }
.why h2 { color: var(--heading); }

.why .why-card,
.process .process-step,
.process .about-card { background-color: var(--card-on-light); }

.pricing-grid > .pricing-custom { grid-column: 1 / -1; order: 2; }
.pricing-grid > .pricing-note { grid-column: 1 / -1; order: 2; margin: 0 auto; }
.pricing-grid > .demo-mega-custom { order: 3; }

.pricing-custom {
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
  border: 3px dashed var(--primary);
}

.custom-copy { flex: 1; }
.custom-copy h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.custom-copy h3 + p { margin: 0; font-size: 0.95rem; color: var(--body); max-width: 60ch; }
.custom-note { margin: 0.75rem 0 0; font-size: 0.87rem; color: var(--body); max-width: 60ch; }

.custom-actions { flex: 0 0 260px; display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-card .custom-actions .btn-outline { margin-top: 0; }

.demo-mega-custom { --notch-x: calc(100% - 1.75rem - 130px); }

.idea-launch-note { margin: 0 0 1rem; font-size: 0.9rem; color: var(--body); }
.idea-launch-note strong { color: var(--heading); }
.idea-tier {
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 2px solid var(--primary);
}
.demo-mega-grid + .idea-tier { margin-top: 1.4rem; }

@media (max-width: 1024px) {
  .pricing-grid > .pricing-custom { order: 0; }
  .pricing-grid > .pricing-note { order: 0; }
  .pricing-grid > .demo-mega-custom { order: 0; }
  .pricing-custom { flex-direction: column; align-items: stretch; }
  .custom-actions { flex-basis: auto; }
  .retainer-cta { flex: 1 1 100%; }
  .demo-mega-custom { --notch-x: 50%; }
}

.nav-links a, .nav-cta, .nav-login, .footer-links a, .modal-footer a { position: relative; }
.nav-links a::after, .nav-cta::after, .nav-login::after,
.footer-links a::after, .modal-footer a::after {
  content: ""; position: absolute;
  top: min(0px, calc((100% - 44px) / 2)); bottom: min(0px, calc((100% - 44px) / 2));
  left: min(0px, calc((100% - 24px) / 2)); right: min(0px, calc((100% - 24px) / 2));
}
@media (max-width: 920px) {
  .nav.nav-open .nav-links a::after { top: -0.05rem; bottom: -0.05rem; }
}

.form-group input, .form-group select { min-height: 44px; }
.modal-otp-box { height: 44px; }

@keyframes portal-autofill { from { } to { } }
input[type="password"]:-webkit-autofill { animation-name: portal-autofill; animation-duration: 1ms; }

.portal-overview-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 28px 0; }

.portal-header .tab-list { display: flex; justify-content: center; flex: 1; min-width: 0; }
.portal-header .tab-btn { padding: 10px 14px; margin-bottom: 0; }
.portal-overview { flex-wrap: wrap; }
.portal-overview .welcome-text { flex: 1; text-align: center; }
.portal-overview { padding-top: 18px; padding-bottom: 18px; }
.overview-site-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.overview-site-row .site-link { margin-top: 0; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--border); }
:root[data-theme="light"] .overview-site-row .site-link { background: var(--white); color: var(--primary-darker); }
:root:not([data-theme="light"]) .portal-overview #siteSelect,
:root:not([data-theme="light"]) .overview-site-row .site-link { background: var(--primary-light); }
.portal-overview .site-select-inner { display: flex; align-items: center; gap: 10px; margin: 0; }
.portal-overview .site-select-inner label { color: inherit; margin: 0; }
.portal-overview .site-select-inner select { width: auto; min-width: 240px; }
@media (max-width: 1099px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .portal-header .tab-list { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .portal-overview .site-select-inner select { min-width: 0; flex: 1; }
}
@media (max-width: 480px) {
  .portal-header .tab-btn svg { display: none; }
  .portal-header .tab-btn { padding: 10px 8px; }
}
@media (max-width: 380px) {
  .portal-header .tab-btn { padding: 10px 6px; font-size: 12.5px; }
}
@media (min-width: 769px) {
  .portal-overview > .card-title,
  .portal-overview .welcome-icon { align-self: flex-start; }
  .portal-overview > .card-title { margin-top: 3px; }
  .portal-overview .welcome-icon { margin-top: -15px; }
}
