/* ==========================================================================
   Home Care Apps - Wellness Check-in Visit
   Shared stylesheet. Brand tokens are defined once here.
   ========================================================================== */

:root {
  /* Primary */
  --c-navy:      #0F1E63;
  --c-blue:      #2563EB;
  --c-teal:      #008ABA;
  --c-mint:      #C3E7E3;
  --c-slate:     #475569;

  /* Secondary */
  --c-periwinkle:#E6E7FF;
  --c-pink:      #F6B3C2;
  --c-cream:     #FFF3E0;
  --c-paleblue:  #E8F6F5;
  --c-offwhite:  #F1F5F9;

  --c-white:     #FFFFFF;
  --c-border:    #DCE3EC;
  --c-ink:       var(--c-navy);
  --c-body:      var(--c-slate);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 99, .06), 0 2px 8px rgba(15, 30, 99, .05);
  --shadow:    0 4px 12px rgba(15, 30, 99, .07), 0 12px 32px rgba(15, 30, 99, .07);
  --shadow-lg: 0 8px 24px rgba(15, 30, 99, .10), 0 24px 64px rgba(15, 30, 99, .12);

  --maxw: 1120px;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--c-blue); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

section { padding: 72px 0; }
.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-teal); margin-bottom: 10px;
}
.lede { font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; display: block; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; color: var(--c-navy);
  font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.15;
}
.brand-name small { display: block; font-weight: 600; font-size: .72rem; color: var(--c-teal); letter-spacing: .04em; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--c-slate); text-decoration: none; font-weight: 600; font-size: .93rem; }
.header-nav a:hover { color: var(--c-navy); }
/* The nav link rule above outranks .btn-primary, so pin the button text white */
.header-nav a.btn-primary,
.header-nav a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--c-blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .30); }
.btn-primary:hover { background: #1D4FD8; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, .35); }
.btn-ghost { background: transparent; color: var(--c-navy); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-navy); background: var(--c-offwhite); }
.btn-white { background: #fff; color: var(--c-navy); }
.btn-white:hover { background: var(--c-mint); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- Head / brief box ---------- */
.brief {
  background: linear-gradient(135deg, var(--c-navy) 0%, #14287F 55%, var(--c-teal) 100%);
  color: #fff; padding: 30px 0;
}
.brief-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius); padding: 22px 26px;
}
.brief-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px;
  background: var(--c-mint); color: var(--c-navy); display: grid; place-items: center;
}
.brief h2 { color: #fff; font-size: 1.22rem; margin: 0 0 4px; letter-spacing: -.01em; }
.brief p { color: rgba(255,255,255,.86); margin: 0; font-size: .96rem; line-height: 1.55; }
.brief-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.brief-steps span {
  font-size: .78rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--c-paleblue) 0%, #fff 100%); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-white); border: 1px solid var(--c-mint);
  color: var(--c-teal); font-weight: 700; font-size: .82rem;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero h1 span { color: var(--c-teal); }
.hero-sub { font-size: 1.12rem; max-width: 54ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .87rem; color: var(--c-slate); margin: 18px 0 0; }

.report-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border); overflow: hidden;
}
.report-head {
  background: var(--c-navy); color: #fff; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.report-head strong { font-family: var(--font-head); font-size: .98rem; }
.report-head em { font-style: normal; font-size: .78rem; color: var(--c-mint); }
.report-body { padding: 22px 24px 26px; }
.vital { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--c-border); }
.vital:last-of-type { border-bottom: 0; }
.vital-label { font-size: .92rem; color: var(--c-slate); }
.vital-value { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: .96rem; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.tag-ok { background: var(--c-paleblue); color: var(--c-teal); }
.tag-watch { background: var(--c-cream); color: #B4690E; }
.report-note {
  margin-top: 16px; background: var(--c-offwhite); border-left: 3px solid var(--c-teal);
  padding: 13px 15px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem; color: var(--c-slate);
}

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }
/* Four-up cards are the narrowest case. Keep each heading on a single line. */
.grid-4 .card h3 { font-size: 1rem; white-space: nowrap; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; color: var(--c-navy); background: var(--c-paleblue);
}
.card-icon.tint-pink { background: var(--c-pink); }
.card-icon.tint-peri { background: var(--c-periwinkle); }
.card-icon.tint-cream { background: var(--c-cream); }
.card-icon.tint-mint { background: var(--c-mint); }

.bg-soft { background: var(--c-offwhite); }
.bg-mint { background: var(--c-paleblue); }

/* ---------- Problem ---------- */
.prob {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.prob-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--c-paleblue); color: var(--c-teal);
}
.prob-icon.tint-pink  { background: var(--c-pink);  color: #A8385A; }
.prob-icon.tint-cream { background: var(--c-cream); color: #B4690E; }
.prob h3 { font-size: 1.06rem; margin-bottom: 7px; }
.prob p { margin: 0; font-size: .93rem; }

.quote-panel {
  background: var(--c-navy); color: #fff; border-radius: var(--radius-lg);
  padding: 36px 34px; box-shadow: var(--shadow);
}
.quote-panel h3 { color: #fff; font-size: 1.35rem; line-height: 1.35; }
.quote-panel p { color: rgba(255,255,255,.82); font-size: .96rem; margin: 0; }

/* ---------- Every visit includes ---------- */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.check {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.check:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.check-wide { grid-column: 1 / -1; background: var(--c-navy); border-color: var(--c-navy); }
.check-wide h3, .check-wide p { color: #fff; }
.check-wide p { color: rgba(255,255,255,.82); }
.check-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--c-paleblue); color: var(--c-teal);
}
.check-icon.tint-pink  { background: var(--c-pink);       color: #A8385A; }
.check-icon.tint-peri  { background: var(--c-periwinkle); color: var(--c-navy); }
.check-icon.tint-cream { background: var(--c-cream);      color: #B4690E; }
.check-icon.tint-mint  { background: var(--c-mint);       color: #06617F; }
.check h3 { font-size: 1rem; margin-bottom: 4px; }
.check p { font-size: .9rem; margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--c-teal); box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-teal); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-family: var(--font-head); font-weight: 800; color: var(--c-navy); font-size: 1.1rem; line-height: 1.25; }
.plan-name small { display: block; font-size: .85rem; font-weight: 600; color: var(--c-teal); }
.plan-price {
  font-family: var(--font-head); font-size: 3.15rem; font-weight: 800;
  color: var(--c-navy); line-height: 1; margin: 12px 0 4px;
  display: flex; align-items: baseline; gap: 3px;
}
.plan-price .cur { font-size: 1.35rem; font-weight: 700; color: var(--c-teal); align-self: flex-start; margin-top: 6px; }
.plan-price small { font-size: 1rem; font-weight: 700; color: var(--c-slate); }
.plan-per { font-size: .88rem; color: var(--c-slate); margin-bottom: 6px; }
.plan-save {
  display: inline-block; background: var(--c-cream); color: #B4690E;
  font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 16px;
}
.plan .btn { margin-top: auto; }
.plan-save-plain { background: var(--c-periwinkle) !important; color: var(--c-navy) !important; }

/* Shared feature list under the plan grid */
.plan-includes {
  margin-top: 26px; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px 28px;
}
.plan-includes-title {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-teal); margin-bottom: 14px;
}
.plan-includes ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 22px;
}
.plan-includes li {
  display: flex; gap: 9px; align-items: flex-start; font-size: .93rem; color: var(--c-slate);
}
.plan-includes li::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px;
  background: var(--c-paleblue); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ABA' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px; background-repeat: no-repeat; background-position: center;
}
@media (max-width: 900px) { .plan-includes ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-includes ul { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-teal); font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 20px 18px; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-navy), #16307F 60%, var(--c-teal));
  color: #fff; text-align: center; border-radius: var(--radius-lg);
  padding: 52px 34px; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.72); padding: 44px 0 30px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-logo { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: 12px; background: #fff; border-radius: 12px; padding: 5px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.55);
}

