:root {
  color-scheme: light;
  --ink: #17171b;
  --muted: #53535d;
  --blue: #0059bd;
  --blue-hover: #004a9e;
  --line: #e5e5ea;
  --soft: #f3f4f7;
  --white: #fff;
  --radius: 1.4rem;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: #f5f5f7;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-padding-top: 4.65rem; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2b80df; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(69rem, calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; background: var(--white); padding: .75rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(250, 250, 252, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.2rem; min-height: 3.55rem; }
.wordmark { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; font-weight: 820; letter-spacing: -.065em; white-space: nowrap; }
.brand-icon { width: 1.52rem; height: 1.52rem; border-radius: .47rem; display: inline-grid; place-items: center; background: var(--blue); }
.brand-icon::after { content: ""; width: .52rem; height: .52rem; border-radius: 50%; background: var(--white); }
.topbar .brand-icon {
  flex: none;
  border-radius: 0;
  background: url("./favicon.png") center / contain no-repeat;
}
.topbar .brand-icon::after { content: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: .45rem 1.2rem; }
.nav-link { color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 680; white-space: nowrap; }
.nav-link:hover, footer a:hover { color: var(--blue); text-decoration: underline; }

.hero-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: "." 1fr "headline" auto "details" auto "." 1fr / minmax(0, 1fr);
  min-height: max(clamp(13rem, 21.43vw, 19rem), 19.6vw);
  color: var(--white);
  background: #211a21;
}
.hero-image { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(15 12 20 / .76), rgb(15 12 20 / .58) 32%, rgb(15 12 20 / .10) 62%, transparent 81%);
}
.hero-headline { grid-area: headline; }
h1 { font-size: clamp(2.25rem, 4.15vw, 3.45rem); line-height: 1.08; letter-spacing: -.075em; word-break: keep-all; text-shadow: 0 2px 14px #100d1a90; }
.hero-details { grid-area: details; margin-top: .58rem; }
.hero-description { max-width: 24rem; color: #f1edf0; font-size: 1.04rem; line-height: 1.68; word-break: keep-all; }
.hero-action, .purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .52rem 1.1rem;
  border-radius: 2rem;
  color: var(--white);
  background: var(--blue);
  font-size: .9rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}
.hero-action { margin-top: .75rem; background: var(--white); color: var(--ink); }
.hero-action:hover { background: #f0edf2; }
.hero-action:focus-visible { outline-color: var(--white); }

.comparison { padding-top: 1.2rem; }
.disclosure { display: flex; align-items: start; gap: .65rem; padding: .75rem .95rem; border-radius: .83rem; border: 1px solid #e7e9f1; background: #eff1f7; color: #3b4255; font-size: .875rem; }
.info-icon { flex: none; display: grid; place-items: center; border: 1px solid currentColor; width: 1.08rem; height: 1.08rem; margin-top: .14rem; border-radius: 50%; font: 720 .73rem/1 system-ui; }
.section-heading, .result-heading { display: flex; align-items: end; justify-content: space-between; gap: .65rem 1rem; }
.section-heading { margin: 1.75rem 0 .9rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.25; letter-spacing: -.068em; word-break: keep-all; }
.section-heading p, .result-heading span { color: var(--muted); font-size: .875rem; }
.section-heading p { margin-top: .26rem; }
.reset { min-height: 2.55rem; background: #eaf2fe; color: var(--blue); border: 0; border-radius: 2rem; padding: .46rem .8rem; font-size: .875rem; font-weight: 740; white-space: nowrap; }
.reset:hover { background: #e0edff; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1rem; }
.filters label { display: grid; gap: .3rem; color: var(--muted); font-size: .875rem; font-weight: 730; }
.filters select {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 2.8rem;
  padding: .36rem 2rem .36rem .72rem;
  border: 1px solid #e6e7ec;
  border-radius: .72rem;
  background: linear-gradient(45deg, transparent 50%, #5e606b 50%) right 14px center / 5px 5px no-repeat,
              linear-gradient(135deg, #5e606b 50%, transparent 50%) right 9px center / 5px 5px no-repeat, var(--soft);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}
.result-heading { margin: 1.25rem 0 .6rem; }
#result-count { font-weight: 780; }
.badge-guide { color: var(--muted); font-size: .84rem; margin: -.12rem 0 .6rem; }
.badge-guide summary { width: fit-content; padding: .2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .16em; }
.badge-guide p { margin-top: .25rem; max-width: 58rem; line-height: 1.65; }
.table-shell { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
table { border-collapse: collapse; width: 100%; }
thead { background: #eff0f5; color: #474954; text-align: left; }
thead th { padding: .67rem 1.05rem; font-size: .875rem; }
.align-right, .amount { text-align: right; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td, tbody th { padding: .82rem 1.05rem; vertical-align: middle; }
tbody th { text-align: left; }
.seller strong, .allowance strong { font-weight: 760; }
.plan-badges { display: flex; flex-wrap: wrap; gap: .24rem .35rem; margin-top: .32rem; }
.plan-badge {
  display: inline-flex;
  padding: .14rem .48rem;
  border-radius: 1.5rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.38;
  white-space: nowrap;
}
.plan-badge[data-badge="price"] { background: #e6f3ec; color: #23563d; }
.plan-badge[data-badge="reviews"] { background: #ebeff7; color: #3d5372; }
.plan-badge[data-badge="rating"] { background: #f2edf8; color: #5a4276; }
.secondary { display: block; color: var(--muted); font-size: .85rem; font-weight: 450; }
.duration { white-space: nowrap; }
.amount strong { display: block; color: var(--ink); font-size: 1.19rem; letter-spacing: -.053em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount .secondary { white-space: nowrap; }
.buy { text-align: right; }
.purchase { padding-inline: .87rem; border: 1px solid #d0d6df; color: #344054; background: #f7f8fb; }
.purchase:hover { border-color: #b9c4d2; background: #edf1f6; }
.empty { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 2rem 1rem; }
.empty button { margin-top: .7rem; }
.price-note { color: var(--muted); font-size: .88rem; margin: .7rem .15rem 0; }

.guide { margin-block: 3rem; }
.guide h2 { margin-bottom: .95rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.guide-card, .guide details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.guide-card { padding: clamp(1rem, 2.65vw, 1.5rem); }
.guide h3 { font-size: 1.14rem; line-height: 1.4; letter-spacing: -.045em; margin-bottom: .5rem; word-break: keep-all; }
.guide p, .guide-steps, .sources { color: var(--muted); line-height: 1.7; }
.guide-steps { margin: 0; padding-inline-start: 1.28rem; }
.guide-steps li + li { margin-top: .4rem; }
.guide-steps + p { margin-top: .6rem; }
.guide a { color: var(--blue); }
.guide details { margin-top: .85rem; }
.guide summary { padding: .95rem 1.15rem; font-weight: 750; cursor: pointer; }
.guide details p { margin: 0 1.15rem .65rem; }
.sources { margin: 0 1.15rem 1rem; padding-left: 1.25rem; }
footer { border-top: 1px solid var(--line); background: var(--white); }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.15rem; }
footer a { color: var(--blue); font-size: .9rem; text-decoration: none; }

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .hero-banner { grid-template: "headline" auto "details" auto / minmax(0, 1fr); min-height: 0; background: transparent; }
  .hero-image { position: static; grid-area: headline; height: clamp(5.25rem, 21.43vw, 10rem); background: #211a21; }
  .hero-banner::before { position: static; grid-area: headline; background: linear-gradient(0deg, rgb(15 12 20 / .86), rgb(15 12 20 / .56) 44%, transparent 84%); }
  .hero-headline { align-self: end; padding-bottom: .65rem; }
  h1 { font-size: clamp(1.7rem, 7.2vw, 2.7rem); }
  .hero-details { margin-top: .7rem; }
  .hero-description { color: var(--muted); font-size: .99rem; }
  .hero-action { margin-top: .68rem; background: var(--blue); color: var(--white); }
  .hero-action:hover { background: var(--blue-hover); }
  .hero-action:focus-visible { outline-color: #2b80df; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .8rem; }
  .table-shell { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  table, tbody { display: block; }
  thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  tbody { display: grid; gap: .63rem; }
  tbody tr, tbody tr + tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "seller price" "data duration" "buy buy";
    align-items: center;
    gap: .52rem .7rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--white);
    padding: .9rem;
  }
  tbody td, tbody th { padding: 0; }
  .seller { grid-area: seller; }
  .allowance { grid-area: data; }
  .duration { grid-area: duration; justify-self: end; padding: .15rem .55rem; border-radius: 1rem; background: var(--soft); font-size: .87rem; font-weight: 700; }
  .amount { grid-area: price; }
  .buy { grid-area: buy; }
  .purchase { width: 100%; margin-top: .18rem; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23rem) {
  .nav { gap: .25rem .65rem; }
  .nav-link { font-size: .82rem; }
  .section-heading { align-items: start; }
  .section-heading .reset { margin-top: .1rem; }
}
