:root {
  color-scheme: light;
  --ink: #20313a;
  --muted: #647680;
  --paper: #ffffff;
  --canvas: #f8f6ef;
  --line: #d9e3e5;
  --teal: #176b77;
  --teal-dark: #0f5560;
  --teal-soft: #e8f4f5;
  --orange: #c96827;
  --orange-dark: #a65018;
  --orange-soft: #fff0e4;
  --success: #226b45;
  --danger: #a9271f;
  --shadow: 0 22px 65px rgba(32, 49, 58, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --public-footer-space: 112px;
  --footer-item-gap: clamp(18px, 2vw, 30px);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body.public-site {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: var(--public-footer-space);
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

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

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--public-footer-space));
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 42px rgba(32, 49, 58, 0.1);
  backdrop-filter: blur(14px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 12px 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.site-brand:hover {
  color: var(--ink);
}

.logo-area-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  background: #fffaf1;
  border: 1px solid #f2dfc4;
  border-radius: 50%;
}

.brand-mark img {
  display: block;
  width: 48px;
  height: auto;
}

.site-logo {
  display: block;
  width: auto;
  max-height: 62px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link,
.nav-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.nav-link {
  color: #415760;
}

.nav-link:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.nav-button,
.primary-cta {
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 9px 22px rgba(201, 104, 39, 0.18);
}

.site-nav .nav-button {
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(201, 104, 39, 0.18);
}

.nav-button:hover,
.primary-cta:hover {
  color: #fff;
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.site-nav .nav-button:hover {
  color: #fff;
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.secondary-cta {
  color: var(--teal);
  background: #fff;
  border: 1px solid #afcdd1;
}

.secondary-cta:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.public-main {
  flex: 1 0 auto;
}

.home-hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--public-footer-space) - 118px);
  padding: 92px 0 84px;
}

.home-hero__inner {
  display: grid;
  justify-items: center;
  max-width: 860px;
  text-align: center;
  transform: translateY(-74px);
}

.home-hero__logo {
  display: block;
  width: min(540px, 82vw);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 18px rgba(32, 49, 58, 0.08));
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 720px;
  font-size: 3.7rem;
  line-height: 1.05;
  text-wrap: balance;
}

.home-hero p:not(.eyebrow),
.page-hero p {
  color: var(--muted);
  font-size: 1.2rem;
}

.home-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px auto 0;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-cta,
.secondary-cta {
  min-width: 170px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
}

.surface-panel,
.service-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 38px rgba(32, 49, 58, 0.08);
}

.page-hero {
  width: min(980px, calc(100% - 40px));
  margin: 48px auto 26px;
  text-align: center;
}

.page-hero h1 {
  font-size: 4.2rem;
}

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
}

.section-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 70px;
}

.main-content-area {
  flex: 1 0 auto;
  padding: 48px 0 70px;
}

.content-container-article {
  width: min(980px, calc(100% - 40px));
  max-width: 980px;
  margin: 0 auto;
}

.surface-panel {
  padding: clamp(24px, 4vw, 42px);
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.notice-error {
  color: #84261f;
  background: #fff0ee;
  border: 1px solid #f1c1bb;
}

.pricing-note {
  margin: 0 auto 24px;
  color: var(--muted);
  text-align: center;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-card {
  overflow: hidden;
}

.service-card__header {
  padding: 24px 24px 14px;
}

.service-card h2 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.pricing-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  color: var(--ink);
}

.pricing-table th,
.pricing-table td {
  padding: 12px 24px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.pricing-table th {
  color: #344851;
  background: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-table td:last-child {
  font-weight: 850;
}

.muted-note {
  padding: 0 24px 22px;
  color: var(--muted);
}

.legal-article {
  color: #3d5059;
}

.legal-article h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
}

.legal-article .effective-date {
  margin: 12px 0 30px;
  color: var(--muted);
  text-align: center;
}

.legal-article h2 {
  margin: 34px 0 12px;
  padding-bottom: 10px;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.legal-article h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 1.1rem;
}

.legal-article p,
.legal-article li {
  margin-bottom: 14px;
  line-height: 1.72;
}

.legal-article ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.legal-article ul ul {
  margin-top: 10px;
}

.legal-article strong {
  color: #2d424b;
  font-weight: 800;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  padding: 10px 0 0;
  background: linear-gradient(to top, rgba(248, 246, 239, 0.96), rgba(248, 246, 239, 0));
  backdrop-filter: blur(14px);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "primary"
    "copyright";
  align-items: center;
  justify-items: center;
  min-height: 98px;
  padding: 14px 24px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 36px rgba(32, 49, 58, 0.1);
}

.footer-primary-row {
  grid-area: primary;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--footer-item-gap);
  width: 100%;
  min-width: 0;
}

.contact-info-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: var(--footer-item-gap);
}