/* ---------- Flow pages (register / payment / thank you) ---------- */
.flow { background: var(--c-offwhite); min-height: calc(100vh - 68px); padding: 40px 0 70px; }
.flow-inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

.progress { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 30px; flex-wrap: wrap; }
.progress-step { display: flex; align-items: center; gap: 9px; }
.progress-step i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .82rem; font-weight: 700; font-family: var(--font-head);
  background: #fff; color: var(--c-slate); border: 2px solid var(--c-border);
}
.progress-step b { font-size: .86rem; font-weight: 600; color: var(--c-slate); }
.progress-step.is-active i { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.progress-step.is-active b { color: var(--c-navy); font-weight: 700; }
.progress-step.is-done i { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.progress-line { width: 34px; height: 2px; background: var(--c-border); }

.panel {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 20px; }
.panel-head { margin-bottom: 24px; }
.panel-head h1 { font-size: 1.75rem; margin-bottom: 6px; }
.panel-head p { margin: 0; font-size: .96rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label, .field .label {
  display: block; font-family: var(--font-head); font-weight: 700;
  color: var(--c-navy); font-size: .91rem; margin-bottom: 7px;
}
.field label .req { color: #D6336C; }
.hint { font-size: .82rem; color: var(--c-slate); margin: 6px 0 0; font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="time"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--c-navy);
  background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
input.invalid, select.invalid { border-color: #D6336C; }
.error-msg { display: none; color: #D6336C; font-size: .82rem; margin-top: 6px; font-weight: 600; }
.error-msg.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Day picker (multi-select) */
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-chip {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 2px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 11px 6px; font-family: var(--font-head); font-weight: 700;
  font-size: .88rem; color: var(--c-slate); background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.day-chip:hover { border-color: var(--c-mint); }
.day input:checked + .day-chip { border-color: var(--c-blue); background: #F5F8FF; color: var(--c-navy); }
.day input:focus-visible + .day-chip { box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
@media (max-width: 560px) { .day-grid { grid-template-columns: repeat(3, 1fr); } }

/* Two-option picker, reuses the .day chip look */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-grid .day-chip { padding: 14px 10px; font-size: .95rem; }

/* Time picker, same chips, multi-select */
.time-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.time-grid .day-chip { padding: 14px 10px; font-size: .92rem; }
@media (max-width: 560px) { .time-grid { grid-template-columns: 1fr; } }

/* Package radio cards */
.pkg-options { display: grid; gap: 12px; }
.pkg { position: relative; }
.pkg input { position: absolute; opacity: 0; width: 0; height: 0; }
.pkg-box {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 2px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s ease, background .15s ease;
}
.pkg-box:hover { border-color: var(--c-mint); }
.pkg input:checked + .pkg-box { border-color: var(--c-blue); background: #F5F8FF; }
.pkg input:focus-visible + .pkg-box { box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.pkg-radio {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-border); position: relative;
}
.pkg input:checked + .pkg-box .pkg-radio { border-color: var(--c-blue); }
.pkg input:checked + .pkg-box .pkg-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-blue);
}
.pkg-info { flex: 1; }
.pkg-title { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1rem; }
.pkg-desc { font-size: .85rem; color: var(--c-slate); }
.pkg-price { text-align: right; font-family: var(--font-head); font-weight: 800; color: var(--c-navy); font-size: 1.18rem; white-space: nowrap; }
.pkg-price small { display: block; font-size: .76rem; font-weight: 600; color: var(--c-teal); }

/* ---------- Payment page ---------- */
.amount-box {
  background: linear-gradient(135deg, var(--c-navy), #17307D); color: #fff;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.amount-box .lbl { font-size: .82rem; color: var(--c-mint); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.amount-box .val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.amount-box .sub { font-size: .88rem; color: rgba(255,255,255,.8); }

/* Card payment */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-field { position: relative; }
.card-field input { padding-right: 60px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.card-brand {
  position: absolute; right: 12px; top: 37px; font-family: var(--font-head);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--c-teal);
  background: var(--c-paleblue); border-radius: 5px; padding: 3px 8px;
  opacity: 0; transition: opacity .15s ease;
}
.card-brand.show { opacity: 1; }
.cvv-hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--c-border);
  color: var(--c-slate); font-size: .68rem; font-weight: 700; cursor: help; margin-left: 5px;
  vertical-align: middle;
}
.secure-row {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  font-size: .84rem; color: var(--c-slate); margin-top: 20px; text-align: center;
}
.secure-row svg { color: var(--c-teal); flex: 0 0 auto; }
.accepted-cards { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.accepted-cards span {
  font-family: var(--font-head); font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  color: var(--c-slate); border: 1px solid var(--c-border); border-radius: 5px; padding: 4px 8px;
  background: #fff;
}

.notice {
  background: var(--c-cream); border-left: 4px solid var(--c-pink);
  padding: 15px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; color: #7A4A12; margin: 24px 0;
}
.notice strong { color: #5A360C; }

/* Summary list */
.summary { list-style: none; padding: 0; margin: 0; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--c-border); font-size: .94rem; }
.summary li:last-child { border-bottom: 0; }
.summary .k { color: var(--c-slate); }
.summary .v { font-weight: 700; color: var(--c-navy); text-align: right; }

/* Status / alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert-error { background: #FDECF1; border: 1px solid var(--c-pink); color: #9B1B3F; }
.alert-info { background: var(--c-paleblue); border: 1px solid var(--c-mint); color: #06617F; }

.ref-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--c-periwinkle); color: var(--c-navy); font-family: var(--font-head);
  font-weight: 800; letter-spacing: .04em; padding: 9px 18px; border-radius: 999px; font-size: 1rem;
}

/* Thank you */
.thanks { text-align: center; }
.thanks-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--c-paleblue); color: var(--c-teal); display: grid; place-items: center;
}
.next-list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 16px; }
.next-list li { display: flex; gap: 14px; align-items: flex-start; }
.next-list li[hidden] { display: none; }
.next-list .n {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .86rem;
}
.next-list strong { color: var(--c-navy); font-family: var(--font-head); display: block; font-size: .97rem; }
.next-list span { font-size: .9rem; }

.trust-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.trust-row div { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--c-slate); font-weight: 600; }
.trust-row svg { color: var(--c-teal); }

.form-footer { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.back-link { color: var(--c-slate); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--c-navy); }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4, .check-grid { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 1fr; gap: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .pay-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .header-nav { display: none; }
  .progress-step b { display: none; }
  .progress-line { width: 22px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .brief-inner { grid-template-columns: 1fr; padding: 20px; }
  .quote-panel { padding: 28px 24px; }
}

/* ---------- Plan page (plan.html) ---------- */
.pp-section { margin-bottom: 30px; }
.pp-h { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--c-navy); margin: 0 0 4px; }
.pp-sub { font-size: .9rem; color: var(--c-slate); margin: 0 0 16px; }

.pp-addons { display: flex; flex-direction: column; gap: 12px; }
.pp-addon {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--radius); background: #fff;
  border: 2px solid var(--c-border); font: inherit; color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.pp-addon:hover { border-color: var(--c-mint); }
.pp-addon[aria-pressed="true"] { border-color: var(--c-blue); background: #F5F8FF; }
.pp-addon:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; }
.pp-box {
  width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--c-periwinkle); color: var(--c-navy); font-weight: 800; font-size: .95rem;
}
.pp-addon[aria-pressed="true"] .pp-box { background: var(--c-blue); color: #fff; }
.pp-addon-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pp-addon-txt b { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1rem; }
.pp-addon-txt span { font-size: .85rem; color: var(--c-slate); }
.pp-addon-amt { font-family: var(--font-head); font-weight: 800; color: var(--c-navy); font-size: 1.1rem; white-space: nowrap; }

.pp-term { display: flex; gap: 4px; background: var(--c-periwinkle); border-radius: 999px; padding: 5px; }
.pp-term button {
  flex: 1; padding: 14px 10px; cursor: pointer; border: none; border-radius: 999px;
  background: transparent; color: var(--c-slate);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1.25;
  transition: background .15s ease, color .15s ease;
}
.pp-term button small { display: block; font-size: .74rem; font-weight: 600; opacity: .85; }
.pp-term button[aria-checked="true"] { background: var(--c-navy); color: #fff; }
.pp-term button:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; }

.pp-foot {
  background: var(--c-paleblue); border-radius: var(--radius); padding: 24px 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.pp-label { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--c-slate); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.pp-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--c-navy); }
.pp-price { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; font-family: var(--font-head); }
.pp-price .cur { font-size: 1.1rem; font-weight: 700; }
.pp-price .num { font-size: 3.3rem; font-weight: 800; line-height: 1; }
.pp-off:empty { display: none; }
.pp-was { font-weight: 600; font-size: 1.1rem; color: var(--c-slate); text-decoration: line-through; }
.pp-per { font-weight: 600; font-size: .95rem; color: var(--c-slate); }
.pp-off { font-weight: 700; font-size: .88rem; color: #B4690E; margin-top: 8px; }
.pp-billed { font-size: .84rem; color: var(--c-slate); }

@media (max-width: 560px) {
  .pp-term { flex-direction: column; border-radius: var(--radius); }
  .pp-term button { border-radius: 12px; }
}

/* ---------- Payment bill breakdown ---------- */
.bill { width: 100%; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.bill-row { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.85); }
.bill-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.bill-total { border-top: 1px solid rgba(255,255,255,.18); margin-top: 6px; padding-top: 11px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: #fff; }
.bill-total span:last-child { font-weight: 800; }

/* Small grey italic price note, e.g. "Prices are exclusive of SST." */
.price-note { font-size: .8rem; font-style: italic; color: #94A3B8; text-align: center; margin: 14px 0 0; }
.cta-note { display: block; margin-top: 8px; font-size: .8rem; font-style: italic; color: rgba(255,255,255,.7); }

/* Payment method switch + bank transfer panel */
.pay-switch { margin: 0 0 22px; flex-wrap: wrap; border-radius: var(--radius); }
.pay-switch button { border-radius: 12px; font-size: .82rem; padding: 12px 8px; }
.pay-switch button[hidden] { display: none; }
@media (max-width: 480px) {
  .pay-switch { flex-direction: column; }
}
.bank-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; background: var(--c-offwhite); }

/* File upload drop zone */
.file-drop[hidden] { display: none; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 24px 16px; cursor: pointer;
  border: 2px dashed var(--c-border); border-radius: var(--radius-sm); background: var(--c-offwhite);
  color: var(--c-slate); transition: border-color .15s, background .15s;
  font-family: var(--font-body);
}
.file-drop:hover, .file-drop:focus-visible { border-color: var(--c-blue); background: #EEF4FF; }
.file-drop svg { color: var(--c-teal); }
.file-drop-text { font-weight: 600; font-size: .92rem; color: var(--c-navy); }
.file-drop-hint { font-size: .8rem; color: var(--c-slate); }

.file-chosen[hidden] { display: none; }
.file-chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-top: 8px;
  border: 1.5px solid var(--c-teal); border-radius: var(--radius-sm); background: var(--c-paleblue);
}
.file-chosen-name { font-size: .88rem; font-weight: 600; color: var(--c-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chosen-remove {
  flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.08); color: var(--c-slate); font-size: 1.1rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.file-chosen-remove:hover { background: rgba(0,0,0,.15); color: var(--c-navy); }

/* FPX bank picker */
#fpxBank { position: relative; z-index: 10; transition: border-color .2s; }
#fpxBank.StripeElement--focus { border-color: var(--c-blue); }
.bank-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.bank-row .k { color: var(--c-slate); }
.bank-row .v { font-weight: 700; color: var(--c-navy); text-align: right; }
.copy-btn { margin-left: 8px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--c-teal); background: none; border: 1px solid var(--c-mint); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.bank-qr { text-align: center; margin-top: 12px; }
.bank-qr img { width: 200px; max-width: 100%; border-radius: 10px; border: 1px solid var(--c-border); background: #fff; }

/* ---------- Header: Services menu, language switcher, phone menu ---------- */
.header-nav { margin-left: auto; }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-toggle::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav-dd-menu {
  position: absolute; top: 100%; left: -12px; margin-top: 12px; min-width: 200px; padding: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-nav .nav-dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.header-nav .nav-dd-menu a:hover { background: var(--c-paleblue); color: var(--c-navy); }

.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 4px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--c-border); border-radius: 100px; box-shadow: var(--shadow-sm);
}
.lang-switch .globe { width: 16px; height: 16px; color: var(--c-teal); margin: 0 3px 0 6px; flex: 0 0 auto; }
.lang-switch button {
  font-family: var(--font-head), "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-weight: 700; font-size: .78rem; line-height: 1; padding: 7px 11px; border: none; border-radius: 100px;
  background: transparent; color: var(--c-slate); cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--c-navy); background: var(--c-paleblue); }
.lang-switch button[aria-pressed="true"] { background: var(--c-navy); color: #fff; cursor: default; }
.lang-switch button:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }

.nav-toggle {
  display: none; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; padding: 0;
  border: 1px solid var(--c-border); border-radius: 11px; background: #fff; color: var(--c-navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1060px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: grid; }
  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 24px 22px;
    background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  }
  .header-nav.open { display: flex; }
  .nav-dd { flex-direction: column; align-items: flex-start; }
  .nav-dd-toggle::after { display: none; }
  .nav-dd-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    background: transparent; margin: 10px 0 0; padding: 0 0 0 14px; min-width: 0;
    display: flex; flex-direction: column; gap: 12px;
  }
  .nav-dd-menu::before { display: none; }
  .header-nav .nav-dd-menu a { padding: 0; font-size: .88rem; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .lang-switch .globe { display: none; }
  .lang-switch button { padding: 7px 9px; }
}

/* Chinese typography: CJK fallbacks and no negative tracking */
html[lang="zh-Hans"] body { font-family: var(--font-body), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] .btn, html[lang="zh-Hans"] .brand-name {
  font-family: var(--font-head), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}
