/* ============================================================
   Sandwiche · LP YouTube OAuth
   Visual alinhado ao design system da LP 2026
   ============================================================ */

html[data-i18n-pending] .new-lp.page-youtube [data-i18n] {
  visibility: hidden;
}

.new-lp.page-youtube {
  padding-top: 0;
}

.new-lp.page-youtube main section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line-soft);
}

/* --- Header (sm-header + nav da LP) --- */
.page-youtube .section-rule-badge {
  display: none !important;
}

.page-youtube .yt-header__nav {
  gap: 14px;
}

.page-youtube .yt-header__nav a {
  font-size: 13px;
  padding: 8px 10px;
}

@media (min-width: 1200px) {
  .page-youtube .yt-header__nav {
    gap: 18px;
  }

  .page-youtube .yt-header__nav a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 920px) {
  .page-youtube .yt-header__nav {
    display: none;
  }
}

@media (max-width: 1199px) {
  .page-youtube .sm-header__actions .lang-select--compact {
    display: inline-block;
  }
}

/* --- Hero (sm-hero) --- */
.page-youtube .sm-hero__main {
  max-width: 820px;
  gap: 20px;
}

.page-youtube .yt-notice--hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 4px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  opacity: 0;
  animation: sm-hero-content-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.36s;
}

.page-youtube .yt-notice--hero .yt-notice__title {
  margin: 0 0 10px;
  font-family: var(--sm-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-youtube .yt-notice--hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
}

.page-youtube .yt-notice--section {
  margin-top: 18px;
  margin-bottom: 0;
}

.page-youtube .sm-hero__trust {
  opacity: 0;
  animation: sm-hero-content-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  width: 100%;
  max-width: 720px;
  animation-delay: 0.44s;
}

.page-youtube .sm-hero__actions {
  animation-delay: 0.52s;
  opacity: 0;
  animation-name: sm-hero-content-in;
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

.page-youtube .sm-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.page-youtube .sm-hero__trust-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* --- Controle + mock --- */
.yt-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.yt-section-heading--compact {
  margin-bottom: 24px;
}

.yt-control-copy .yt-plain-list {
  max-width: 560px;
}

.yt-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--type-small);
  font-weight: 500;
  color: rgba(31, 31, 31, 0.72);
}

.yt-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.yt-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.08);
  color: var(--sm-ink);
  font-size: 11px;
  font-weight: 700;
}

/* --- Notice --- */
.yt-notice {
  padding: 20px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--hero-cta-bg) 16%, var(--sm-white));
}

.yt-notice h3 {
  margin-bottom: 10px;
  font-family: var(--sm-body);
  font-size: var(--type-title);
  font-weight: 500;
}

.yt-notice p {
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: var(--type-body);
}

.yt-scope {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--hero-cta-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

/* --- Product mock (YouTube-style) --- */
.yt-mock {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--sm-white) 0%, color-mix(in srgb, var(--sm-cream) 55%, var(--sm-white)) 100%);
  box-shadow: var(--card-shadow);
}

.yt-mock__window {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--sm-white);
}

.yt-mock__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafafa;
}

.yt-dots {
  display: flex;
  gap: 6px;
}

.yt-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
}

.yt-mock__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(31, 31, 31, 0.62);
}

.yt-mock__yt-logo {
  flex-shrink: 0;
}

.yt-mock__body {
  padding: 20px;
}

.yt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.yt-stat {
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--sm-cream);
  text-align: center;
}

.yt-stat__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.48);
}

.yt-stat__value {
  display: block;
  font-family: var(--sm-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sm-ink);
}

.yt-perms {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 3px solid #ff0000;
}

.yt-perms__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.yt-perms__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yt-perms__title strong {
  font-size: 13px;
  font-weight: 600;
}

.yt-perms__badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 168, 205, 0.16);
  color: var(--hero-cta-bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yt-perms p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--footer-muted);
}

/* --- Sections --- */
.yt-section--muted {
  background: var(--bg-alt);
}

.yt-section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.yt-section-heading h2 {
  margin-bottom: 16px;
  font-family: var(--sm-display);
  font-size: var(--type-display-2);
  font-weight: 400;
  line-height: var(--type-display-2-lh);
  letter-spacing: var(--type-display-2-ls);
}

