/* Kinetix Promo — the Oct 17 design (Kyle: "more business professional", with his new stacked Kinetix Promo
   wordmark): white pages and black type, one accent (black), Inter for everything, set heavy and tight for headlines.
   Phone first. */
:root {
  --bg: #FFFFFF; --soft: #F5F5F4; --surface: #FFFFFF; --surface2: #F7F7F6; --chip: #EFEFEE;
  --line: #E5E5E3; --line2: #D4D4D1; --line3: #A3A3A0; --ink: #0A0A0A; --ink2: #262626; --muted: #6B6B68; --muted2: #43433F;
  --accent: #0A0A0A; --accent-ink: #FFFFFF; --accent-hover: #2B2B2B; --on-ink: #FFFFFF; --link: #0A0A0A; --link-hover: #52524E;
  --ok-bg: #ECFDF3; --ok: #067647; --ok-line: #ABEFC6; --warn-bg: #FFF6E5; --warn: #8A4B00; --warn-line: #FEDF89;
  --bad: #B42318; --bad-bg: #FEF3F2; --bad-line: #FECDCA; --bad-strong: #FDA29B;
  --top-bg: rgba(255, 255, 255, .94); --band-dark: #0A0A0A; --seg-on: #FFFFFF; --placeholder: #9A9A96;
  --mark-bg: #FDF0C4; --mark-ink: #0A0A0A; --checker-a: #EDEDEB; --checker-b: #FFFFFF; --phone-ring: rgba(10, 10, 10, .06);
  --focus-ring: rgba(10, 10, 10, .12);
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%230A0A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2343433F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --g-bg: #FFFFFF; --g-line: #747775; --g-ink: #1F1F1F; --g-hover: #F7F8F8;
  --sun: none; --moon: block;
  --display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: var(--display);
  --r: 8px; --r-big: 12px; --gutter: 24px; --wrap: 1200px;
  --shadow: 0 1px 2px rgba(10, 10, 10, .05);
  --shadow-md: 0 1px 2px rgba(10, 10, 10, .04), 0 8px 24px -8px rgba(10, 10, 10, .10);
  color-scheme: light;
}
/* Dark mode: the visitor's choice (the header's switch, kept on their device), else their device's own setting.
   The same tokens twice: once for the choice, once for the setting. (Google's button follows its own dark theme.) */
