/* CareWhistle public pages: editorial clarity, grounded red identity, quiet motion. */
:root {
  --cw-ink: #25313a;
  --cw-copy: #52616b;
  --cw-muted: #6e7a82;
  --cw-red: #bd3038;
  --cw-red-deep: #98252e;
  --cw-blush: #fbf1ef;
  --cw-paper: #fffdfa;
  --cw-line: #eadbd7;
  --cw-shadow: 0 18px 48px rgba(76, 39, 39, .09);
  --cw-display: "Fraunces", Georgia, serif;
  --cw-body: "DM Sans", "Segoe UI", sans-serif;
}

body.modern-body {
  color: var(--cw-ink);
  font-family: var(--cw-body);
  background: var(--cw-paper);
}

body.modern-body :focus-visible {
  outline: 3px solid #8c3138;
  outline-offset: 3px;
}

.modern-nav {
  background: rgba(255, 253, 250, .96);
  border-bottom: 1px solid rgba(116, 66, 60, .12);
  box-shadow: 0 8px 26px rgba(53, 43, 39, .06);
  padding: .68rem 0;
}

.modern-nav .nav-container {
  max-width: 1280px;
  min-height: 54px;
  padding-inline: clamp(1rem, 4vw, 3rem);
  gap: clamp(.7rem, 2vw, 1.8rem);
}

.modern-nav .brand-modern {
  flex: 0 0 auto;
  margin-right: 0 !important;
}

.modern-nav .brand-modern img {
  display: block;
  height: 42px !important;
  width: auto;
}

.modern-nav .nav-links {
  justify-content: flex-end;
  gap: .15rem;
}

.modern-nav .nav-link {
  padding: .65rem .75rem;
  border-radius: 99px;
  color: #46545d;
  font-size: .9rem;
  font-weight: 650;
}

.modern-nav .nav-link.active {
  background: #f8e9e6;
  color: var(--cw-red-deep);
}

.modern-nav .nav-link::after {
  display: none;
}

.modern-nav .nav-actions {
  margin-left: .25rem;
  gap: .55rem;
}

.modern-nav .btn-modern {
  min-height: 42px;
  border-radius: 999px;
  padding: .7rem 1.12rem;
  font-family: var(--cw-body);
  font-size: .9rem;
}

.modern-nav .btn-modern.primary {
  background: var(--cw-red);
  box-shadow: 0 5px 14px rgba(189, 48, 56, .16);
}

.modern-nav .btn-modern.secondary {
  border-color: #e7d9d5;
  background: #fffdfa;
  color: #3d4b53;
}

.mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8e9e6;
}

.mobile-menu-toggle span {
  background: var(--cw-red-deep);
}

.mobile-nav-overlay {
  top: 68px;
  background: rgba(39, 43, 43, .28);
  backdrop-filter: blur(3px);
}

.mobile-nav-content {
  padding: 1rem clamp(1rem, 5vw, 2rem) 1.5rem;
  border-radius: 0 0 20px 20px;
  background: var(--cw-paper);
  box-shadow: 0 22px 46px rgba(43, 34, 32, .14);
}

.mobile-nav-link {
  color: #35434c;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 10px;
}

.modern-footer {
  padding: 3.8rem 0 1.5rem;
  background: #342c2c;
  color: #f8eeeb;
}

.modern-footer .container {
  max-width: 1240px;
  padding-inline: clamp(1rem, 4vw, 2.4rem);
}

.modern-footer .footer-content {
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 2.6rem;
}

.modern-footer .footer-brand-mark {
  display: inline-flex;
  align-items: center;
  width: min(220px, 100%);
  min-height: 46px;
  padding: .45rem .65rem;
  border-radius: 8px;
  background: #fffdfa;
}

.modern-footer .footer-brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.modern-footer .footer-brand p {
  max-width: 250px;
  margin-top: 1rem;
  color: #e4d7d2;
  font-size: .92rem;
}

.modern-footer .footer-column h4 {
  margin-bottom: .9rem;
  color: #fff7f4;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modern-footer .footer-column a {
  width: fit-content;
  margin-bottom: .6rem;
  color: #e4d7d2;
  font-size: .91rem;
}

