/* ============================================================================
   RTLE — marketing subpage of calmbit.cz
   Dark terminal aesthetic in the site's green: #0b0e0f surfaces, #35c860
   accent, Space Grotesk + JetBrains Mono. Everything is scoped under `.rtle`
   so it never leaks into the rest of the site. Values mirror the design
   handoff (RTLE.dc.html / RTLE-Support.dc.html / RTLE-Privacy.dc.html).
   ============================================================================ */

.rtle {
  /* fonts */
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* surfaces */
  --bg: #0b0e0f;
  --panel: #101416;
  --panel-hover: #121719;
  --frame: #0d1113;
  --term: #080b0c;

  /* lines (on dark, alpha over white) */
  --line-1: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.08);
  --line-3: rgba(255, 255, 255, 0.09);
  --line-4: rgba(255, 255, 255, 0.1);
  --line-5: rgba(255, 255, 255, 0.16);

  /* text */
  --fg: #eaeee9;
  --fg-list: #c2c9c4;
  --fg-check: #c9d0cb;
  --soft: #aab3ae;
  --soft-2: #aeb6b1;
  --muted: #9aa39e;
  --muted-2: #8b948f;
  --dim: #7c857f;
  --faint: #5f6863;
  --kick: #6b746f;

  /* accent */
  --accent: #35c860;
  --accent-2: #7fe3a0;
  --grad: linear-gradient(180deg, #43d873, #22b551);
  --ink: #07110a;

  /* program colors */
  --amber: #f2a63b;
  --wwff: #4fae6b;
  --pota: #86aad6;

  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

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

.rtle ::selection {
  background: var(--accent);
  color: var(--ink);
}

.rtle a {
  color: var(--accent);
  text-decoration: none;
}
.rtle a:hover {
  color: var(--accent-2);
}

.rtle h1,
.rtle h2,
.rtle h3 {
  margin: 0;
  font-weight: 600;
}
.rtle p {
  margin: 0;
}

.rt-wrap {
  max-width: 1208px; /* 1160 + 2×24 padding */
  margin: 0 auto;
  padding: 0 24px;
}

.rt-mono {
  font-family: var(--font-mono);
}

/* kicker: ~/path-to-section */
.rt-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--kick);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.rt-kicker span {
  color: var(--accent);
}

