/* Samba: home page and documentation. Mobile first; the app's own palette and type ("Boteco à noite", 1.3.0). */

@font-face {
  font-family: 'Figtree Variable';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  src: url('/fonts/bricolage-grotesque-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* "Boteco à noite", the same palette as the app (src/renderer/styles.css, docs/DESIGN.md). */
  --bg: #0a100d;
  --bg-soft: #0f1713;
  --panel: #121b17;
  --panel-2: #1a2620;
  --line: #26362e;
  --text: #d9e2dc;
  --strong: #f3e9d2;
  --muted: #9fb1a8;
  --accent: #22b07d;
  --accent-hover: #2cc58c;
  --on-accent: #0d1411;
  --gold: #f2b632;
  --urucum: #e06b3f;
  --azulejo: #3f7fe0;
  --live: #e8474f;
  --link: #7fb0ff;
  --radius: 16px;
  --radius-lg: 24px;
  --font-ui: 'Figtree Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque Variable', 'Figtree Variable', 'Segoe UI', system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-ui);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #0d1411;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

/* ---- header ------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: #0a100dcc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff10;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--strong);
  font: 800 22px/1 var(--font-display);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: none;
  margin-left: 24px;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--strong);
  background: #ffffff0d;
}

.top .spacer {
  flex: 1;
}

/* ---- buttons ------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 16px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.ghost {
  border-color: #ffffff2b;
  color: var(--strong);
  background: #ffffff08;
}

.btn.ghost:hover {
  border-color: #ffffff55;
  background: #ffffff14;
}

.btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---- hero --------------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 44px 0 20px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, #22b07d33, transparent 70%),
    radial-gradient(40% 40% at 90% 20%, #f2b6321f, transparent 70%);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid #f2b63240;
  border-radius: 999px;
  background: #f2b63214;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--strong);
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 10.5vw, 76px);
  font-weight: 800;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 4.4vw, 20px);
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 28px auto 0;
}

.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stage {
  position: relative;
  margin: 40px auto 0;
  max-width: 1000px;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #22b07d47, transparent);
  filter: blur(30px);
}

/* A window around a desktop screenshot. */
.window {
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: #0b1410;
  box-shadow:
    0 30px 80px -20px #000c,
    0 0 0 1px #00000066;
}

.window .bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #0f1a15;
  border-bottom: 1px solid #ffffff12;
}

.window .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b3b34;
}

.window .bar i:nth-child(1) {
  background: #e06b3f;
}

.window .bar i:nth-child(2) {
  background: #f2b632;
}

.window .bar i:nth-child(3) {
  background: #22b07d;
}

.window img {
  width: 100%;
}

/* A phone around a phone screenshot. */
.phone {
  overflow: hidden;
  border: 6px solid #1a2822;
  border-radius: 30px;
  background: #0b1410;
  box-shadow:
    0 24px 60px -16px #000d,
    0 0 0 1px #ffffff1c;
}

.phone img {
  width: 100%;
}

.hero .phone.float {
  display: none;
}

/* One screenshot per kind of screen: the desktop window on wide screens, the phone on narrow ones. */
.only-wide {
  display: none;
}

.phone.solo {
  max-width: 300px;
  margin: 0 auto;
}

/* ---- sections ----------------------------------------------------------------------------- */

section {
  padding: 56px 0;
}

.row {
  display: grid;
  gap: 28px;
  align-items: center;
}

.row .copy h2 {
  font-size: clamp(30px, 7.6vw, 46px);
  font-weight: 800;
}

.row .copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2302140c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.band {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-block: 1px solid #ffffff0d;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.phones .phone {
  border-width: 4px;
  border-radius: 18px;
}

.phones .phone:nth-child(2) {
  transform: translateY(-14px);
}

.duo {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.voice-card {
  display: flex;
  justify-content: center;
}

.voice-card .phone {
  max-width: 300px;
  border-radius: 22px;
}

/* ---- feature grid ------------------------------------------------------------------------- */

.section-head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 7.6vw, 46px);
  font-weight: 800;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
}

.card .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #22b07d1f;
  color: var(--accent-hover);
}

.card .ico svg {
  width: 24px;
  height: 24px;
}

.card:nth-child(3n + 2) .ico {
  background: #f2b6321f;
  color: var(--gold);
}

.card:nth-child(3n) .ico {
  background: #e06b3f1f;
  color: var(--urucum);
}

