/* ===== ToneTote Home — Clean CSS (replaces nicepage.css + index.css) ===== */

/* --- Design tokens (matching promo.vue) --- */
:root {
  --tone-base: #2a2d3e;
  --tone-panel: rgba(18,20,36,.82);
  --tone-border: rgba(255,255,255,.07);
  --tone-text: #f0f1ff;
  --tone-text-subtle: rgba(240,241,255,.68);
  --tone-accent: #b7a5ff;
  --tone-accent-glow: rgba(183,165,255,.35);
  --tone-primary: linear-gradient(120deg, #d9d1ff, #8f82ff);
  --tone-radius-lg: 28px;
  --tone-radius-card: 20px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: var(--tone-base);
  color: var(--tone-text);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.tt-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO (exact match with promo.vue) ===== */
.hero { padding: 110px 0 60px !important; text-align: center; position: relative; overflow: hidden; min-height: 90vh; display: grid; place-items: center; margin-bottom: 32px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow { position: absolute; inset: -200px; background: radial-gradient(circle at 50% 0%, rgba(128,93,255,.35), transparent 55%), radial-gradient(circle at 80% 30%, rgba(183,165,255,.25), transparent 55%); filter: blur(40px); opacity: .7; }
.hero__bg-poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0a1118; opacity: 1; transition: opacity .2s ease; }
.hero__bg-poster--hidden { opacity: 0; }
.hero__bg-img { display: none; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.hero__bg-img--ready { opacity: 1; }
.hero__bg video,
.hero__bg-img { pointer-events: none; }
.hero__bg-img::-webkit-media-controls,
.hero__bg-img::-webkit-media-controls-start-playback-button,
.hero__bg-img::-webkit-media-controls-play-button { display: none !important; -webkit-appearance: none; opacity: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,45,62,.55) 0%, rgba(42,45,62,.8) 50%, var(--tone-base) 100%); }
.hero__center { width: min(900px, calc(100% - 32px)); margin-inline: auto; text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero h1 { font-size: clamp(46px, 6vw, 82px); line-height: 1.02; margin: 10px 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.lede { max-width: 760px; font-size: 19px; color: var(--tone-text-subtle); line-height: 1.8; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 28px 0 16px; width: 100%; }
.hero h1, .hero .lede, .hero .hero__cta { text-align: center; margin-left: auto; margin-right: auto; }

/* --- Buttons (matching promo) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; color: var(--tone-text); transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--tone-primary); color: #0b0c16; box-shadow: 0 18px 40px var(--tone-accent-glow); }
.btn--primary:hover { box-shadow: 0 22px 46px var(--tone-accent-glow); }
.btn--neon { position: relative; background: var(--tone-primary); color: #0b0c16; border: none; box-shadow: 0 20px 50px var(--tone-accent-glow); }
.btn--wide { padding-left: 42px; padding-right: 42px; }
.btn--hero-main { border-radius: 14px; min-height: 54px; }

/* --- Ticker (matching promo) --- */
.hero__ticker { margin-top: 36px; position: relative; overflow: hidden; border-top: 1px solid var(--tone-border); border-bottom: 1px solid var(--tone-border); z-index: 2; }
.hero__ticker-track { display: flex; gap: 40px; padding: 16px 0; animation: ticker 16s linear infinite; white-space: nowrap; font-size: 14px; letter-spacing: .2em; color: var(--tone-text-subtle); }
.hero__ticker:hover .hero__ticker-track { animation-play-state: paused; }

/* ─── Desktop hero: fit first screen + ticker visible ─── */
@media (min-width: 769px) {
  section.hero {
    height: calc(100vh - 64px);
    min-height: 0;
    box-sizing: border-box;
    padding: 64px 0 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero__center { transform: translateY(-20px); }
  .hero__cta { margin: 14px 0 0; }
  .hero__ticker {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    margin-top: 0;
    z-index: 4;
    display: block;
  }
  .hero__ticker-track { padding: 12px 0; }
}

/* ===== HOW IT WORKS (Steps) — promo workflow style ===== */
.tt-steps {
  padding: 36px 0 60px;
  text-align: center;
}
.tt-steps__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.tt-steps__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.tt-step-card {
  background: var(--tone-panel);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--tone-border);
  text-align: left;
}
.tt-step-card__label {
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--tone-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tt-step-card__heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--tone-text);
}
.tt-step-card__img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 14px;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid var(--tone-border);
}
.tt-step-card__copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tone-text-subtle);
}

/* ===== EXAMPLES / VIDEOS — promo showcase style ===== */
.tt-videos {
  padding: 80px 20px 60px;
  text-align: center;
}
.tt-videos .tt-container {
  background: #121424d1;
  border: 1px solid var(--tone-border);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 34px);
  	box-shadow: 0 20px 50px rgba(4, 6, 14, .35);
}
.tt-videos__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.tt-videos__subtitle {
  color: var(--tone-text-subtle);
  font-size: 16px;
  margin-bottom: 32px;
}
.tt-videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.tt-video-thumb {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  background: var(--tone-panel);
  border: 1px solid var(--tone-border);
}
.tt-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.tt-video-thumb:hover img { transform: scale(1.03); }
.tt-video-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  pointer-events: none;
}

