/* jiuman.net: the commercial deck's look (dark only). Not the panel's design system: this is Jiuman's face, so
   rounded corners and the deck's fonts. Caddy sends style-src 'self', so every style lives in this file. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0B0C10;
  --card: #15171D;
  --line: #27282B;
  --line-strong: #3A3B40;
  --text: #F2F1EC;
  --muted: #A1A19F;
  --lime: #C5F82A;
  --lime-hover: #D8FF5E;
  --on-lime-muted: #2B3510;
  --violet: #A99BFF;
  --violet-block: #1E1A3A;
  --violet-line: #312860;
  --violet-muted: #C9C3EE;
  --paper-muted: #3A3B40;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: 16px;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(56rem 36rem at 100% 0, rgba(49, 40, 96, 0.5), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--bg); }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 1200px); margin-inline: auto; }

.lime { color: var(--lime); }

/* Header */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand svg { width: 28px; height: 28px; flex: none; }

.agents { color: var(--violet); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}

.nav-link:hover { color: var(--lime); }

/* Buttons: pills, never smaller than 44 px */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-hover); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.btn-dark { background: var(--bg); color: var(--lime); }
.btn-dark:hover { color: var(--lime-hover); }

/* Pitch */

.hero { overflow: hidden; }

.hero-grid {
  display: grid;
  align-items: center;
  gap: 24px;
  padding-block: 40px 56px;
}

.hero h1 {
  font-size: clamp(40px, 8.4vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
}

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

.orb {
  position: relative;
  width: clamp(180px, 38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
}

.rhombus {
  position: absolute;
  inset: 0;
  width: 33%;
  height: 33%;
  margin: auto;
  background: var(--bg);
  transform: rotate(45deg);
}

.hero .orb { justify-self: end; margin-right: -48px; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; padding-block: 72px 112px; }
  .hero .orb { margin-right: -10vw; }
}

/* Sections taken from the deck */

.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.block h2 {
  margin-top: 16px;
  max-width: 15em;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-lead { margin: 24px 0 0; max-width: 36em; color: var(--muted); }

.cards {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The deck's cards are the logo's bubble: every corner round but the lower right. */
.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 22px;
}

.card h3 { margin-top: 12px; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; }

.card p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }

.card .card-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}

.dash { display: block; width: 12px; height: 2px; margin-top: 8px; background: var(--violet); }

.card-lime { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.card-lime p { color: var(--on-lime-muted); }
.card-lime .card-label { color: var(--bg); }

/* Plans */

.plans { display: grid; gap: 16px; margin-top: 40px; }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 24px;
}

.plan h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.price {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 10vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.plan-extra { margin: 14px 0 0; font-weight: 600; font-size: 18px; }

.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 16px;
}

.plan-list li { display: flex; gap: 12px; }

.plan-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  background: var(--lime);
  transform: rotate(45deg);
}

.plan .muted { color: var(--muted); }

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

.plan-advanced { background: var(--violet-block); border-color: var(--violet-line); }
.plan-advanced .plan-list { border-top-color: var(--violet-line); }
.plan-advanced .muted { color: var(--violet-muted); }

.plan-jiuman { background: var(--text); border-color: var(--text); color: var(--bg); }
.plan-jiuman h3 { color: var(--bg); }
.plan-jiuman .plan-list { border-top-color: #D6D5CF; }
.plan-jiuman .plan-list li::before { background: var(--bg); }
.plan-jiuman .muted { color: var(--paper-muted); }
.plan-jiuman :focus-visible { outline-color: var(--bg); }

/* Closing */

.closing { overflow: hidden; background: var(--lime); color: var(--bg); }

.closing :focus-visible { outline-color: var(--bg); }

.closing-grid {
  display: grid;
  align-items: center;
  gap: 32px;
  padding-block: clamp(64px, 9vw, 120px);
}

.closing h2 {
  max-width: 7em;  /* breaks as the deck does: "Activemos / tu base." */
  margin-bottom: 32px;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.closing .mail {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--on-lime-muted);
}

.orb-dark { background: var(--bg); }
.orb-dark .rhombus { background: var(--lime); }

.closing .orb { justify-self: end; width: clamp(160px, 30vw, 380px); margin-right: -48px; }

@media (min-width: 760px) {
  .closing-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .closing .orb { margin-right: -8vw; }
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

.foot p { margin: 0; }

/* 404 */

.notfound { padding-block: 72px 120px; }

.notfound h1 {
  margin: 16px 0 32px;
  font-size: clamp(36px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
