/* Clipwave - cream, ink, lime skin (matched to the tlker design system). */

:root {
  color-scheme: dark;
  --bg: #14130e;
  --card: #1d1c16;
  --ink: #f4f1e8;
  --muted: #a3a092;
  --line: #2e2c22;
  --soft: #232118;
  --lime: #c6f24e; /* accent */
  --lime-deep: #2e3d07; /* text on lime */
  --link: #c6f24e;
  --warn: #d6452b;
  --limebg: #20240f;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 16px 32px -18px rgba(0,0,0,0.6);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
.logo {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- announcement bar ---------- */
.announce {
  background-color: var(--lime);
  background-image: repeating-linear-gradient(
    -45deg,
    #18181b 0 10px, /* stripe width */
    transparent 10px 26px /* gap width */
  );
  text-align: center;
  padding: 5px 10px;
}
.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 3px var(--lime);
}
.announce-pill:hover {
  text-decoration: none;
  filter: brightness(1.3);
}
.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- legal ---------- */

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 17px;
}
.legal-page p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- changelog ---------- */
.release-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.release-head h2 {
  margin: 0;
}
.release-date {
  font-size: 13px;
  margin-left: auto;
}
.release-list {
  margin: 12px 0 0;
  padding-left: 20px;
}
.release-list li {
  padding: 4px 0;
  font-size: 14.5px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 24px;
  width: auto;
  display: block;
}
.logo:hover {
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* nav-menu groups links + auth; row on desktop, dropdown on mobile */
.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: 16px;
}

/* hamburger (hidden on desktop) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger:hover {
  border-color: var(--ink);
}
.nav-toggle:focus-visible + .hamburger {
  outline-color: var(--lime);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 10px 0 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 12px;
  }
  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
  }
  .nav-auth .btn {
    text-align: center;
    padding: 11px 20px;
    font-size: 15px;
  }
  /* bars morph into an X when open */
  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- layout ---------- */
.container {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: 720px;
}
.footer {
  width: 100%;
  color: rgba(247, 243, 233, 0.62);
  font-size: 13.5px;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 20px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand {
  min-width: 0;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #f7f3e9;
}
.footer-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #c6f24e;
  color: #2e3d07;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.footer-tag {
  margin: 10px 0 0;
  max-width: 30ch;
  line-height: 1.55;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-col h3 {
  margin: 0 0 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(247, 243, 233, 0.45);
}
.footer-col a {
  color: rgba(247, 243, 233, 0.62);
  font-weight: 600;
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.footer-col a:hover {
  color: #c6f24e;
  background: rgba(247, 243, 233, 0.08);
  text-decoration: none;
}
.footer-base {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 243, 233, 0.14);
  font-size: 12.5px;
}
.footer-base a {
  color: rgba(247, 243, 233, 0.62);
}
.footer-base a:hover {
  color: #c6f24e;
  text-decoration: none;
}

.timeline-head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 28px 0 12px;
}

/* ---------- buttons ---------- */
.btn {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s, background 0.15s;
}
.btn:hover {
  filter: brightness(1.3);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-quiet:hover {
  border-color: var(--ink);
  filter: none;
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-deep);
}
.btn-lime:hover {
  filter: brightness(1.05);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ---------- forms & auth ---------- */
.auth-page {
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
  flex: 1;
  width: 100%;
  padding: 0 20px;
}
.auth-eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-deep);
  background: var(--lime);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-soft {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.auth-title {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 10px;
}
.auth-lead {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 24px;
}
.auth-form {
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: left;
}
.auth-form .btn {
  width: 100%;
  padding: 13px;
  font-size: 16px;
}
.auth-alt {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field label,
.field span {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime);
  outline: none;
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 110px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a3a092' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-error {
  color: var(--warn);
  font-size: 13.5px;
  min-height: 1.3em;
  margin: 0 0 10px;
}

/* ---------- clip URL input (compose-style pill) ---------- */
.clip-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.clip-input:focus-within {
  border-color: var(--lime);
}

.clip-input .link-icon {
  font-size: 15px;
  opacity: 0.6;
}
.clip-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 9px 4px;
}
.clip-input input:focus {
  outline: none;
}
.clip-input input::placeholder {
  color: var(--muted);
}
.clip-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.clip-status {
  margin-top: 10px;
  font-weight: 700;
  font-size: 13.5px;
  min-height: 1.4em;
}
.clip-status.ok {
  color: var(--link);
}
.clip-status.err {
  color: var(--warn);
}

