/* ═══════════════════════════════════════════════════════════════
   VERTICAL OS — shared landing system (/estudios, /clinicas, /agencias)
   First built for Studio OS; the .so-* classes are vertical-agnostic.
   Identity: the verticals' emerald family on the app's dark canvas.
   Canvas #030304 · Space Grotesk · emerald #10b981 (+cyan support).
   ONE brand gradient on the page: the primary CTA (emerald→cyan);
   the laser wash/kiss gradients are light physics, as on /features.
   Mobile-first: the studio owner browses from her phone.
   House rules honored: no background-clip text, no decorative glass,
   no identical icon-card grids, no colored side-borders, no em dashes.
   ═══════════════════════════════════════════════════════════════ */

.so {
  --so-bg: #030304;
  --so-surface: rgba(255, 255, 255, 0.03);
  --so-surface-2: rgba(255, 255, 255, 0.05);
  --so-border: rgba(255, 255, 255, 0.09);
  --so-border-strong: rgba(255, 255, 255, 0.16);
  --so-text: #f4f4f5;
  --so-text-2: rgba(244, 244, 245, 0.78);
  --so-text-3: rgba(244, 244, 245, 0.55);
  --so-green: #10b981;
  --so-green-bright: #34d399;
  --so-cyan: #06b6d4;
  --so-green-soft: rgba(16, 185, 129, 0.12);
  --so-cyan-soft: rgba(6, 182, 212, 0.10);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--so-text);
  background-color: var(--so-bg);
  line-height: 1.55;
  overflow-x: clip;
}
html, body, body.body { background-color: #030304; }
.rg-footer, .rg-footer-main { background-color: #030304; }
.rg-footer-main { background-image: none; }

/* ── ambient orbs: the same family as the rest of rivelcompanies.com ── */
.so-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.so-orbs::before, .so-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.so-orbs::before {
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  top: -18vw; left: -14vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13), transparent 65%);
}
.so-orbs::after {
  width: 55vw; height: 55vw; max-width: 640px; max-height: 640px;
  top: 30rem; right: -16vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10), transparent 65%);
}

.so-wrap { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.so-section { position: relative; padding: 4.5rem 0; }

/* ── type ── */
.so-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--so-text-3); margin-bottom: 1.1rem;
}
.so-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--so-green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}
.so-display {
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.04;
  font-size: clamp(2.3rem, 8.5vw, 4.2rem); margin: 0 0 1.1rem;
}
.so-h2 {
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin: 0 0 .85rem;
}
.so-sub { font-size: clamp(1.02rem, 2.6vw, 1.18rem); color: var(--so-text-2); max-width: 36rem; margin: 0 0 2rem; }
.so-kicker { color: var(--so-text-3); max-width: 38rem; margin: 0 0 2.2rem; }

/* ── CTAs ── */
.so-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.so-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.so-cta:active { transform: scale(.97); }
.so-cta:focus-visible { outline: 2px solid var(--so-green-bright); outline-offset: 3px; }
.so-cta-primary {
  color: #03140d;
  /* the ONE gradient on the page */
  background: linear-gradient(100deg, #34d399 0%, #06b6d4 100%);
  box-shadow: 0 8px 30px -10px rgba(16, 185, 129, 0.55), 0 8px 30px -12px rgba(6, 182, 212, 0.5);
}
.so-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(16, 185, 129, 0.6), 0 12px 36px -12px rgba(6, 182, 212, 0.55); }
.so-cta-secondary {
  color: var(--so-text); border: 1px solid var(--so-border-strong); background: var(--so-surface);
}
.so-cta-secondary:hover { border-color: rgba(255, 255, 255, 0.3); }
.so-trial-note { width: 100%; font-size: .85rem; color: var(--so-text-3); margin-top: .35rem; }

/* ── hero: features-style, centered, the green beam lands on the frame ── */
.so-hero { padding-top: 7.5rem; text-align: center; }
.so-hero .so-sub { margin-left: auto; margin-right: auto; }
.so-hero .so-ctas { justify-content: center; }
.so-hero .so-sub strong { color: var(--so-text); font-weight: 500; }
.so-laser {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -20px;
  width: min(1400px, 98vw);
  height: 220vh;            /* JS sizes it down to just past the frame */
  z-index: 0;
  pointer-events: none;
}
.so-wrap { position: relative; z-index: 1; }
/* the frame receives the green light (same physics as /features) */
html.so-laser-on .so-shot {
  border-color: rgba(52, 211, 153, 0.30);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9),
              0 -22px 70px -22px rgba(16, 185, 129, 0.32),
              inset 0 1px 0 rgba(52, 211, 153, 0.28);
  transition: border-color 1.2s ease 0.4s, box-shadow 1.2s ease 0.4s;
  position: relative;
}
html.so-laser-on .so-shot::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 22%;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.035) 55%, transparent);
  pointer-events: none; opacity: 0; animation: soWash 1.4s ease 0.5s forwards;
}
html.so-laser-on .so-shot::before {
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(190, 255, 225, 0.95) 50%, transparent);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.9)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.55));
  pointer-events: none; z-index: 2; opacity: 0; animation: soWash 1.4s ease 0.55s forwards;
}
@keyframes soWash { to { opacity: 1; } }
/* ambient top orb yields to the beam (kept for reduced-motion/no-WebGL) */
html.so-laser-on .so-orbs::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.so-laser-on .so-shot::before, html.so-laser-on .so-shot::after { animation: none; opacity: 1; }
}

