/* ==========================================================================
   Uplit Publishing — static landing site
   Design tokens mirror the editor-portal theme (uplitpublisher):
   src/sass/base/_variables.scss + the guest-hero recipe in front-page.php.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --color-accent: #A76BFF;
  --color-accent-deep: #872AE6;
  --color-light: #FCFAF6;
  --color-dark: #313131;
  --color-subtle-1: #EDEDED;
  --color-subtle-2: #d6d9dd;
  --color-subtle-3: #9B9FA4;
  --color-status-success: #5D8A53;
  --color-status-fail: #B12524;
  --radius-card: 15px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-light);
  overflow-x: hidden; /* hero backdrop is 100vw incl. scrollbar gutter */
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 246, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-subtle-1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

/* Same pair as the editor portal header: full wordmark on wider screens,
   round square-logo icon on small ones. */
.brand__logo { display: block; height: 44px; width: auto; }

.brand__logo--mobile { display: none; height: 40px; }

@media (max-width: 479px) {
  .brand__logo--desktop { display: none; }
  .brand__logo--mobile { display: block; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.site-nav__link:hover { color: var(--color-accent-deep); }

.site-nav__link.is-current { border-bottom-color: var(--color-accent); }

.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 12px 26px;
  border-radius: 6px 6px 20px 6px; /* editor-portal button silhouette */
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #A76BFF 0%, #872AE6 100%);
  box-shadow: 0 8px 18px -8px rgba(135, 42, 230, 0.6);
}

.btn--primary:hover {
  background: var(--color-accent-deep);
  box-shadow: 0 8px 20px -6px rgba(135, 42, 230, 0.75);
}

.btn--outline {
  color: var(--color-dark);
  background: transparent;
  border-color: var(--color-dark);
}

.btn--outline:hover { border-color: var(--color-accent-deep); color: var(--color-accent-deep); }

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-subtle-1);
    padding: 8px 20px 20px;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__link { padding: 12px 0; border-bottom: 1px solid var(--color-subtle-1); }

  .site-nav .btn { margin-top: 14px; text-align: center; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero — split layout: headline left, tilted artwork right (Option B)
   -------------------------------------------------------------------------- */

.hero { padding: 72px 0 84px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-deep);
  margin-bottom: 14px;
}

.hero__title {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #A76BFF, #872AE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 17px;
  color: #565a5f;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__art-wrap { position: relative; }

.hero__art {
  display: block;
  width: 100%;
  border-radius: 24px;
  transform: rotate(1.5deg);
  box-shadow: 0 34px 70px -30px rgba(135, 42, 230, 0.55);
}

.hero__art-wrap::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(167, 107, 255, 0.25), rgba(135, 42, 230, 0.25));
  z-index: -1;
  transform: rotate(-1.5deg);
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__title { font-size: 32px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }

.section--tint { background: #fff; border-top: 1px solid var(--color-subtle-1); border-bottom: 1px solid var(--color-subtle-1); }

.section__kicker {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-deep);
  margin-bottom: 10px;
}

.section__title {
  text-align: center;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 auto 44px;
  max-width: 640px;
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section__title { font-size: 24px; margin-bottom: 32px; }
}

/* Feature list — minimal icon rows (Option B) */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(167, 107, 255, 0.16) 0%, rgba(135, 42, 230, 0.16) 100%);
  color: var(--color-accent-deep);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature__text {
  font-size: 14px;
  color: #565a5f;
  margin: 0;
}

/* Demo video */

.demo__frame {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-subtle-1);
  background: #000;
  box-shadow: 0 18px 48px -18px rgba(135, 42, 230, 0.35);
}

.demo__frame video { display: block; width: 100%; height: auto; }

.demo__note {
  text-align: center;
  font-size: 13px;
  color: var(--color-subtle-3);
  margin: 16px 0 0;
}

/* Audiobook wedge — stat headline, supporting text, sample player */

.wedge__text {
  max-width: 640px;
  margin: -24px auto 32px;
  text-align: center;
  color: #565a5f;
}

.sample {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-light);
  border: 1px solid var(--color-subtle-1);
  border-radius: var(--radius-card);
  padding: 16px 22px;
}

.sample__btn {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #A76BFF 0%, #872AE6 100%);
  box-shadow: 0 8px 18px -8px rgba(135, 42, 230, 0.6);
  transition: box-shadow .2s ease, transform .15s ease;
}

.sample__btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px -6px rgba(135, 42, 230, 0.75); }

.sample__btn svg { width: 24px; height: 24px; }

.sample__icon-pause { display: none; }