.clip-status.quota {
  color: var(--link);
}
.clip-status.quota a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ====================== landing ====================== */
.lp {
  font-family: Inter, system-ui, sans-serif;
}

/* full-bleed bands */
.lp > section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.lp-title,
.lp-band-title,
.lp-faq-title,
.lp-final-title {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lp-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.lp-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.lp-btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.lp-btn-ink:hover {
  filter: brightness(1.25);
}

/* hero */
.lp-hero {
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 32px 64px;
}
.lp-hero-copy {
  max-width: 560px;
  margin-left: auto;
}
.lp-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-deep);
  background: var(--lime);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.lp-title {
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 0 22px;
}
.lp-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.72;
  margin: 0 0 28px;
  max-width: 44ch;
}
.lp-hero-copy .clip-input {
  max-width: 520px;
}

/* hero art: lime blob + tilted clip mock */
.lp-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
.lp-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  z-index: 0;
  background: var(--lime);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: lp-morph 14s ease-in-out infinite;
}
@keyframes lp-morph {
  0%,
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  }
  50% {
    border-radius: 62% 38% 41% 59% / 56% 63% 37% 44%;
  }
}
.mock-clip {
  position: relative;
  z-index: 1;
  width: 270px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 30px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.4);
  transform: rotate(3deg);
  transition: transform 0.3s;
}
.mock-clip:hover {
  transform: rotate(0deg);
}
.mock-thumb {
  position: relative;
  height: 350px;
  border-radius: 20px;
  background:
    radial-gradient(120px 120px at 70% 25%, rgba(198,242,78,0.55), transparent
    70%),
    linear-gradient(165deg, #2a2a2e 0%, #18181b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
/* .mock-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lime); color: var(--lime-deep);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
} */
.mock-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  color: #18181b;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
}
.mock-caption {
  position: absolute;
  bottom: 66px;
  left: 14px;
  right: 14px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}
.mock-caption em {
  font-style: normal;
  color: var(--lime);
}
.mock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 4px;
}
.mock-name {
  font-weight: 700;
  font-size: 14px;
  color: #18181b;
}
.mock-score {
  background: var(--lime);
  color: var(--lime-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 800;
}

/* marquee */
.lp-marquee {
  background: var(--ink);
  padding: 18px 0;
  overflow: hidden;
}
.lp-track {
  display: flex;
  width: max-content;
  animation: lp-scroll 40s linear infinite;
}
@keyframes lp-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--bg);
  white-space: nowrap;
}
.lp-star {
  color: var(--lime);
  font-size: 15px;
}

/* lime band (how it works) */
.lp-band {
  padding: 72px 32px;
  text-align: center;
}
.lp-lime {
  background: var(--lime);
  color: var(--lime-deep);
}
.lp-band-title {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 auto 44px;
  max-width: 18ch;
  line-height: 1.02;
}
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}
.lp-feature {
  background: var(--bg);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: left;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
}
.lp-feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.lp-feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.7;
}

