:root {
  --ink: #17212f;
  --muted: #5f6f82;
  --line: #d8e3ed;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --brand: #1694d2;
  --brand-dark: #0b5f8f;
  --green: #1d8a74;
  --gold: #c8942e;
  --danger: #b94040;
  --shadow: 0 18px 55px rgba(20, 45, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

body[data-page="commission"] {
  background: #eef5f9;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #ecf6fb 100%);
  border-bottom: 1px solid var(--line);
}

.compact-header {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f7 100%);
}

.brand-row,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup img:first-child {
  width: min(360px, 42vw);
}

.brand-lockup img:last-child {
  width: min(210px, 24vw);
}

.brand-lockup.is-team-only img {
  width: min(230px, 28vw);
}

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

nav a,
.text-link {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
}

nav a:hover,
.text-link:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 28px;
  padding: 54px 0 64px;
}

.hero-simple {
  grid-template-columns: 1fr;
}

.compact-hero {
  grid-template-columns: 1fr;
  padding: 34px 0 42px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.compact-hero .hero-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-simple .hero-copy p:not(.eyebrow) {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel,
.focus-card,
.summary-panel,
.coverage-card,
.table-panel,
.notice-panel,
.info-panel,
.tool-band,
.selected-plan-card,
.formula-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 31px;
  line-height: 1.15;
}

main {
  padding: 34px 0 72px;
}

.tool-band,
.table-panel,
.notice-panel {
  padding: 28px;
  margin-bottom: 24px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading h2,
.summary-panel h2,
.table-heading h2,
.notice-panel h2,
.info-panel h2,
.formula-grid h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.section-heading p:not(.eyebrow),
.summary-panel p,
.notice-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.product-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  margin-bottom: 20px;
}

.mode-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.mode-button.is-active {
  background: var(--brand-dark);
  color: #fff;
}

.planner-mode-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.planner-controls {
  display: grid;
  gap: 18px;
}

.profile-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #405063;
  font-weight: 800;
}

.rider-list {
  display: grid;
  gap: 10px;
}

.main-product-links {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.main-product-links small {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.55;
}

.main-product-links a,
.rider-option small a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 99, 150, 0.35);
}

.main-product-links a:hover,
.rider-option small a:hover {
  color: var(--brand-dark);
  border-bottom-color: currentColor;
}

.rider-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.rider-option input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
}

.rider-option-body {
  grid-column: 2;
  display: grid;
  gap: 6px;
}

.rider-option-body label {
  font-weight: 900;
  cursor: pointer;
}

.rider-option small {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.55;
}

.selected-plan-card {
  box-shadow: none;
  padding: 24px;
}

.selected-plan-card > span {
  display: inline-flex;
  border-radius: 999px;
  background: #e8f5fb;
  color: var(--brand-dark);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 900;
}

.selected-plan-card h3 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.22;
}

.selected-plan-card p {
  margin: 0;
  color: var(--muted);
}

.rate-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.rate-summary-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.rate-summary-grid small,
.rate-note,
.rate-item small {
  color: var(--muted);
}

.rate-summary-grid small {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.rate-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.rate-note {
  margin-top: 12px !important;
  font-size: 14px;
}

.selected-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rate-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 14px;
}

.rate-item.is-unavailable {
  border-color: rgba(185, 64, 64, 0.35);
  background: #fff8f8;
}

.rate-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.rate-item-head span {
  display: inline-flex;
  width: fit-content;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
}

.rate-item-head strong {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
}

.rate-premium {
  min-width: 120px;
  text-align: right;
}

