/* static/css/rajta-home.css
   Rajta's product page (/hu/): the copy and illustrations of home draft A
   (tilted board, handwritten note, hand-drawn underline, dotted route, team
   avatars) in the night-sky style of draft B. Loaded after home-drafts.css;
   everything is scoped to .rh so the other pages keep their own look. */

.rh {
  /* Draft A's tokens, mapped onto the B palette. */
  --ink: var(--text);
  --ink-2: var(--muted);
  --orange: var(--amber);
  --orange-strong: var(--amber);
  --orange-text: #ffb866;
  --sun: var(--amber);
  --paper-2: rgba(255, 255, 255, 0.04);
  --mint: #5fd6a4;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-line: rgba(255, 255, 255, 0.1);
}

.rh strong {
  color: var(--text);
}

.rh-head {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.rh .mb-h2,
.rh-h1 {
  text-wrap: balance;
}

/* Hero: B sky and north star, A's two-column layout with the board */

.rh-hero {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.rh-hero .mb-northstar {
  top: clamp(20px, 3vw, 40px);
  right: clamp(16px, 4vw, 72px);
  width: clamp(36px, 4.2vw, 64px);
}

@media (min-width: 901px) {
  .rh .ma-hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.rh-h1 {
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 0.98;
}

.rh .ma-h1__accent em {
  padding-right: 0.08em;
}

.rh .ma-h1__underline {
  bottom: -0.12em;
  stroke: var(--amber);
  stroke-width: 6;
  filter: drop-shadow(0 0 8px rgba(255, 165, 61, 0.55));
}

/* Board illustration */

.rh .ma-note {
  right: auto;
  left: 4%;
  color: #ffd9a6 !important;
}

.rh .ma-board__window {
  border-color: var(--panel-line);
  background: linear-gradient(180deg, rgba(22, 34, 64, 0.94), rgba(10, 18, 36, 0.98));
  box-shadow: 0 -24px 80px -30px rgba(255, 165, 61, 0.25), 0 40px 110px -40px rgba(0, 0, 0, 0.85);
}

.rh .ma-board__bar {
  border-bottom-color: var(--panel-line);
  color: var(--muted);
}

.rh .ma-board__dots i {
  background: rgba(255, 255, 255, 0.18);
}

.rh .ma-board__cols {
  background: rgba(255, 255, 255, 0.02);
}

.rh .ma-col__title {
  color: var(--muted) !important;
}

.rh .ma-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.rh .ma-card__text {
  color: var(--text) !important;
}

.rh .ma-card--done .ma-card__text {
  color: var(--muted) !important;
}

.rh .ma-tag--sales { background: rgba(255, 165, 61, 0.16); color: #ffc27a; }
.rh .ma-tag--ops { background: rgba(110, 150, 255, 0.18); color: #b4c8ff; }
.rh .ma-tag--team { background: rgba(95, 214, 164, 0.16); color: #9ae6c4; }

.rh .ma-due--today { background: rgba(255, 200, 90, 0.16); color: #ffd98f; }
.rh .ma-due--late { background: rgba(255, 110, 96, 0.18); color: #ffa79d; }

.rh .ma-avatar {
  background: #2b3b66;
  color: #fff;
}

.rh .ma-avatar--b {
  background: var(--amber);
  color: #1a0f02;
}

.rh .ma-float {
  border: 1px solid rgba(255, 165, 61, 0.35);
  background: rgba(10, 17, 34, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 44px -16px rgba(0, 0, 0, 0.8), 0 0 36px -12px rgba(255, 165, 61, 0.5);
}

/* Apps */

.rh-apps {
  border-top: 1px solid var(--line);
  background: var(--night-2);
}

.rh .ma-app {
  border-color: var(--panel-line);
  background: var(--panel);
}

.rh .ma-app:hover {
  border-color: rgba(255, 165, 61, 0.4);
  box-shadow: 0 24px 50px -30px rgba(255, 165, 61, 0.45);
}

.rh .ma-app__icon {
  background: rgba(255, 165, 61, 0.12);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 165, 61, 0.25);
}

.rh .ma-app h3 {
  font-size: 28px;
}

.rh .ma-beta {
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.rh .ma-beta small {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* Ten apps: five in a row on a wide screen, two below, one on a phone */

@media (min-width: 1101px) {
  .rh .ma-apps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .rh .ma-app {
    padding: 22px 18px 18px;
  }

  .rh .ma-app h3 {
    font-size: 21px;
  }

  .rh .ma-app p {
    font-size: 15px;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .rh .ma-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A phone: the icon beside the name, so ten cards stay short */

@media (max-width: 560px) {
  .rh .ma-app {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 18px;
  }

  .rh .ma-app__icon {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .rh .ma-app h3 {
    margin: 0;
    font-size: 22px;
  }

  .rh .ma-app p {
    grid-column: 1 / -1;
    margin: 12px 0 0;
  }

  .rh .ma-app .ma-beta {
    margin-top: 14px;
  }
}

/* The offer lives only on rajta.eu/pricing/: one link under the apps */

.rh-apps__more {
  margin: 28px 0 0;
}

/* Steps: the dotted route between glowing stops */

.rh-steps {
  border-top: 1px solid var(--line);
}

.rh .ma-route__num {
  border: 2px solid var(--amber);
  background: var(--night);
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  box-shadow: 0 0 24px -6px rgba(255, 165, 61, 0.7);
}

.rh .ma-route li:last-child .ma-route__num {
  background: linear-gradient(180deg, #ffb65c, var(--amber-2));
  color: #1a0f02;
}

.rh .ma-route h3 {
  font-size: 28px;
}

/* Custom development */

.rh-custom {
  padding-top: clamp(80px, 10vw, 136px);
}

.rh .ma-custom__card {
  border-color: var(--panel-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 165, 61, 0.14), transparent 55%),
    var(--panel);
}

.rh .ma-custom .mb-h2 {
  font-size: clamp(34px, 3.8vw, 52px);
}

.rh .ma-custom__text > p:not(.mb-kicker) {
  color: var(--muted);
}

.rh .ma-custom .mb-link {
  margin-top: 4px;
}

.rh .ma-person {
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.04);
}

.rh .ma-person strong {
  font-weight: 700;
}

@media (max-width: 900px) {
  .rh-hero .mb-northstar {
    top: 16px;
  }

  .rh .ma-board {
    margin-top: 12px;
  }
}
