/* Solaris landing (/solaris/) — page-only styles.

   Loads after css/northlane.css, the system shared with the studio home, and
   adds what only this page has: the recreation of the app window, the Free vs
   Pro table and the plans, Solaris Sync, the theme gallery, the account form
   and its modal, the header account menu and the download panel. Ported from
   css/style.css (which the legal pages still use) onto the new tokens. */

:root {
  --radius-xl: 24px;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  /* app-UI recreation only (src/renderer/styles/base.css + icons.css) */
  --panel: #1c1c1c;
  --panel-hover: color-mix(in srgb, var(--bg-elev) 92%, #ffffff);
  --ic-main: #2dd4bf;
  --ic-music: #35d07f;
  --ic-activity: #a855f7;
  --ic-import: #ffb648;
  --ic-tools: #f472b6;
  --ic-window: #8fa3bf;
  --ic-row: #ff7a5c;
}

/* `hidden` has to beat the display of .btn / .nav-account (the UA rule for
   [hidden] has no specificity to speak of). */

/* --- brand + header ---------------------------------------------------------- */

/* The Solaris mark has no icon plate and is wider than tall: a touch bigger,
   negative margins so the wordmark sits where the studio's does. */
.brand img.mark { width: 32px; height: 32px; margin: 0 -4px 0 -3px; border-radius: 0; }
.brand-by {
  margin-left: 2px; padding-left: 10px;
  border-left: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--t3);
}

.mobile-account { display: flex; flex-direction: column; }

/* --- hero: the app window ----------------------------------------------------- */

.app-frame { margin-top: 80px; perspective: 1800px; }
.mock-tilt { transition: transform 0.25s var(--ease); transform-style: preserve-3d; }

.app-window {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* Drawn at real size on a 1000×625 canvas and scaled to the frame width, so
   the text stays at the app's real 13px and the proportions are the app's. */
.app-ui {
  position: absolute; top: 0; left: 0;
  width: 1000px; height: 625px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1000px));
  display: grid;
  grid-template-rows: 34px 1fr 90px;
  font-size: 13px; line-height: 1.45;
  color: var(--t1);
  background: var(--bg);
  cursor: default; user-select: none;
}
/* js/main.js computes the scale (older Android Chrome drops the calc above) */
.app-window[data-s] .app-ui { transform: scale(var(--au-s, 1)); }
.app-ui * { box-sizing: border-box; }
.app-ui .au-ico {
  width: 16px; height: 16px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.app-ui .au-titlebar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 0 12px;
  background: var(--bg-elev);
}
.au-titlebar .au-brand { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t2); }
.au-titlebar .au-brand .au-logo { width: 22px; height: 22px; margin: 0 -2px; flex: none; }
.au-titlebar .au-brand .au-prochip {
  padding: 1px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.3;
  color: var(--t3);
}
.au-titlebar .au-hist { display: flex; gap: 2px; }
.au-titlebar .au-hist button { width: 24px; height: 24px; display: grid; place-items: center; color: var(--t3); border-radius: var(--radius-sm); }
.au-titlebar .au-hist .au-ico { width: 15px; height: 15px; }
.au-titlebar .au-spacer { flex: 1; }
.au-titlebar .au-search {
  width: 300px; height: 24px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 12px; color: var(--t3);
}
.au-titlebar .au-search .au-ico { width: 13px; height: 13px; }
.au-titlebar .au-tbset { display: flex; align-items: center; gap: 2px; }
.au-titlebar .au-tb {
  height: 24px; min-width: 24px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ic-window);
}
.au-titlebar .au-tb .au-ico { width: 15px; height: 15px; }
.au-titlebar .au-win { display: flex; margin-left: 4px; }
.au-titlebar .au-win button { width: 40px; height: 34px; display: grid; place-items: center; color: var(--t2); }
.au-titlebar .au-win .au-ico { width: 15px; height: 15px; }