.rate-premium strong {
  margin: 0;
  font-size: 20px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.rate-detail {
  margin: 12px 0 0 !important;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rate-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rate-controls .field span {
  font-size: 13px;
}

.rate-controls .field select {
  min-height: 44px;
  font-size: 15px;
}

.plan-pill {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.plan-pill > span {
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.plan-pill > strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}

.plan-pill small {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.plan-pill small a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 99, 150, 0.35);
}

.plan-pill small a:hover {
  color: var(--brand-dark);
  border-bottom-color: currentColor;
}

.package-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.package-card {
  background: linear-gradient(135deg, #fff 0%, #f4fbf8 100%);
}

.package-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.package-facts {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.package-facts div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.package-facts dt {
  color: var(--muted);
  font-weight: 900;
}

.package-facts dd {
  margin: 0;
  font-weight: 800;
}

.package-rate-item {
  background: #fff;
}

.package-coverage-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.7fr) minmax(0, 1.5fr);
  gap: 10px;
  margin-top: 14px;
}

.package-coverage-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.package-coverage-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.package-coverage-grid strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.package-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.package-links a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 99, 150, 0.35);
}

.package-links a:hover {
  color: var(--brand-dark);
  border-bottom-color: currentColor;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: #405063;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(22, 148, 210, 0.18);
  border-color: var(--brand);
}

.status-note {
  border: 1px dashed #adc6d8;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px 14px;
}

.status-note span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-note strong {
  display: block;
  margin-top: 2px;
}

.product-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
}

.rate-table-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(130px, 0.55fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.rate-table-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 12px;
  margin-bottom: 14px;
}

.rate-table-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px 14px;
}

.rate-table-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rate-table-meta strong {
  display: block;
  margin-top: 3px;
}

.terms-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.terms-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.terms-meta {
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.5fr) minmax(150px, 0.5fr);
}

.terms-viewer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  min-height: 720px;
}

.terms-viewer iframe {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 720px;
  border: 0;
  background: #f8fbfd;
}

.rate-lookup-table th,
.rate-lookup-table td {
  font-variant-numeric: tabular-nums;
}

.rate-lookup-table th:not(:first-child),
.rate-lookup-table td:not(:first-child) {
  text-align: right;
}

.rate-lookup-table .empty-rate-cell {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 22px;
}

.focus-card {
  box-shadow: none;
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #f1f8fc 100%);
}

.focus-card span {
  display: inline-flex;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 900;
}

.focus-card h3 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

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

.product-facts,
.breakdown-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.product-facts div,
.breakdown-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.product-facts dt,
.breakdown-list dt {
  color: var(--muted);
  font-weight: 800;
}

.product-facts dd,
.breakdown-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.product-facts dd span {
  display: block;
}

.inline-rate-link {
  display: inline-flex;
  margin-top: 6px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand-dark);
  padding: 4px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.inline-rate-link:hover {
  background: #e8f5fb;
}

.commission-product-detail {
  display: grid;
  gap: 4px;
  min-width: 260px;
}

.commission-product-detail + .commission-product-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.commission-product-detail strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.commission-product-detail span {
  color: var(--ink);
  font-weight: 800;
}

.commission-product-detail em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.planning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.summary-panel {
  box-shadow: none;
  padding: 28px;
}

.summary-panel.accent {
  border-color: rgba(29, 138, 116, 0.3);
  background: #f2fbf8;
}

.coverage-section {
  margin-bottom: 24px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.coverage-card {
  box-shadow: none;
  padding: 18px;
  min-height: 210px;
}

.coverage-card span {
  color: var(--gold);
  font-weight: 900;
}

.coverage-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

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

.coverage-card small {
  display: block;
  margin-top: 14px;
  color: var(--brand-dark);
  font-weight: 800;
}

.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 760px;
}

.yearly-commission-table {
  table-layout: auto;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #405063;
  background: #f4f8fb;
  font-size: 14px;
}

td {
  color: var(--ink);
}

.yearly-commission-table th,
.yearly-commission-table td {
  white-space: nowrap;
}

.yearly-commission-table th:nth-child(1),
.yearly-commission-table td:nth-child(1) {
  min-width: 92px;
}

.yearly-commission-table th:nth-child(2),
.yearly-commission-table th:nth-child(3),
.yearly-commission-table td:nth-child(2),
.yearly-commission-table td:nth-child(3) {
  min-width: 150px;
}

