/* =========================================================================
   SuperMoo — Page styles for /try, /privacy, /terms
   Builds on tokens.css + site.css. Legal prose + live player customizer.
   ========================================================================= */

/* =========================================================================
   LEGAL PAGES — privacy / terms
   ========================================================================= */
.legal-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 3vw, 40px); }
.legal-hero .updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-mute); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; margin-top: var(--s-5);
}
.legal-hero .updated .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

/* layout: sticky TOC + prose */
.legal-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: var(--section-y);
}
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.toc { position: sticky; top: 92px; }
@media (max-width: 900px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--paper-2); padding: var(--s-4) var(--s-5); }
}
.toc__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--s-3);
  padding-left: 14px;
}
.toc__list { display: flex; flex-direction: column; gap: 1px; }
@media (max-width: 900px) { .toc__list { gap: 2px; } }
.toc__link {
  display: block; font-size: 14px; line-height: 1.35; color: var(--ink-mute);
  padding: 7px 14px; border-left: 2px solid var(--line);
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active {
  color: var(--ink); font-weight: 700; border-left-color: var(--pink);
}

/* prose */
.prose { max-width: 760px; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 27px); line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink); scroll-margin-top: 96px;
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline; text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--pink); flex: none; transform: translateY(-2px);
  letter-spacing: 0;
}
.prose h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 18px; line-height: 1.3; color: var(--ink);
  margin-top: var(--s-6); scroll-margin-top: 96px;
}
.prose p, .prose li {
  font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); text-wrap: pretty;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); border-bottom: 1.5px solid var(--pink); padding-bottom: 1px; font-weight: 600; }
.prose a:hover { color: var(--pink-press); }
.prose ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}
.prose .lede {
  font-size: 18.5px; line-height: 1.6; color: var(--ink-soft);
  padding-bottom: var(--s-4);
}

/* definition rows (Part A key terms / lawful basis lists) */
.prose .defrow {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: grid; gap: 4px;
}
.prose .defrow:first-of-type { border-top: 1px solid var(--line); }
.prose .defrow dt { font-weight: 700; color: var(--ink); font-size: 16px; }
.prose .defrow dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* callout card (contact / address) */
.prose .callout {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5) var(--s-6);
  margin-top: var(--s-5);
}
.prose .callout p { font-size: 15.5px; }
.prose .callout .ct-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 4px;
}
.prose .callout--pink { background: var(--pink-wash); border-color: rgba(255,46,136,.22); }
.prose .callout--pink .ct-label { color: var(--pink-ink); }

/* subprocessor / cookie mini-cards */
.prose .minicards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: var(--s-4); }
@media (max-width: 560px) { .prose .minicards { grid-template-columns: 1fr; } }
.prose .minicard {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.prose .minicard h4 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.prose .minicard p { font-size: 14px; line-height: 1.55; margin: 0; }
.prose .minicard .tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px;
}

/* =========================================================================
   TRY — live player customizer
   ========================================================================= */
.try-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3vw, 40px); align-items: start;
}
@media (max-width: 940px) { .try-wrap { grid-template-columns: 1fr; } }

/* hidden attribute must win over the display rules below */
.dropzone[hidden], .pv-shell[hidden], .try-meta[hidden] { display: none !important; }

/* ---- Stage (left) ---- */
.try-stage { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--s-4); }
@media (max-width: 940px) { .try-stage { position: static; } }

.try-canvas {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 40px);
  display: grid; place-items: center; min-height: 380px;
  transition: background .3s var(--ease);
}

/* drop zone (empty state) */
.dropzone {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md);
  border: 2px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
  background: var(--paper-2);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--pink); background: var(--pink-wash); }
.dropzone__ic {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink-wash); color: var(--pink-ink);
}
.dropzone.is-over .dropzone__ic { background: var(--pink); color: #fff; }
.dropzone__ic svg { width: 24px; height: 24px; }
.dropzone__title { font-weight: 700; font-size: 16px; color: var(--ink); }
.dropzone__hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .02em; }
.dropzone__or {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px;
  margin-top: 4px; color: var(--ink-faint); font-size: 13px;
}
.dropzone__or::before, .dropzone__or::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.url-row { display: flex; gap: 8px; width: 100%; max-width: 380px; }
.url-row input {
  flex: 1; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--paper-2); font-size: 14px;
}
.url-row input:focus { outline: none; border-color: var(--pink); }

