/* Ressoa website. Brand colors come from the app: indigo #5447ed and teal #1ab3cc. */
:root {
  --bg: #fbfbfa; --surface: #f1f1ef; --ink: #121318; --muted: #5d6069; --line: #e4e4e0;
  --accent: #5447ed; --accent-ink: #fff; --teal: #1ab3cc;
  --radius: 16px; --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0f13; --surface: #17181e; --ink: #f2f2f4; --muted: #a0a2ab; --line: #262832; --accent: #7a70ff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
:lang(pt) .hero h1 { font-size: clamp(40px, 4.7vw, 58px); }   /* longer words in Portuguese */
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 680; margin-bottom: 20px; }
h3 { font-size: 21px; letter-spacing: -0.01em; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 16px; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
section { padding: 72px 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
nav .lang { font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
nav .lang:hover { border-color: var(--muted); }
@media (max-width: 720px) { nav { gap: 14px; } nav a:not(.btn):not(.lang) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px;
       background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
       transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
nav .btn, nav .btn:hover { color: var(--accent-ink); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 54px; padding: 0 34px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-disabled { background: var(--surface); color: var(--muted); cursor: default; filter: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--muted); margin: 24px 0 30px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { font-size: 14px; color: var(--muted); margin-top: 20px; }
.stage { position: relative; aspect-ratio: 1 / 0.92; border-radius: 22px; overflow: hidden;
         background: radial-gradient(90% 70% at 20% 100%, #12404a 0%, transparent 60%),
                     radial-gradient(80% 70% at 90% 0%, #2a2560 0%, transparent 65%), #0f1016;
         box-shadow: 0 30px 70px rgba(15, 16, 22, .25); }
.menubar { position: absolute; inset: 0 0 auto 0; height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 22px;
           padding: 0 22px; background: rgba(18, 19, 26, .78); color: #ececf0; font-size: 14px; font-weight: 500; }
.menubar .status { height: 16px; }
.stage-panel { position: absolute; top: 44px; right: 5%; width: min(62%, 340px); border-radius: 12px;
               box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }

/* Video */
.video-block { padding-top: 24px; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0d0e12; }
.video-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); }
.split-reverse > :first-child { justify-self: center; }
.shot img { width: 316px; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .16), 0 0 0 1px var(--line); }
.points { margin: 8px 0 0; padding: 0; list-style: none; }
.points li { padding: 12px 0; border-top: 1px solid var(--line); }

/* Bandwidth comparison */
.bands { margin: 0; padding: 30px; background: var(--surface); border-radius: var(--radius); }
.band + .band { margin-top: 22px; }
.band-label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
.band-label span { color: var(--muted); }
.track { height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.fill { height: 100%; border-radius: 7px; }
.fill-low { width: 40%; background: #ff9f0a; }
.fill-full { width: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.scale { display: grid; grid-template-columns: 40% 1fr auto; font-size: 13px; color: var(--muted); margin-top: 10px; }
.scale span:nth-child(2) { margin-left: -14px; }
.bands figcaption { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Setup */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
.steps b { color: var(--ink); font-weight: 600; }
.picker { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-top: 18px; font-size: 14px; }
.picker span { color: var(--muted); }
.picker div { padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.works { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* Buy */
.buy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy p { color: var(--muted); }
.buy-box { padding: 30px; border-radius: var(--radius); background: var(--surface); }
.fine { font-size: 14px; margin: 16px 0 0; }

/* FAQ */
.faq h2 { margin-bottom: 12px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); max-width: 46em; padding-bottom: 8px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 40px; padding-bottom: 56px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }

@media (max-width: 900px) {
  section { padding: 52px 0; }
  .hero, .split, .buy { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 40px; }
  .split-reverse > :first-child { order: 2; }
  .steps { grid-template-columns: 1fr; }
}
