:root {
  color-scheme: light;
  --ink: #17191d;
  --muted: #555b64;
  --line: #dfe2e7;
  --surface: #f5f6f8;
  --dark: #14171c;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.25rem; }
body { margin: 0; overflow-wrap: break-word; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 760; }
h3 { font-size: 1.125rem; font-weight: 720; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:is(a, button, summary, pre):focus-visible { outline: 3px solid #2564b6; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: .65rem;
  left: 1rem;
  padding: .6rem .85rem;
  border-radius: .4rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }

.header-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .25rem 1rem;
  min-height: 4.65rem;
  padding-block: .6rem;
}

.site-name {
  justify-self: start;
  text-decoration: none;
}

.site-name img { display: block; width: min(7rem, 100%); height: auto; }

.site-name small {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { flex-wrap: wrap; gap: 0 1.45rem; }
.main-nav a, .text-link, .footer-content a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 620;
}

.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--ink); text-decoration: underline; }
.header-actions { justify-self: end; gap: .65rem; }

.language-switch {
  display: flex;
  padding: .15rem;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: var(--surface);
}

.language-switch button {
  min-width: 2.45rem;
  min-height: 2.25rem;
  padding: .1rem .35rem;
  border: 0;
  border-radius: 50rem;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #12151b22; }
.language-switch button:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: .75rem 1.3rem;
  border: 1px solid var(--dark);
  border-radius: 50rem;
  background: var(--dark);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: #363b44; }
.button.compact { min-height: 2.7rem; padding: .45rem .9rem; font-size: .875rem; }
.button.secondary { border-color: #e1e4e9; background: #f2f3f5; color: var(--ink); }
.button.secondary:hover { background: #e7ebef; }

.safari-handoff { border-bottom: 1px solid var(--line); background: var(--surface); }

.safari-handoff-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
  padding-block: .75rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.safari-handoff-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.safari-handoff-actions button { cursor: pointer; }
.safari-handoff-actions .secondary { background: #fff; }
.safari-handoff-actions .secondary:hover { background: #e7ebef; }
.safari-handoff-status { flex-basis: 100%; }
.safari-handoff-status:empty { position: absolute; }

.safari-handoff-url {
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4.5rem);
  padding-block: clamp(2.6rem, 5.65vw, 4.9rem);
}

h1 {
  font-size: clamp(2.35rem, 4.45vw, 4rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.055em;
}

h1 span { display: block; }
.hero h1 span + span { margin-top: .12em; color: #46505e; }

.lede {
  max-width: 34rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.175rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.referral-note { max-width: 32rem; margin-top: .75rem; color: var(--muted); font-size: .875rem; }

.offer-card {
  min-width: 0;
  border: 1px solid #333945;
  border-radius: 1.25rem;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.brand-visual { display: block; width: 100%; height: auto; border-bottom: 1px solid #333945; }
.offer-details { padding: clamp(1.1rem, 2.8vw, 1.7rem); }

.offer-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.offer-top p, .offer-unit, .offer-rate dt { color: #c3cbd5; font-size: .875rem; }
.offer-card h2 { margin-top: .85rem; font-size: clamp(1.45rem, 2.5vw, 2.25rem); }

.offer-saving {
  display: inline-flex;
  align-items: center;
  padding: .15rem .7rem;
  border: 1px solid #456e5b;
  border-radius: 50rem;
  background: #243f33;
  color: #c0f0d2;
  font-size: .875rem;
  white-space: nowrap;
}

.offer-rate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.25rem;
  margin-top: 1.15rem;
  padding-block: .65rem;
  border-block: 1px solid #373e4a;
}

.offer-rate dd { font-variant-numeric: tabular-nums; }
.offer-rate strong { font-size: clamp(1.25rem, 2.45vw, 1.7rem); letter-spacing: -.035em; }
.offer-rate del { color: #bdc4cf; font-size: .875rem; }
.offer-unit { margin-top: .7rem; }

.code-panel {
  min-width: 0;
  border: 1px solid #333945;
  border-radius: 1.25rem;
  background: #171b22;
  color: #eef1f6;
  box-shadow: 0 18px 50px #15192620;
}

.code-panel figcaption, .code-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .7rem;
  padding: .85rem 1.15rem;
}

.code-panel figcaption { border-bottom: 1px solid #383e4a; }
.code-platform { display: block; color: #b4bdc9; font-size: .8125rem; }
.code-panel strong { display: block; margin-top: .12rem; font-size: 1rem; }

.copy-button {
  min-height: 2.45rem;
  padding: .2rem .65rem;
  border: 1px solid #535d6c;
  border-radius: .45rem;
  background: #222832;
  color: #fff;
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
}

.copy-button:hover { background: #36414f; }
.code-panel :is(button, pre):focus-visible { outline-color: #a4c8ff; outline-offset: 2px; }

.code-panel pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font: .875rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.keyword { color: #cbbbff; }
.literal { color: #9fe4b9; }
.code-footer { border-top: 1px solid #383e4a; color: #bac1cb; font-size: .8125rem; }
.copy-status { color: #b4e5c2; }
.copy-status:empty { display: none; }

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading p { margin-top: .5rem; color: var(--muted); }
.pricing { padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); }
.price-table-shell { border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.price-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.model-col { width: 40%; }
.rate-col { width: 22%; }
.saving-col { width: 16%; }

.price-table :is(th, td) {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.price-table :is(th, td):last-child { text-align: right; }
.price-table thead { background: var(--surface); font-size: .875rem; }
.price-table tbody tr:nth-child(even) { background: #fafbfc; }
.price-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.price-table tbody th { font-weight: 690; }

.price-table th code {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.price-table td strong { display: block; font-size: 1.05rem; }
.price-table del { color: var(--muted); font-size: .875rem; }

.price-saving {
  display: inline-block;
  padding: .1rem .6rem;
  border-radius: 50rem;
  background: #e9f4ed;
  color: #225c3e;
  font-weight: 750;
}

.price-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: .35rem 1.25rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .875rem;
}

.price-caption > p:first-child { max-width: 47rem; }
#models { padding-top: clamp(1.2rem, 3vw, 2.5rem); }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }

.model-grid a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  text-decoration: none;
}

.model-grid a:hover { border-color: #7a8290; background: #e9edf3; }
.model-grid a span { color: var(--muted); font-size: .875rem; }
.model-grid a strong { font-size: clamp(1.3rem, 2.25vw, 1.75rem); line-height: 1.3; letter-spacing: -.04em; }

.setup { border-block: 1px solid var(--line); background: var(--surface); }

.setup-content {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4.5vw, 3.75rem);
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0 0 0 1.25rem;
}

.steps li::marker { font-weight: 750; }
.steps li p { margin-top: .5rem; color: var(--muted); }

.tool-guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1rem;
  margin-top: 1.45rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.tool-guides span { font-weight: 650; }
.tool-guides a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
}

.faq .text-link { margin-top: .3rem; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }

.questions summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem .35rem;
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}

.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: #46505e; }

.questions summary::after {
  content: "";
  width: .75rem;
  aspect-ratio: 1;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.questions details[open] summary::after { background-size: 100% 2px, 0 0; }
.questions p { padding: 0 .35rem .9rem; color: var(--muted); overflow-wrap: anywhere; }

.closing-wrap { padding-bottom: clamp(2.8rem, 6vw, 5rem); }

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 1.8rem;
  padding: clamp(1.25rem, 3.65vw, 2.75rem);
  border-radius: 1.25rem;
  background: var(--dark);
  color: #fff;
}

.closing p { margin-top: .35rem; color: #ced4dd; }
.closing .button { border-color: #fff; background: #fff; color: var(--ink); }
.closing .button:hover { background: #e3e8ef; }
.closing .button:focus-visible { outline-color: #a4c8ff; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1.4rem;
  padding-block: 1.25rem;
}

.footer-content nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.about-header { grid-template-columns: minmax(0, 1fr) auto; }
.about { max-width: 51rem; padding-block: clamp(2.65rem, 6vw, 4.75rem); }
.about .lede { max-width: 45rem; }
.about section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.about h2 { font-size: 1.35rem; }
.about section p { max-width: 46rem; margin-top: .65rem; color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding: 0; list-style: none; }
.about > .text-link { margin-top: 1.3rem; }

@media (max-width: 50rem) {
  .wrap { width: min(100% - 2rem, 38rem); }
  .header-content { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 0 1rem; }
  .hero-content { grid-template-columns: 1fr; padding-block: 2.5rem; }
  h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-content, .faq { grid-template-columns: 1fr; }
}

@media (max-width: 31rem) {
  .header-actions { gap: .4rem; }
  .site-name img { width: min(6rem, 100%); }
  .hero-actions { flex-direction: column; }
  .model-grid a { padding: .85rem; }
  .model-col { width: 37%; }
  .saving-col { width: 19%; }
  .price-table :is(th, td) { padding: .58rem .38rem; font-size: .8125rem; }
  .price-table th code { font-size: .72rem; }
  .price-table :is(td strong, del) { font-size: .8125rem; }
  .price-saving { padding-inline: .25rem; }
  .closing .button { width: 100%; }
}