/* ===== WHY CHOOSE US (Stats) — promo about style ===== */
.tt-stats {
  padding: 80px 0 60px;
  text-align: center;
}
.tt-stats__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.tt-stats__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.tt-stat-card {
  border: none;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255,255,255,.02);
}
.tt-stat-card__value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--tone-accent);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.tt-stat-card__value[data-count] {
  opacity: 0;
  transition: opacity .4s ease;
}
.tt-stat-card__value.is-visible {
  opacity: 1;
}
.tt-stat-card__label {
  font-size: 14px;
  color: var(--tone-text-subtle);
}

/* ===== CTA BUTTON (shared) ===== */
.tt-btn {
  display: inline-block;
  padding: 11px 30px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--tone-primary);
  color: #0b0c16;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow .15s;
  text-decoration: none;
  box-shadow: 0 18px 40px var(--tone-accent-glow);
}
.tt-btn:hover { box-shadow: 0 22px 46px var(--tone-accent-glow); }

/* ===== FAQ — promo style ===== */
.tt-faq {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 32px auto 0;
}
.tt-faq-item {
  border-bottom: 1px solid var(--tone-border);
  cursor: pointer;
  padding: 20px 0;
}
.tt-faq-q {
  width: 100%;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--tone-text);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
}
.tt-faq-icon { font-size: 24px; color: var(--tone-accent); flex-shrink: 0; }
.tt-faq-a {
  display: none;
  padding-top: 12px;
  color: var(--tone-text-subtle);
  line-height: 1.6;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.tt-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--tone-border);
}
.tt-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.tt-footer__col { min-width: 140px; }
.tt-footer__col a {
  display: block;
  padding: 3px 0;
  color: var(--tone-text-subtle);
  font-size: .9rem;
  transition: color .15s;
}
.tt-footer__col a:hover { color: var(--tone-text); }
.tt-footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tt-footer__copy {
  color: var(--tone-text-subtle);
  font-size: .8rem;
  margin-top: 6px;
}
.tt-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.tt-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  transition: background .15s;
  font-size: .85rem;
}
.tt-footer__social a:hover { background: rgba(255,255,255,.2); }
.tt-footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--tone-border);
  text-align: center;
  color: var(--tone-text-subtle);
  font-size: .8rem;
}
.tt-footer__create-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border: 2px solid var(--tone-text);
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.tt-footer__create-btn:hover {
  background: var(--tone-text);
  color: var(--tone-base);
}

/* ===== RESPONSIVE (matching promo.vue mobile) ===== */
@media (max-width: 768px) {
  .hero {
    padding: 0 0 24px !important;
    margin-bottom: 24px;
    min-height: 0;
    display: block;
  }
  .hero__bg {
    position: relative;
    height: 290px;
    overflow: hidden;
  }
  .hero__glow { display: none; }
  .hero__bg-poster { display: block; }
  .hero__bg-img { display: block; }
  .hero__overlay { background: linear-gradient(180deg, rgba(6,10,16,.08) 0%, rgba(6,10,16,.24) 35%, rgba(6,10,16,.72) 100%); }
  .hero__center {
    width: min(calc(100% - 20px), 380px);
    margin-top: -18px;
    padding: 22px 16px 18px;
    border-radius: 24px;
    background: #0a1118;
    box-shadow: 0 24px 44px rgba(0,0,0,.42);
    gap: 14px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 38px);
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.015em;
    margin: 0;
  }
  .lede {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tone-text-subtle);
  }
  .hero__cta { margin: 8px 0 0; }
  .btn--hero-main {
    width: fit-content;
    max-width: calc(100% - 16px);
    align-self: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    min-height: 52px;
    padding-left: 12px;
    padding-right: 12px;
    background: var(--tone-primary);
    color: #0b0c16;
    box-shadow: 0 12px 30px var(--tone-accent-glow);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }
  .hero__ticker { display: none; }

  /* Steps — tighter on mobile */
  .tt-steps { padding: 28px 0 36px; }
  .tt-steps__title { font-size: 34px; }
  .tt-steps__grid { grid-template-columns: 1fr; max-width: 400px; margin: 24px auto 0; gap: 16px; }
  .tt-step-card { padding: 22px 18px; }

  /* Videos — 2 cols */
  .tt-videos { padding: 48px 12px 36px; }
  .tt-videos .tt-container {
    border-radius: 22px;
    padding: 20px 14px;
  }
  .tt-videos__title { font-size: 34px; }
  .tt-videos__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Stats — 2 cols */
  .tt-stats { padding: 48px 0 36px; }
  .tt-stats__title { font-size: 34px; }
  .tt-stats__grid { grid-template-columns: repeat(2, 1fr); }

  .tt-footer__inner { flex-direction: column; }
}

@media (max-width: 575px) {
  .tt-videos__grid { grid-template-columns: 1fr 1fr; }
  .tt-stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Ticker animation ===== */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
