@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif/InstrumentSerif-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
/* The comparison owns its card palette; the surrounding page follows the site theme. */
.vip-page {
  --tier-surface: #fff;
  --tier-ink: #16202e;
  --tier-muted: #536071;
  --tier-line: #e1e5eb;
  --tier-tint: #f0f3f6;
  --tier-green: #096b53;
  --tier-green-soft: #e4f5ed;
  margin: 0; color: var(--ink); background-color: #faf9f6;
  background-image: radial-gradient(#17233512 .8px, transparent .9px);
  background-size: 24px 24px;
}
html[data-color-mode="dark"] .vip-page {
  --tier-surface: #22252d; --tier-ink: #f3f4f6; --tier-muted: #b4bcc7;
  --tier-line: #404752; --tier-tint: #313741; --tier-green: #9de7cd; --tier-green-soft: #243c35;
  background-color: var(--paper); background-image: radial-gradient(#ffffff10 .8px, transparent .9px);
}
.vip-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.vip-top > div { max-width: 1160px; margin: auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.vip-top .koetabi-symbol { width: 32px; height: 32px; flex-basis: 32px; }
.vip-top .koetabi-wordmark { width: auto; flex-basis: auto; height: auto; }
.vip-top .koetabi-wordmark img { height: 32px; }
html[lang='en'] .vip-top .koetabi-wordmark img { height: 21px; }
.vip-page a { text-underline-offset: 4px; }
.vip-page .vip-back,
.vip-page .vip-back:link,
.vip-page .vip-back:visited,
.vip-page .vip-back:hover,
.vip-page .vip-back:active,
.vip-page .vip-back:focus-visible { text-decoration: none; }
.vip-back {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; min-height: 36px; padding: 0 13px 0 9px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-muted); color: var(--ink);
  font-size: 13.5px; font-weight: 550; line-height: 1; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.vip-back:hover {
  background: var(--journey-active, var(--surface-muted));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  color: var(--ink);
}
.vip-back-icon { width: 16px; height: 16px; flex: none; opacity: 0.78; }
.vip-mobile-switch { display: none; }
.vip-page #main { width: min(calc(100% - 48px), 1000px); max-width: none; min-height: 0; margin: 0 auto; padding: 0 0 64px; }
.vip-intro { padding: clamp(24px,3.5vw,44px) 0 24px; }
.vip-intro h1 { margin: 0; font: italic 400 clamp(54px,6vw,82px)/1 'Instrument Serif',Georgia,serif; letter-spacing: -.035em; color: var(--ink); }
.vip-tiers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(16px,2.3vw,32px); }
.vip-tier {
  display: grid; grid-row: span calc(var(--benefit-rows) + 2); grid-template-rows: subgrid;
  position: relative; min-width: 0; padding: clamp(20px,2.5vw,32px); color: var(--tier-ink);
  background: var(--tier-surface); border: 1px solid var(--tier-line); border-radius: 17px;
  box-shadow: 0 6px 23px -14px #16203330;
}
.vip-tier.vip-tier-paid {
  --tier-ink: #f7f9fc; --tier-muted: #c1cbd9; --tier-line: #ffffff26;
  --tier-tint: #ffffff10; --tier-green: #99efd3; --tier-green-soft: #79edbd20;
  background: radial-gradient(ellipse at 94% 0%,#37cda028,transparent 49%),radial-gradient(ellipse at 0% 100%,#e8b45812,transparent 42%),linear-gradient(150deg,#111826,#192941 58%,#101a2b);
  border-color: #384658; box-shadow: 0 18px 40px -20px #0c192da6; overflow: clip;
}
.vip-tier-paid::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,#f1ca72,#5dd8a7,#72bfe5); }
.vip-tier-name,.vip-tier-price { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vip-tier-name h2 { margin: 0; font-size: 20px; font-weight: 650; color: var(--tier-ink); }
.vip-tier-name small,.vip-recommended { font-size: 11px; padding: 3px 8px; font-weight: 600; line-height: 1.5; }
.vip-tier-name small { margin-inline-start: auto; border-radius: 20px; color: var(--tier-muted); background: var(--tier-tint); }
.vip-tier-name small::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-inline-end: 5px; background: currentColor; }
.vip-tier-paid .vip-tier-name small { color: var(--tier-green); background: var(--tier-green-soft); }
.vip-recommended { color: #f8d58a; border-radius: 5px; background: #e6b75d1d; border: 1px solid #f5cd793b; }
.vip-tier-price { align-items: baseline; margin: 19px 0 7px; }
.vip-tier-price strong { font-size: clamp(38px,4vw,46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.vip-tier-price span,.vip-tier-note { color: var(--tier-muted); font-size: 14px; }
.vip-tier-note { margin: 0; line-height: 1.55; }
.vip-group-name { margin: 20px 0 6px; border-top: 1px solid var(--tier-line); padding-top: 18px; color: var(--tier-muted); font-size: 12px; font-weight: 650; }
.vip-tier-paid .vip-group-name { color: #f3d48f; }
.vip-features { grid-row: span var(--benefit-rows); display: grid; grid-template-rows: subgrid; padding: 0; margin: 0; list-style: none; }
.vip-features li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; line-height: 1.45; }
.vip-features li > div { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.vip-features strong { flex: 1 1 120px; color: inherit; font-size: 14px; font-weight: 400; }
.vip-features b { font-weight: 680; }
.vip-features a { color: inherit; text-decoration: none; }
.vip-features small { margin-inline-start: auto; color: var(--tier-muted); background: var(--tier-tint); border-radius: 5px; padding: 2px 7px; font-size: 12px; font-weight: 550; }
.vip-tier-paid [data-included="yes"] small { color: var(--tier-green); background: var(--tier-green-soft); }
.vip-mark { width: 20px; height: 20px; flex: none; position: relative; border-radius: 50%; color: var(--tier-green); background: var(--tier-green-soft); }
.vip-mark::before { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.vip-features [data-included="no"] { color: var(--tier-muted); }
.vip-features [data-included="no"] b { font-weight: 400; }
[data-included="no"] .vip-mark { color: var(--tier-muted); background: var(--tier-tint); }
[data-included="no"] .vip-mark::before,[data-included="no"] .vip-mark::after { content: ''; position: absolute; left: 6px; top: 9px; width: 8px; height: 1.5px; background: currentColor; border: 0; transform: rotate(45deg); }
[data-included="no"] .vip-mark::after { transform: rotate(-45deg); }
.vip-features :not([data-benefit="exclusive"]) + [data-benefit="exclusive"] { border-top: 1px solid var(--tier-line); margin-top: 12px; padding-top: 13px; }
.vip-tier-paid [data-benefit="exclusive"] { background: var(--tier-tint); padding-inline: 12px; }
.vip-tier-paid :not([data-benefit="exclusive"]) + [data-benefit="exclusive"] { border-radius: 10px 10px 0 0; }
.vip-tier-paid [data-benefit="exclusive"]:not(:has(+ [data-benefit="exclusive"])) { border-radius: 0 0 10px 10px; padding-bottom: 13px; }
.vip-tier-paid [data-benefit="exclusive"] .vip-mark { background: #f2c871; color: #283040; display: grid; place-items: center; }
.vip-tier-paid [data-benefit="exclusive"] .vip-mark::before { display: none; }
.vip-mark svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vip-tier-paid [data-benefit="exclusive"] + [data-benefit="exclusive"] b { color: var(--tier-green); }
.vip-tier-header { display: flex; flex-direction: column; }
.vip-tier-action { margin-top: auto; padding-top: 16px; }
.vip-tier-action :is(.vip-view-plans,.portal-inline-link) { display: flex; align-items: center; justify-content: center; min-height: 43px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 650; }
.vip-tier-action .portal-inline-link { color: var(--tier-ink); border: 1px solid var(--tier-line); }
.vip-view-plans { background: linear-gradient(105deg,#47d6a6,#7de5d6); color: #0c2527; }
.vip-tier-action :is(.vip-view-plans,.portal-inline-link):hover { filter: brightness(.95); text-decoration: none; }
.vip-tier-footnote { padding-top: 18px; text-align: center; }
.vip-tier-footnote :is(.vip-fair-use,.vip-reset) { color: var(--tier-muted); font-size: 12px; }
.vip-pricing { scroll-margin-top: 20px; }
.vip-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 18px; margin: 28px 0 0; border: 1px solid var(--tier-line); border-radius: 15px; background: var(--tier-surface); color: var(--tier-ink); }
.vip-highlights > div { display: flex; gap: 10px; }
.vip-info-icon { box-sizing: border-box; width: 30px; height: 30px; flex: none; padding: 7px; background: #eef1f4; color: #374255; border-radius: 8px; }
svg.vip-info-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vip-highlights strong { font-size: 13px; }
.vip-highlights p { margin: 3px 0 0; font-size: 12px; line-height: 1.6; color: var(--tier-muted); }
.vip-pricing-intro { margin: clamp(36px,5vw,64px) 0 20px; }
.vip-pricing-intro h2 { margin: 0; font-size: 24px; }
.vip-offers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.6vw,22px); }
.vip-offer { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px,1.9vw,28px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.vip-offer[data-plan="subscription"] { background: color-mix(in srgb,var(--surface) 83%,var(--accent-soft)); border-color: var(--craft-selected-line); }
.vip-offer h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 620; }
.vip-offer[data-plan="subscription"] h2 { color: var(--accent); }
.vip-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 22px; }
.vip-amount strong { font-size: clamp(29px,2.9vw,42px); line-height: 1.15; letter-spacing: -.045em; font-weight: 580; font-variant-numeric: tabular-nums; }
.vip-amount small { font-size: 13px; color: var(--muted); }
.vip-terms { flex: 1; border-top: 1px solid var(--line); padding: 18px 0 24px; }
.vip-terms strong { font-size: 14px; font-weight: 600; }
.vip-terms p, .plan-term { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 6px 0 0; }
.vip-offer form { margin: 0; }
.vip-page :is(.vip-pay,.vip-sale-state) { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .3em; width: 100%; min-height: 42px; margin: 0; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: var(--surface); line-height: 1.4; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: none; }
.vip-page .vip-pay:disabled,.vip-page .vip-sale-state { opacity: 1; border-color: var(--line); background: var(--surface-muted); color: var(--muted); cursor: default; }
.vip-page .plan-term { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.vip-page .plan-term { margin: 0 0 18px; }
.vip-page .portal-inline-link { font-size: 14px; color: var(--accent); font-weight: 550; text-decoration: none; }
.vip-page a:hover { text-decoration: underline; }
.vip-legal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 20px; margin-top: 10px; }
.vip-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); text-underline-offset: .2em; }
@media (max-width: 1000px) { .vip-offers { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .vip-top {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    backdrop-filter: saturate(190%) blur(20px);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    border-bottom-color: var(--apple-hairline, var(--line));
  }
  .vip-top > div {
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  }
  .vip-top .koetabi-symbol { width: 28px; height: 28px; flex-basis: 28px; }
  .vip-top .koetabi-wordmark img { height: 28px; }
  html[lang='en'] .vip-top .koetabi-wordmark img { height: 19px; }
  .vip-back { height: 34px; min-height: 34px; padding: 0 11px 0 8px; font-size: 13px; }
  .vip-page #main { width: calc(100% - 32px); padding: 0 0 max(36px, env(safe-area-inset-bottom)); }
  .vip-intro { padding: 18px 0 12px; }
  .vip-intro h1 { font-size: 44px; line-height: 1.02; }
  .vip-page .plan-term {
    margin: 0 0 14px; padding: 12px 14px; gap: 6px 12px;
    border: 1px solid var(--apple-hairline-strong, var(--line));
    border-radius: 16px; background: var(--surface);
    font-size: 13px; line-height: 1.5;
  }
  .vip-page .plan-term .portal-inline-link { font-size: 13px; white-space: nowrap; }

  /* Mobile-only iOS Segmented Tier Switcher (Premium first by default) */
  .vip-mobile-switch {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    margin: 0 0 14px; padding: 4px;
    border-radius: 15px; border: 1px solid var(--apple-hairline, var(--line));
    background: var(--surface-muted);
  }
  .vip-mobile-switch button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: 6px 10px; border: 0; border-radius: 11px;
    background: transparent; color: var(--muted);
    font-size: 13.5px; font-weight: 550; line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
  .vip-mobile-switch button small {
    padding: 1px 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent); font-size: 10.5px; font-weight: 600;
  }
  .vip-mobile-switch button[aria-selected='true'] {
    background: var(--surface); color: var(--ink); font-weight: 650;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }
  html[data-color-mode='dark'] .vip-mobile-switch button[aria-selected='true'] {
    background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
  }

  .vip-tiers { display: block; }
  .vip-tiers[data-mobile-tier='vip'] .vip-tier[data-tier='free'],
  .vip-tiers[data-mobile-tier='free'] .vip-tier[data-tier='vip'] { display: none; }
  .vip-tier, .vip-features { display: block; }
  .vip-tier { padding: 20px 18px 18px; border-radius: 22px; }
  .vip-tier-name h2 { font-size: 19px; }
  .vip-tier-price { margin: 12px 0 6px; }
  .vip-tier-price strong { font-size: 36px; }
  .vip-tier-action { padding-top: 14px; }
  .vip-tier-action :is(.vip-view-plans, .portal-inline-link) { min-height: 44px; border-radius: 13px; }
  .vip-group-name { margin: 16px 0 4px; padding-top: 14px; }
  .vip-features li { padding: 6.5px 0; }
  .vip-features strong { font-size: 13.5px; }
  .vip-tier-footnote { padding-top: 14px; }

  /* Single grouped mobile highlights card */
  .vip-highlights {
    display: flex; flex-direction: column; gap: 0;
    margin: 16px 0 0; padding: 4px 16px; border-radius: 20px;
  }
  .vip-highlights > div {
    align-items: flex-start; gap: 12px; padding: 13px 0;
    border-bottom: 1px solid var(--tier-line);
  }
  .vip-highlights > div:last-child { border-bottom: 0; }
  .vip-info-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
  html[data-color-mode='dark'] .vip-info-icon {
    background: var(--tier-tint); color: var(--tier-ink);
  }
  html[data-color-mode='dark'] img.vip-info-icon { filter: invert(0.92); }

  /* Compact horizontal-header mobile pricing offer cards */
  .vip-pricing { scroll-margin-top: 72px; }
  .vip-pricing-intro { margin: 26px 0 12px; }
  .vip-pricing-intro h2 { font-size: 19px; font-weight: 650; }
  .vip-offers { grid-template-columns: 1fr; gap: 10px; }
  .vip-offer {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px;
    padding: 16px; border-radius: 18px;
  }
  .vip-offer h2 { grid-column: 1; font-size: 16px; font-weight: 650; line-height: 1.3; }
  .vip-amount { grid-column: 2; justify-content: flex-end; margin: 0; gap: 4px; }
  .vip-amount strong { font-size: 24px; font-weight: 700; }
  .vip-amount small { font-size: 12px; }
  .vip-terms {
    grid-column: 1 / -1; margin-top: 10px; padding: 10px 0 14px;
    border-top: 1px solid var(--apple-hairline, var(--line));
  }
  .vip-terms strong { font-size: 13px; }
  .vip-terms p { font-size: 12.5px; line-height: 1.55; margin-top: 3px; }
  .vip-offer form,
  .vip-offer > .vip-pay,
  .vip-offer > .vip-sale-state { grid-column: 1 / -1; }
  .vip-page :is(.vip-pay, .vip-sale-state) { min-height: 44px; border-radius: 14px; font-size: 14px; }
  .vip-legal { margin-top: 16px; column-gap: 16px; }
}
html:lang(en) .premium-zh, html:not(:lang(en)) .premium-en { display: none; }
.vip-tier :is(strong,h2,small,p,a) { overflow-wrap: anywhere; }
