:root {
  --ink: #17202a;
  --muted: #667085;
  --paper: #fffaf4;
  --cream: #fff4dc;
  --rose: #ff6f8f;
  --coral: #ff8a63;
  --teal: #0ea7a5;
  --mint: #bdf3d4;
  --blue: #356cf6;
  --plum: #653b8f;
  --line: rgba(23, 32, 42, 0.13);
  --shadow: 0 24px 70px rgba(39, 44, 58, 0.16);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 22px 80px rgba(255, 111, 143, 0.18);
  --radius: 8px;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 193, 69, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 167, 165, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(255, 111, 143, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(14, 167, 165, 0.2), transparent 26rem),
    linear-gradient(135deg, #fffaf4 0%, #eff8ff 46%, #fff3ec 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 32px));
  margin: 1rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(23, 32, 42, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(101, 59, 143, 0.22);
  background: #fffaf4;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.login-link {
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f3a45;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.login-link:hover {
  background: rgba(14, 167, 165, 0.1);
  color: #075e60;
  transform: translateY(-1px);
}

.admin-link {
  color: var(--plum);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 680px;
  color: #42505c;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.cloud-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(14, 167, 165, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1c5d5f;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(14, 167, 165, 0.12);
}

.cloud-status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #ffc145;
}

.cloud-status[data-mode="live"]::before {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(14, 167, 165, 0.12);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 16px 32px rgba(255, 111, 143, 0.28);
}

.button.secondary {
  color: #105d60;
  border-color: rgba(14, 167, 165, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.button.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.trust-strip span {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #4a5864;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
}

.hero-visual::before {
  content: none;
  display: none;
}

.call-card,
.dashboard-card,
.note-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 50px rgba(23, 32, 42, 0.13);
  backdrop-filter: blur(16px);
}

.call-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem;
  animation: none;
}

.call-card small,
.note-card span,
.client-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.pulse-ring {
  position: absolute;
  left: 1rem;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(14, 167, 165, 0.45);
  border-radius: 50%;
  animation: pulse 2.3s ease-out infinite;
}

.dashboard-card {
  width: 100%;
  padding: 1.2rem;
  animation: none;
}

.dashboard-header {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.dashboard-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.dashboard-header span:nth-child(2) {
  background: #ffc145;
}

.dashboard-header span:nth-child(3) {
  background: var(--teal);
}

.client-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.progress-block {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.progress-block span {
  display: block;
  width: var(--width);
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.note-card {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  animation: none;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: -1.25rem auto 1rem;
}

.stats-band div {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, rgba(255, 111, 143, 0.16), rgba(14, 167, 165, 0.14));
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.08);
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  margin-bottom: 0.25rem;
  color: var(--plum);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stats-band span {
  color: #495865;
  font-weight: 800;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-illustration {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
}

.intro-band p:last-child,
.contact-copy p {
  color: #43515d;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.workflow-illustration {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.service-grid,
.plan-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.plan-card,
.timeline article,
.record-form,
.records-panel,
.employee-tools {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(14px);
}

.service-card,
.plan-card,
.timeline article {
  padding: 1.35rem;
}

.service-card {
  transition:
    transform 200ms ease,
    background 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: white;
}

.icon,
.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: white;
  background: var(--plum);
  font-weight: 900;
}

.service-card:nth-child(2) .icon,
.timeline article:nth-child(2) span {
  background: var(--coral);
}

.service-card:nth-child(3) .icon,
.timeline article:nth-child(3) span {
  background: var(--teal);
}

.service-card p,
.plan-card li,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.plans-section,
.workflow-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.plans-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 193, 69, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(101, 59, 143, 0.09), rgba(14, 167, 165, 0.12));
}

.plan-card {
  position: relative;
}

.plan-card.featured {
  background: #17202a;
  color: white;
  transform: translateY(-0.75rem);
}

.plan-card.featured li,
.plan-card.featured .price {
  color: rgba(255, 255, 255, 0.78);
}

.badge {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #3a2400;
  background: #ffc145;
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  color: var(--plum);
  font-size: 1.6rem;
  font-weight: 900;
}

.plan-card ul {
  min-height: 150px;
  padding-left: 1.1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 2rem;
}

.contact-details {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  color: #40505c;
  font-weight: 800;
}

.contact-with-illustration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-illustration {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.inquiry-form,
.login-box {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.4rem;
  color: #384653;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 167, 165, 0.12);
}

.form-status,
.demo-creds {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.portal-subcopy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-header,
.records-tools,
.employee-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.record-form,
.records-panel {
  padding: 1rem;
}

.records-list {
  display: grid;
  gap: 0.75rem;
}

.record-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.record-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.record-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.record-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-card dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-button {
  min-height: 34px;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8ef;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.mini-button.danger {
  background: #fff1f1;
  color: #a3213a;
}

.note-area {
  display: grid;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

.login-dialog {
  width: min(460px, calc(100% - 32px));
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(23, 32, 42, 0.48);
  backdrop-filter: blur(5px);
}

.login-box {
  position: relative;
}

.close-dialog {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff1f1;
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}






/* ═══════════════════════════════════════════════════════════
   WHO WE ARE SECTION — MOBILE OPTIMIZATION
   Add these rules to your styles.css
   ═══════════════════════════════════════════════════════════ */

/* Desktop (1000px+) - Side by side layout */
.who-we-are-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.who-we-are-text {
  order: 2; /* Text on right */
}

.who-we-are-image {
  order: 1; /* Image on left */
  width: 100%;
}

.who-we-are-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

/* Tablet (768px - 999px) - Adjust gap and padding */
@media (max-width: 999px) {
  .who-we-are-container {
    gap: 2rem;
    padding: 1.5rem;
  }

  .who-we-are-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .who-we-are-text p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  }
}

/* Mobile (< 768px) - Stack vertically */
@media (max-width: 768px) {
  .who-we-are-container {
    display: block;
    gap: 0;
    padding: 1rem;
  }

  .who-we-are-image {
    margin-bottom: 2rem;
    order: 1;
  }

  .who-we-are-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .who-we-are-text {
    order: 2;
  }

  .who-we-are-text h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .who-we-are-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .who-we-are-text .tag {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }
}

/* Small Mobile (< 480px) - Extra tight spacing */
@media (max-width: 480px) {
  .who-we-are-container {
    padding: 0.75rem;
  }

  .who-we-are-image {
    margin-bottom: 1.5rem;
  }

  .who-we-are-text h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .who-we-are-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .checkmark-list {
    margin-top: 1rem;
  }

  .checkmark-list li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
  }

  .checkmark-list li::before {
    font-size: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────
   CHECKMARK LIST STYLING (for WHO WE ARE section)
   ───────────────────────────────────────────────────────── */

.checkmark-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #667085;
}

.checkmark-list li::before {
  content: "✓";
  color: #653b8f;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: -2px;
}

/* ─────────────────────────────────────────────────────────
   PRICING SECTION MOBILE IMPROVEMENTS
   ───────────────────────────────────────────────────────── */

.pricing-card {
  border-radius: 20px;
  border: 2px solid #653b8f;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  background: #faf5ff;
  transition: all 150ms;
}

.pricing-card:hover {
  box-shadow: 0 20px 50px rgba(101, 59, 143, 0.15);
  transform: translateY(-4px);
}

.pricing-price {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: #e91e8c;
  margin-bottom: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
}

.pricing-period {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #667085;
}

.pricing-description {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #667085;
  line-height: 1.6;
  margin: 1rem 0;
}

.pricing-button {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #653b8f, #e91e8c);
  color: white;
  font-weight: 800;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}

.pricing-button:active {
  transform: scale(0.98);
}

/* ─────────────────────────────────────────────────────────
   PROMO BANNER MOBILE IMPROVEMENTS
   ───────────────────────────────────────────────────────── */

.promo-banner {
  background: linear-gradient(135deg, #e91e8c, #653b8f);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2rem);
  color: white;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.promo-banner-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  flex-shrink: 0;
}

.promo-banner-content h3 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
}

.promo-banner-content p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.promo-banner-button {
  background: white;
  color: #e91e8c;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  cursor: pointer;
  transition: all 150ms;
  display: inline-block;
  white-space: nowrap;
}

.promo-banner-button:active {
  transform: scale(0.95);
}

/* Mobile stacking for banner */
@media (max-width: 480px) {
  .promo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .promo-banner-icon {
    font-size: 2.5rem;
  }

  .promo-banner-button {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────
   GENERAL MOBILE IMPROVEMENTS
   ───────────────────────────────────────────────────────── */

/* Ensure all text is readable on small screens */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Prevents iOS zoom on input focus */
  }

  h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
  }

  p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
  }

  button {
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 3vw, 1.2rem);
    min-height: 44px; /* Touch target size */
    min-width: 44px;
  }

  input,
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: block;
    margin-bottom: 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────────
   HERO SECTION MOBILE FIX
   ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo-wrap {
    height: clamp(250px, 60vh, 400px);
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.1;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOW TO USE:

   1. Copy all CSS from this file
   2. Paste into your styles.css
   3. Verify .who-we-are-container, .who-we-are-text, 
      .who-we-are-image classes exist in your HTML
   4. Hard refresh browser (Ctrl+Shift+R)
   5. Test on mobile device

   The layout will now:
   ✓ Stack vertically on mobile
   ✓ Show image first, text below
   ✓ Proper touch-friendly sizing
   ✓ Readable text at all sizes
   ✓ Responsive font scaling

   ═══════════════════════════════════════════════════════════ */







/* ── Footer ─────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(101, 59, 143, 0.18);
}

.footer-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.footer-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(101, 59, 143, 0.07);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link[aria-label="Facebook"]:hover  { background: #1877f2; color: white; }
.social-link[aria-label="Instagram"]:hover { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color: white; }
.social-link[aria-label="TikTok"]:hover    { background: #010101; color: white; }
.social-link[aria-label="LinkedIn"]:hover  { background: #0a66c2; color: white; }

.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%,
  100% {
    transform: rotate(-6deg) scale(0.96);
  }
  50% {
    transform: rotate(5deg) scale(1.05);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@keyframes floatThree {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.who-am-i {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 167, 165, 0.1);
  color: #105d60;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.portal-tab {
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.portal-tab:hover {
  background: rgba(14, 167, 165, 0.08);
  color: #105d60;
}

.portal-tab.is-active {
  border-color: rgba(14, 167, 165, 0.28);
  background: var(--teal);
  color: white;
}

.portal-panel {
  display: none;
}

.portal-panel.is-active {
  display: block;
  animation: panelIn 260ms ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-row input {
  width: auto;
}

.outcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.outcome-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.outcome-pill[data-outcome="Connected"] {
  color: #0a7a4a;
  background: rgba(16, 163, 95, 0.12);
}

.outcome-pill[data-outcome="No answer"],
.outcome-pill[data-outcome="Wrong number"] {
  color: #a3213a;
  background: rgba(163, 33, 58, 0.1);
}

.outcome-pill[data-outcome="Voicemail"],
.outcome-pill[data-outcome="Rescheduled"] {
  color: #9a6b00;
  background: rgba(255, 193, 69, 0.18);
}

.outcome-pill[data-outcome="Client declined"] {
  color: var(--muted);
  background: rgba(102, 112, 133, 0.12);
}

.call-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.call-row-main {
  display: grid;
  gap: 0.3rem;
}

.call-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.call-row-notes {
  margin-top: 0.15rem;
  color: #384653;
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(101, 59, 143, 0.12);
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-card .log-call-button {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
  border: 0;
}

.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(23, 32, 42, 0.35);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast.is-error {
  background: #a3213a;
}

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

@media (max-width: 900px) {
  .topbar {
    border-radius: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .login-link {
    text-align: left;
  }

  .hero,
  .intro-band,
  .contact-section,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .service-grid,
  .plan-grid,
  .timeline,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .workflow-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow-illustration {
    width: 80px;
    height: 80px;
  }

  .intro-illustration {
    order: -1;
    max-width: 200px;
  }

  .contact-with-illustration {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .section,
  .portal-section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
  }

  .hero-actions,
  .portal-header,
  .records-tools,
  .employee-tools,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .dashboard-card {
    right: 5%;
    bottom: 8%;
  }

  .note-card {
    left: 5%;
    bottom: 4%;
  }

  .record-card dl {
    grid-template-columns: 1fr;
  }

  .portal-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .call-row {
    grid-template-columns: 1fr;
  }

  .portal-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .portal-tab {
    flex: 0 0 auto;
  }
}
