:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: #17213a;
    background: #f6f7fc;
    line-height: 1.55;
    --muted: #505d73;
    --line: #d9dfeb;
    --accent: #244bd6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; text-transform: capitalize; }
.page-width { width: min(calc(100% - 36px), 960px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; }
.brand:link, .brand:visited { color: #17213a; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; flex: none; background: var(--accent); color: #fff; border-radius: 9px; font-size: 20px; }
main { padding-block: clamp(30px, 6vw, 60px); }
.back-link { display: inline-block; margin-bottom: 12px; }
.intro { margin-bottom: 26px; }
h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
h2, legend { font-weight: 720; font-size: 18px; letter-spacing: -.018em; }
p { margin: 0; }
.intro p, .phone-card p, .request-note { color: var(--muted); max-width: 66ch; }
.comparison-link { display: inline-block; margin-top: 9px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card, .phone-card, .review-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.plan-card { display: flex; flex-direction: column; padding: 18px; gap: 6px; cursor: pointer; }
.plan-card:has(input:checked) { outline: 2px solid var(--accent); outline-offset: -2px; background: #f2f5ff; }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 750; }
.plan-card input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.plan-price { font-size: 24px; letter-spacing: -.035em; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 550; letter-spacing: 0; }
.plan-card > span:not(.plan-name) { color: var(--muted); font-size: 13px; }
.plan-card .plan-coverage { font-weight: 650; }
.plan-highlights { display: grid; gap: 4px; padding-block: 3px; }
.plan-highlights > span { display: flex; align-items: baseline; gap: 8px; }
.plan-highlights > span::before {
    content: "";
    flex: 0 0 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-2px);
}
.plan-card .plan-terms { border-top: 1px solid var(--line); margin-top: auto; padding-top: 9px; }
.plan-note { color: var(--muted); margin-top: 10px; font-size: 13px; }

.phone-card {
    margin-top: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 175px);
    gap: 12px 24px;
    align-items: start;
}
.phone-card h2, .review-card h2 { margin: 0 0 5px; }
.phone-card p { font-size: 14px; }
.seat-control { font-size: 14px; font-weight: 650; }
.seat-control input { display: block; width: 100%; padding: 9px 11px; margin-block: 4px; border: 1px solid #aebbd6; border-radius: 8px; font: inherit; color: #17213a; }
.seat-control span { color: var(--muted); font-size: 12px; font-weight: 500; }
.phone-details { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line); }
.phone-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 16px;
    padding-left: 20px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 650;
}
.phone-features li::marker { color: var(--accent); }
.feature-document { display: inline-block; margin-top: 10px; }

.plan-features { margin-top: 32px; scroll-margin-top: 12px; }
.feature-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3px 16px;
    margin-bottom: 10px;
}
.feature-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 27px); }
.comparison-scroll-note { display: none; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.comparison-scroll {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overscroll-behavior-x: contain;
}
.comparison-table { width: 100%; min-width: 500px; table-layout: fixed; border-spacing: 0; font-size: 14px; }
.comparison-table .feature-column { width: 43%; }
.comparison-table th, .comparison-table td { padding: 9px 13px; border-bottom: 1px solid #e6ebf4; }
.comparison-table thead th { background: #15264e; border-color: #15264e; color: #fff; }
.comparison-table thead th:first-child, .comparison-table tbody th { text-align: left; }
.comparison-table .feature-group th { background: #eaf0ff; color: #243f8e; font-weight: 750; }
.comparison-table th[scope="row"] { font-weight: 600; }
.comparison-table td { text-align: center; }
.comparison-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.feature-included { color: #2344b9; font-weight: 800; }
.feature-unavailable { color: var(--muted); }
.comparison-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.comparison-legend b { color: var(--accent); margin-right: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plan-conditions { display: grid; gap: 8px; margin: 20px 0 13px; padding-left: 19px; font-size: 14px; color: var(--muted); }
.plan-conditions strong { color: #17213a; }
.holiday-details { border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; }
.holiday-details summary { padding: 11px 14px; font-weight: 650; cursor: pointer; }
.holiday-details p, .holiday-details ul { margin: 0 14px 12px; color: var(--muted); }
.holiday-details ul { columns: 2; column-gap: 25px; padding-left: 18px; }
.holiday-details li { break-inside: avoid; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.review-card { padding: 22px; }
.review-card dl { margin: 9px 0 14px; }
.review-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.review-card dt { color: var(--muted); min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.review-card dd { margin: 0; flex: 0 0 auto; font-weight: 700; text-align: right; white-space: nowrap; }
.review-card dd.long-amount { flex: 0 1 60%; white-space: normal; overflow-wrap: anywhere; }
.summary { color: #fff; background: linear-gradient(130deg, #16264b, #2547ac); border-color: transparent; }
.summary dl { font-size: 17px; }
.summary dl > div { border-color: #6c81bd; }
.summary dt, .summary p { color: #e0e9ff; }
.summary dd { font-size: 23px; line-height: 1.2; }
.summary p { font-size: 13px; }

.actions { margin-top: 21px; }
a { color: #2444b8; font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
button, a.request-link { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 9px; font: inherit; font-weight: 700; text-transform: inherit; text-decoration: none; padding: 12px 17px; cursor: pointer; }
button:not(:disabled):hover, a.request-link:hover { background: #193dad; }
button:disabled { opacity: .55; cursor: default; }
:is(a, button, input, summary, .comparison-scroll):focus-visible { outline: 3px solid #244bd6; outline-offset: 4px; }
.form-error { margin-bottom: 15px; padding: 12px 15px; color: #8e2326; border: 1px solid #edd1d3; border-radius: 8px; background: #fff2f3; }
.request-note { margin-top: 14px; font-size: 13px; }

@media (max-width: 680px) {
    .plan-grid, .review-grid { grid-template-columns: 1fr; }
    .plan-card { padding: 15px; }
    .review-card { padding: 17px; }
}

@media (max-width: 565px) {
    .phone-card { grid-template-columns: 1fr; padding: 16px; }
    .seat-control { max-width: 210px; }
    .phone-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comparison-scroll-note { display: block; }
    .comparison-table { font-size: 13px; }
    .comparison-table th, .comparison-table td { padding: 8px 10px; }
    .holiday-details ul { columns: 1; }
}

@media (max-width: 360px) {
    .header-inner { gap: 8px; min-height: 64px; }
    .brand { gap: 6px; font-size: 14px; }
    .brand-mark { width: 30px; height: 30px; }
    .summary dl { font-size: 15px; }
    .summary dd { font-size: 19px; }
}