/* the live player preview */
.pv-shell { width: 100%; display: grid; place-items: center; }
.preview {
  position: relative; overflow: hidden; width: 100%;
  background: #000 center / cover no-repeat;
  --accent: #FF2E88; --primary: #161514; --radius: 16px;
  --play: 64px; --stroke: 0px; --logo-op: .9; --logo-size: 44px;
  border-radius: var(--radius);
  /* Stroke renders OUTSIDE the player as an accent ring (sits in the canvas
     padding, doesn't crowd the video), with the drop shadow on top. */
  box-shadow: 0 0 0 var(--stroke) var(--accent), var(--sh-lg);
  transition: border-radius .2s var(--ease), box-shadow .2s var(--ease);
}
.preview.is-landscape { aspect-ratio: 16/9; max-width: 100%; }
.preview.is-portrait { aspect-ratio: 9/16; max-width: 300px; }

.preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 36%, transparent 64%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* play button */
.pv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--play); height: var(--play); border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.28); transition: width .15s var(--ease), height .15s var(--ease), background .15s var(--ease);
}
.pv-play svg { width: 42%; height: 42%; transform: translateX(6%); fill: #fff; }

/* logo */
.pv-logo {
  position: absolute; top: 16px; right: 16px; height: var(--logo-size); width: auto;
  opacity: var(--logo-op); filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
  transition: height .15s var(--ease);
}
.pv-logo.is-hidden { display: none; }

/* control bar */
.pv-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.pv-bar.style-solid { background: rgba(10,8,6,.72); }
.pv-bar.style-gradient { background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.pv-bar.style-glass { background: rgba(20,16,12,.32); backdrop-filter: blur(8px); }
.pv-bar__btn { width: 18px; height: 18px; flex: none; opacity: .92; }
.pv-bar__btn svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.8; }
.pv-bar__time { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; flex: none; }
.pv-bar__prog { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.pv-bar__prog::after { content:""; position: absolute; inset: 0 62% 0 0; background: var(--accent); }
.pv-bar [data-ctl].is-off { display: none; }

.try-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.try-meta .reset {
  font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--pink); padding-bottom: 2px;
}
.try-meta .fname { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }

/* ---- Controls panel (right) ---- */
.try-panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.try-panel__head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.try-panel__head h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: 19px; color: var(--ink); }
.try-panel__body { padding: 6px 22px 22px; }

.ctl-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ctl-group:last-child { border-bottom: 0; }
.ctl-group > .ctl-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 12px;
}
.ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctl-row + .ctl-row { margin-top: 14px; }
.ctl-row__label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.ctl-row__val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }

/* swatches */
.sw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2);
  cursor: pointer; transition: transform .12s var(--ease), border-color .12s var(--ease);
  position: relative;
}
.sw:hover { transform: scale(1.08); }
.sw.is-active { border-color: var(--ink); }
.sw.is-active::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--ink);
}

/* sliders reuse .range from site.css; add compact width */
.try-panel .range { width: 100%; }

/* segmented (orientation / styles) */
.try-seg { display: inline-flex; background: var(--paper-3); border-radius: var(--r-pill); padding: 4px; gap: 2px; width: 100%; }
.try-seg .seg__btn { flex: 1; text-align: center; }

/* style pills (control bar / player style) */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-opt {
  font-size: 13px; font-weight: 700; color: var(--ink-mute);
  border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-pill);
  padding: 8px 14px; transition: all .14s var(--ease);
}
.pill-opt:hover { border-color: var(--ink); color: var(--ink); }
.pill-opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* toggle switches */
.sw-toggle { width: 42px; height: 25px; border-radius: 999px; background: var(--light); position: relative; flex: none; transition: background .18s var(--ease); }
.sw-toggle::after { content:""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw-toggle.is-on { background: var(--pink); }
.sw-toggle.is-on::after { transform: translateX(17px); }

/* logo upload mini */
.logo-up {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-size: 13px; color: var(--ink-mute);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.logo-up:hover { border-color: var(--pink); color: var(--ink); }
.logo-up svg { width: 16px; height: 16px; flex: none; }

/* =========================================================================
   PRICING — align every plan's CTA button to the same row.
   site.css gives .price__desc { flex: 1 } so the description stretches to
   fill the card; because each plan has a different number of feature rows
   below the button, that stretch pushes each CTA to a different height.
   On the full pricing page we instead fix the description height so all
   CTAs land on one line. (Scoped here: only the pricing page loads pages.css;
   the homepage pricing preview keeps the stretch behavior.)
   ========================================================================= */
.price__desc { flex: 0 0 auto; min-height: 4.75em; }

/* =========================================================================
   TRY — persistent "paste a video URL" row + platform embed iframe
   ========================================================================= */
.try-url { margin-top: var(--s-4); }
.try-url__label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--ink-mute); margin-bottom: 10px;
}
.try-url__label::before, .try-url__label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.try-url .url-row { max-width: none; }
.try-url .url-row .btn { flex: none; }
/* platform embed fills the preview frame and inherits its rounded corners */
.preview .pv-embed { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; z-index: 3; border-radius: inherit; background: #000; }