.app-ui .au-body { position: relative; z-index: 1; display: flex; gap: 8px; padding: 8px; min-height: 0; }
.au-body .au-sidebar {
  width: 220px; flex: none;
  display: flex; flex-direction: column; gap: 22px;
  padding: 12px 10px; overflow: hidden;
}
.au-sidebar .au-navgroup { display: flex; flex-direction: column; gap: 4px; }
.au-sidebar .au-label { padding: 0 8px 6px; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t3); }
.au-sidebar .au-navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--t2);
}
.au-sidebar .au-navitem .au-ico { width: 16px; height: 16px; }
.au-sidebar .au-navitem.active { background: var(--panel-hover); color: var(--t1); }
.au-sidebar .au-navitem[data-ic='main']     .au-ico { color: var(--ic-main); }
.au-sidebar .au-navitem[data-ic='music']    .au-ico { color: var(--ic-music); }
.au-sidebar .au-navitem[data-ic='activity'] .au-ico { color: var(--ic-activity); }

.au-body .au-main { flex: 1; min-width: 0; overflow: hidden; padding: 22px 26px; }
.au-main .au-h1 { margin: 0 0 18px; font-size: 21px; font-weight: 700; }
.au-main .au-thead,
.au-main .au-track {
  display: grid;
  grid-template-columns: 26px 34px 1fr 220px 56px;
  align-items: center; gap: 12px;
  padding: 5px 10px;
}
.au-main .au-thead {
  margin-bottom: 4px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t3);
}
.au-main .au-thead .r,
.au-main .au-track .dur { text-align: right; }
.au-main .au-track { color: var(--t2); border-radius: var(--radius-sm); }
.au-main .au-track:hover { background: var(--panel-hover); }
.au-main .au-track .n { font-size: 11px; color: var(--t3); text-align: right; font-variant-numeric: tabular-nums; }
.au-main .au-track .art {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 20%, var(--panel)), var(--panel));
}
/* a bit of life in the "covers" — real libraries aren't grey */
.au-main .au-track:nth-child(3n)   .art { background: linear-gradient(135deg, color-mix(in srgb, var(--ic-tools) 26%, var(--panel)), var(--panel)); }
.au-main .au-track:nth-child(3n+1) .art { background: linear-gradient(135deg, color-mix(in srgb, var(--ic-main) 24%, var(--panel)), var(--panel)); }
.au-main .au-track:nth-child(3n+2) .art { background: linear-gradient(135deg, color-mix(in srgb, var(--ic-import) 22%, var(--panel)), var(--panel)); }
.au-main .au-track.playing .art { background: linear-gradient(135deg, color-mix(in srgb, var(--ic-activity) 30%, var(--panel)), var(--panel)); }
.au-main .au-track .meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.au-main .au-track .t { font-size: 13px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-main .au-track .a,
.au-main .au-track .col { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-main .au-track .dur { font-size: 11px; font-variant-numeric: tabular-nums; }
.au-main .au-track.playing .t,
.au-main .au-track.playing .n { color: var(--accent); }
.au-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.au-eq i { width: 2.5px; border-radius: 1px; background: var(--accent); animation: au-eq 0.9s ease-in-out infinite; }
.au-eq i:nth-child(2) { animation-delay: 0.15s; }
.au-eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes au-eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

.app-ui .au-player {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(180px, 1fr);
  align-items: center; gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 87%, transparent);
}
.au-player .au-now { display: flex; align-items: center; gap: 11px; min-width: 0; }
.au-player .au-now .cover {
  width: 46px; height: 46px; flex: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic-activity) 32%, var(--panel)), var(--panel));
}
.au-player .au-now .meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.au-player .au-now .t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-player .au-now .a { font-size: 11px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-player .au-transport { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.au-player .au-tbtns { display: flex; align-items: center; gap: 14px; color: var(--t2); }
.au-player .au-tbtns .play {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 999px; background: var(--t1); color: var(--bg);
}
.au-player .au-tbtns .play .au-ico { fill: currentColor; stroke: none; }
.au-player .au-scrub {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font-size: 10px; color: var(--t3); font-variant-numeric: tabular-nums;
}
.au-player .au-scrub .bar { position: relative; flex: 1; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--tint) 14%, transparent); }
.au-player .au-scrub .bar i { position: absolute; inset: 0 62% 0 0; border-radius: 99px; background: var(--t1); }
.au-player .au-scrub .bar::after {
  content: '';
  position: absolute; left: 38%; top: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--t1);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.au-player .au-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--t3); }
