:root {
  color-scheme: light;
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #172e32;
  background: #f2f6f5;
  --green: #09634f;
  --muted: #4c6667;
  --border: #d5e1df;
  --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
.skip-link { position: fixed; z-index: 12; inset: .5rem auto auto .5rem; padding: .65rem 1rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
#services, #plans, #coverage, #resident-services, #main-content { scroll-margin-top: 9rem; }
a { color: var(--green); text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid #1870a2; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 71rem); margin-inline: auto; }
.masthead { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--border); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 75px; flex-wrap: wrap; gap: .7rem 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 750; color: inherit; text-decoration: none; }
.brand small { display: block; font-size: .67rem; letter-spacing: .18em; line-height: 1.2; color: var(--muted); }
.mark { display: grid; place-items: center; color: white; background: var(--green); width: 2.5rem; aspect-ratio: 1; border-radius: .75rem; font-size: 1.2rem; }
nav, .staff-actions, .demo-actions { display: flex; gap: .75rem 1.15rem; align-items: center; flex-wrap: wrap; }
nav a, nav button { font-size: .9rem; }
.nav-cta { align-content: center; min-height: 44px; padding-inline: .8rem; border-radius: .55rem; background: #e5f2ed; font-weight: 750; text-decoration: none; }
.nav-cta:hover { background: #cce7db; }
main { min-height: 64vh; padding-block: clamp(1.5rem, 5vw, 4rem); }
.welcome { padding: clamp(1.6rem, 7vw, 6.2rem); border-radius: 1.5rem; background: #114841; color: #fff; }
.welcome .eyebrow { color: #a5e0ce; }
.welcome p { color: #e1f1ed; max-width: 35rem; margin-bottom: 1.65rem; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.035em; line-height: 1.18; margin: .38rem 0 .75rem; }
h2 { font-size: 1.2rem; line-height: 1.4; margin-bottom: .8rem; }
h3 { font-size: 1rem; margin: .85rem 0 .4rem; }
.eyebrow { color: var(--green); font-weight: 750; font-size: .89rem; letter-spacing: .07em; }
.button, .quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; border: 1px solid transparent; border-radius: .7rem; font: inherit; font-weight: 700; padding: .52rem 1.05rem; cursor: pointer; text-decoration: none; }
.button { color: #fff; background: var(--green); }
.button:hover { background: #074c3e; }
.button.line { background: #d8f7df; color: #16483a; }
.button.line:hover { background: #b8f0c6; }
.button.secondary, .quiet { background: #fff; color: var(--green); border-color: var(--border); }
.button.secondary:hover, .quiet:hover { background: #e5f2ed; }
.quiet.danger { color: #a02935; }
.demo-note { font-size: .9rem; color: #654708; background: #fff2cc; padding: .7rem 1rem; border-radius: .65rem; margin-bottom: 1.3rem; }
.demo-actions { margin-top: 1rem; }
.pagehead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.35rem; }
.pagehead p, .hint, .back, dt { color: var(--muted); }
.back { display: inline-block; margin-bottom: 1.15rem; }
.panel { border: 1px solid var(--border); border-radius: 1rem; background: var(--paper); padding: clamp(1rem, 3.1vw, 1.9rem); margin-bottom: 1rem; }
.panel.invite { background: #e6f4ee; }
.invite label, .staff-actions { margin-top: .85rem; }
.table-wrap { overflow: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .9rem 1rem; white-space: nowrap; }
th { background: #e8f2ef; font-size: .9rem; }
td { border-top: 1px solid var(--border); }
.order-id { font-weight: 700; font-variant-numeric: tabular-nums; }
.status { display: inline-block; font-size: .88rem; font-weight: 750; padding: .22rem .75rem; border-radius: 999px; color: #64480e; background: #fff1ca; }
.status.signed { color: #195079; background: #e0f1fc; }
.status.active { color: #15563f; background: #dff4e9; }
.status.cancelled { color: #625358; background: #f0e8eb; }
.fields, .details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1.3rem; }
label { display: grid; gap: .4rem; font-weight: 650; }
input, textarea { width: 100%; min-height: 44px; padding: .52rem .7rem; border: 1px solid #9fb6b4; border-radius: .52rem; color: inherit; background: #fff; font: inherit; }
textarea { resize: vertical; }
.form, .sign { display: grid; gap: 1rem; }
.form h2 { margin: .48rem 0 0; }
.form .button, .sign .button { justify-self: start; }
.hint, dt { font-size: .9rem; }
dd { margin: .1rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.verbatim { white-space: pre-wrap; overflow-wrap: anywhere; }
.terms { background: #f3f7f6; padding: 1rem; border-radius: .65rem; margin-top: .65rem; }
.sign, .receipt { border-top: 1px solid var(--border); margin-top: 1.1rem; padding-top: 1.1rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .24rem 0 0; flex: 0 0 auto; accent-color: var(--green); }
.alert { color: #892430; background: #fae8e9; border-radius: .5rem; padding: .65rem .9rem; margin-bottom: .9rem; }
.error .button { margin-top: 1.15rem; }
.site-footer { background: #0b2330; border-top: 1px solid #1e4352; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; padding-block: 1.75rem; color: #bfd8de; font-size: .9rem; }
.footer strong { color: #fff; font-size: 1rem; }
.footer a { color: #d2eee8; }
.footer a:hover { color: #fff; }
@media (max-width: 560px) {
  .fields, .details { grid-template-columns: minmax(0, 1fr); }
  .pagehead { align-items: start; }
  th, td { padding: .7rem .8rem; }
}
select {
  appearance: none; width: 100%; min-height: 44px; padding: .52rem 2rem .52rem .7rem;
  border: 1px solid #9fb6b4; border-radius: .52rem; color: inherit; background-color: #fff; font: inherit;
  background-image: linear-gradient(45deg, transparent 50%, #4c6667 50%), linear-gradient(135deg, #4c6667 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
main.wrap:has(> .public-hero) { width: 100%; padding: 0; background: #fcfdfd; }
main:has(> .public-hero) > .demo-note { width: min(100% - 2rem, 71rem); margin: .65rem auto; }
.public-content { padding-bottom: clamp(2rem, 5vw, 4.5rem); }
.public-hero {
  position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(30rem, 52vw, 39rem);
  overflow: hidden; background: #0a2030; color: #fff;
}
.hero-media { position: absolute; inset: 0 0 0 35%; z-index: -2; overflow: hidden; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 52%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, #0a2030 1%, rgb(10 32 48 / 72%) 23%, rgb(10 32 48 / 14%) 65%),
    linear-gradient(0deg, rgb(10 32 48 / 65%), transparent 55%);
}
.public-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 42px, rgb(138 226 212 / 15%) 43px 44px);
  mask-image: radial-gradient(ellipse at 10% 110%, #000 5%, transparent 64%);
}
.hero-copy { padding-block: clamp(3rem, 8vw, 7rem); }
.hero-copy h1 { margin: 0 0 1.1rem; font-size: clamp(2.55rem, 6.1vw, 5.25rem); letter-spacing: -.045em; }
.hero-copy h1 span { color: #8de5d4; }
.hero-copy p { color: #d9e8ef; max-width: 27rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.button.hero-primary { background: #91e8d6; color: #082f31; }
.button.hero-primary:hover { background: #bff6e8; }
.button.hero-secondary { color: #f4fbfb; background: #123343; border-color: #7295a0; }
.button.hero-secondary:hover { background: #234a57; }
.public-section { margin-block: clamp(2.45rem, 6.8vw, 5.8rem); }
.public-section h2, .public-support h2 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); }
.service-overview h2 { margin-bottom: 1.25rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .65rem; padding: clamp(1.15rem, 2.9vw, 1.85rem);
  border: 1px solid #d9e5e7; border-radius: .8rem; background: #fff; text-decoration: none;
}
.service-card::before { content: ""; width: 2.2rem; height: .25rem; background: #3ca895; border-radius: 1rem; }
.service-coverage::before { background: #4285a5; }
.service-account::before { background: #bb884d; }
.service-card h3 { margin: .1rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: #143a45; }
.service-card p { color: #3d5b64; }
.service-card span { width: fit-content; margin-top: .35rem; font-weight: 720; text-decoration: underline; text-underline-offset: .25em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plan-card { position: relative; margin-bottom: 0; padding: clamp(1.25rem, 3vw, 2rem); border-top: 4px solid #3b826b; }
.plan-card-fast { background: #e7f3f1; border-top-color: #1f6878; }
.plan-card h3 { margin: 0; color: var(--green); font-size: 1.05rem; }
.plan-card p { color: var(--muted); }
.plan-speed { color: #123a35; font-size: clamp(2.75rem, 6vw, 4.45rem); line-height: 1.15; font-weight: 760; letter-spacing: -.04em; margin: .35rem 0 .75rem; }
.plan-speed span { font-size: .38em; letter-spacing: 0; }
.local-service {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1.25rem; margin-bottom: clamp(1rem, 4vw, 3.25rem);
  background: #0d2b3a; color: #f4fbfb;
}
.local-image { display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; }
.local-image img { display: block; width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.local-image figcaption { padding: .45rem .9rem; background: #244952; color: #edf7f6; font-size: .87rem; }
.local-copy { align-self: center; padding: clamp(1.25rem, 4vw, 3.25rem); }
.local-copy h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
.local-copy p { color: #cee4ea; max-width: 25rem; }
.local-copy address { display: grid; gap: .6rem; margin-top: 1rem; font-style: normal; }
.local-copy address .button { justify-self: start; background: #91e8d6; color: #082f31; }
.local-copy address .button:hover { background: #bff6e8; }
.public-support { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem; background: #e6f4ee; }
.public-support .button { margin-top: .9rem; }
.support-questions details { border-top: 1px solid #b8d0c7; }
.support-questions details:last-child { border-bottom: 1px solid #b8d0c7; }
.support-questions summary { cursor: pointer; font-weight: 700; padding: .75rem .25rem; }
.support-questions p { padding: 0 .25rem .85rem; color: #324d4f; }

.staff-search { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(8rem, .35fr) auto auto; align-items: end; gap: .75rem; }
@media (max-width: 740px) {
  .public-hero { min-height: auto; }
  .local-service, .public-support, .service-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 2.6rem 1.35rem; }
  .hero-media { position: relative; inset: auto; grid-row: 2; z-index: 0; aspect-ratio: 16 / 9; }
  .hero-media::after { background: linear-gradient(#0a2030 0%, transparent 36%); }
  .local-image img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .staff-search { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .plan-grid, .staff-search { grid-template-columns: 1fr; }
  .masthead .wrap { gap: .4rem 1rem; }
  .masthead nav { gap: .45rem .85rem; }
}

@keyframes hero-copy-in {
  from { opacity: .55; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-image-in {
  from { transform: scale(1.065); }
  to { transform: scale(1); }
}
@keyframes section-in {
  from { opacity: .65; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: hero-copy-in 560ms ease-out both; }
  .hero-media img { animation: hero-image-in 1300ms cubic-bezier(.2,.7,.3,1) both; }
  .button, .nav-cta { transition: background-color 180ms ease, border-color 180ms ease; }
  .plan-card, .service-card { transition: transform 180ms ease, box-shadow 180ms ease; }
  @supports (animation-timeline: view()) {
    .motion-section {
      animation: section-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
    .motion-section:focus-within { animation: none; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgb(16 46 53 / 10%); }
}
.recovery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.15rem; }
.recovery-actions .button, .error .recovery-actions .button { margin-top: 0; }
.receipt > .button { margin-top: 1rem; }
.member-records h2 { margin-top: 1.5rem; }
.member-records > .hint, .member-search + .hint { margin-bottom: .75rem; }
.member-records h3 { margin-top: 0; }
.member-account summary { cursor: pointer; font-weight: 700; }
.member-account p { margin-block: .7rem; }
.member-search { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.member-search label { flex: 1 1 15rem; }
