/* Inner pages: pricing, install, support, sign up / sign in, legal, 404. */

.page-hero--center { text-align: center; }
.page-hero--center .h2 { margin-inline: auto; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 108, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(169, 139, 255, 0.5);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: calc(0.22em + 4px);
  width: 5px;
  height: 8.5px;
  border: solid var(--lilac);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(40deg);
}
.check-list b { color: var(--text); font-weight: 550; }

.note { font-size: 0.86rem; color: var(--text-3); }
.note a, .prose a, .inline-link { color: var(--lilac); text-decoration: underline; text-decoration-color: rgba(214, 203, 255, 0.35); text-underline-offset: 3px; }
.note a:hover, .prose a:hover, .inline-link:hover { text-decoration-color: currentColor; }

.section-head { margin-bottom: clamp(36px, 6vh, 60px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(28, 22, 56, 0.72), rgba(12, 9, 26, 0.72));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -50px #000;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.plan--featured {
  background:
    linear-gradient(180deg, rgba(48, 34, 108, 0.82), rgba(18, 13, 40, 0.82)) padding-box,
    linear-gradient(160deg, rgba(214, 203, 255, 0.7), rgba(139, 108, 255, 0.2) 40%, rgba(255, 195, 90, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 120px -30px rgba(139, 108, 255, 0.55), 0 40px 100px -50px #000;
}
.plan__name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-soft); }
.plan__badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b1204;
  background: var(--moon);
  box-shadow: 0 0 24px -4px rgba(255, 195, 90, 0.8);
}
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.plan__price b {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan__price span { color: var(--text-2); }
.plan__sub { min-height: 1.6em; color: var(--text-2); font-size: 0.95rem; }
.plan__sub strong { color: var(--moon); font-weight: 550; }
.plan .check-list { margin: 28px 0 32px; }
.plan .btn { margin-top: auto; width: 100%; }

.trial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 920px;
  margin: 20px auto 0;
  padding: 26px clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: rgba(16, 12, 34, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.trial__clock { position: relative; width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--lilac); }
.trial__clock::before, .trial__clock::after { content: ''; position: absolute; left: 50%; bottom: 50%; width: 1.5px; margin-left: -0.75px; border-radius: 2px; background: var(--lilac); transform-origin: bottom center; }
.trial__clock::before { height: 18px; animation: hand 12s linear infinite; }
.trial__clock::after { height: 12px; transform: rotate(120deg); }
@keyframes hand { to { transform: rotate(360deg); } }
.trial h2 { margin-bottom: 4px; }
.trial p { margin: 0; color: var(--text-2); }

.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; }
.included .check-list { gap: 14px; }
.currency-note { margin-top: 26px; text-align: center; }

/* ---------- Install ---------- */

.dl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
}
.dl__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, #3b2c86, #120d2b);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -20px #000;
}
.dl__icon .logo { width: 60px; height: 60px; }
.dl h2 { margin-bottom: 4px; }
.dl__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

.codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px 14px 20px;
  border-radius: 16px;
  background: rgba(6, 5, 16, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.codebox small { display: block; font-size: 0.75rem; color: var(--text-3); }
.codebox code { font-family: var(--font-mono); font-size: clamp(0.9rem, 1.6vw, 1.08rem); color: var(--text); word-break: break-all; }
.copy-btn { flex-shrink: 0; }
.copy-btn.is-done { color: var(--green); }

.tabs { display: inline-flex; position: relative; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(16, 12, 34, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button {
  position: relative;
  z-index: 1;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.3s;
}
.tabs button[aria-selected='true'] { color: #0b0917; }
.tabs__ink { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: #fff; transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: rise 0.8s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.steps { position: relative; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before, .steps::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.steps::after {
  background: linear-gradient(var(--violet-soft), var(--moon));
  box-shadow: 0 0 12px rgba(169, 139, 255, 0.7);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: clamp(18px, 3vw, 36px); padding: 0 0 clamp(36px, 6vh, 56px); }
.step:last-child { padding-bottom: 0; }
.step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  background: #120e24;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.5s, color 0.5s, background-color 0.5s;
}
.step.is-reached .step__n { color: #0b0917; background: var(--lilac); box-shadow: 0 0 30px -4px rgba(214, 203, 255, 0.8); }
.step__body { padding-top: 12px; }
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: var(--text-2); max-width: 58ch; }
.path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.path span { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.path i { font-style: normal; color: var(--text-3); }
.tip { display: block; margin-top: 4px; padding-left: 14px; border-left: 2px solid rgba(255, 195, 90, 0.6); font-size: 0.9rem; color: var(--text-2); }

.req { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.req > div { padding: 24px; border-radius: 22px; background: rgba(16, 12, 34, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.req h3 { margin-bottom: 8px; font-size: 1.15rem; }
.req p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Support ---------- */

.support-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 2px; }
.toc a { position: relative; padding: 8px 0 8px 18px; font-size: 0.92rem; color: var(--text-3); transition: color 0.25s; }
.toc a::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.3s, box-shadow 0.3s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); }
.toc a.is-active::before { background: var(--moon); box-shadow: 0 0 10px var(--moon); }
.faq-group + .faq-group { margin-top: clamp(50px, 8vh, 80px); }
.faq-group > h2 { margin-bottom: 18px; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact > div { padding: clamp(24px, 3vw, 32px); }
.contact h3 { margin-bottom: 8px; }
.contact p { color: var(--text-2); }

/* ---------- Sign up / sign in ---------- */

.auth { position: relative; display: grid; place-items: center; min-height: 100vh; padding: calc(var(--nav-h) + 60px) var(--gutter) 60px; }
.auth__card { width: min(480px, 100%); padding: clamp(26px, 4vw, 42px); }
.auth__card .eyebrow { margin-bottom: 14px; }
.auth__card h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.auth__card > p { margin: 14px 0 26px; color: var(--text-2); }
.form { display: grid; gap: 18px; }
.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  cursor: pointer;
}
.pw__toggle:hover { color: var(--text); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.3s; }
.meter[data-score='1'] i:nth-child(-n + 1) { background: #ff6b81; }
.meter[data-score='2'] i:nth-child(-n + 2) { background: var(--moon); }
.meter[data-score='3'] i:nth-child(-n + 3) { background: var(--violet-soft); }
.meter[data-score='4'] i { background: var(--green); }
.hint { font-size: 0.8rem; color: var(--text-3); }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; }
.pick legend { margin-bottom: 8px; padding: 0; font-size: 0.85rem; font-weight: 550; color: var(--text-2); }
.pick label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 6, 20, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: box-shadow 0.25s, background-color 0.25s;
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick b { font-weight: 600; }
.pick small { font-size: 0.8rem; color: var(--text-2); }
.pick small em { font-style: normal; color: var(--moon); }
.pick label:has(input:checked) { background: rgba(139, 108, 255, 0.14); box-shadow: inset 0 0 0 1.5px var(--violet); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.check input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  background: rgba(8, 6, 20, 0.6);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.check input::after { content: ''; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(40deg) scale(0); transition: transform 0.25s var(--ease-out); }
.check input:checked { background: var(--violet); box-shadow: none; }
.check input:checked::after { transform: rotate(40deg) scale(1); }
.check a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.form .btn--lg { width: 100%; margin-top: 4px; }
.auth__alt { margin-top: 22px; text-align: center; font-size: 0.92rem; color: var(--text-2); }
.auth__alt a { color: var(--lilac); font-weight: 550; }
.auth__row { display: flex; justify-content: space-between; align-items: baseline; }
.auth__row a { font-size: 0.82rem; color: var(--text-2); }
.auth__row a:hover { color: var(--text); }
.field-error { font-size: 0.8rem; color: #ff8ea0; }
.input[aria-invalid='true'], .check input[aria-invalid='true'] { box-shadow: inset 0 0 0 1.5px #ff6b81; }

/* ---------- Accounts (Supabase) ---------- */

.btn--sm { --h: 34px; padding: 0 14px; font-size: 0.82rem; }
.btn--google { width: 100%; }
.btn--google svg { width: 18px; height: 18px; }
.btn--danger { color: #ff8ea0; }
.btn--danger:hover { color: #ffb3bf; }
.btn--danger-fill { background: linear-gradient(135deg, #ff5a75, #d8335a); box-shadow: 0 6px 22px -6px rgba(255, 90, 117, 0.7); }
.btn[aria-busy='true'] { opacity: 0.6; pointer-events: none; }
.form .btn--text { justify-self: center; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 0.8rem; color: var(--text-3); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; color: #ffb3bf; background: rgba(255, 107, 129, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.3); }
.form-msg[data-kind='ok'] { color: var(--text); background: rgba(48, 209, 88, 0.08); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.3); }
.form-msg a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.sent { margin: 0 0 22px; color: var(--text-2); }
.sent b { color: var(--text); font-weight: 550; overflow-wrap: anywhere; }
[data-step] > .btn--lg { width: 100%; }
.input--code { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: 0.24em; text-align: center; text-transform: uppercase; }

.auth--wide { place-items: start center; }
.auth__card--wide { width: min(640px, 100%); }
.acct__who { overflow-wrap: anywhere; }
.acct__block { padding: 26px 0; border-top: 1px solid var(--line); }
.acct__block:last-child { padding-bottom: 0; }
.acct__h { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; }
.acct__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.acct__row .acct__h { margin: 0; }
.acct__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.acct__terms { display: grid; gap: 14px; justify-items: start; }
.acct__terms a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.acct__end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.form--inline { max-width: 400px; }
.form--inline .btn { justify-self: start; }
.status { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding: 16px 18px; border-radius: 16px; background: rgba(8, 6, 20, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.status p { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-2); }
.status__dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--text-3); }
.status[data-access='subscription'] .status__dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status[data-access='trial'] .status__dot { background: var(--moon); box-shadow: 0 0 10px var(--moon); }
.tv-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tv-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(16, 12, 34, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.tv-list b { display: block; font-weight: 550; overflow-wrap: anywhere; }
.tv-list small { font-size: 0.8rem; color: var(--text-3); }
.modal--form { text-align: left; }
.modal--form h2 { margin-top: 0; }
.modal--form .acct__actions { justify-content: flex-end; }

/* ---------- Legal ---------- */

.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.draft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--text-2);
  background: rgba(255, 195, 90, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 90, 0.3);
}
.draft b { color: var(--moon); }
.prose { max-width: 68ch; color: var(--text-2); }
.prose h2 {
  margin: 56px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 40px);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-weight: 600; color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet-soft); }
.prose strong { color: var(--text); font-weight: 550; }
.prose code { font-family: var(--font-mono); font-size: 0.82em; padding: 1px 6px; border-radius: 5px; background: rgba(196, 181, 255, 0.08); color: var(--text); }
.licence-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.licence-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; border-radius: 14px; background: rgba(16, 12, 34, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.licence-list b { color: var(--text); font-weight: 550; }
.licence-list span { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--violet-soft); text-align: right; }

/* ---------- 404 ---------- */

.lost { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 100vh; padding: 0 var(--gutter) 16vh; text-align: center; }
.lost .h1 { font-size: clamp(6rem, 22vw, 16rem); }
.lost .lead { margin: 10px auto 30px; text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .plans, .contact { grid-template-columns: 1fr; }
  .included, .req { grid-template-columns: 1fr; }
  .trial { grid-template-columns: auto 1fr; }
  .trial .btn { grid-column: 1 / -1; }
  .dl { grid-template-columns: auto 1fr; }
  .dl__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .support-grid, .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
  .toc a::before { display: none; }
}
@media (max-width: 560px) {
  .dl { grid-template-columns: 1fr; }
  .dl__icon { width: 72px; height: 72px; border-radius: 20px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 0 10px; font-size: 0.84rem; }
  .step { grid-template-columns: 44px 1fr; }
  .step__n { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps::before, .steps::after { left: 21px; }
  .pick { grid-template-columns: 1fr; }
  .codebox { flex-direction: column; align-items: stretch; }
}
