/* IRDA landing — v3 (IRDA desktop app) */

:root {
  --ink: #373737;
  --muted: #585858;
  --subtle: #8a8a85;
  --brand: #373706;          /* "Entrar" olive */
  --brand-hover: #4a4a0d;
  --on-brand: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f5f5f2;
  --line: #e4e4de;
  --dark: #23230a;
  --on-dark: #f3f3ea;
  --on-dark-muted: #b9b9a6;

  --radius: 8px;
  --radius-sm: 4px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Jersey 20", var(--font);

  --gutter: clamp(16px, 4.2vw, 60px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-header { font-size: 20px; padding: 4px 14px; height: 35px; }
.btn-lg { font-size: 18px; padding: 16px 28px; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f1f1e8; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-light:focus-visible, .btn-ghost-light:focus-visible { outline-color: #fff; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 24px 14px;
}
.brand { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 34px; }
.brand-word { font: 400 36px/1 var(--font-brand); letter-spacing: .01em; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; text-shadow: 0 0 10px rgba(255,255,255,.95), 0 0 3px rgba(255,255,255,.9); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn-header { margin-left: auto; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(600px, 67.6vw, 973px);
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-bg img {
  position: absolute;
  width: 122.23%; height: 120.6%;
  left: -11.71%; top: -18.72%;
  max-width: none;
  object-fit: cover;
}
.hero-fade {
  position: absolute; left: 0; right: 0;
  bottom: -136px; height: 328px; z-index: -1;
  background: linear-gradient(0deg,
    #fff 0%,
    rgba(245,245,245,.99) 24.5%,
    rgba(241,241,241,.99) 55.3%,
    rgba(231,231,231,.85) 74.5%,
    rgba(184,184,184,.34) 89.9%,
    rgba(153,153,153,0) 100%);
}
.hero-copy { padding: 120px var(--gutter) 40px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(36px, 4.45vw, 64px);
  line-height: 1.17;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero h1 .line { display: block; }
.hero-sub {
  margin-top: 25px;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 32px);
  text-shadow: 0 1px 16px rgba(0,0,0,.2);
}
.hero-actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ────────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--surface-tint); }
.section-dark { background: var(--dark); color: var(--on-dark); }
#sobre { padding-top: clamp(96px, 10vw, 140px); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.section-head h2 strong { font-weight: 700; }
.section-head p { margin-top: 4px; font-size: clamp(18px, 1.67vw, 24px); color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* ── Demo video ──────────────────────────────────────────── */
.section-head-center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.mascot { width: 64px; height: auto; margin: 0 auto 16px; }
.demo { max-width: 1100px; margin: 0 auto; }
.demo-frame, .feature-media {
  aspect-ratio: 16 / 9;
  background: #e9e9e2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(35,35,10,.35);
}
.demo-frame video, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.demo figcaption {
  margin: 20px auto 0; max-width: 680px;
  text-align: center; font-size: 17px; font-style: italic; color: var(--muted);
}

/* ── Feature rows ────────────────────────────────────────── */
.features { display: grid; gap: clamp(64px, 8vw, 112px); }
.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature-flip .feature-media { order: 2; }
.feature-copy h3 { margin-top: 16px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.feature-copy p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.feature-copy p strong { color: var(--ink); }
.feature-copy ul, .plan-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-copy li, .plan-card li { padding-left: 20px; position: relative; font-size: 16px; }
.feature-copy li::before, .plan-card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 2px; background: var(--brand);
}

/* ── Screenshots ─────────────────────────────────────────── */
.shots {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px);
  grid-template-columns: repeat(2, 1fr);
}
.zoom {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(35,35,10,.72); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.zoom img { transition: transform .3s ease; }
.zoom:hover img { transform: scale(1.015); }
.shot img { width: 100%; height: auto; border-radius: var(--radius); }
.shot h3 {
  margin-top: 16px;
  font-weight: 400; font-size: 18px; line-height: 1.35;
  color: var(--muted); text-align: center;
}

/* ── Nutrition sources ───────────────────────────────────── */
.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.source {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.source-mark {
  display: block;
  font: 400 clamp(56px, 6vw, 80px)/.9 var(--font-brand);
  color: var(--brand);
  letter-spacing: .01em;
}
.source h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.source p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* ── Two agents ──────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
}
.tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: #ececdc; color: var(--brand);
}
.duo-card h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.duo-card p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.duo-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.duo-card li { padding-left: 20px; position: relative; font-size: 16px; }
.duo-card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 2px; background: var(--brand);
}

/* ── Pillars (dark) ──────────────────────────────────────── */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillars li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.pillars h3 { font-size: 20px; font-weight: 600; }
.pillars p { margin-top: 10px; color: var(--on-dark-muted); font-size: 16px; }

/* ── Plans ───────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 48px);
  background: linear-gradient(135deg, #fbfbf7, #f2f2e6);
}
.plan-card .tag { align-self: flex-start; }
.plan-card h3 { margin-top: 16px; font: 400 clamp(44px, 4.4vw, 60px)/.9 var(--font-brand); letter-spacing: .01em; color: var(--brand); }
.plan-card p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.plan-card ul { margin-bottom: 32px; }
.plan-actions { margin-top: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.plan-link { color: var(--muted); font-size: 15px; text-decoration: none; }
.plan-link:hover { color: var(--ink); text-decoration: underline; }
.plan-card-soon { background: #fff; border-style: dashed; border-color: #cfcfbf; }
.tag-soon { background: var(--brand); color: var(--on-brand); }
.btn-outline { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline:hover { background: #f1f1e4; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 680px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; margin-left: auto; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.copy { color: var(--subtle); font-size: 14px; }
.site-footer .brand-word { font-size: 30px; }
.site-footer .brand img { width: 38px; height: 28px; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(20,20,8,.86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; padding: 56px 72px; display: grid; justify-items: center; gap: 14px; max-height: 100vh; }
.lightbox img {
  max-width: min(1268px, calc(100vw - 144px));
  max-height: calc(100vh - 150px);
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.lightbox figcaption { color: #f3f3ea; font-size: 16px; text-align: center; }
.lb-btn {
  position: fixed; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  font: 400 28px/1 var(--font);
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox figure { padding: 64px 12px 80px; }
  .lightbox img { max-width: calc(100vw - 24px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* ── Reveal on scroll ────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .header-inner { padding: 12px var(--gutter); gap: 16px; }
  .site-nav { display: none; }
  .brand-word { font-size: 30px; }
  .brand img { width: 38px; height: 28px; }
  .btn-header { font-size: 17px; height: 34px; }
  .duo, .pillars, .plans, .sources, .shots, .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-media { order: 0; }
  .pillars { gap: 28px; }
}
@media (max-width: 560px) {
  .hero { min-height: min(92svh, 760px); }
  .hero-copy { padding-top: 96px; }
  .hero h1 .line { display: inline; }
  .hero-actions .btn { width: 100%; }
  .footer-nav { margin-left: 0; flex-direction: column; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Download (beta) ─────────────────────────────────────── */
.dl-card { display: flex; flex-direction: column; min-width: 0; }
.dl-card .tag { align-self: flex-start; }
.dl-btn { margin-top: 24px; align-self: flex-start; }
.dl-help { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.dl-help summary { cursor: pointer; font-weight: 500; color: var(--brand); }
.dl-help p { font-size: 16px; }
.dl-help ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: 16px; }
.dl-help ol li { padding-left: 0; }
.dl-help ol li::before { content: none; }
.dl-help pre {
  margin: 10px 0 0; padding: 12px 14px; overflow-x: auto;
  background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px;
}
@media (max-width: 560px) { .dl-btn { align-self: stretch; } }
.feature-flip { grid-template-columns: 1fr 1.45fr; }
.mascot { overflow: visible; }
@media (max-width: 860px) { .feature-flip { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plan-actions .btn { width: 100%; } }