.sample.is-playing .sample__icon-play { display: none; }
.sample.is-playing .sample__icon-pause { display: block; }

.sample__meta { display: flex; flex-direction: column; text-align: left; }

.sample__label { font-weight: 600; font-size: 16px; }

.sample__voice { font-size: 13px; color: var(--color-subtle-3); }

/* How it works — 3-step strip */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--color-subtle-1);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #A76BFF 0%, #872AE6 100%);
  margin-bottom: 14px;
}

.step__title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }

.step__text { font-size: 14.5px; color: #565a5f; margin: 0; }

/* Free-credits ladder + First-100 promo card */

.ladder { max-width: 720px; }

.ladder__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ladder__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
}

.ladder__chip {
  flex: 0 0 auto;
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent-deep);
  background: rgba(167, 107, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.ladder__note {
  font-size: 13px;
  color: var(--color-subtle-3);
  margin: 18px 0 0;
}

.promo-card {
  margin-top: 28px;
  background: rgba(167, 107, 255, 0.08);
  border: 1px solid var(--color-accent);
  border-left-width: 4px;
  border-radius: var(--radius-card);
  padding: 18px 22px;
}

.promo-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-card__spots {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-deep);
  background: rgba(167, 107, 255, 0.14);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}

.promo-card__text { font-size: 14.5px; color: #565a5f; margin: 6px 0 0; }

/* FAQ */

.faq { max-width: 720px; }

.faq__item {
  background: var(--color-light);
  border: 1px solid var(--color-subtle-1);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}

.faq__q {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent-deep);
}

.faq__item[open] .faq__q::after { content: '\2212'; }

.faq__a { font-size: 14.5px; color: #565a5f; margin: 0 0 16px; }

/* Who we are */

.about {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about__lead {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 18px;
}

.about__lead em { font-style: normal; color: var(--color-accent-deep); }

.about__text {
  font-size: 16px;
  color: #565a5f;
  margin: 0 0 28px;
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6C1FC4 0%, #872AE6 45%, #A76BFF 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}

.cta-band__title { font-size: 28px; font-weight: 600; margin: 0 0 8px; }

.cta-band__sub { margin: 0 auto 24px; max-width: 480px; color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.page-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  margin: 56px 0 8px;
}

.page-sub {
  text-align: center;
  color: #565a5f;
  margin: 0 auto 48px;
  max-width: 520px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 88px;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-details h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
}

.contact-details dl { margin: 0; }

.contact-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--color-subtle-3);
  margin: 18px 0 4px;
}

.contact-details dd { margin: 0; font-size: 15.5px; }

.contact-details a { color: var(--color-accent-deep); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* Form */

.contact-form {
  background: #fff;
  border: 1px solid var(--color-subtle-1);
  border-radius: var(--radius-card);
  padding: 30px 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field label .req { color: var(--color-status-fail); }

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--color-dark);
  background: var(--color-light);
  border: 1px solid var(--color-subtle-2);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(167, 107, 255, 0.18);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #565a5f;
  margin: 4px 0 20px;
}

.form-consent input { margin-top: 3px; accent-color: var(--color-accent-deep); }

.form-status {
  display: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.form-status.is-ok { display: block; background: rgba(93, 138, 83, 0.12); color: var(--color-status-success); }
.form-status.is-err { display: block; background: rgba(177, 37, 36, 0.10); color: var(--color-status-fail); }

.recaptcha-note {
  font-size: 12px;
  color: var(--color-subtle-3);
  margin: 14px 0 0;
}

.recaptcha-note a { color: inherit; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #1b1b1d;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 34px 20px;
  font-size: 14px;
}

.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #fff; }

.site-footer__links { margin-top: 6px; }

/* 404 */

.error-page {
  text-align: center;
  padding: 96px 20px 120px;
}

.error-page h1 { font-size: 72px; margin: 0; color: var(--color-accent); }
.error-page p { margin: 8px 0 28px; color: #565a5f; }

/* For readers — app store buttons
   -------------------------------------------------------------------------- */

.for-readers { text-align: center; }
.for-readers__sub { max-width: 520px; margin: 0 auto; color: #565a5f; }

.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--color-dark); color: #fff;
  border-radius: 12px; padding: 10px 20px 10px 16px;
  text-decoration: none; line-height: 1.15;
  transition: background .15s ease, transform .15s ease;
}
.store-btn:hover { background: #000; transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn__txt { display: flex; flex-direction: column; text-align: left; }
.store-btn__pre { font-size: 11px; opacity: .85; }
.store-btn__name { font-size: 17px; font-weight: 600; }

.stores--compact { margin-top: 18px; }