/* cream feature grid (what's inside) */
.lp-plain {
  background: var(--bg);
  color: var(--ink);
  padding: 72px 32px;
  text-align: center;
}
.lp-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
}
.lp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 22px;
  text-align: left;
  box-shadow: var(--shadow);
}
.lp-card .lp-badge {
  background: var(--lime);
  color: var(--lime-deep);
  font-size: 18px;
}
.lp-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.lp-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* FAQ accordion (CSS only) */
.lp-faq {
  background: var(--bg);
  color: var(--ink);
  padding: 72px 32px;
}
.lp-faq-title {
  font-size: clamp(28px, 4vw, 44px);
  text-align: center;
  margin: 0 auto 36px;
}
.lp-faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.lp-faq-item {
  border-bottom: 1.5px solid var(--line);
}
.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.lp-faq-item summary::-webkit-details-marker {
  display: none;
}
.lp-faq-plus {
  font-size: 26px;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lp-faq-item[open] .lp-faq-plus {
  transform: rotate(45deg);
}
.lp-faq-item p {
  margin: 0 4px 22px;
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 60ch;
}

/* final CTA */
.lp-final {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 84px 32px;
  position: relative;
  overflow: hidden;
}
.lp-final-title {
  font-size: clamp(34px, 5vw, 60px);
  margin: 0 0 14px;
  color: var(--bg);
}
.lp-final-sub {
  opacity: 0.65;
  margin: 0 0 32px;
  font-size: 16px;
}
.lp-final .lp-btn-ink {
  background: var(--lime);
  color: var(--lime-deep);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}
.about-copy p {
  font-size: 15.5px;
  line-height: 1.65;
}
.settings-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.settings-block h2 {
  margin-top: 0;
}
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.value-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.value-list li:last-child {
  border-bottom: none;
}
.value-list .v-emoji {
  font-size: 20px;
}
.value-list strong {
  display: block;
  font-size: 14.5px;
}
.value-list span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- pricing ---------- */
.page-head {
  text-align: center;
  max-width: 620px;
  margin: 24px auto 40px;
}
.page-head .lp-title {
  font-size: clamp(34px, 5vw, 54px);
}
.page-head p {
  color: var(--muted);
  font-size: 16px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.plan.hot {
  background: var(--lime);
  color: var(--lime-deep);
  border-color: var(--lime);
  position: relative;
}
.plan.hot .hot-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--lime);
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
  border: 2px solid var(--lime);
}
.price {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}
.price span {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.65;
  letter-spacing: 0;
}
.plan-sub {
  font-size: 13.5px;
  opacity: 0.7;
  margin: 2px 0 16px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.plan li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 14px;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  font-weight: 800;
  color: var(--link);
}
.plan.hot li::before {
  color: var(--lime-deep);
}
.plan .btn {
  text-align: center;
}
.plan.hot .btn {
  background: var(--bg);
  color: var(--lime);
}
.plan.hot .btn-quiet {
  border-color: rgba(46,61,7,0.3);
}
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 28px;
}

/* Pending-future chips under the plan meta (cancel / scheduled switch) */
.plan-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--line) 18%, transparent);
}
.plan-pending-warn {
  border-color: color-mix(in srgb, var(--warn) 45%, var(--line));
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  color: color-mix(in srgb, var(--warn) 80%, var(--ink, currentColor));
}
.plan-pending .pp-icon {
  font-size: 13px;
  line-height: 1;
}