.contact-info-footer h2 {
  display: none;
}

.contact-info-footer p,
.copyright-footer p {
  margin: 0;
  color: var(--muted);
}

.contact-info-footer > p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 0.96rem;
}

.contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-obfuscated {
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.96rem;
  white-space: nowrap;
}

.contact-email__display {
  display: inline;
}

.email-at::before {
  content: "@";
}

.email-dot::before {
  content: ".";
}

.footer-address {
  order: -1;
  min-width: 0;
}

.contact-info-footer > .footer-address {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
}

.contact-info-footer .footer-address a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info-footer .footer-address a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.contact-info-footer a,
.footer-links a {
  font-weight: 750;
  text-decoration: none;
}

.contact-info-footer a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--footer-item-gap);
  text-align: center;
}

.footer-links a:not(.social-link) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.footer-links .social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--teal-soft);
  border: 1px solid #cfe0e4;
  border-radius: 999px;
  box-shadow: none;
}

.footer-links .social-link:hover {
  background: #fff;
  border-color: #adcdd2;
  text-decoration: none;
}

.footer-links .social-link img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.copyright-footer {
  grid-area: copyright;
  justify-self: center;
  padding-top: 0;
  border-top: 0;
  font-size: 0.8rem;
  text-align: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(201, 104, 39, 0.38);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  :root {
    --public-footer-space: 164px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "copyright";
    justify-items: center;
    min-height: 142px;
    padding: 12px 16px;
    gap: 8px;
    text-align: center;
  }

  .footer-primary-row {
    flex-direction: column;
    gap: 8px;
  }

  .contact-info-footer {
    justify-content: center;
    gap: 6px 14px;
  }

  .contact-info-footer > .footer-address {
    flex-basis: 100%;
    justify-content: center;
    font-size: 0.88rem;
  }

  .footer-links {
    justify-content: center;
    gap: 6px 14px;
    text-align: center;
  }
}

@media (max-width: 780px) {
  :root {
    --public-footer-space: 164px;
  }

  .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .header-container {
    min-height: 74px;
    padding: 10px 14px;
  }

  .site-brand span:not(.brand-mark) {
    display: none;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand-mark img {
    width: 45px;
  }

  .site-nav {
    gap: 6px;
  }

  .nav-link,
  .nav-button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.9rem;
  }

  .home-hero {
    min-height: calc(100vh - var(--public-footer-space) - 86px);
    padding: 64px 0 66px;
  }

  .home-hero h1 {
    max-width: 620px;
    font-size: 3rem;
  }

  .home-hero__inner {
    transform: translateY(-46px);
  }

  .page-hero h1 {
    font-size: 3.1rem;
  }

  .home-hero p:not(.eyebrow),
  .page-hero p {
    font-size: 1.05rem;
  }

  .footer-container {
    min-height: 142px;
  }

  .contact-info-footer > p {
    display: inline-flex;
    font-size: 0.92rem;
  }

  .contact-info-footer > .footer-address {
    font-size: 0.88rem;
  }

  .contact-label {
    font-size: 0.72rem;
  }

  .contact-obfuscated {
    font-size: 0.92rem;
  }

}

@media (max-width: 520px) {
  :root {
    --public-footer-space: 184px;
  }

  .container,
  .page-hero,
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  .cta-row,
  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .home-hero h1 {
    max-width: 360px;
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .home-hero__inner {
    transform: translateY(-42px);
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .surface-panel,
  .service-card__header {
    padding: 22px 16px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 11px 16px;
  }

  .site-footer {
    padding: 8px 0 0;
  }

  .footer-container {
    min-height: 168px;
    width: min(100% - 20px, 1120px);
    padding: 11px 12px;
    border-radius: 16px 16px 0 0;
  }

  .contact-info-footer {
    flex-direction: column;
    gap: 5px;
  }

  .contact-info-footer > p {
    flex-basis: 100%;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
  }

  .contact-info-footer > p:nth-of-type(2) .contact-obfuscated {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-info-footer > .footer-address {
    font-size: 0.84rem;
  }

  .footer-address a {
    overflow-wrap: anywhere;
  }

  .contact-obfuscated {
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 6px 12px;
    font-size: 0.9rem;
  }

  .footer-links .social-link {
    width: 34px;
    height: 34px;
  }

  .footer-links .social-link img {
    width: 19px;
    height: 19px;
  }

  .copyright-footer {
    font-size: 0.74rem;
  }
}

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