/*! TikTok Live Recorder — marketing site (light) */
:root {
  --bg: #f6f7f9;
  --bg-lift: #ffffff;
  --ink: #16181d;
  --muted: #5f6775;
  --accent: #e23d2d;
  --accent-deep: #c93324;
  --line: #e2e5eb;
  --success: #1f8a5a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.topbar-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(246, 247, 249, 0.15) 0%, rgba(246, 247, 249, 0.88) 68%, var(--bg) 100%),
    radial-gradient(ellipse 70% 45% at 72% 18%, rgba(226, 61, 45, 0.16), transparent 55%),
    linear-gradient(135deg, #eef1f5 0%, #f8f9fb 45%, #fdece9 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 800 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2316181d' stroke-opacity='0.05'%3E%3Cpath d='M0 120h800M0 240h800M0 360h800M0 480h800M120 0v600M240 0v600M360 0v600M480 0v600M600 0v600M720 0v600'/%3E%3C/g%3E%3Ccircle cx='620' cy='180' r='120' fill='%23e23d2d' fill-opacity='0.1'/%3E%3Crect x='80' y='160' width='280' height='320' rx='18' fill='%23ffffff' fill-opacity='0.75' stroke='%2316181d' stroke-opacity='0.08'/%3E%3Crect x='110' y='200' width='220' height='140' rx='10' fill='%23e23d2d' fill-opacity='0.14'/%3E%3Ccircle cx='130' cy='220' r='6' fill='%23e23d2d'/%3E%3Ctext x='148' y='225' fill='%2316181d' fill-opacity='0.55' font-family='sans-serif' font-size='12'%3ELIVE%3C/text%3E%3C/svg%3E")
      center / cover no-repeat;
}

.hero-copy {
  padding: 0 0 4.5rem;
  max-width: 36rem;
  animation: rise 0.9s ease both;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
}

.brand-mark em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
  animation: rise 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #c9ced8;
  background: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
section {
  padding: 5.5rem 0;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.features {
  border-top: 1px solid var(--line);
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.75rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature.in {
  opacity: 1;
  transform: none;
}

/* —— Pricing —— */
.pricing {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(226, 61, 45, 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.price-panel {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  animation: rise 0.8s ease both;
}

.price-main {
  padding: 2.5rem;
}

.price-main h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 1rem 0 0.25rem;
  line-height: 1;
}

.price-amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.price-note {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.price-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--success);
}

.price-side {
  padding: 2.5rem;
  background: #f0f2f5;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-side label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price-side input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  margin-bottom: 1rem;
}

.price-side input:focus {
  outline: 2px solid rgba(226, 61, 45, 0.35);
  outline-offset: 1px;
}

.price-side .btn {
  width: 100%;
}

.form-msg {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-msg.ok {
  color: var(--success);
}

.form-msg.err {
  color: #c0392b;
}

.free-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.free-note code {
  font-size: 0.85em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* —— Download —— */
.download {
  border-top: 1px solid var(--line);
  background: #fff;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Footer —— */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .price-panel {
    grid-template-columns: 1fr;
  }

  .price-side {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding-bottom: 3.25rem;
  }

  .brand-mark {
    font-size: 2.4rem;
  }
}
