/*
 * opositia.net — presentation site. Plain CSS, no JavaScript, no external fonts.
 * Brand: navy + electric blue + cyan, from the app icon (Janus, the robot). Always light.
 * Motion is CSS only and switched off with prefers-reduced-motion.
 */

:root {
  color-scheme: light;
  --navy: #0b1b3a;
  --navy-2: #12285a;
  --blue: #1b6bff;
  --blue-dark: #0f4fd1;
  --cyan: #3fc1f2;
  --ink: #0b1b3a;
  --text: #24324d;
  --muted: #5b6b86;
  --line: #dbe6f5;
  --bg: #ffffff;
  --bg-soft: #f2f7ff;
  --bg-cyan: #e8f7fe;
  --ok: #10b981;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  --shadow-sm: 0 2px 8px rgba(11, 27, 58, 0.06);
  --shadow: 0 18px 50px rgba(11, 27, 58, 0.12);
  --shadow-blue: 0 14px 40px rgba(27, 107, 255, 0.35);
  --radius: 20px;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

.container {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: #fff;
}

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

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(219, 230, 245, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand img {
  width: 132px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav a:not(.button):hover::after {
  transform: scaleX(1);
}

/* Phones and tablets: the links fold into a "Menú" button (a details element: no JavaScript). */
.menu {
  display: none;
}

@media (max-width: 820px) {
  .nav {
    gap: 10px;
  }

  .nav > a:not(.button) {
    display: none;
  }

  .menu {
    display: block;
    position: relative;
  }

  .menu summary {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  .menu summary::-webkit-details-marker {
    display: none;
  }

  .menu[open] summary {
    border-color: var(--blue);
    color: var(--blue);
  }

  .menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .menu__panel a {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }

  .menu__panel a:hover,
  .menu__panel a:focus-visible {
    background: var(--bg-soft);
    color: var(--blue);
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(27, 107, 255, 0.45);
}

.button--light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button--light:hover {
  box-shadow: var(--shadow);
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background: url("/img/ondas.svg") center / cover no-repeat;
}

/* One centred column: the words carry the hero (the mascot already is the logo above). */
.hero__grid {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 900px;
  text-align: center;
}

.hero .lead {
  margin-inline: auto;
}

.hero .actions,
.hero .checks {
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.flag {
  /* Extremadura: green, white and black. */
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(#0a8a3a 0 33.3%, #fff 33.3% 66.6%, #111 66.6%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex: none;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  padding-bottom: 0.08em; /* room for descenders in gradient text (g, p) */
}

.lead {
  margin: 0 0 30px;
  max-width: 33em;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
}

.lead strong {
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.checks li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
}

/* Janus, the mascot */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 920px) {
  .hero {
    padding: 36px 0 64px;
  }
}

/* ---------- Marquee of exams ---------- */

.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  color: var(--muted);
}

.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 40s linear infinite;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 40px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: middle;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

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

/* Pain → fix pairs */
.pairs {
  display: grid;
  gap: 18px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.pair__pain,
.pair__fix {
  padding: 22px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}

.pair__pain {
  background: #fff;
  border: 1px dashed #c9d6ea;
  color: var(--muted);
}

.pair__fix {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.pair__arrow {
  font-size: 26px;
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 760px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pair__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Bento of features */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.tile {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile--wide {
  grid-column: span 4;
}

.tile--dark {
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-2), var(--navy));
  border: 0;
}

.tile--dark h3 {
  color: #fff;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile--dark p {
  color: #b8c9ea;
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff3dc;
  color: #a86500;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.devices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.devices span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tile {
    grid-column: span 1;
  }

  .tile--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile--wide {
    grid-column: span 1;
  }
}

/* Comparison */
.compare {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th,
.compare td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 700;
}

.compare thead th {
  font-size: 15px;
  color: var(--muted);
  background: var(--bg-soft);
}

.compare thead th.us {
  color: #fff;
  background: var(--grad);
}

.compare td.us {
  background: rgba(27, 107, 255, 0.05);
  font-weight: 800;
  color: var(--blue-dark);
}

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

/* Extremadura band */
.made {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--bg-soft);
  color: var(--text);
}

.made::after {
  /* Flag stripes along the bottom edge (removed: the flag stays in the label). */
  display: none;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #0a8a3a 0 33.3%, #fff 33.3% 66.6%, #111 66.6%);
}

.made__grid {
  display: grid;
  justify-items: center;
  gap: 36px;
  max-width: 860px;
  text-align: center;
}

.made h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

.made p {
  margin: 0 auto 12px;
  max-width: 40em;
  font-size: 18px;
  color: var(--muted);
}

.made__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: 18px;
  width: 100%;
}

.made__card strong,
.made__card span {
  background: #fff;
  border-inline: 1px solid var(--line);
  padding-inline: 24px;
}

.made__card strong {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}

.made__card span {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-sm);
}

.made__card strong {
  display: block;
  font-size: 36px;
  line-height: 1.05;
  color: var(--blue);
}

.made__card span {
  display: block;
  margin: 0;
  padding-top: 6px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .made__card {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .made__card span:first-of-type {
    margin-bottom: 14px;
  }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 24px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.plan h3 {
  margin: 0;
  font-size: 20px;
}

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

.price {
  margin: 4px 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan__deal {
  margin: -30px -24px 4px;
  padding: 10px 16px;
  border-radius: 23px 23px 0 0;
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.plan--featured .plan__deal {
  padding-top: 20px;
}

.plan--featured .ribbon {
  z-index: 1;
  background: var(--navy);
}

.price__after {
  margin: -4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.plan ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 600;
  color: var(--ink);
}

.plan li:last-child {
  border-bottom: 0;
}

.plan .button {
  margin-top: auto;
}

.plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.fineprint {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .plan--featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 800;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--blue);
  font-size: 20px;
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Final call to action */
.final {
  position: relative;
  padding: 0 0 96px;
  color: #fff;
}

/* After a tinted section the card needs white space above it; after a white one it follows on. */
.section--soft + .final,
.made + .final {
  padding-top: 96px;
}

.final__grid {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 56px 32px;
  border-radius: 28px;
  background: var(--grad);
  box-shadow: var(--shadow-blue);
  text-align: center;
}

.final__grid > div {
  max-width: 640px;
}

.final img {
  width: 120px;
  border-radius: 28%;
  box-shadow: 0 24px 60px rgba(11, 27, 58, 0.35);
  animation: float 6s ease-in-out infinite;
}

.final h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}

.final p {
  margin: 0 0 24px;
  font-size: 19px;
  opacity: 0.95;
}

.final .button {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 40px rgba(11, 27, 58, 0.3);
}

@media (max-width: 720px) {
  .final__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final img {
    width: 150px;
    margin: 0 auto;
  }
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  background: var(--navy);
  color: #a9b9d8;
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer p {
  margin: 0 0 10px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  padding: 4px 0;
}

/* Comfortable to tap on phones. */
@media (max-width: 760px) {
  .footer li {
    padding: 0;
  }

  .footer li a {
    display: inline-block;
    padding: 10px 0;
  }
}

.footer a {
  color: #dbe6ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__logo {
  width: 140px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Text pages (legal, download, 404) ---------- */

/* Inner pages: a quiet tint from the top (the waves would sit behind the centred text). */
.page-hero {
  padding: 64px 0 52px;
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-cyan) 0%, #fff 70%);
  text-align: center;
}

/* The trail stays in the structured data for search engines (BreadcrumbList); on screen it only added noise. */
.page-hero .breadcrumb {
  display: none;
}

.page-hero .actions {
  justify-content: center;
}

/* When the next section is also white, its top space would double the hero's bottom space. */
.page-hero + .section:not(.section--soft),
.page-hero + .container > .article,
.page-hero + .container > .prose {
  padding-top: 24px;
}

.page-hero p.lead {
  margin-inline: auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.prose {
  max-width: 780px;
  margin-inline: auto;
  padding: 24px 0 80px;
}

.prose h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 900;
}

.prose h2 {
  margin-top: 36px;
  font-size: 23px;
}

.prose p,
.prose li {
  color: var(--text);
}

.banner {
  padding: 26px;
  border-radius: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.banner h2 {
  margin-top: 0;
}

/* ---------- Scroll reveal (progressive: only where the browser supports it) ---------- */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(36px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Inner pages: breadcrumbs, articles, link cards ---------- */

.breadcrumb {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #a9b6cc;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.page-hero p.lead {
  margin: 16px auto 0;
}

.page-hero .actions {
  margin-top: 26px;
}

.article {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px 0 72px;
}

.article h2 {
  margin: 44px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.article h3 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.article p,
.article li {
  font-size: 18px;
  line-height: 1.7;
}

.article li {
  margin-bottom: 8px;
}

.article .meta {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Tables in the guides: they scroll sideways on narrow screens instead of breaking the page. */
.table-wrap {
  margin: 20px 0 8px;
  overflow-x: auto;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

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

.article thead th {
  background: var(--bg-soft);
  font-weight: 800;
}

.article tbody th {
  font-weight: 700;
}

.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: var(--bg-soft);
}

.callout p {
  margin: 0;
}

.cta-box {
  margin: 48px 0 0;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--grad);
  box-shadow: var(--shadow-blue);
  color: #fff;
  text-align: center;
}

.cta-box .button {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 40px rgba(11, 27, 58, 0.25);
}

.cta-box h2 {
  margin: 0 0 8px;
  color: #fff;
}

.cta-box p {
  margin: 0 auto 20px;
  max-width: 36em;
}

/* At most three across and the last row centred, so no card is left stretched on its own. */
.link-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.link-cards > .link-card {
  flex: 1 1 280px;
  max-width: 360px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b9cdf0;
}

.link-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.link-card span {
  color: var(--muted);
}

.link-card em {
  margin-top: auto;
  padding-top: 6px;
  font-style: normal;
  font-weight: 800;
  color: var(--blue);
}

.article--wide {
  max-width: none;
}

/* ---------- Short home: reasons, pricing teaser; pricing page trial line ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.reason h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.reason p {
  margin: 0;
  color: var(--muted);
}

.center {
  margin: 36px 0 0;
  text-align: center;
}

.teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.teaser h2 {
  margin: 0 0 8px;
}

.teaser p {
  margin: 0 auto;
  max-width: 34em;
  font-size: 18px;
  color: var(--muted);
}

.teaser__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--bg-cyan);
  border: 1px solid #c6ebfb;
}

.trial p {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.plans--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .reasons,
  .plans--three {
    grid-template-columns: 1fr;
  }
}

/* Compact spacing on phones. */
@media (max-width: 600px) {
  .hero {
    padding: 32px 0 48px;
  }

  .section {
    padding: 64px 0;
  }

  .made {
    padding: 64px 0;
  }

  .final {
    padding: 56px 0;
  }
}

/* ---------- Maintenance page (mantenimiento.html) ---------- */

.maintenance {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg-soft) url("/img/ondas.svg") center / cover no-repeat;
}

.maintenance__card {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px clamp(20px, 5vw, 48px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.maintenance__robotin {
  width: clamp(170px, 40vw, 230px);
  height: auto;
  margin: 0 0 12px;
}

.maintenance h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
}

.maintenance .lead {
  margin: 0 0 12px;
}

.maintenance__contact {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Features on the home page (what OpositIA does for you) ---------- */

.features {
  display: grid;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Every other feature puts its proof on the left, so the eye zigzags down the page. */
.feature:nth-child(even) .feature__proof {
  order: -1;
}

.feature__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.2;
  font-weight: 800;
}

.feature p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.feature li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 16px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.feature__proof {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 200px;
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.feature__proof strong {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.feature__proof span {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 26px 22px;
  }

  .feature:nth-child(even) .feature__proof {
    order: 0;
  }

  .feature__proof {
    min-height: 0;
    padding: 24px 20px;
  }
}

/* ---------- The app on screen: browser windows and phones (home page) ---------- */

.window {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #eef3fb;
  border-bottom: 1px solid var(--line);
}

.window__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d6ea;
}

.window__bar span {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.window__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--bg-soft);
}

.phone {
  margin: 0;
  padding: 8px;
  border-radius: 34px;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(11, 27, 58, 0.35);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

/* ---------- Hero with the app (home page) ---------- */

.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero--split .hero__text {
  text-align: left;
}

.hero--split .lead {
  margin-inline: 0;
}

.hero--split .actions,
.hero--split .checks {
  justify-content: flex-start;
}

.hero__media {
  position: relative;
  padding: 0 0 48px 56px;
}

.phone--hero {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26%;
  min-width: 150px;
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.badge strong {
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
}

.badge--hero {
  position: absolute;
  right: -10px;
  bottom: 10px;
}

@media (max-width: 980px) {
  .hero__split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero--split .hero__text {
    text-align: center;
  }

  .hero--split .lead {
    margin-inline: auto;
  }

  .hero--split .actions,
  .hero--split .checks {
    justify-content: center;
  }

  .hero__media {
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero__media {
    padding: 0 0 36px 34px;
  }

  .badge--hero {
    right: 0;
    bottom: 0;
    font-size: 13px;
  }
}

/* ---------- Presentation video (home page) ---------- */

.showreel {
  padding: 96px 0;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-2) 0%, #061229 65%);
  color: #fff;
}

.section__head--dark h2 {
  color: #fff;
}

.section__head--dark p {
  color: #c4d3ef;
}

.section__head--dark .kicker {
  color: var(--cyan);
}

.showreel .section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

.showreel__player {
  max-width: 1040px;
  margin: 0 auto;
}

.showreel__player video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #061229;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.showreel__tall {
  display: none !important;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .showreel {
    padding: 64px 0;
  }

  .showreel__wide {
    display: none !important;
  }

  .showreel__tall {
    display: block !important;
  }
}

/* ---------- Features with the app (home page) ---------- */

.showcase {
  display: grid;
  gap: 72px;
  max-width: 1120px;
  margin: 0 auto;
}

.show {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.show--flip .show__media {
  order: -1;
}

.show h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.18;
  font-weight: 800;
}

.show p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 !important;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 15px;
}

.stat strong {
  font-size: 26px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .showcase {
    gap: 56px;
  }

  .show {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .show--flip .show__media {
    order: 0;
  }
}

/* ---------- Gallery that moves by itself (home page) ---------- */

.gallery {
  overflow: hidden;
  padding: 8px 0 24px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.gallery__track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: scroll 70s linear infinite;
}

.gallery:hover .gallery__track {
  animation-play-state: paused;
}

.shot {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.shot img {
  display: block;
  height: 380px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.shot--tall img {
  border-radius: 24px;
  border: 6px solid var(--navy);
}

@media (max-width: 700px) {
  .shot img {
    height: 280px;
  }
}

/* Without motion the gallery is a row to scroll by hand. */
@media (prefers-reduced-motion: reduce) {
  .gallery {
    overflow-x: auto;
    mask-image: none;
  }

  .gallery__track [aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Light or dark (home page) ---------- */

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

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

.duo__phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.duo__phones .phone {
  width: 42%;
  max-width: 260px;
  transform: rotate(-4deg);
  z-index: 1;
}

.duo__phones .phone--back {
  margin-left: -8%;
  margin-top: 48px;
  transform: rotate(5deg);
  z-index: 0;
}

@media (max-width: 860px) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

/* In the feature windows the app's own sidebar is cropped out, so its text reads larger. */
.show__media .window__screen {
  transform: scale(1.18);
  transform-origin: 100% 0;
}

/* ---------- Steps with a screen of the app (how it works) ---------- */

.steps__shot {
  width: min(220px, 70%);
  margin: 20px auto 0;
}