.modern-footer .footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modern-footer .footer-bottom {
  padding-top: 1.2rem;
  border-color: rgba(255, 255, 255, .17);
  text-align: left;
}

.modern-footer .footer-bottom p {
  color: #d8cbc7;
  font-size: .82rem;
}

/* Home: warm editorial opening and a clear split between buyer and reporter routes. */
.cw-home {
  color: var(--cw-copy);
  background: var(--cw-paper);
  font-family: var(--cw-body);
}

.cw-home a { color: var(--cw-red-deep); text-underline-offset: 3px; }
.cw-home .cw-wrap { width: min(1160px, 100%); }

.cw-home .cw-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6.8rem, 12vw, 9.3rem) 1.25rem 4.4rem;
  text-align: left;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(203, 91, 86, .12), transparent 34rem),
    linear-gradient(135deg, #fffdfa 0%, #fcf2ee 100%);
}

.cw-home .cw-hero::after {
  position: absolute;
  right: max(3vw, calc((100vw - 1160px) / 2));
  top: 7rem;
  width: clamp(105px, 17vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(189, 48, 56, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(189, 48, 56, .035), 0 0 0 46px rgba(189, 48, 56, .025);
  content: "";
  pointer-events: none;
}

.cw-home .cw-hero > .cw-wrap { position: relative; z-index: 1; }
.cw-home .cw-eyebrow {
  margin: 0;
  color: var(--cw-red-deep);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.cw-home .cw-hero h1 {
  max-width: 900px;
  margin: .9rem 0 1.1rem;
  color: #2d3337;
  font-family: var(--cw-display);
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.cw-home .cw-hero .intro {
  max-width: 740px;
  margin: 0;
  color: #53616a;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.cw-home .cw-actions {
  justify-content: flex-start;
  gap: .7rem;
  margin: 1.5rem 0 0;
}

.cw-home .cw-btn {
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 1px solid var(--cw-red);
  border-radius: 6px;
  background: var(--cw-red);
  box-shadow: 0 8px 20px rgba(189, 48, 56, .14);
  font-size: .94rem;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.cw-home .cw-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cw-red-deep);
  background: var(--cw-red-deep);
  box-shadow: 0 12px 24px rgba(119, 34, 39, .16);
}

.cw-home .cw-btn-outline {
  border-color: #d8c5bf;
  background: rgba(255, 253, 250, .72);
  color: var(--cw-red-deep) !important;
  box-shadow: none;
}

.cw-home .cw-btn-outline:hover { background: #fff; }

.cw-home .cw-audience {
  position: relative;
  z-index: 2;
  max-width: none;
  gap: 1rem;
  margin: clamp(2.6rem, 5vw, 4.5rem) 0 0;
}

.cw-home .cw-panel {
  min-height: 180px;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid rgba(127, 80, 72, .15);
  border-radius: 12px;
  background: rgba(255, 253, 250, .93);
  box-shadow: 0 16px 40px rgba(67, 41, 38, .07);
}

.cw-home .cw-panel:first-child { border-top: 3px solid var(--cw-red); }
.cw-home .cw-panel:last-child { border-top: 3px solid #8e9a91; }
.cw-home .cw-panel h2,
.cw-home .cw-section h2,
.cw-home .cw-faq h3 { color: var(--cw-ink); }
.cw-home .cw-panel h2 { font-size: 1.28rem; }
.cw-home .cw-panel p { margin-bottom: .8rem; }
.cw-home .cw-panel a { font-weight: 750; }

.cw-home .cw-section {
  padding: clamp(3.3rem, 7vw, 5.8rem) 1.25rem;
  background: var(--cw-paper);
}

.cw-home .cw-section-tint {
  background: #f8efec;
  border-block: 1px solid #efe2de;
}

.cw-home .cw-section h2 {
  max-width: 760px;
  font-family: var(--cw-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.cw-home .cw-lede { max-width: 780px; margin-bottom: 2rem; }
.cw-home .cw-feature-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: .8rem; }
.cw-home .cw-feature {
  min-height: 180px;
  padding: 1.45rem;
  border: 1px solid #eee2de;
  border-top: 2px solid var(--cw-red);
  border-radius: 7px;
  background: #fffdfa;
}
.cw-home .cw-feature h3 { color: var(--cw-ink); }
.cw-home .cw-feature p { color: var(--cw-copy); }
.cw-home .cw-prices { gap: .8rem; margin: 1.8rem 0; }
.cw-home .cw-price {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem;
  border: 1px solid #e7d7d2;
  border-radius: 8px;
  background: #fffdfa;
}
.cw-home .cw-price strong { color: var(--cw-red-deep); font-size: 1.62rem; }
.cw-home .cw-price span { font-size: .93rem; }
.cw-home .cw-note { border-color: var(--cw-red); background: #fffdfa; }
.cw-home .cw-faq { border-color: #eadbd7; padding: 1.2rem 0; }
.cw-home .cw-faq h3 { font-size: 1.08rem; }

/* Plans: a strong comparison surface with the quote route visually distinct. */
main.pricing-section {
  padding: clamp(6.8rem, 10vw, 8.8rem) 1rem 5rem;
  color: var(--cw-copy);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 113, 98, .1), transparent 40rem),
    #fbf5f2;
  font-family: var(--cw-body);
}

.pricing-section .pricing-container { max-width: 1200px; }
.pricing-section .pricing-header { margin-bottom: 1.7rem; }
.pricing-section .pricing-header h1 {
  color: var(--cw-ink);
  font-family: var(--cw-display);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -.045em;
}
.pricing-section .pricing-header p { color: var(--cw-copy); }
.pricing-section .pricing-context {
  max-width: 930px;
  padding: 1.1rem 1.3rem;
  border: 1px solid #eadbd7;
  border-left: 3px solid var(--cw-red);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 253, 250, .78);
  color: #53616a;
}
.pricing-section .pricing-grid { gap: .85rem; }
.pricing-section .pricing-card-new {
  border: 1px solid #e9dbd6;
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 12px 30px rgba(73, 44, 38, .055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pricing-section .pricing-card-new:hover {
  transform: translateY(-4px);
  border-color: #d9b4ad;
  box-shadow: var(--cw-shadow);
}
.pricing-section .pricing-card-header { padding: 1.35rem 1.2rem 1rem; border-color: #efe4df; }
.pricing-section .pricing-card-header h2 { color: var(--cw-ink); font-size: 1.1rem; }
.pricing-section .pricing-price { color: var(--cw-red-deep); }
.pricing-section .pricing-price .amount { font-family: var(--cw-display); font-size: 2.6rem; font-weight: 600; }
.pricing-section .pricing-price .period,
.pricing-section .staff-count { color: var(--cw-muted); }
.pricing-section .pricing-features-box { padding: 1rem 1.2rem; }
.pricing-section .pricing-features-box li { color: #4d5a62; font-size: .9rem; }
.pricing-section .pricing-features-box li::before { content: "—"; color: var(--cw-red); }
.pricing-section .pricing-cta-box { padding: 1rem 1.2rem 1.25rem; }
.pricing-section .pricing-card-new button,
.pricing-section .pricing-card-new .btn-primary {
  min-height: 46px;
  border-radius: 6px;
  background: var(--cw-red);
  font-size: .91rem;
  transition: background-color .2s ease, transform .2s ease;
}
.pricing-section .pricing-card-new button:hover,
.pricing-section .pricing-card-new .btn-primary:hover {
  transform: translateY(-1px);
  background: var(--cw-red-deep);
}
.pricing-section .link-invoice { padding: .3rem; color: var(--cw-red-deep); font-size: .88rem; }
.pricing-section .pricing-enterprise { border-color: #bd7770; }
.pricing-section .pricing-enterprise .pricing-card-header { background: #f8ece8; }
.pricing-section .pricing-detail {
  border-color: #e9dbd6;
  border-radius: 9px;
  background: #fffdfa;
}
.pricing-section .pricing-detail h2 { color: var(--cw-ink); font-family: var(--cw-display); }
.pricing-section .pricing-cta-section {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 10px;
  background: #473536;
  text-align: left;
}
.pricing-section .pricing-cta-section h2 { font-family: var(--cw-display); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pricing-section .pricing-cta-section a { border-radius: 5px; transition: background-color .2s ease, color .2s ease; }

/* How it works: numbered process with enough breathing room to scan. */
.how-page {
  color: var(--cw-copy);
  background: var(--cw-paper);
  font-family: var(--cw-body);
}
.how-page .how-hero {
  padding: clamp(7rem, 11vw, 9rem) 1rem 3rem;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(201, 113, 98, .13), transparent 28rem),
    #faf1ed;
  text-align: left;
}
.how-page .how-hero h1 {
  max-width: 1000px;
  color: var(--cw-ink);
  font-family: var(--cw-display);
  font-size: clamp(2.45rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.04em;
}
.how-page .how-hero p { max-width: 1000px; margin-inline: auto; color: var(--cw-copy); }
.how-page .how-wrap { width: min(900px, 100%); }
.how-page .how-content { padding-top: 2.7rem; }
.how-page .how-steps li {
  margin-bottom: .85rem;
  padding: 1.35rem 1.5rem 1.35rem 5rem;
  border-color: #e9dbd6;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(73, 44, 38, .045);
}
.how-page .how-steps li::before {
  left: 1.25rem;
  top: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 7px;
  background: var(--cw-red);
  font-family: var(--cw-display);
  font-size: 1.1rem;
}
.how-page .how-steps h2 { color: var(--cw-ink); }
.how-page .how-steps p { color: var(--cw-copy); }
.how-page .how-callout {
  border: 1px solid #eadbd7;
  border-left: 3px solid var(--cw-red);
  background: #faf1ed;
  color: #4f5c64;
}
.how-page > .how-wrap > h2 { margin-top: 2.5rem; color: var(--cw-ink) !important; font-family: var(--cw-display); }
.how-page .how-links a {
  border: 1px solid var(--cw-red);
  border-radius: 5px;
  background: var(--cw-red);
  transition: transform .2s ease, background-color .2s ease;
}
.how-page .how-links a:hover { transform: translateY(-2px); background: var(--cw-red-deep); }
.how-page .how-links a.secondary { background: transparent; color: var(--cw-red-deep); }

/* Larger organisations: intentional, restrained sales brief rather than another pricing grid. */
.ent-page {
  padding: clamp(6.8rem, 10vw, 8.8rem) 1rem 5rem;
  color: var(--cw-copy);
  background: #fbf5f2;
  font-family: var(--cw-body);
}
.ent-page .ent-wrap { width: min(1040px, 100%); }
.ent-page .ent-head {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem);
  border: 1px solid #eadbd7;
  border-bottom: 3px solid var(--cw-red);
  border-radius: 10px;
  background: #fffdfa;
  text-align: left;
  box-shadow: 0 16px 38px rgba(73, 44, 38, .06);
}
.ent-page .ent-head > * { position: relative; z-index: 1; }
.ent-page .ent-head::after {
  position: absolute;
  top: -85px;
  right: -55px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(189, 48, 56, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(189, 48, 56, .035);
  content: "";
}
.ent-page .ent-head > p:first-child { color: var(--cw-red-deep) !important; }
.ent-page .ent-head h1 {
  max-width: 820px;
  margin-left: 0;
  color: var(--cw-ink);
  font-family: var(--cw-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -.04em;
}
.ent-page .ent-head p:last-child { margin-left: 0; color: var(--cw-copy); }
.ent-page .ent-section { padding: 2.6rem 0; }
.ent-page .ent-section h2 { color: var(--cw-ink); font-family: var(--cw-display); font-size: 1.8rem; }
.ent-page .ent-points { gap: .65rem; }
.ent-page .ent-points li {
  padding: 1.2rem;
  border: 1px solid #eadbd7;
  border-left: 3px solid #bd7770;
  background: #fffdfa;
  color: #4f5c64;
}
.ent-page .ent-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-color: #e9dbd6;
  border-radius: 9px;
  background: #fffdfa;
}
.ent-page .ent-panel ul { padding-left: 1.2rem; }
.ent-page .ent-panel li { padding: .2rem 0; }
.ent-page .ent-cta {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 9px;
  background: #473536;
}
.ent-page .ent-cta h2 { font-family: var(--cw-display); font-size: 1.9rem; }
.ent-page .ent-cta a { border-radius: 5px; transition: background-color .2s ease, color .2s ease; }

@media (max-width: 900px) {
  .modern-nav .nav-container { gap: .7rem; }
  .modern-nav .nav-link { padding-inline: .55rem; font-size: .84rem; }
  .modern-nav .nav-actions { gap: .35rem; }
  .modern-nav .btn-modern { padding-inline: .85rem; }
  .cw-home .cw-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .modern-nav .nav-container { min-height: 48px; }
  .modern-nav .brand-modern img { height: 38px !important; }
  .mobile-nav-overlay { top: 64px; }
  .modern-footer .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .modern-footer .footer-links { gap: 1.2rem; }
  .cw-home .cw-hero { padding-top: 6.2rem; }
  .cw-home .cw-hero::after { top: 6.5rem; right: 1.5rem; opacity: .55; }
  .cw-home .cw-hero h1 { max-width: 680px; font-size: clamp(2.65rem, 8vw, 4.3rem) !important; }
  .cw-home .cw-section h2 { font-size: clamp(1.9rem, 5vw, 2.8rem) !important; }
  .pricing-section .pricing-header h1,
  .how-page .how-hero h1,
  .ent-page .ent-head h1 { font-size: clamp(2.35rem, 7vw, 3.7rem) !important; }
  .cw-home p, .pricing-section p, .how-page p, .ent-page p { font-size: 1rem !important; line-height: 1.65 !important; }
  .cw-home .cw-audience { grid-template-columns: 1fr; }
  .cw-home .cw-feature-grid { grid-template-columns: 1fr; }
  .cw-home .cw-feature { min-height: unset; }
  .cw-home .cw-prices { grid-template-columns: 1fr; }
  .cw-home .cw-price { min-height: 90px; }
  main.pricing-section { padding-top: 6.2rem; }
  .pricing-section .pricing-grid { grid-template-columns: 1fr 1fr; }
  .how-page .how-hero { padding-top: 6.3rem; }
  .ent-page { padding-top: 6.2rem; }
}

@media (max-width: 560px) {
  .modern-footer .footer-links { grid-template-columns: 1fr 1fr; }
  .modern-footer .footer-column:last-child { grid-column: 1 / -1; }
  .cw-home .cw-hero { padding: 6rem 1rem 3rem; }
  .cw-home .cw-hero::after { right: -.5rem; top: 6rem; width: 90px; }
  .cw-home .cw-hero h1 { font-size: clamp(2.5rem, 13vw, 3.3rem) !important; }
  .pricing-section .pricing-header h1,
  .how-page .how-hero h1,
  .ent-page .ent-head h1 { font-size: clamp(2.35rem, 10vw, 3.1rem) !important; }
  .cw-home .cw-section h2 { font-size: clamp(1.8rem, 8vw, 2.25rem) !important; }
  .cw-home .cw-actions { align-items: stretch; flex-direction: column; }
  .cw-home .cw-actions .cw-btn { width: 100%; }
  main.pricing-section { padding: 5.9rem .85rem 3rem; }
  .pricing-section .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section .pricing-cta-section { text-align: left; }
  .how-page .how-hero { padding: 6rem 1rem 2.3rem; }
  .how-page .how-steps li { padding: 1.1rem 1rem 1.1rem 3.75rem; }
  .how-page .how-steps li::before { left: .8rem; top: 1rem; }
  .how-page .how-links { flex-direction: column; }
  .how-page .how-links a { text-align: center; }
  .ent-page { padding: 5.9rem .85rem 3rem; }
  .ent-page .ent-points { grid-template-columns: 1fr; }
  .ent-page .ent-head { padding: 1.7rem 1.15rem; }
}

/* Override the legacy blanket mobile section padding only on refreshed pages. */
@media (max-width: 768px) {
  .cw-home .cw-hero { padding: 2rem 1.25rem 3rem !important; }
  .cw-home .cw-section { padding: 3rem 1.25rem !important; }
  .cw-home .cw-panel { padding: 1.35rem !important; }
  .cw-home .cw-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
  }
  .pricing-section .pricing-detail,
  .pricing-section .pricing-cta-section { padding: 1.5rem 1.25rem !important; }
  .ent-page .ent-section { padding: 2rem 0 !important; }
  .ent-page .ent-panel,
  .ent-page .ent-cta { padding: 1.5rem 1.25rem !important; }
  .how-page .how-hero h1,
  .how-page .how-hero p { margin-inline: auto; }
}

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