.au-player .au-tools button { display: grid; place-items: center; padding: 5px; border-radius: var(--radius-sm); }
.au-player .au-tools [data-ic='tools'] .au-ico { color: var(--ic-tools); }
.au-player .au-tools [data-ic='row'] .au-ico { color: var(--ic-row); }
.au-player .au-tools .vol {
  position: relative;
  width: 74px; height: 4px; margin-left: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.au-player .au-tools .vol::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 72%; border-radius: 99px; background: var(--t1); }

/* --- 01 features: the principle grid, three across ----------------------------- */

.pr-meta { display: inline-flex; align-items: center; gap: 12px; }
.tier {
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t1);
}

@media (min-width: 1081px) {
  .principles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles.cols-3 .principle:nth-child(4) { border-left: 0; }
  .principles.cols-3 .principle:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (min-width: 721px) and (max-width: 1080px) {
  /* northlane.css already handles 2 across for four cells; six need this too */
  .principles.cols-3 .principle:nth-child(5) { border-left: 0; }
}

/* --- 02 pro ------------------------------------------------------------------- */

.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elev) 40%, transparent);
  overflow: hidden;
}
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 116px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}
.compare-head {
  border-bottom: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
}
.compare-col-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t3);
}
.compare-head .compare-col-label:not(:first-child) { text-align: center; }
.compare-col-label.is-pro { color: var(--t1); }
.compare-group {
  padding: 14px 20px 9px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--tint) 2%, transparent);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t2);
}
.compare-head + .compare-group { border-top: 0; }
.compare-row { border-top: 1px solid var(--border-soft); }
.compare-group + .compare-row { border-top: 0; }
.compare-row > span:first-child { font-size: 13px; line-height: 1.45; color: var(--t2); }
.compare-row:hover > span:first-child { color: var(--t1); }
.compare-row .yes,
.compare-row .no,
.compare-row .part { justify-self: center; text-align: center; }
.compare-row .yes,
.compare-row .no { position: relative; width: 16px; height: 16px; }
.compare-row .yes::after {
  content: '';
  position: absolute; inset: 0;
  width: 11px; height: 6px; margin: auto;
  border-left: 2px solid var(--t1);
  border-bottom: 2px solid var(--t1);
  transform: translateY(-1px) rotate(-45deg);
}
.compare-row .no::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1px;
  background: var(--t3);
  transform: translate(-50%, -50%);
}
.compare-row .part { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--t2); }
.compare-row .part:last-child { color: var(--t1); }

/* the plan card rides alongside the long table */
.price-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 26px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--hairline); opacity: 0.6;
}
.price-tag {
  display: inline-block;
  margin-bottom: 18px; padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t3);
}
.price-points { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.price-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--t2); }
.price-points .icon { width: 15px; height: 15px; margin-top: 1px; stroke: var(--ok); stroke-width: 2.4; }
.price-points.pro-unlocks li { color: var(--t1); }
.price-points.pro-unlocks .icon { stroke-width: 1.8; }
.pro-unlocks-title {
  margin: 20px 0 12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t3);
}
.price-note { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.6; color: var(--t3); }