:root[data-theme="dark"] {
  --bg: #0B0B0B; --soft: #121212; --surface: #161616; --surface2: #1C1C1C; --chip: #242424;
  --line: #272727; --line2: #3A3A3A; --line3: #5A5A57; --ink: #F4F4F3; --ink2: #E2E2E0; --muted: #A3A39F; --muted2: #C9C9C5;
  --accent: #F4F4F3; --accent-ink: #0B0B0B; --accent-hover: #D6D6D3; --on-ink: #0B0B0B; --link: #F4F4F3; --link-hover: #C9C9C5;
  --ok-bg: #0D2318; --ok: #75E0A7; --ok-line: #17432C; --warn-bg: #261B05; --warn: #FDB022; --warn-line: #4D3509;
  --bad: #F97066; --bad-bg: #2A1210; --bad-line: #55201B; --bad-strong: #7A271A;
  --top-bg: rgba(11, 11, 11, .86); --band-dark: #161616; --seg-on: #303030; --placeholder: #77776F;
  --mark-bg: #4A3B0B; --mark-ink: #FFF1C2; --checker-a: #1E1E1E; --checker-b: #2A2A2A; --phone-ring: rgba(255, 255, 255, .12);
  --focus-ring: rgba(255, 255, 255, .18);
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23F4F4F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9C9C5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --g-bg: #131314; --g-line: #8E918F; --g-ink: #E3E3E3; --g-hover: #1F1F20;
  --sun: block; --moon: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -10px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0B; --soft: #121212; --surface: #161616; --surface2: #1C1C1C; --chip: #242424;
    --line: #272727; --line2: #3A3A3A; --line3: #5A5A57; --ink: #F4F4F3; --ink2: #E2E2E0; --muted: #A3A39F; --muted2: #C9C9C5;
    --accent: #F4F4F3; --accent-ink: #0B0B0B; --accent-hover: #D6D6D3; --on-ink: #0B0B0B; --link: #F4F4F3; --link-hover: #C9C9C5;
    --ok-bg: #0D2318; --ok: #75E0A7; --ok-line: #17432C; --warn-bg: #261B05; --warn: #FDB022; --warn-line: #4D3509;
    --bad: #F97066; --bad-bg: #2A1210; --bad-line: #55201B; --bad-strong: #7A271A;
    --top-bg: rgba(11, 11, 11, .86); --band-dark: #161616; --seg-on: #303030; --placeholder: #77776F;
    --mark-bg: #4A3B0B; --mark-ink: #FFF1C2; --checker-a: #1E1E1E; --checker-b: #2A2A2A; --phone-ring: rgba(255, 255, 255, .12);
    --focus-ring: rgba(255, 255, 255, .18);
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23F4F4F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9C9C5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --g-bg: #131314; --g-line: #8E918F; --g-ink: #E3E3E3; --g-hover: #1F1F20;
    --sun: block; --moon: none;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -10px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.pm-app { background: var(--soft); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -0.028em; line-height: 1.15; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
  min-height: 1em; }
.eyebrow .link { font-size: inherit; min-height: 0; color: var(--muted2); text-decoration: underline; letter-spacing: inherit; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted2); max-width: 62ch; }
.help { font-size: 14px; color: var(--muted); }
.help a { color: var(--muted2); }
.opt { font-size: 13px; font-weight: 400; color: var(--muted); }
.ok { background: var(--ok-bg); color: var(--ok); padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--ok-line); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 14px 0; box-shadow: var(--shadow); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--body); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { color: var(--accent-ink); background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .5; cursor: progress; }
.btn.ghost { background: var(--surface); border-color: var(--line2); color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line3); background: var(--surface2); }
.btn.danger { background: var(--surface); border-color: var(--bad-strong); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.invert { background: #FFFFFF; border-color: #FFFFFF; color: #0A0A0A; }
.btn.invert:hover { background: #E8E8E6; border-color: #E8E8E6; color: #0A0A0A; }
.btn-big { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--link); font: 500 15px var(--body); cursor: pointer;
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { color: var(--link-hover); text-decoration: underline; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--surface);
  color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex: none; }
.icon-btn:hover { border-color: var(--line3); background: var(--surface2); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

/* header */
.pm-top { position: sticky; top: 0; z-index: 20; background: var(--top-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.pm-top-in { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; min-height: 68px; }
.pm-brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; padding: 6px 0; }
.pm-brand:hover { color: var(--ink); }
.pm-logo { display: block; height: 40px; width: auto; }
.pm-pubnav { margin-left: auto; display: flex; align-items: center; gap: 4px 24px; }
.pm-pubnav .link { color: var(--muted2); font-size: 15px; }
.pm-pubnav .link:hover { color: var(--ink); text-decoration: none; }
.pm-top.app .pm-top-in { align-items: stretch; }
.pm-top.app .pm-brand, .pm-top.app .brand-switch { align-self: center; }
.pm-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; order: 3;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.pm-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; position: relative; padding: 0 12px; min-height: 48px; display: inline-flex; align-items: center;
  color: var(--muted2); text-decoration: none; font-weight: 500; font-size: 15px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 650; }
.tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); border-radius: 2px; }
.brand-switch { margin-left: auto; }
.brand-switch select { min-height: 40px; max-width: 46vw; padding: 6px 34px 6px 12px; font-size: 14px; }
@media (min-width: 900px) {
  .pm-top.app .pm-top-in { flex-wrap: nowrap; }
  .pm-tabs { order: 0; flex: 0 1 auto; margin: 0 0 0 auto; padding: 0; border-top: 0; }
  .tab { min-height: 68px; }
  .brand-switch { margin-left: 8px; order: 1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .pm-logo { height: 34px; }
  .pm-top-in { min-height: 60px; }
  .pm-pubnav { gap: 4px 14px; }
}

/* main and footer */
.pm-main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 64px; }
/* app pages draw their content in script: keep the footer below the fold until they have, so nothing jumps */
.pm-top.app ~ .pm-main { min-height: 100vh; }
body[data-page="landing"] .pm-main { max-width: none; padding: 0; }
.pm-foot { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.foot-brand .pm-logo { height: 32px; color: var(--ink); }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-h { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink); }
.foot-cols a { display: block; color: var(--muted2); text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 18px; padding-bottom: 24px;
  border-top: 1px solid var(--line); }
.foot-base a { color: var(--muted2); }
.pm-foot.compact .foot-base { border-top: 0; padding-top: 22px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.2fr 1.8fr; } }

