:root {
  --ink: #17171a;
  --navy: #173b72;
  --navy-dark: #102a53;
  --paper: #ffffff;
  --warm: #f7f5f0;
  --wash: #edf2f8;
  --line: #dadde3;
  --muted: #676a72;
  --danger: #9b2c2c;
  --success: #255f46;
  --shadow: 0 18px 50px rgba(17, 31, 53, .09);
  --radius-lg: 20px;
  --radius-md: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 10px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }


.app-shell { padding-block: clamp(34px, 6vw, 64px) 64px; min-height: 100vh; }
#main:focus { outline: none; }
.view { animation: enter .24s ease both; }
.view[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.hero-view { display: grid; gap: clamp(34px, 6vw, 58px); }
.hero-copy, .page-heading { max-width: 790px; }
.page-heading.narrow { max-width: 720px; }
.eyebrow, .mini-label {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mini-label { margin-bottom: 6px; font-size: .68rem; }
h1, h2 {
  font-family: "PT Serif", Georgia, serif;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.15; }
.lede {
  margin: 18px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.primary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 174px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: #aebcd0; box-shadow: 0 22px 54px rgba(17,31,53,.13); }
.service-card:focus-visible, .support-card:focus-visible, .button:focus-visible, .back-button:focus-visible {
  outline: 3px solid rgba(23,59,114,.35);
  outline-offset: 4px;
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wash);
  color: var(--navy);
}
.card-icon svg { width: 25px; height: 25px; }
.card-body { align-self: center; min-width: 0; }
.card-title { display: block; font-family: "PT Serif", Georgia, serif; font-weight: 700; font-size: 1.48rem; line-height: 1.12; }
.card-copy { display: block; margin-top: 9px; color: var(--muted); line-height: 1.55; font-size: .94rem; }
.card-arrow { align-self: center; display: block; color: var(--navy); font-size: 1.5rem; line-height: 1; transform: translateY(-1px); }

.quick-contact {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.quick-contact p { margin: 0; line-height: 1.55; }
.quick-contact a { color: var(--navy); font-weight: 700; }
.text-link { text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.view-top { margin-bottom: 30px; }
.back-button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.back-button:hover { color: var(--navy); }

.feature-panel, .portal-callout {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.feature-panel p, .portal-callout p { margin: 10px 0 0; color: rgba(255,255,255,.78); line-height: 1.6; max-width: 54ch; }
.portal-callout .mini-label { color: #c9d7eb; }
.info-card {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--warm);
}
.info-card.compact { max-width: 760px; }
.info-card p { color: var(--muted); line-height: 1.6; }
.info-card h2 a { color: var(--navy); }

.button-row, .ad-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button-row.centered { justify-content: center; }
.button {
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: #fff; }
.feature-panel .button-primary, .portal-callout .button-primary { background: #fff; color: var(--navy-dark); }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.button-linklike { background: transparent; border-color: var(--line); color: var(--navy); }

.section-heading { margin: 54px 0 18px; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.support-card {
  position: relative;
  min-height: 104px;
  padding: 24px 56px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
  color: var(--ink);
  text-decoration: none;
}
.support-card:hover { border-color: #aebcd0; background: #fbfcfe; }
.support-card span { display: block; font-family: "PT Serif", Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.support-card small { display: block; margin-top: 7px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.support-card b { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--navy); font-size: 1.2rem; }
.contact-strip {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
}
.contact-strip > div { display: flex; flex-direction: column; gap: 2px; }
.contact-strip a { color: var(--navy); font-weight: 700; }

.ad-actions { margin-top: 34px; }
.channel-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.channel { padding: 26px 18px; border-right: 1px solid var(--line); }
.channel:last-child { border-right: 0; }
.channel > span { display: block; color: var(--navy); font-family: "Oswald", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .08em; }
.channel h2 { margin-top: 18px; font-size: 1.35rem; }
.channel p { margin: 9px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.form-view { max-width: 820px; }
.support-form {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: 1.2fr .55fr .7fr; }
label { display: grid; gap: 8px; font-size: .84rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd3db;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,59,114,.12); }
.form-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); font-size: .86rem; }
.form-status.error { color: var(--danger); }

.retention-offer {
  padding: 26px;
  border: 1px solid #b9c8db;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--wash);
}
.retention-offer h2 { font-size: 1.45rem; }
.retention-offer p:not(.mini-label) { margin: 10px 0 18px; color: var(--muted); line-height: 1.6; }
.request-note { margin: -4px 0 0; padding: 14px 16px; border-radius: 8px; background: var(--warm); color: var(--muted); font-size: .86rem; line-height: 1.55; }

.success-view { max-width: 760px; margin-inline: auto; text-align: center; padding-top: 40px; }
.success-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--wash); color: var(--success); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 24px; }
.success-view .lede { margin-inline: auto; }
.success-note { max-width: 58ch; margin: 18px auto 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }


@media (max-width: 900px) {
  .primary-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 150px; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel { border-bottom: 1px solid var(--line); }
  .channel:nth-child(2n) { border-right: 0; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1080px); }
  .app-shell { padding-block: 38px 64px; }
  h1 { font-size: clamp(2.3rem, 12vw, 3.45rem); }
  .service-card { padding: 21px; }
  .quick-contact, .feature-panel, .portal-callout { align-items: flex-start; flex-direction: column; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; gap: 16px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel { border-right: 0; }
  .channel:not(:last-child) { border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Structured address groups */
.address-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.address-fields legend {
  padding: 0 8px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

#cancellation-reason-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#cancellation-reason-fields[hidden],
#cancellation-other-wrap[hidden] {
  display: none !important;
}

/* Subscription page: keep the two subscription choices visually consistent */
.feature-panel {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--line);
}

.feature-panel p {
  color: var(--muted);
}

.feature-panel .button-primary {
  background: var(--navy);
  color: #fff;
}