/* ---------- admin ---------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-head h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.friend-tag {
  background: var(--lime);
  color: var(--lime-deep);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 800;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.stat-value {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.admin-panel .clip-input {
  margin-top: 14px;
}

.clip-table {
  width: 100%;
  border-collapse: collapse;
}
.clip-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--line);
}
.clip-table th:last-child,
.clip-table td:last-child {
  width: 110px;
}
.clip-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.clip-table tr:last-child td {
  border-bottom: none;
}
.badge-pill {
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  min-width: 86px;
  text-align: center;
}
.badge-done {
  background: var(--lime);
  color: var(--lime-deep);
}
.badge-proc {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-queue {
  background: var(--limebg);
  color: var(--link);
}
.badge-fail {
  background: color-mix(in srgb, var(--warn) 12%, var(--card));
  color: var(--warn);
}

.job-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--warn);
  max-width: 260px;
}
.job-error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.guard-note {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  padding: 60px 0;
}

/* ---------- clip review (/admin/jobs/:id) ---------- */
.breadcrumb {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.job-link {
  color: var(--ink);
  font-weight: 600;
}
.job-link:hover {
  color: var(--link);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.review-clip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.rclip-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rclip-thumb.v-a {
  background:
    radial-gradient(90px 90px at 70% 22%, rgba(198,242,78,0.5), transparent
    70%),
    linear-gradient(165deg, #2a2a2e 0%, #18181b 100%);
}
.rclip-thumb.v-b {
  background:
    radial-gradient(90px 90px at 28% 20%, rgba(198,242,78,0.4), transparent
    70%),
    linear-gradient(200deg, #34342e 0%, #18181b 100%);
}
.rclip-thumb.v-c {
  background:
    radial-gradient(100px 100px at 55% 80%, rgba(198,242,78,0.35), transparent
    70%),
    linear-gradient(150deg, #26262b 0%, #141416 100%);
}
.rclip-thumb .mock-play {
  width: 42px;
  height: 42px;
  font-size: 14px;
}
.rclip-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #18181b;
  display: block;
  object-fit: cover;
}
.rclip-caption {
  position: absolute;
  bottom: 38px;
  left: 10px;
  right: 10px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
}
.rclip-body {
  padding: 10px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.rclip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rclip-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}
.rclip-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.rclip-actions .btn {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 12.5px;
}

@media (max-width: 1000px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- caption editor (/admin/captions/:id) ---------- */
.cap-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.cap-video-col {
  position: sticky;
  top: 76px;
}

/* video stage + live caption overlay */
.cap-stage {
  position: relative;
  container-type: inline-size;
}
.cap-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: #18181b;
  border: 1px solid var(--line);
  display: block;
}
.cap-overlay {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 70%;
  text-align: center;
  pointer-events: none;
  color: #fff;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 4.5cqw, 22px);
  line-height: 1.25;
  white-space: pre-line;
  letter-spacing: -0.01em;
  text-shadow:
    -2px -2px 0 #18181b, 2px -2px 0 #18181b,
    -2px 2px 0 #18181b, 2px 2px 0 #18181b,
    0 4px 10px rgba(0,0,0,0.5);
}
.cap-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cap-actions .btn {
  flex: 1;
  text-align: center;
}

/* caption blocks: whole card clickable, edit mode opt-in */
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--line) transparent;
}
.cap-list::-webkit-scrollbar {
  width: 8px;
} /* Chrome/Safari/Edge */
.cap-list::-webkit-scrollbar-track {
  background: transparent;
}
.cap-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.cap-list::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
.cue {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.cue:hover {
  border-color: var(--muted);
}
.cue:active {
  transform: scale(0.995);
}
.cue-active {
  border-color: var(--lime);
  background: var(--limebg);
}
.cue-editing {
  cursor: default;
  border-color: var(--ink);
}
.cue-editing:hover {
  border-color: var(--ink);
}
.cue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cue-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s, color 0.15s;
}
.cue:hover .cue-time,
.cue-active .cue-time {
  background: var(--lime);
  color: var(--lime-deep);
}
.cue-edit {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cue-edit:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.cue-display {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.cue-text {
  display: block;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  padding: 8px 10px;
}
.cue-text:focus {
  outline: none;
  border-color: var(--lime);
}

.cue-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* stack on mobile */
@media (max-width: 820px) {
  .cap-layout {
    grid-template-columns: 1fr;
  }
  .cap-video-col {
    position: static;
  }
  .cap-stage {
    max-width: 320px;
    margin: 0 auto;
  }
  .cap-actions {
    max-width: 320px;
    margin: 12px auto 0;
  }
}

/* ---------- plan & billing block ---------- */
.plan-block {
  margin-bottom: 20px;
}
.plan-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-name {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.plan-price {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  margin-left: 3px;
}
.plan-meta {
  margin: 4px 0 0;
  font-size: 13.5px;
}
.plan-block-actions {
  display: flex;
  gap: 8px;
}
.plan-notice {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--limebg);
  color: var(--link);
  font-size: 13.5px;
  font-weight: 600;
}
.plan-notice-ok {
  border: 1.5px solid color-mix(in srgb, var(--link) 30%, transparent);
}
.plan-notice .form-error {
  margin: 8px 0 0;
}

/* ---------- billing ---------- */
.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pay-method .btn {
  margin-left: auto;
}
.card-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.danger-zone {
  border-color: color-mix(in srgb, var(--warn) 35%, var(--line));
}
.danger-zone h2 {
  color: var(--warn);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lp-grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans,
  .stats {
    grid-template-columns: 1fr;
  }
  .plans .plan:nth-child(1) {
    order: 3;
  } /* Noob last  */
  .plans .plan:nth-child(2) {
    order: 1;
  } /* Creator middle */
  .plans .plan:nth-child(3) {
    order: 2;
  } /* Studio first */
  .plan.hot {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .lp-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 22px;
    gap: 50px;
  }
  .lp-hero-copy {
    margin: 0 auto;
  }
  .lp-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .lp-hero-art {
    order: -1;
    min-height: 400px;
  }
  .lp-hero-copy .clip-input {
    margin: 0 auto;
  }
  .lp-features,
  .lp-grid4 {
    grid-template-columns: 1fr;
  }
  .lp-band,
  .lp-faq,
  .lp-final,
  .lp-plain {
    padding: 52px 22px;
  }
  .clip-input .link-icon {
    display: none;
  }
  .clip-input {
    flex-direction: column;
    border-radius: 24px;
    padding: 12px;
  }
  .clip-input input {
    width: 100%;
    text-align: center;
  }
  .clip-input .btn {
    width: 100%;
  }
  .footer-inner {
    padding: 26px 20px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col h3 {
    white-space: nowrap;
  }
  .footer-base {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .lp-track,
  .lp-blob {
    animation: none !important;
  }
}