/* forms */
form.stack, .stack { display: flex; flex-direction: column; gap: 18px; }
label { display: block; font-weight: 550; font-size: 15px; color: var(--ink); }
label > input:not([type=checkbox]):not([type=radio]):not([type=file]), label > textarea, label > select { display: block; margin-top: 7px; }
label > .help { display: block; margin-top: 6px; font-weight: 400; }
input[type=text], input[type=email], input:not([type]), input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--surface);
  color: var(--ink); font: 400 16px var(--body); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
select { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: var(--surface) var(--icon-select) no-repeat right 13px center; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
legend .opt { margin-left: 4px; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: row; position: relative; font-weight: 500; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface);
  color: var(--ink2); display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; transition: background-color .12s, border-color .12s; }
.chip:hover span { border-color: var(--line3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--chip); border-radius: 10px; padding: 4px; }
@media (min-width: 560px) { .seg { grid-template-columns: repeat(4, 1fr); } .seg.seg-two { grid-template-columns: repeat(2, 1fr); } }
.seg label { position: relative; flex-direction: row; justify-content: center; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--muted2); text-align: center; padding: 0 6px; }
.seg input:checked + span { background: var(--seg-on); color: var(--ink); font-weight: 650;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .08), 0 1px 3px rgba(10, 10, 10, .06); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.form-page { max-width: 760px; }
.form-page h1 { margin-bottom: 8px; }
.pm-app .form-page > form.stack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big);
  padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .pm-app .form-page > form.stack { padding: 18px 16px; } }
.danger { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-big); padding: 12px 18px; background: var(--surface); }
.danger summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 550; color: var(--bad); }
.danger[open] { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }

/* brand */
.logo-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 16px; border-radius: var(--r-big);
  background: var(--surface2); border: 1px solid var(--line); }
.logo-preview { width: 132px; height: 132px; flex: none; border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  padding: 12px; color: var(--muted); font-size: 13px; text-align: center; border: 1px solid var(--line);
  background: repeating-conic-gradient(var(--checker-a) 0% 25%, var(--checker-b) 0% 50%) 50% / 16px 16px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 400; }
.swatch input[type=color] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: none;
  cursor: pointer; overflow: hidden; box-shadow: var(--shadow); }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }

/* dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.usage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted2); font-size: 15px; margin: 6px 0 20px; min-height: 24px; }
.usage b { color: var(--ink); font-weight: 650; }
.usage.big { font-size: 17px; }
.meter { flex: 1 1 160px; max-width: 260px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-big); padding: 8px 8px 12px; box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s; }
.vcard:hover { border-color: var(--line2); color: var(--ink); box-shadow: var(--shadow-md); }
.vthumb { aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--chip);
  display: flex; align-items: center; justify-content: center; color: var(--muted); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vtitle { font-weight: 650; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; padding: 0 2px; }
.vcard .badge { margin-left: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 550;
  background: var(--chip); color: var(--ink2); width: fit-content; border: 1px solid transparent; }
.badge.ok { background: var(--ok-bg); color: var(--ok); padding: 3px 9px; border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* media */
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.uploads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.upl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; }
.upl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl progress { width: 34%; height: 8px; accent-color: var(--ink); }
.upl.bad { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 20px; }
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); overflow: hidden; display: flex;
  flex-direction: column; box-shadow: var(--shadow); }