.pro-plans .plan {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--ok) 50%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--ok) 5%, transparent);
}
.pro-plans .plan-badge {
  position: absolute; top: -9px; left: 14px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--ok);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg);
}
.pro-plans .plan-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.pro-plans .plan-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pro-plans .plan-price { display: inline-flex; align-items: baseline; gap: 5px; }
.pro-plans .plan-amt { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pro-plans .plan-per { font-family: var(--font-mono); font-size: 10.5px; color: var(--t3); }
.pro-plans .plan-hint { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--t2); }

/* Solaris Sync: its own panel under the table — a different thing (monthly,
   not the one-time Pro), priced and bought on its own. */
.sync-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding: 30px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
  overflow: hidden;
}
.sync-block::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 30%, var(--hairline) 70%, transparent);
}
.sync-block-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 14px; }
.sync-block-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.sync-block-tag {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t3);
}
.sync-main > p { max-width: 64ch; margin-bottom: 18px; font-size: 14px; line-height: 1.65; color: var(--t2); }
.sync-block-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.sync-block-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--t2); }
.sync-block-points .icon { width: 15px; height: 15px; margin-top: 1px; stroke: var(--ok); stroke-width: 2.4; }
.sync-side {
  display: flex; flex-direction: column; gap: 14px;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.sync-block-price { display: inline-flex; align-items: baseline; gap: 6px; }
.sync-block-price .price-num { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sync-block-price .price-per { font-family: var(--font-mono); font-size: 11px; color: var(--t3); }

/* checkout result banner (back from Stripe) — js/checkout.js shows it */
.checkout-banner {
  position: fixed; left: 50%; bottom: 22px; z-index: 120;
  display: flex; align-items: center; gap: 10px;
  max-width: min(92vw, 520px);
  padding: 12px 14px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--border));
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px; color: var(--t1);
  transform: translateX(-50%);
  animation: notice-in var(--dur-3) var(--ease);
}
.checkout-banner.is-cancel { border-color: var(--border); }
.checkout-banner .icon { width: 17px; height: 17px; stroke-width: 2.4; color: var(--ok); }
.checkout-banner.is-cancel .icon { color: var(--t3); }
.checkout-banner span[data-role="checkout-text"] { flex: 1; line-height: 1.45; }
.checkout-banner-close { display: flex; padding: 2px; color: var(--t3); }
.checkout-banner-close .icon { width: 14px; height: 14px; color: inherit; }
.checkout-banner-close:hover { color: var(--t1); }

/* note on top of the form when it opens for a purchase */
.checkout-mode-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px; padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tint) 3%, transparent);
  font-size: 12.5px; line-height: 1.5; color: var(--t2);
}
.checkout-mode-note .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--t1); stroke-width: 2.2; }

/* --- 03 themes --------------------------------------------------------------- */

.themes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elev) 40%, transparent);
  overflow: hidden;
}
.theme-swatch {
  position: relative;
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background var(--dur-2) var(--ease);
}
.theme-swatches .theme-swatch:nth-child(3n) { border-right: 0; }
.theme-swatches .theme-swatch:nth-last-child(-n+3) { border-bottom: 0; }
.theme-swatch:hover { background: color-mix(in srgb, var(--bg-elev) 85%, transparent); }
.theme-swatch.active { background: color-mix(in srgb, var(--tint) 6%, transparent); }
.theme-swatch.active::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--t1); opacity: 0.6;
}
.swatch-dots { display: flex; gap: 4px; margin-bottom: 12px; }
.swatch-dots i { display: block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.1); }
.theme-swatch span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--t2); }
.theme-swatch.active span { color: var(--t1); }

.theme-preview {
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.85);
  transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.theme-preview .tp-title { margin-bottom: 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.theme-preview .tp-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.theme-preview .tp-cover { width: 34px; height: 34px; flex: none; border-radius: 7px; }
.theme-preview .tp-lines { flex: 1; min-width: 0; }
.theme-preview .tp-lines i { display: block; height: 7px; margin: 6px 0; border-radius: 4px; }
.theme-preview .tp-note { margin-top: 18px; font-size: 11.5px; opacity: 0.75; }

/* --- 04 account ---------------------------------------------------------------- */

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.account-points .craft-row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 18px; padding: 22px 8px; }
.account-points .craft-row h3 { padding-top: 7px; font-size: 16px; }
.account-points .craft-row p { grid-column: 2; padding-top: 0; font-size: 14px; }