.yearly-product-heading,
.product-commission-cell {
  min-width: 160px;
  text-align: right;
}

.yearly-product-heading a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.yearly-product-heading a:hover span,
.yearly-product-heading a:focus-visible span {
  text-decoration: underline;
}

.yearly-product-heading a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.yearly-product-heading span,
.yearly-product-heading small {
  display: block;
}

.yearly-product-heading span {
  color: var(--brand-dark);
  font-size: 15px;
}

.yearly-product-heading small {
  max-width: 180px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.product-commission-cell {
  color: var(--brand-dark);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.product-bonus-panel {
  margin-top: 24px;
}

.product-bonus-panel .table-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-bonus-table {
  table-layout: auto;
  min-width: 980px;
}

.product-bonus-table th:not(:first-child),
.product-bonus-table td:not(:first-child) {
  min-width: 128px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.product-bonus-table td:nth-child(8),
.product-bonus-table td:nth-child(9) {
  color: var(--brand-dark);
  font-weight: 900;
}

.notice-panel {
  box-shadow: none;
  border-color: rgba(185, 64, 64, 0.25);
  background: #fffafa;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.formula-grid article {
  box-shadow: none;
  padding: 18px;
}

.formula-grid span {
  color: var(--brand);
  font-weight: 900;
}

.formula-grid h2 {
  margin-top: 6px;
  font-size: 19px;
}

.formula-grid p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.money-input,
.rate-input,
.count-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.money-input input,
.rate-input input,
.count-input input,
.count-input select {
  border: 0;
  min-height: 50px;
}

.count-input select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.money-input em,
.rate-input em,
.count-input em {
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.template-preview {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.template-preview h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.template-preview p {
  margin: 0;
  color: var(--muted);
}

.template-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.template-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfd;
}

.template-item.is-unavailable {
  border-style: dashed;
  background: #fff;
}

.template-item span,
.template-item small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.template-item strong {
  display: block;
  margin: 4px 0;
}

.template-item em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.template-item-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.template-item-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.template-item-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-item-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.template-option-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  padding: 6px 9px;
}

.result-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.result-band div {
  background: var(--brand-dark);
  color: white;
  border-radius: 8px;
  padding: 24px;
}

.result-band span,
.result-band small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.result-band strong {
  display: block;
  margin: 8px 0;
  font-size: 32px;
  line-height: 1.15;
}

.breakdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.info-panel {
  box-shadow: none;
  padding: 24px;
}

.breakdown-list.compact dd {
  max-width: 62%;
}

@media (max-width: 980px) {
  .hero,
  .product-board,
  .planning-grid,
  .breakdown-layout,
  .template-item-list,
  .planner-layout,
  .rate-table-controls,
  .terms-controls,
  .rate-table-meta,
  .template-item-facts {
    grid-template-columns: 1fr;
  }

  .coverage-grid,
  .formula-grid,
  .controls,
  .profile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .brand-row,
  main,
  .hero {
    width: min(100% - 28px, 1180px);
  }

  .brand-row,
  .brand-lockup,
  .table-heading,
  .product-selector,
  .package-selector,
  .rate-table-controls,
  .terms-controls,
  .rate-table-meta {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .terms-actions {
    justify-content: flex-start;
  }

  .brand-lockup img:first-child,
  .brand-lockup img:last-child {
    width: 100%;
    max-width: 360px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 34px 0 42px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .coverage-grid,
  .formula-grid,
  .controls,
  .result-band,
  .mode-tabs,
  .profile-controls,
  .rate-summary-grid,
  .rate-controls,
  .rate-item-head,
  .package-summary-grid,
  .package-coverage-grid {
    grid-template-columns: 1fr;
  }

  .rate-premium {
    text-align: left;
  }

  .plan-pill,
  .package-facts div {
    grid-template-columns: 1fr;
  }

  .plan-pill small {
    grid-column: 1;
  }

  .login-logos {
    grid-template-columns: 1fr;
  }
}