.mthumb { position: relative; aspect-ratio: 1; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb .dur { position: absolute; right: 6px; top: 6px; }
.mthumb .tags { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.mthumb .badge { background: rgba(255, 255, 255, .92); color: #0A0A0A; border-color: rgba(10, 10, 10, .08); }   /* on a photo: light either way */
.mthumb .badge.warn { background: #FFF6E5; color: #8A4B00; }
.mbody { padding: 8px; display: flex; gap: 6px; align-items: center; }
.mbody input { min-height: 40px; padding: 8px 10px; font-size: 14px; margin: 0; box-shadow: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.armed { width: auto; padding: 0 10px; border-color: var(--bad-strong); color: var(--bad); font-size: 13px; background: var(--bad-bg); }
.next-row { margin-top: 10px; }

/* new video */
.paywall { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r-big); padding: 16px 18px; margin-bottom: 18px; }

/* video page */
.video-page { max-width: 1000px; display: flex; flex-direction: column; }
.video-page > * { order: 1; }
.video-page .scenes { order: 3; }
.video-page .versions { order: 4; }
.video-page.has-versions .versions { order: 2; }
.video-page.has-versions .scenes { order: 3; border-top: 1px solid var(--line); padding-top: 24px; }
.back { margin-bottom: 4px; color: var(--muted2); }
.planning { display: flex; align-items: center; gap: 14px; padding: 28px 0; color: var(--muted2); }
.planning .help { display: block; margin-top: 4px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.scenes { margin: 18px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.scenes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.scenes-head h2 { margin: 0; }
.fit { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 550; }
.fit.good { background: var(--ok-bg); color: var(--ok); }
.fit.long { background: var(--warn-bg); color: var(--warn); }
.warnings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.warnings li { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 9px 12px; font-size: 14px; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: line; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px; border-radius: var(--r-big); background: var(--surface);
  border: 1px solid var(--line); align-items: start; box-shadow: var(--shadow); }
.line.text-only { grid-template-columns: 1fr; }
.line-media { width: 64px; height: 96px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--chip) center / cover no-repeat;
  cursor: pointer; padding: 0; color: var(--muted); font-size: 11px; position: relative; overflow: hidden; }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-media .swap { position: absolute; left: 4px; right: 4px; bottom: 4px; background: rgba(255, 255, 255, .92); border-radius: 5px;
  padding: 2px; color: #0A0A0A; font-weight: 550; }
.line-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.line-main textarea { min-height: 56px; font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.line-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.line-tools select { width: auto; min-height: 38px; padding: 6px 34px 6px 10px; font-size: 14px; }
.line-tools .check { font-size: 14px; align-items: center; }
.line-tools .icon-btn { margin-left: auto; width: 38px; height: 38px; }
.version-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scrollbar-width: thin; }
.version-grid .version { scroll-snap-align: center; }
@media (min-width: 720px) { .version-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible; margin: 0; padding: 0; } .version-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .version-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.version { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 10px; display: flex;
  flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.version.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-md); }
.version h3 { margin: 0; }
.version .screen { aspect-ratio: var(--ar, 9 / 16); border-radius: var(--r); overflow: hidden; background: var(--chip); display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted2); font-size: 14px; text-align: center; padding: 8px; }
.version .screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.version.mini .screen { max-height: 62vh; margin: 0 auto; width: 100%; }
progress { width: 70%; height: 8px; accent-color: var(--ink); }
.chosen { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 18px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.chosen .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.caption-box { white-space: pre-wrap; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 15px; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 10, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 720px; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 16px 16px 0 0; padding: 18px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 64px rgba(10, 10, 10, .25); }
@media (min-width: 720px) { .modal { align-items: center; } .modal-card { border-radius: 16px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--chip);
  cursor: pointer; position: relative; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.on { border-color: var(--ink); }
.pick .badge { position: absolute; right: 4px; top: 4px; background: rgba(255, 255, 255, .92); color: #0A0A0A; }

/* plans (the landing's pricing and the app's Plan page) */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; align-items: stretch; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-md); }
.plan.dfy { background: var(--surface2); }
.plan-tag { position: absolute; top: -12px; left: 22px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.plan h2, .plan h3 { margin: 0; font-size: 17px; font-weight: 650; }
.plan .price { margin: 0; color: var(--muted); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan .price b { font: 800 40px/1.05 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; color: var(--ink2); font-size: 15px; flex: 1; border-top: 1px solid var(--line); padding-top: 14px; }
.plan li { margin: 8px 0; padding-left: 26px; position: relative; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: var(--icon-check) no-repeat center / 18px 18px; }
.plan .btn { width: 100%; background: var(--surface); color: var(--ink); border-color: var(--line2); box-shadow: var(--shadow); }
.plan .btn:hover { background: var(--surface2); border-color: var(--line3); color: var(--ink); }
.plan.featured .btn { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.plan.featured .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-ink); }
.plan-current { margin: 0; padding: 12px; text-align: center; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); font-weight: 650;
  border: 1px solid var(--ok-line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* sign-in and messages */
.auth-card { max-width: 440px; margin: 5vh auto 0; display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 30px; margin-bottom: 0; }
.auth-card .lede { font-size: 16px; }
.auth-card .btn { width: 100%; }
@media (max-width: 560px) { .auth-card { padding: 24px 18px; margin-top: 2vh; } }
body[data-page="signin"], body[data-page="auth"] { background: var(--soft); }
.msg { max-width: 560px; margin: 8vh auto; }

/* the landing: full-width bands */
.band { padding: 88px 0; }
.band.soft { background: var(--soft); }
.band.dark { background: var(--band-dark); color: #FFFFFF; border-top: 1px solid var(--line); }
.band-head { max-width: 860px; margin-bottom: 40px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head h2, .final-cta h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 14px; }
.band-head .lede { margin: 0; }
.band-head.center .lede { margin: 0 auto; }
@media (max-width: 720px) { .band { padding: 60px 0; } .band-head { margin-bottom: 28px; } }
.hero-band { padding: 64px 0 88px; border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 56px; } .hero-band { padding: 76px 0 92px; } }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 36em; }
.hero .cta-row { margin: 30px 0 16px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.hero-note li::before { content: ""; width: 16px; height: 16px; flex: none;
  background: var(--icon-check) no-repeat center / 16px 16px; }
.hero-media { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-stage { width: 100%; display: flex; justify-content: center; padding: 36px 20px; border-radius: 20px; background: var(--soft);
  border: 1px solid var(--line); }
.hero-media figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 34ch; }
.phone { width: min(290px, 70vw); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; border: 9px solid #0A0A0A;
  background: #000; box-shadow: 0 30px 60px -18px rgba(10, 10, 10, .45), 0 0 0 1px var(--phone-ring); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.step-grid { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 760px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .step-grid { grid-template-columns: repeat(4, 1fr); } }
.step-grid li { counter-increment: s; border-top: 1px solid var(--ink); padding: 20px 0 28px; display: flex; flex-direction: column; gap: 8px;
  color: var(--muted2); font-size: 15px; line-height: 1.55; }
.step-grid li::before { content: counter(s, decimal-leading-zero); font: 650 13px var(--display); color: var(--muted); letter-spacing: .04em; }
.step-grid b { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .style-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.style-card { margin: 0; }
.style-card .ex { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-big); background: #111; margin-bottom: 16px;
  max-height: 72vh; box-shadow: var(--shadow-md); }
.style-card h3 { font-size: 18px; margin-bottom: 4px; }
.style-card p { color: var(--muted2); font-size: 15px; }
.looks-head { margin: 56px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.text-only-lede { margin: 10px auto 24px; font-size: 17px; }
.look-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter); margin: 18px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 10px; scrollbar-width: thin; }
@media (min-width: 760px) { .look-grid { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible;
  margin: 18px 0 0; padding: 0; } }
.look-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.look-card:hover { color: var(--ink); }
.look-card img { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: var(--r-big); background: #111;
  margin-bottom: 10px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.look-card:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.look-name { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.look-for { font-size: 14px; color: var(--muted); }
.band .help.center { margin: 32px auto 0; max-width: 70ch; }
.who-grid, .trust-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .who-grid { grid-template-columns: repeat(2, 1fr); } .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who-grid { grid-template-columns: repeat(4, 1fr); } .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.who-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 24px 22px;
  color: var(--muted2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.who-grid article h3 { font-size: 18px; margin-bottom: 4px; }
.who-grid article p { flex: 1; }
.who-grid .link, .who-grid .links { font-size: 15px; font-weight: 600; min-height: 0; margin: 0; }
.who-grid .links .link { display: inline; }
.who-grid article > .link::after { content: "\00a0→"; }
.trust-grid > div { display: flex; flex-direction: column; gap: 8px; color: var(--muted2); font-size: 15px; padding-top: 4px; }
.trust-grid b { color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -0.012em; }
.trust-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center;
  justify-content: center; margin-bottom: 8px; }
.trust-icon svg { width: 22px; height: 22px; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 24px 64px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); } }
.faq-grid .band-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line2); }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary { cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 650; font-size: 17px; letter-spacing: -0.012em; list-style: none; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .2s;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted2); max-width: 66ch; margin: 0 0 20px; }
.final-cta { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
/* the diagonal stripes of Kyle's cover and profile picture, at the angle of the cut in the wordmark's x (49 degrees),
   in the band's outer corners where no words are */
@media (min-width: 1000px) {
  .final-cta::before, .final-cta::after { content: ""; position: absolute; z-index: -1; width: 96px; height: 100%;
    background: #FFFFFF; transform: skewX(-41deg); }
  .final-cta::before { top: 26px; left: 170px; transform-origin: top left; }
  .final-cta::after { bottom: 26px; right: 170px; transform-origin: bottom right; }
}
.final-cta h2 { color: #FFFFFF; }
.final-cta p { color: #B5B5B2; font-size: 18px; margin: 0 auto 28px; max-width: 52ch; text-wrap: balance; }
.final-cta .btn { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Continue with Google: Google's light-theme button (white fill, #747775 stroke, #1F1F1F text, the standard "G" on white,
   12px before the G, 10px after it), as its branding guidelines ask; pill-shaped, and at least as prominent as email */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 0 12px; background: var(--g-bg); border: 1px solid var(--g-line); border-radius: 999px; color: var(--g-ink);
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif; letter-spacing: .25px; text-decoration: none; }
.gbtn:hover { background: var(--g-hover); color: var(--g-ink); }
.gbtn img { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line2); }

/* templates */
.tpl-page { padding: 8px 0 40px; }
.tpl-page > h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 14px; }
.tpl-nav { display: flex; gap: 8px; overflow-x: auto; margin: 26px calc(-1 * var(--gutter)) 8px; padding: 2px var(--gutter) 10px; scrollbar-width: thin; }
@media (min-width: 900px) { .tpl-nav { flex-wrap: wrap; overflow: visible; margin: 26px 0 8px; padding: 2px 0 10px; } }
.chip-link { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--surface); color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.chip-link:hover { color: var(--ink); border-color: var(--line3); }
.chip-link.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tpl-kind { padding: 36px 0 6px; border-top: 1px solid var(--line); margin-top: 24px; }
.tpl-kind-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tpl-kind-head .link { font-weight: 600; }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 18px 0 24px; }
@media (min-width: 560px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-big); padding: 10px; display: flex; flex-direction: column;
  gap: 12px; box-shadow: var(--shadow); }
.tpl-media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #111;
  cursor: pointer; aspect-ratio: 9 / 16; }
.tpl-media img, .tpl-video { width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #111; }
.tpl-media .play { position: absolute; right: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }       /* a corner: the poster's words stay clear */
.tpl-media .play::after { content: ''; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #0A0A0A; }
.tpl-media:hover .play, .tpl-media:focus-visible .play { background: #FFFFFF; transform: scale(1.06); }
.tpl-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tpl-body { display: flex; flex-direction: column; gap: 8px; padding: 2px 6px 6px; flex: 1; }
.tpl-body h2, .tpl-body h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.tpl-for { margin: 0; color: var(--muted2); font-size: 15px; }
.tpl-lines { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink2); flex: 1; }
.tpl-lines li { margin: 3px 0; }
.tpl-lines li.offer::marker { color: var(--ink); }
.tpl-lines mark, .blank-row mark { background: var(--mark-bg); color: var(--mark-ink); border-radius: 4px; padding: 0 3px; }
.tpl-meta { margin: 0; font-size: 13px; color: var(--muted); }
.tpl .btn { width: 100%; }
.blank-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: -4px 0 0; font-size: 14px; color: var(--warn); }

/* the policies (/privacy, /terms, /refunds) */
.legal { max-width: 760px; padding: 8px 0 40px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--surface); color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 14px; }
.legal-nav a:hover { color: var(--ink); border-color: var(--line3); }
.legal-nav a.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.legal h2 { font-size: 20px; margin: 36px 0 10px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--ink2); font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal b { color: var(--ink); }
.legal .lede { color: var(--muted2); font-size: 18px; max-width: none; }
.legal-summary { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-big); padding: 18px 22px 6px; margin: 22px 0 8px; }
.legal-summary h2 { margin: 4px 0 8px; font-size: 17px; }

/* New video: the templates beyond the brand's own kind fold away */
.more-tpl { margin-top: 10px; }
.more-tpl summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  font-weight: 600; list-style: none; }
.more-tpl summary::-webkit-details-marker { display: none; }
.more-tpl summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.more-tpl[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more-tpl summary:hover { color: var(--link-hover); }
.chips-head { margin: 10px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* the light/dark switch in the header */
.theme-toggle { flex: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--surface);
  color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--line3); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: var(--sun); }
.theme-toggle .i-moon { display: var(--moon); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; align-self: center; order: 2; }
.top-actions .brand-switch { margin-left: 0; }
@media (min-width: 900px) { .top-actions { order: 4; margin-left: 8px; } }