.account-steps-wrap { margin-top: 40px; }
.account-steps-title {
  display: block; margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t3);
}
/* the shared timeline, stood upright */
.timeline.is-vertical { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
.timeline.is-vertical::before {
  display: block;
  left: 6px; right: auto; top: 8px; bottom: 8px;
  width: 1px; height: auto;
  background: linear-gradient(180deg, var(--border-strong), var(--border) 70%, transparent);
}
.timeline.is-vertical .tl { padding: 0 0 26px; border-top: 0; }
.timeline.is-vertical .tl:last-child { padding-bottom: 0; }
.timeline.is-vertical .tl-node { left: -28px; top: 2px; }
.timeline.is-vertical .tl-when { margin-bottom: 6px; }


/* --- 05 download (the framed CTA panel) ------------------------------------------ */

.download-meta { margin: -8px 0 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--t2);
}
.pill .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
}
.download-panel .contact-actions { margin-bottom: 18px; }
.download-panel .btn .dim { font-weight: 500; color: color-mix(in srgb, currentColor 60%, transparent); }
/* beats the panel's `.contact-copy > p` (body copy size + bottom margin) */
.download-panel .contact-copy > .release-note { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--t3); }
.platform-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.platform-list dt { margin-bottom: 0; }
.platform-list dd { text-align: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--t2); }
.platform-list > .is-soon dt { color: var(--t3); }
.platform-list .plat { font-size: 11px; }

/* --- responsive ---------------------------------------------------------------- */

@media (max-width: 1080px) {
  /* six links + "Log in" + "Download": hand over to the menu a bit earlier */
  .nav-row { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 920px) {
  .pro-layout { grid-template-columns: minmax(0, 1fr); }
  .price-card { position: relative; top: 0; }
  .sync-block { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sync-side { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--border); }
  .themes-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 720px) {
  .nav-actions .nav-account-slot { display: none; }
  .brand-by { display: none; }

  .app-frame { margin-top: 56px; }
  /* smaller canvas → less shrink → the app stays a bit more legible */
  .app-ui { width: 760px; height: 475px; transform: scale(calc(100cqw / 760px)); }
  .au-titlebar .au-search { width: 200px; }
  .au-main .au-thead, .au-main .au-track { grid-template-columns: 26px 34px 1fr 150px 50px; }

  .tier { font-size: 8.5px; }
  .compare-head, .compare-row { grid-template-columns: minmax(0, 1fr) 54px 64px; gap: 6px; padding: 11px 14px; }
  .compare-group { padding: 13px 14px 8px; }
  .compare-row > span:first-child { font-size: 12.5px; }
  .compare-row .part { font-size: 9.5px; }
  .price-card { padding: 22px 18px; }
  .sync-block { padding: 24px 20px; }
  .sync-block-points { grid-template-columns: minmax(0, 1fr); }

  .theme-swatch { padding: 14px 12px; }
  .theme-preview { padding: 20px; }

  .account-card { padding: 24px 20px; }
  .account-points .craft-row { padding: 20px 0; }

  .download-panel .contact-actions .btn { white-space: normal; text-align: center; }
  .platform-list > div { flex-wrap: wrap; gap: 4px 12px; }
}

.download-panel .contact-copy > .smartscreen-note { margin: 0 0 8px; max-width: 52ch; line-height: 1.6; }
.download-panel .contact-copy > .full-note { margin: 0 0 6px; max-width: 52ch; line-height: 1.6; }
.download-panel .full-note a { color: var(--t1, inherit); text-decoration: underline; text-underline-offset: 2px; }