.rt-h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.rt-hero {
  position: relative;
  padding: 96px 0 72px;
}
.rt-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(53, 200, 96, 0.1), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(134, 170, 214, 0.06), transparent 60%);
  pointer-events: none;
}
.rt-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.rt-hero .rt-kicker {
  margin-bottom: 24px;
}
.rt-hero h1 {
  font-size: clamp(42px, 5.8vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.rt-hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.rt-hero__sub {
  margin-top: 26px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--soft);
}
.rt-hero__badges {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.rt-hero__chips {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.rt-hero__chips b {
  color: var(--accent);
  font-weight: 400;
  margin-right: 6px;
}
.rt-hero__device {
  display: flex;
  justify-content: center;
}

/* store badges — static "coming soon" placeholders until the listings exist */
.rt-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 22px;
  border-radius: 13px;
  cursor: default;
}
.rt-badge--primary {
  background: var(--grad);
  color: var(--ink);
}
.rt-badge--outline {
  border: 1px solid var(--line-5);
  background: #12181b;
  color: var(--fg);
}
.rt-badge__sys {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.rt-badge--primary .rt-badge__sys {
  opacity: 0.7;
}
.rt-badge--outline .rt-badge__sys {
  color: var(--dim);
}
.rt-badge__label {
  font-weight: 600;
  font-size: 16px;
}
.rt-badge__soon {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(242, 166, 59, 0.5);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* phone frames */
.rt-phone {
  background: var(--frame);
  border: 1px solid var(--line-4);
  border-radius: 44px;
  padding: 8px;
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.85);
}
.rt-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}
.rt-phone--hero {
  width: 296px;
}
.rt-phone--step {
  border-radius: 34px;
  padding: 7px;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.8);
}
.rt-phone--step img {
  border-radius: 28px;
}
.rt-phone--shot {
  border-radius: 30px;
  padding: 6px;
  box-shadow: none;
}
.rt-phone--shot img {
  border-radius: 25px;
}

/* ---------- Ticker strip ---------- */

.rt-ticker {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.rt-ticker__inner {
  max-width: 1208px;
  margin: 0 auto;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dim);
  text-align: center;
  letter-spacing: 0.02em;
}
.rt-ticker__inner b {
  color: var(--fg);
  font-weight: 400;
}
.rt-ticker__inner em {
  color: var(--accent);
  font-style: normal;
}

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

.rt-section {
  padding: 20px 0 92px;
}
.rt-section--first {
  padding-top: 92px;
}

/* how-it-works */
.rt-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rt-step {
  display: flex;
  flex-direction: column;
}
.rt-step__num {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.rt-step h3 {
  margin-top: 10px;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.rt-step p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* why-rtle feature cards */
.rt-features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rt-feature {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 24px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.rt-feature:hover {
  border-color: rgba(53, 200, 96, 0.35);
  background: var(--panel-hover);
}
.rt-feature__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.rt-feature h3 {
  margin-top: 14px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.rt-feature p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--muted);
}

/* dot-substitution */
.rt-dots {
  background: linear-gradient(180deg, #0f1618, #0c1214);
  border: 1px solid var(--line-3);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.rt-dots__title {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.02em;
}
.rt-dots__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 420px;
}
.rt-dots__note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}
.rt-dots__note b {
  color: var(--amber);
  font-weight: 400;
}
.rt-term {
  font-family: var(--font-mono);
  background: var(--term);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px 20px;
}
.rt-term__row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rt-term__row:last-child {
  border-bottom: 0;
}
.rt-term__io {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rt-term__in {
  color: var(--muted-2);
  font-size: 14px;
}
.rt-term__arrow {
  color: var(--accent);
}
.rt-term__out {
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
}
.rt-term__note {
  font-size: 11.5px;
  color: var(--faint);
}

/* screens */
.rt-shots {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.rt-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rt-shot .rt-phone {
  width: 100%;
}
.rt-shot figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
}

/* privacy cards */
.rt-priv {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.rt-priv__card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px 28px;
}
.rt-priv__card--stays {
  border-color: rgba(53, 200, 96, 0.22);
}
.rt-priv__card h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.rt-priv__card--stays h3 {
  color: var(--accent);
}
.rt-priv__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.rt-priv__row {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--muted);
}
.rt-priv__card--stays .rt-priv__row {
  color: var(--fg-check);
}
.rt-priv__row > span:first-child {
  color: var(--faint);
}
.rt-priv__card--stays .rt-priv__row > span:first-child {
  color: var(--accent);
}
.rt-priv__row em {
  font-style: italic;
  color: var(--fg);
}

/* who-it's-for */
.rt-sports {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rt-sport {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 24px;
  border-left: 3px solid var(--sport-color, var(--accent));
}
.rt-sport__code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sport-color, var(--accent));
}
.rt-sport p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* faq */
.rt-faq {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
.rt-faq__item {
  border-top: 1px solid var(--line-3);
  padding-top: 20px;
}
.rt-faq__item h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.rt-faq__item p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA banner */
.rt-cta-section {
  padding: 40px 0 100px;
}
.rt-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #123322, #0c1512);
  border: 1px solid rgba(53, 200, 96, 0.28);
  border-radius: 26px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.rt-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(53, 200, 96, 0.14), transparent 70%);
  pointer-events: none;
}
.rt-cta > * {
  position: relative;
}
.rt-cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
}
.rt-cta p {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft-2);
}
.rt-cta__badges {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.rt-cta .rt-badge {
  flex-direction: row;
  padding: 15px 30px;
}
.rt-cta .rt-badge__label {
  font-size: 16px;
}
.rt-cta .rt-badge--outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: #0f1517;
}

/* ---------- Doc pages (support & privacy policy) ---------- */

.rt-doc {
  max-width: 868px; /* 820 + 2×24 padding */
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.rt-doc__back {
  font-size: 14px;
  font-weight: 600;
}
.rt-doc .rt-kicker {
  margin: 14px 0 24px;
}
.rt-doc h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.rt-doc__lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--soft);
}
.rt-doc__meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted-2);
}
.rt-doc__meta strong {
  color: var(--fg);
  font-weight: 600;
}
.rt-toc {
  margin-top: 40px;
}
.rt-toc h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.rt-toc ol {
  margin: 16px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
  color: var(--soft-2);
}
.rt-toc a {
  color: var(--soft-2);
}
.rt-toc a:hover {
  color: var(--accent-2);
}
.rt-doc__card {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--soft);
}
.rt-doc__card strong {
  color: var(--fg);
  font-weight: 600;
}
.rt-doc section {
  margin-top: 48px;
}
.rt-doc section:first-of-type {
  margin-top: 52px;
}
.rt-doc section h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.rt-doc__num {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: 8px;
  font-weight: 500;
}
.rt-doc section h3 {
  margin-top: 24px;
  font-size: 19px;
}
.rt-doc section p {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
}
.rt-doc section h2 + p,
.rt-doc .rt-doc__strong {
  color: var(--soft);
}
.rt-doc section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-list);
}
.rt-doc section ul.rt-doc__muted-list {
  color: var(--muted);
}
.rt-doc code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--fg-list);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .rt-shots,
  .rt-sports {
    grid-template-columns: repeat(2, 1fr);
  }
  .rt-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .rt-hero {
    padding: 64px 0 56px;
  }
  .rt-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .rt-dots {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rt-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rt-faq {
    grid-template-columns: 1fr;
  }
  .rt-priv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rt-features,
  .rt-shots,
  .rt-sports {
    grid-template-columns: 1fr;
  }
  .rt-section {
    padding-bottom: 64px;
  }
  .rt-section--first {
    padding-top: 64px;
  }
  .rt-badge {
    width: 100%;
  }
  .rt-hero__badges {
    flex-direction: column;
    align-items: stretch;
  }
}