/* the hero wrap is the 3D stage for the dashboard's scrubbed entrance */
.so-hero .so-wrap { perspective: 1600px; }

/* visual slot: real product capture goes here (no invented mockups) */
.so-shot {
  margin-top: 3rem;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 14px;
  border: 1px solid var(--so-border-strong);
  background: #07080a;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9),
              0 0 60px -20px rgba(16, 185, 129, 0.18),
              0 0 60px -20px rgba(6, 182, 212, 0.12);
  overflow: hidden;
}
.so-shot img { display: block; width: 100%; height: auto; }
.so-shot-pending {
  aspect-ratio: 16 / 9.6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.so-shot-pending .so-shot-mark { font-weight: 600; letter-spacing: -.02em; font-size: 1.15rem; color: var(--so-text-2); }
.so-shot-pending .so-shot-note { font-size: .8rem; color: var(--so-text-3); }

/* ── problem ── */
.so-problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 40rem; }
.so-problem-list li {
  padding: 1.05rem 1.2rem; border-radius: 12px;
  background: var(--so-surface); border: 1px solid var(--so-border);
  color: var(--so-text-2);
}
.so-problem-list li strong { color: var(--so-text); font-weight: 500; display: block; margin-bottom: .15rem; }

/* ── pillars: asymmetric bento, each block its own shape ── */
.so-pillars { display: grid; gap: 1rem; margin-top: 2.4rem; }
.so-pillar {
  border: 1px solid var(--so-border); border-radius: 16px;
  background: var(--so-surface); padding: 1.6rem 1.5rem;
  transition: border-color .25s ease, background-color .25s ease;
}
.so-pillar:hover { border-color: var(--so-border-strong); background: var(--so-surface-2); }
.so-pillar h3 { font-weight: 500; letter-spacing: -.015em; font-size: 1.3rem; margin: 0 0 .55rem; }
.so-pillar p { color: var(--so-text-2); margin: 0 0 .6rem; }
.so-pillar-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.so-pillar-list li { color: var(--so-text-2); padding-left: 1.35rem; position: relative; }
.so-pillar-list li::before { content: '✓'; position: absolute; left: 0; color: var(--so-green); font-weight: 600; }
.so-chat { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.so-bubble {
  padding: .8rem 1.05rem; border-radius: 14px 14px 14px 4px;
  background: var(--so-surface-2); border: 1px solid var(--so-border-strong);
  color: var(--so-text-2); font-size: .94rem; max-width: 88%; align-self: flex-start;
}
.so-bubble--out {
  border-radius: 14px 14px 4px 14px; align-self: flex-end;
  background: var(--so-green-soft); border-color: rgba(16, 185, 129, 0.35); color: var(--so-text);
}
.so-pill-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--so-text-3); border: 1px solid var(--so-border); border-radius: 999px;
  padding: .25rem .7rem; margin-bottom: .8rem;
}

/* ── how it works: a 3-stop timeline, numbers never squash ── */
.so-steps { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.so-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.so-step-num {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.05rem; color: var(--so-green);
  border: 1px solid rgba(16, 185, 129, 0.45); background: var(--so-green-soft);
  box-shadow: 0 0 22px -6px rgba(16, 185, 129, 0.5);
}
.so-steps h3 { font-weight: 500; font-size: 1.15rem; margin: .35rem 0 .25rem; letter-spacing: -.01em; }
.so-steps p { color: var(--so-text-2); margin: 0; }

/* ── pricing: one card ── */
.so-price-card {
  max-width: 30rem; margin: 2.4rem auto 0;
  border: 1px solid var(--so-border-strong); border-radius: 20px;
  background: var(--so-surface-2);
  padding: 2rem 1.7rem;
  box-shadow: 0 0 70px -30px rgba(16, 185, 129, 0.25), 0 0 70px -34px rgba(6, 182, 212, 0.2);
}
.so-price-name { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--so-text-3); margin: 0 0 .8rem; }
.so-price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.so-price-amount { font-size: clamp(2.8rem, 9vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.so-price-period { color: var(--so-text-3); }
.so-price-alt { margin: .5rem 0 0; color: var(--so-text-2); font-size: .95rem; }
.so-price-flat { margin: 1.1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: var(--so-green-soft); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--so-text); font-size: .95rem; }
.so-price-includes { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.so-price-includes li { color: var(--so-text-2); padding-left: 1.35rem; position: relative; font-size: .97rem; }
.so-price-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--so-green); font-weight: 600; }
.so-price-card .so-cta { width: 100%; margin-top: 1.5rem; }
.so-price-trial { text-align: center; margin-top: .7rem; font-size: .85rem; color: var(--so-text-3); }

