:root {
  color-scheme: light;
  --plum: #2b152f;
  --ink: #25112a;
  --muted: #5c495b;
  --paper: #fcf4ed;
  --line: #ddc7ba;
  --accent: #ffad7c;
  --link: #a23d12;
  font: 16px/1.5 Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { display: grid; grid-template-columns: clamp(220px, 20.75vw, 340px) minmax(0, 1fr); min-height: 100svh; margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.sidebar {
  position: sticky; top: 0; height: 100svh; min-height: 365px; isolation: isolate;
  padding: clamp(30px, 4vw, 62px) clamp(16px, 1.6vw, 25px);
  background: var(--plum); color: var(--paper);
}
.sidebar::before {
  content: ""; position: absolute; z-index: -1; inset: 50% 0 0;
  border-radius: 100% 0 0 0 / 38% 0 0 0;
  background: linear-gradient(0deg, var(--plum) 1%, transparent 28%),
    url("/static/solar-sail.png") 35% center / cover no-repeat;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline: 12px; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.055em; text-decoration: none; }
.brand::before { content: ""; width: clamp(52px, 5vw, 74px); aspect-ratio: 1; background: linear-gradient(135deg, #ffe5bf 22%, #ffa872 57%, #c66c4d 80%); mask: url("/static/ion-sail-warm.png") center / 126% no-repeat; }
.sidebar nav { display: grid; gap: 6px; margin-top: clamp(32px, 4.6vw, 72px); }
.sidebar nav a { display: flex; gap: clamp(10px, 1.5vw, 22px); align-items: center; min-height: clamp(52px, 4.3vw, 64px); padding: 10px clamp(12px, 1.62vw, 24px); border-radius: 12px; font-size: clamp(15px, 1.52vw, 23px); letter-spacing: -.025em; text-decoration: none; }
.sidebar nav a[aria-current] { background: #75424a; font-weight: 700; }
.sidebar nav a:hover { background: #75424a; }
.sidebar svg { width: 28px; height: 28px; flex: none; }
main { width: 100%; max-width: 1420px; padding: clamp(48px, 7.8vw, 120px) clamp(28px, 4.15vw, 66px) 32px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.07; letter-spacing: -.055em; }
h1 { font-size: clamp(44px, 5.4vw, 82px); }
h2 { font-size: clamp(30px, 3.65vw, 56px); }
h3 { font-size: clamp(24px, 2.45vw, 37px); }
.summary { display: grid; grid-template-columns: 1.08fr 1fr; margin-top: clamp(36px, 4vw, 60px); }
.points { padding: clamp(12px, 1.9vw, 29px) clamp(12px, 1.1vw, 18px) 14px 0; }
#balance { display: block; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.035em; text-wrap: pretty; }
.points:has(#balance-detail:not([hidden])) #balance { font-size: clamp(33px, 4.5vw, 68px); font-weight: 800; letter-spacing: -.06em; }
#balance-detail { display: block; margin-top: 15px; color: var(--muted); font-size: clamp(16px, 1.75vw, 26px); }
.plan { border-left: 1px solid var(--line); padding-left: clamp(24px, 4.15vw, 64px); }
.plan p { margin: 0; line-height: 1.3; color: var(--muted); font-size: clamp(16px, 1.55vw, 23px); }
.plan .price { margin-top: 8px; color: var(--ink); font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.045em; }
.plan .plan-terms { margin-top: 8px; font-size: .95rem; line-height: 1.5; }
.plan-terms a, .billing a { color: var(--link); }
#checkout-consent { display: grid; gap: 10px; }
#checkout-consent label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; }
#accept-terms { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); }
#checkout-error { color: #8b3428; font-size: .9rem; }
#checkout-error:empty { display: none; }
.actions { display: grid; gap: 8px; max-width: 390px; margin-top: clamp(16px, 1.8vw, 27px); }
.actions:not(:has(> :not([hidden]))) { display: none; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: clamp(48px, 4.5vw, 67px);
  padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink);
  text-align: center; text-decoration: none; font: inherit; font-size: clamp(16px, 1.85vw, 28px); font-weight: 800; letter-spacing: -.03em; cursor: pointer;
}
.primary:hover { background: #ffc29d; }
.primary:disabled { opacity: .65; cursor: wait; }
.tools { margin-top: clamp(32px, 3.2vw, 48px); padding-top: clamp(25px, 2.75vw, 42px); border-top: 1px solid var(--line); }
.tools h2 { margin-bottom: clamp(12px, 1.25vw, 20px); }
.tool { display: grid; grid-template-columns: clamp(96px, 15vw, 222px) minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.35vw, 36px); padding: 10px 0; }
.tool + .tool { border-top: 1px solid var(--line); }
.product { display: block; width: 100%; height: auto; aspect-ratio: 1.44; object-fit: contain; mix-blend-mode: multiply; }
.tool p { margin: 5px 0 0; color: var(--muted); font-size: clamp(15px, 1.43vw, 22px); line-height: 1.35; }
.tool a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--link); font-size: clamp(15px, 1.52vw, 23px); font-weight: 600; text-decoration: none; }
.tool a:hover { text-decoration: underline; }
.tool a img { flex: none; filter: invert(26%) sepia(95%) saturate(1228%) hue-rotate(357deg) brightness(88%); }
.billing { margin-top: 28px; color: var(--muted); font-size: 14px; }
.billing p { margin: 0; }
.billing button { min-height: 44px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .tool { grid-template-columns: clamp(96px, 15vw, 150px) minmax(0, 1fr); column-gap: 18px; row-gap: 0; }
  .product { grid-row: span 2; }
  .tool-copy { align-self: end; }
  .tool a { align-self: start; }
}
@media (max-width: 760px) {
  body { display: block; }
  .sidebar { position: relative; min-height: 0; height: auto; padding: 15px 6%; }
  .sidebar::before { display: none; }
  .brand { margin: 0; }
  .brand::before { width: 42px; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 12px; }
  .sidebar nav a { min-height: 44px; padding: 8px 12px; }
  .sidebar svg { width: 20px; height: 20px; }
  main { padding: 34px 6% 26px; }
  .summary { grid-template-columns: 1fr; margin-top: 22px; }
  .points { padding: 0 0 20px; }
  #balance-detail { margin-top: 8px; }
  .plan { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