.card h3 {
  font-size: 21px;
  font-weight: 700;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ---- developers --------------------------------------------------------------------------- */

.dev {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 100% 0%, #7f6be026, transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
}

.dev > * {
  min-width: 0;
}

.dev h2 {
  font-size: clamp(30px, 7.6vw, 46px);
  font-weight: 800;
}

.dev p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.bots {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bots li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1410;
}

.bots code {
  flex: none;
  padding: 3px 8px;
  border-radius: 8px;
  background: #22b07d26;
  color: var(--accent-hover);
  font-weight: 700;
}

.dev .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

pre.code {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060a08;
  color: #cfe6da;
  font: 14px/1.65 ui-monospace, 'Cascadia Code', Consolas, monospace;
  -webkit-overflow-scrolling: touch;
}

pre.code .c {
  color: #6f8a7f;
}

pre.code .k {
  color: var(--gold);
}

pre.code .s {
  color: #7ad7a8;
}

/* ---- closing + footer --------------------------------------------------------------------- */

.final {
  padding: 56px 22px;
  border: 1px solid #22b07d40;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 50% 0%, #22b07d30, transparent 70%),
    var(--panel);
  text-align: center;
}

.final h2 {
  font-size: clamp(32px, 8.4vw, 54px);
  font-weight: 800;
}

.final p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.final .cta {
  margin-top: 26px;
}

footer {
  margin-top: 56px;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid #ffffff10;
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: grid;
  gap: 20px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

footer a {
  color: var(--text);
  text-decoration: none;
}

footer a:hover {
  color: var(--strong);
  text-decoration: underline;
}

/* ---- reveal on scroll --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* ---- wider screens ------------------------------------------------------------------------ */

@media (min-width: 640px) {
  .only-wide {
    display: block;
  }

  .only-narrow {
    display: none;
  }

  .cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phones {
    gap: 18px;
  }

  .phones .phone {
    border-width: 6px;
    border-radius: 26px;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 28px;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero .phone.float {
    display: block;
    position: absolute;
    right: -3%;
    bottom: -9%;
    width: 21%;
    transform: rotate(4deg);
  }

  section {
    padding: 96px 0;
  }

  .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 56px;
  }

  .row.flip .copy {
    order: 2;
  }

  .row.narrow {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  }

  .row.flip.narrow {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dev {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding: 48px;
  }

  .final {
    padding: 80px 40px;
  }

  footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---- documentation ------------------------------------------------------------------------ */

.doc-layout {
  display: grid;
  gap: 24px;
  padding: 28px 0 24px;
}

.doc-side {
  font-size: 15px;
}

.doc-side details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.doc-side summary {
  padding: 14px 16px;
  color: var(--strong);
  font-weight: 700;
  cursor: pointer;
}

.doc-side nav {
  padding: 0 8px 12px;
}

.doc-side a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.doc-side a:hover,
.doc-side a[aria-current='true'] {
  background: #ffffff0f;
  color: var(--strong);
}

.doc-side a.sub {
  padding-left: 22px;
  font-size: 14px;
}

.doc {
  min-width: 0;
}

.doc h1 {
  font-size: clamp(32px, 8vw, 48px);
}

.doc h2 {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: clamp(25px, 6vw, 32px);
}

.doc h3 {
  margin-top: 32px;
  font-size: 22px;
}

.doc h4 {
  margin: 24px 0 0;
  color: var(--strong);
  font-size: 18px;
}

.doc p,
.doc li {
  color: var(--text);
  text-wrap: pretty;
}

.doc li {
  margin: 6px 0;
}

.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #1c2a24;
  color: #bfe9d3;
  font: 0.9em ui-monospace, 'Cascadia Code', Consolas, monospace;
  overflow-wrap: anywhere;
}

.doc pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060a08;
  -webkit-overflow-scrolling: touch;
}

.doc pre code {
  padding: 0;
  background: none;
  color: #cfe6da;
  font-size: 14px;
  overflow-wrap: normal;
}

.doc .table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.doc table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--panel);
  color: var(--strong);
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc blockquote {
  margin: 18px 0;
  padding: 4px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #f2b63212;
}

.doc hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc .anchor {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.7em;
  text-decoration: none;
  opacity: 0;
}

.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc .anchor:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .doc .anchor {
    display: none;
  }
}

@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
  }

  .doc-side {
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .doc-side details {
    border: 0;
    background: none;
  }

  .doc-side summary {
    display: none;
  }

  .doc-side nav {
    padding: 0;
  }
}

/* ==== Boteco à noite (1.3.0) ==================================================================
   Same language as the app: lambe-lambe titles (Bricolage narrow, capitals), the azulejo band, the
   calçadão wave barely there, bottle-cap colors used with purpose. No gradient text, no glow washes. */

h1,
h2,
h3,
.brand {
  font-stretch: 75%;
  letter-spacing: 0;
}

.hero h1,
.row .copy h2,
.section-head h2,
.dev h2,
.final h2 {
  text-transform: uppercase;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(46px, 13vw, 104px);
}

.hero h1 .hl {
  color: var(--gold);
}

.row .copy h2,
.section-head h2,
.dev h2 {
  font-size: clamp(36px, 9vw, 58px);
}

/* The hero: night, the azulejo band on top, no glows. */
.hero {
  padding-top: 0;
  background: var(--bg);
}

.hero .wrap {
  padding-top: 40px;
}

