.package-page [hidden] { display: none !important; }
.package-page { background: #faf5ed; }
.package-section { padding: clamp(48px, 6vw, 94px) var(--gutter); }
.package-section + .package-section { border-top: 1px solid var(--line); }
.package-section h1, .package-section h2 {
  max-width: 22ch;
  margin: 15px 0;
  font-size: clamp(35px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.package-section h2 { font-size: clamp(30px, 3.8vw, 56px); }
.package-intro { max-width: 66ch; margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.topic-select { display: grid; gap: 4px; font-weight: 750; }
.topic-select select, #budget-share-link {
  border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; min-height: 44px;
  background: #fffaf3; color: var(--ink); font: inherit;
}
.package-page input:is([type="checkbox"], [type="radio"]) { flex: none; width: 18px; height: 18px; accent-color: var(--wine); }
.compare-meta { margin: 22px 0 8px; font-size: 13px; color: var(--muted); }
.compare-scroll { overflow: auto; border: 1px solid var(--line); background: #fffaf3; }
.compare-scroll-note { display: none; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.package-table { width: 100%; min-width: 590px; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.package-feature-col { width: 40%; }
.package-table th, .package-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.package-table th:first-child { text-align: start; }
.package-table :is(th,td):not(:first-child) { text-align: center; }
.package-table thead th { background: var(--wine); color: #fffaf3; font-size: clamp(14px, 1.5vw, 20px); }
.package-table small { display: block; margin-top: 3px; font-size: 11px; font-weight: 550; }
.package-fees th, .package-fees td { background: #f7eee3; }
.package-fees td { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.package-fees tr:last-child { color: var(--wine); }
.compare-group th { background: #eee2d4; color: var(--wine); border-top: 1px solid var(--line); }
.compare-group-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 6px 14px;
  font: 500 12px "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase;
}
.compare-scope {
  padding: 3px 7px; border: 1px solid rgba(114,34,52,.2); background: #f7eee3;
  font: 750 11px var(--sans); letter-spacing: 0; text-transform: none;
}
.package-table [data-feature] :is(th, td) { padding-block: 8px; }
.package-table [data-feature] td { color: var(--muted); vertical-align: middle; }
.package-table [data-feature] th { background: #fffaf3; }
.package-table [data-feature]:hover :is(th,td), .package-table [data-feature]:focus-within :is(th,td) { background: #f8efe4; }
.package-table [data-feature]:has(details[open]) :is(th,td) { background: #f5e9e0; }
.package-table [data-feature]:has(details[open]) th { border-inline-start: 2px solid var(--wine); padding-inline-start: 13px; }
.compare-badge { display: inline-block; padding: 4px 9px; border: 1px solid transparent; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.compare-badge > span { margin-inline-end: 3px; }
.compare-badge-in { background: #e3ebe2; color: #24463b; font-weight: 800; }
.compare-badge-out { color: #5b514d; }
.package-table summary, .package-faq summary { cursor: pointer; }
.package-table summary {
  display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: center;
  gap: 8px; min-height: 36px; list-style: none; line-height: 1.35;
}
.package-table summary::-webkit-details-marker { display: none; }
.package-table summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.feature-toggle {
  position: relative; display: block; width: 19px; height: 19px;
  border: 1px solid rgba(114,34,52,.22); background: #fbf5ee; color: var(--wine);
}
.feature-toggle::before, .feature-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: currentColor; transform: translate(-50%,-50%); }
.feature-toggle::before { width: 7px; height: 1px; }
.feature-toggle::after { width: 1px; height: 7px; }
details[open] .feature-toggle { background: var(--wine); border-color: var(--wine); color: #fffaf3; }
details[open] .feature-toggle::after { display: none; }
.package-table details p { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 8px 27px; line-height: 1.55; }
.package-table details a { display: block; margin-top: 5px; color: var(--wine); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.package-faq summary::marker { color: var(--wine); }
.package-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.package-note a, .package-faq a { color: var(--wine); text-decoration: underline; }
.budget-section { background: #f4ebdf; }
.budget-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.budget-options, .budget-result { padding: clamp(15px, 2.6vw, 32px); border: 1px solid var(--line); background: #fffaf3; min-width: 0; }
.budget-options fieldset { min-inline-size: 0; margin: 0 0 20px; padding: 0; border: 0; }
.budget-options fieldset:last-child { margin-bottom: 0; }
.budget-options legend { margin-bottom: 10px; color: var(--wine); font: 12px "DM Mono", monospace; text-transform: uppercase; }
.budget-plan-grid, .budget-extra-grid { display: grid; gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.budget-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.budget-choice { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border: 1px solid var(--line); background: #faf5ed; cursor: pointer; }
.budget-choice:has(input:checked) { border-color: var(--wine); background: #eee2d7; }
.budget-choice input { margin: 2px 0 0; }
.budget-choice strong, .budget-choice small { display: block; overflow-wrap: anywhere; }
.budget-choice strong { font-size: 14px; line-height: 1.35; }
.budget-choice small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.budget-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 20px; margin-top: 12px; font-size: 14px; }
.budget-settings select { min-width: 92px; }
.budget-result { border-top: 3px solid var(--wine); }
.budget-result h3 { margin: 10px 0; font-size: 30px; letter-spacing: -.04em; }
.budget-selected { color: var(--muted); font-size: 13px; line-height: 1.55; }
.budget-selected h4 { margin: 14px 0 5px; color: var(--ink); font-size: 13px; }
.budget-selected p { margin: 0; }
.budget-selected ul { margin: 0; padding-inline-start: 19px; }
.budget-selected li + li { margin-top: 8px; }
.budget-selected li::marker { color: var(--wine); }
.budget-selected li strong { color: var(--ink); }
.budget-selected li small { display: block; font-size: 12px; }
.budget-rates { margin: 14px 0 0; border-top: 1px solid var(--line); }
.budget-rates > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.budget-rates dt { font-size: 13px; }
.budget-rates dd { margin: 0; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.budget-rates small { display: block; margin-top: 3px; color: var(--muted); }
.budget-total { color: var(--wine); }
.budget-payment { margin-top: 18px; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); background: #faf5ed; }
.budget-payment .section-label { margin: 0 0 5px; }
.budget-payment h4 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.budget-payment .budget-rates { margin-top: 10px; }
.budget-payment .budget-rates > div:last-child { padding-bottom: 0; border-bottom: 0; }
.budget-payment .budget-total dt { font-weight: 750; }
.budget-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; }
.budget-actions .button { min-height: 44px; padding: 11px 15px; gap: 10px; box-shadow: none; }
#budget-demo-note { margin-top: 6px; }
.budget-text-button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--wine); font: 750 13px var(--sans); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
#budget-share-link { display: block; width: 100%; }
#budget-share-status:empty { display: none; }
.package-faq details { max-width: 760px; border-bottom: 1px solid var(--line); }
.package-faq summary { padding: 14px 0; font-weight: 750; }
.package-faq details p { margin: 0 0 16px 17px; color: var(--muted); line-height: 1.65; }
@media (max-width: 950px) {
  .budget-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 710px) {
  .compare-scroll-note { display: block; }
  .package-table { min-width: 500px; }
  .package-feature-col { width: 29%; }
  .package-table th, .package-table td { padding: 10px; }
  .package-table :is(thead th:first-child, th[scope="row"]) {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    box-shadow: 1px 0 var(--line);
  }
  .compare-group-inner { position: sticky; inset-inline-start: 10px; display: grid; justify-items: start; width: max-content; max-width: 245px; }
  .package-table summary { font-size: 13px; min-height: 44px; }
  .package-table [data-feature]:has(details[open]) th { padding-inline-start: 8px; }
  .package-table details p { margin-inline-start: 0; overflow-wrap: anywhere; }
  .compare-badge { padding-inline: 6px; }
}
@media (max-width: 490px) {
  .budget-plan-grid, .budget-extra-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-select { width: 100%; }
}