.yt-section-heading p {
  font-size: var(--type-lead);
  line-height: var(--type-lead-lh);
  color: rgba(31, 31, 31, 0.72);
}

.yt-two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.yt-lead {
  margin-bottom: 22px;
  font-size: var(--type-lead);
  line-height: var(--type-lead-lh);
}

.yt-body-muted {
  margin-bottom: 0;
  color: rgba(31, 31, 31, 0.72);
}

.yt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.yt-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  background: var(--sm-white);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, border-radius 0.2s ease;
}

.yt-card:hover {
  border-radius: var(--card-radius-hover);
  box-shadow: var(--card-shadow-hover);
}

.yt-card-number,
.yt-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--sm-cream);
  color: var(--sm-ink);
  font-family: var(--sm-mono);
  font-size: 12px;
  font-weight: 500;
}

.yt-card h3 {
  margin-bottom: 10px;
  font-family: var(--sm-body);
  font-size: var(--type-title);
  font-weight: 500;
  line-height: var(--type-title-lh);
  letter-spacing: var(--type-title-ls);
}

.yt-card p {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: rgba(31, 31, 31, 0.72);
}

.yt-plain-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-plain-list li {
  display: flex;
  gap: 12px;
  color: rgba(31, 31, 31, 0.72);
  font-size: var(--type-body);
}

.yt-plain-list .yt-check {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* --- FAQ --- */
#faq .yt-section-heading {
  max-width: none;
}

.yt-faq {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.yt-faq__item {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  background: var(--sm-white);
  overflow: hidden;
}

.yt-faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--sm-body);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.45;
  color: var(--sm-ink);
}

.yt-faq__question span:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.yt-faq__question::-webkit-details-marker {
  display: none;
}

.yt-faq__toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--sm-ink);
  transition: transform 0.2s ease;
}

.yt-faq__item[open] .yt-faq__toggle {
  transform: rotate(45deg);
}

.yt-faq__answer {
  padding: 0 20px 20px;
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  overflow-wrap: anywhere;
}

/* --- Final CTA --- */
.yt-final-section {
  padding-top: 48px !important;
  border-bottom: 0 !important;
}

.yt-final-cta {
  padding: 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 168, 205, 0.22), transparent 30%),
    var(--footer-bg);
  color: var(--footer-ink);
}

.yt-final-cta .eyebrow {
  margin-bottom: 14px;
  color: var(--hero-cta-bg);
}

.yt-final-cta h2 {
  margin-bottom: 12px;
  font-family: var(--sm-display);
  font-size: var(--type-display-2);
  font-weight: 400;
  line-height: var(--type-display-2-lh);
  letter-spacing: var(--type-display-2-ls);
  color: var(--footer-ink);
}

.yt-final-cta p {
  max-width: 640px;
  margin: 0;
  font-size: var(--type-lead);
  line-height: var(--type-lead-lh);
  color: var(--footer-muted);
}

/* --- Footer simplificado --- */
.new-lp.page-youtube .site-footer {
  border-top: 0;
}

.new-lp.page-youtube .site-footer__grid--yt {
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.new-lp.page-youtube .site-footer__legal-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  font-size: var(--type-caption);
  line-height: var(--type-caption-lh);
  color: var(--footer-muted);
}

.new-lp.page-youtube .site-footer__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.new-lp.page-youtube .site-footer__panel li {
  margin-bottom: 10px;
}

.new-lp.page-youtube .site-footer__panel a {
  color: var(--footer-ink);
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.new-lp.page-youtube .site-footer__panel a:hover {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 920px) {
  .yt-header__nav {
    display: none;
  }

  .yt-control-grid,
  .yt-two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .yt-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .new-lp.page-youtube .site-footer__grid--yt {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .new-lp.page-youtube main section {
    padding: 68px 0;
  }

  .page-youtube .sm-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .yt-grid-3,
  .yt-stats {
    grid-template-columns: 1fr;
  }

  .yt-faq__question {
    gap: 12px;
    padding: 16px;
  }

  .yt-faq__answer {
    padding: 0 16px 16px;
  }

  .yt-faq__toggle {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .yt-card {
    padding: 22px;
  }

  .yt-final-cta {
    padding: 28px;
  }
}