.azulejo {
  height: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect width='44' height='44' fill='%23f3e9d2'/%3E%3Cpath d='M0 0H22A22 22 0 0 1 0 22Z' fill='%233f7fe0'/%3E%3Cpath d='M44 44V22L22 44Z' fill='%233f7fe0'/%3E%3Ccircle cx='33' cy='11' r='5' fill='%2322b07d'/%3E%3Cpath d='M0 44V33H11' fill='none' stroke='%23e06b3f' stroke-width='3'/%3E%3C/svg%3E") top left / 44px 44px repeat-x;
  border-bottom: 5px solid var(--gold);
}

.stage::before {
  display: none;
}

/* Eyebrows: a little gold poster tag. */
.eyebrow {
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  transform: rotate(-2deg);
}

.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* The calçadão de Copacabana, barely there, behind the voice section. */
.band.calcadao {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='34' viewBox='0 0 96 34'%3E%3Cpath d='M0 17 Q24 0 48 17 T96 17' fill='none' stroke='%23f3e9d2' stroke-opacity='.03' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 96px 34px;
}

.ticks li::before {
  border-radius: 50%;
}

.window {
  border-color: var(--line);
}

.window .bar {
  background: var(--panel);
}

.btn.primary {
  font-weight: 800;
}

/* Cards: one bottle-cap color each, round like a tampinha. */
.card {
  background: var(--panel);
}

.card .ico {
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.card:nth-child(3n + 2) .ico {
  background: var(--gold);
  color: var(--on-accent);
}

.card:nth-child(3n) .ico {
  background: var(--urucum);
  color: var(--on-accent);
}

.card h3 {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.dev {
  background: var(--panel);
}

.final {
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect width='44' height='44' fill='%23f3e9d2'/%3E%3Cpath d='M0 0H22A22 22 0 0 1 0 22Z' fill='%233f7fe0'/%3E%3Cpath d='M44 44V22L22 44Z' fill='%233f7fe0'/%3E%3Ccircle cx='33' cy='11' r='5' fill='%2322b07d'/%3E%3Cpath d='M0 44V33H11' fill='none' stroke='%23e06b3f' stroke-width='3'/%3E%3C/svg%3E") top left / 36px 36px repeat-x,
    linear-gradient(var(--gold), var(--gold)) 0 36px / 100% 4px no-repeat,
    var(--panel);
  padding-top: 92px;
}

.final h2 {
  font-size: clamp(42px, 11vw, 80px);
}

.brand {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
}

.row .copy .eyebrow,
.dev .eyebrow {
  margin: 0 0 20px;
  color: var(--on-accent);
  font-size: 15px;
}

/* ---- Samba Raiz (/raiz): the plans side by side, a comparison table, favorite perks ---------- */

.raiz-hero {
  position: relative;
  padding: 56px 0 36px;
  text-align: center;
}

.raiz-hero .azulejo {
  position: absolute;
  inset: 0 0 auto;
}

.raiz-hero .cap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: #0d1411;
}

.raiz-hero .cap::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px dashed #0d141188;
}

.raiz-hero h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(36px, 10vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

/* Two columns even on a phone: the point is to see the plans next to each other. */
.plans {
  padding: 8px 0 24px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.plan.pro {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #f2b63224, var(--panel) 55%);
}

.plan h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: clamp(20px, 5vw, 28px);
  text-transform: uppercase;
}

.plan .tag {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: #0d1411;
  font: 800 11px/1.6 var(--font-ui);
  letter-spacing: 0.04em;
}

.plan .price {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
}

.plan li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.mark.yes {
  background: #f2b63240;
  color: var(--gold);
}

.mark.no {
  background: var(--panel-2);
  color: var(--muted);
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font: 700 11px/1.6 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare {
  padding: 8px 0 24px;
}

.compare h2,
.favs h2 {
  font-size: clamp(24px, 6vw, 36px);
  text-transform: uppercase;
}

.compare table {
  width: 100%;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare th.pro,
.compare td.pro {
  width: 34%;
  background: #f2b6321c;
  color: var(--strong);
  font-weight: 700;
}

.compare td:nth-child(2) {
  width: 28%;
}

.compare tbody th[scope='row'] {
  color: var(--strong);
  font-weight: 600;
}

.compare .group-row th {
  padding: 16px 10px 8px;
  background: var(--panel-2);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.favs {
  padding: 8px 0 8px;
}

.favs ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.fav {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.fav-art {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f2b63229;
}

/* A bottle cap with a star, drawn with borders (the CSP allows no inline images). */
.fav-art::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px dashed var(--gold);
}

.fav-art::after {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--gold);
}

.fav h3 {
  margin: 0;
  color: var(--strong);
  font-size: 16px;
}

.fav p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  .plan {
    padding: 24px 22px;
  }

  .plan ul {
    font-size: 15px;
  }

  .compare table {
    font-size: 15px;
  }

  .favs ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