/* ── FAQ ── */
.so-faq-list { display: grid; gap: .7rem; margin-top: 2.2rem; max-width: 46rem; }
.so-faq {
  border: 1px solid var(--so-border); border-radius: 12px; background: var(--so-surface);
  transition: border-color .25s ease;
}
.so-faq:hover { border-color: var(--so-border-strong); }
.so-faq[open] { border-color: rgba(16, 185, 129, 0.35); background: var(--so-surface-2); }
.so-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.8rem 1rem 1.15rem;
  font-weight: 500; position: relative;
}
.so-faq summary::-webkit-details-marker { display: none; }
.so-faq summary::after {
  content: '+'; position: absolute; right: 1.1rem; top: .9rem;
  color: var(--so-green); font-size: 1.2rem; font-weight: 500;
  transition: transform .2s ease;
}
.so-faq[open] summary::after { transform: rotate(45deg); }
.so-faq summary:focus-visible { outline: 2px solid var(--so-green-bright); outline-offset: 2px; border-radius: 12px; }
.so-faq p { margin: 0; padding: 0 1.15rem 1.05rem; color: var(--so-text-2); }

/* ── close ── */
.so-close { text-align: center; padding-bottom: 6rem; }
.so-close .so-ctas { justify-content: center; }
.so-close .so-sub { margin-left: auto; margin-right: auto; }

/* ── desktop ── */
@media (min-width: 760px) {
  .so-section { padding: 6rem 0; }
  .so-hero { padding-top: 9rem; }
  .so-pillars { grid-template-columns: repeat(2, 1fr); }
  .so-pillar--links { grid-column: 1 / -1; }
  .so-pillar--links .so-pillar-list { grid-template-columns: repeat(3, 1fr); gap: .7rem 1.4rem; }
  .so-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .so-steps li { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .so * { transition: none !important; }
}


/* ═══ BODY CRAFT (rev so4): lift every section to the hero's level ═══ */
.so-section--center { text-align: center; }
.so-head { max-width: 44rem; margin: 0 auto 2.8rem; }
.so-section--center .so-eyebrow { justify-content: center; }
.so-section--center .so-kicker { margin-left: auto; margin-right: auto; }
.so-section--center .so-problem-list,
.so-section--center .so-symptoms,
.so-section--center .so-faq-list { margin-left: auto; margin-right: auto; }
.so-section--center .so-pillar,
.so-section--center .so-symptoms li,
.so-section--center .so-steps li { text-align: left; }

/* ambient glows so the atmosphere doesn't die after the hero */
.so-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.so-glow--left { width: 40vw; max-width: 460px; height: 460px; top: 10%; left: -16vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10), transparent 68%); }
.so-glow--right { width: 44vw; max-width: 520px; height: 520px; top: 22%; right: -18vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.09), transparent 68%); }
.so-glow--center { width: 70vw; max-width: 760px; height: 520px; top: 0; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10), transparent 66%); }
.so-section > .so-wrap { position: relative; z-index: 1; }

/* problem as a symptom ledger (not three identical boxes) */
.so-symptoms { list-style: none; margin: 0; padding: 0; max-width: 40rem; display: grid; gap: 0; }
.so-symptoms li {
  display: flex; gap: 1.15rem; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid var(--so-border);
}
.so-symptoms li:last-child { border-bottom: 1px solid var(--so-border); }
.so-symptom-mark {
  flex: 0 0 auto; font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  color: var(--so-green); font-variant-numeric: tabular-nums; padding-top: .15rem;
}
.so-symptoms li > div { display: flex; flex-direction: column; gap: .2rem; }
.so-symptoms strong { color: var(--so-text); font-weight: 500; font-size: 1.12rem; letter-spacing: -.01em; }
.so-symptoms span { color: var(--so-text-2); }

@media (min-width: 760px) {
  .so-section--center .so-pillars { text-align: left; }
}
