/* CineFlow site — layout produto + SEO */
:root {
  --bg: #0a0c0f;
  --bg-elev: #12161c;
  --bg-card: #151a22;
  --line: #262d3a;
  --text: #eef0f3;
  --muted: #8b95a8;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --ok: #4ade80;
  --err: #f87171;
  --radius: 16px;
  --max: 1080px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code {
  background: #0f1318;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .9em;
  color: var(--accent-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.page-home .site-header {
  border-bottom-color: rgba(38, 45, 58, 0.6);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #14b8a6);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.25);
}
.brand-mark svg { display: block; }
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-tag {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn-nav {
  background: var(--accent-dim);
  color: var(--accent-2) !important;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-weight: 600;
  text-decoration: none !important;
}
.nav .btn-nav:hover {
  background: var(--accent);
  color: #04120f !important;
  border-color: var(--accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Hero produto —— */
.hero {
  padding: 2.5rem 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 60%, rgba(20, 184, 166, 0.06), transparent 50%),
    linear-gradient(180deg, #0e1218 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-product {
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-product-inner {
  width: 100%;
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-product-inner {
    grid-template-columns: 1fr minmax(340px, 420px);
    text-align: left;
    justify-items: stretch;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 28rem;
}
@media (min-width: 900px) {
  .hero-copy { max-width: none; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: .75rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
  max-width: 26rem;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .hero .lead { margin: 0; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #04120f !important; }
.btn-primary:hover { background: var(--accent-2); color: #04120f !important; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2) !important; }

/* —— Card de pareamento —— */
.pair-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, #1a2029 0%, #141920 100%);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(45, 212, 191, 0.08);
  text-align: left;
  justify-self: center;
}
@media (min-width: 900px) {
  .pair-card { justify-self: end; max-width: none; }
}

.pair-card-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.pair-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
}
.pair-card .desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.pair-card label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field { margin-bottom: 1rem; }

.pair-card input {
  width: 100%;
  padding: .75rem .9rem;
  background: #0c1015;
  border: 1px solid #2a3344;
  border-radius: 12px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pair-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.pair-card input::placeholder { color: #4a5568; }

.code-input {
  text-transform: uppercase;
  font-size: 1.4rem !important;
  font-weight: 700;
  letter-spacing: .35em;
  text-align: center;
  padding-left: .5rem !important;
}

.input-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.input-row input { flex: 1; min-width: 0; }
.toggle-key {
  flex-shrink: 0;
  background: #1a222d;
  border: 1px solid #2a3344;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0 .85rem;
  border-radius: 12px;
  transition: color .15s, border-color .15s;
}
.toggle-key:hover {
  color: var(--accent-2);
  border-color: rgba(45, 212, 191, 0.4);
}

.hint {
  font-size: .75rem;
  color: #5c6575;
  margin-top: .4rem;
}

button.send {
  width: 100%;
  padding: .95rem 1rem;
  margin-top: .25rem;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  border: none;
  border-radius: 12px;
  color: #04120f;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button.send:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.4);
}
button.send:active { transform: translateY(1px); }
button.send:disabled {
  background: #2a2f38;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.msg {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  display: none;
}
.msg.ok { background: #0a2e1a; border: 1px solid #1a5c32; color: var(--ok); display: block; }
.msg.error { background: #2e0a0a; border: 1px solid #5c1a1a; color: var(--err); display: block; }

.pair-qr-note {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-size: .78rem;
  color: #5c6575;
  text-align: center;
  line-height: 1.4;
}

/* —— Secções —— */
.section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  font-weight: 700;
}
.section .intro {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.section-steps {
  padding: 2.25rem 0 2.5rem;
  background: #0c0f13;
}
.section-steps h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}

.section-quiet {
  padding: 2.5rem 0;
}
.section-quiet .card {
  background: transparent;
  border-color: rgba(38, 45, 58, 0.8);
}
.section-notice { border-bottom: none; padding-bottom: 2rem; }

.grid-3 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  transition: border-color .15s ease;
}
.card:hover { border-color: rgba(45, 212, 191, 0.25); }
.card h3 { font-size: 1rem; margin-bottom: .4rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .88rem; }
.card a.more {
  display: inline-block;
  margin-top: .65rem;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
}
.card a.more:hover { text-decoration: underline; }

/* Passos compactos (3) */
.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: .85rem;
}
.steps-compact {
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .steps-compact { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.15rem 3.4rem;
  position: relative;
  color: var(--muted);
  font-size: .9rem;
}
.steps-compact li {
  padding: 1.35rem 1.15rem 1.25rem;
  text-align: center;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #04120f;
  font-weight: 800;
  font-size: .85rem;
  display: grid;
  place-items: center;
}
.steps-compact li::before {
  position: static;
  margin: 0 auto .85rem;
  width: 2rem;
  height: 2rem;
  font-size: .9rem;
}
.steps strong { color: var(--text); display: block; margin-bottom: .25rem; font-weight: 600; }
.steps-compact span { display: block; font-size: .82rem; line-height: 1.4; }

.features {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.feature {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.notice {
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-left: 3px solid #c9a227;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  color: #cfc7a8;
  font-size: .88rem;
}

.faq details {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: .55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .93rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent-2); margin-bottom: .5rem; }
.faq details p { color: var(--muted); font-size: .9rem; }

/* Páginas internas */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: .35rem;
  color: #555;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.page-hero {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-bottom: .5rem;
}
.page-hero .lead { color: var(--muted); max-width: 40rem; }
.prose {
  max-width: 720px;
  padding: 2rem 0 3rem;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 .65rem;
  color: var(--accent-2);
}
.prose h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.prose p, .prose ul { margin-bottom: .9rem; color: #c5cad3; font-size: .95rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.related {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--text); }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: .4rem; }

.site-footer {
  padding: 2.5rem 0 2rem;
  background: #06080a;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .65rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #a8b0bc; font-size: .88rem; }
.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: #555;
}

@media (max-width: 720px) {
  .nav a:not(.btn-nav) { display: none; }
  .hero-product { min-height: auto; padding-top: 1.5rem; }
  .pair-card { max-width: 100%; }
}

/* Inputs genéricos (páginas sem .pair-card) */
label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
}
input {
  width: 100%;
  padding: .65rem .85rem;
  background: #0f1318;
  border: 1px solid #333a48;
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  font-family: inherit;
}
input:focus { border-color: var(--accent); }
