/* /app — what the application actually does.
   Rides on style.css for the shell (nav, footer, pill, kicker, reveal) and only
   adds what a long content page needs. The promo page's display sizes are built
   for four words per screen; this page has paragraphs, so it sets its own. */

/* Both languages are in the markup, the way the legal pages do it, so neither
   depends on JavaScript matching a text node. English shows until legal.js
   stamps body[data-language] — that is the no-JS state too, not a blank page. */
/* `revert` rather than `block`: the same mechanism labels the header and footer
   with inline spans, and forcing `block` there would stack every nav label on
   its own line. Reverting hands each element back its natural display. */
.localized[lang="sk"] { display: none; }
body[data-language="sk"] .localized[lang="en"] { display: none; }
body[data-language="sk"] .localized[lang="sk"] { display: revert; }

.app-page h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: 1; margin: 0 0 28px; }
.app-page h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.02; margin: 0 0 26px; }
.app-page h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.app-page .lead { font-size: clamp(16px, 1.3vw, 19px); }

/* --- sections ------------------------------------------------------------ */
.app-hero,
.app-section,
.app-close {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
  padding: 96px 0;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 70px;
  align-items: center;
  padding-top: 170px;
}

.app-section + .app-section { border-top: 1px solid var(--line); }

.app-section.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
  gap: 70px;
  align-items: start;
}

/* The phone sits first in the source on .left so the copy keeps reading order
   in the DOM; only the visual columns swap. */
.app-section.split.left { grid-template-columns: minmax(300px, .58fr) minmax(0, 1fr); }
.app-section.split.left .split-copy { order: 2; }
.app-section.split.left .phone { order: 1; }

/* A grid item's automatic minimum size is its min-content width, and the widest
   thing in this column is a table with a min-width. Without this the column
   refuses to shrink below that table on a phone and the copy runs off the side
   — body{overflow-x:hidden} then clips it rather than scrolling, so the text is
   simply gone. The table scrolls inside .table-wrap instead. */
.split-copy,
.app-hero-copy { min-width: 0; }

.table-wrap { max-width: 100%; }

.split-copy > .lead { margin-bottom: 34px; }

.motto {
  margin: 30px 0 0;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: 21px;
  color: var(--soft);
}

.fineprint { margin: 14px 0 0; font-size: 12px; color: #7d7f76; }

/* --- phone --------------------------------------------------------------- */
.phone { margin: 0; position: sticky; top: 110px; }

.phone-shell {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(249, 228, 162, .18);
  border-radius: 46px;
  background: linear-gradient(160deg, rgba(249, 228, 162, .09), rgba(255, 255, 255, .02));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 70px rgba(215, 179, 90, .07);
}

.phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
  background: #0d0d0d;
}

.phone figcaption {
  margin-top: 18px;
  max-width: 330px;
  font-size: 11px;
  line-height: 1.6;
  color: #7d7f76;
}

/* --- rules --------------------------------------------------------------- */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.rule {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}

.rule > span { display: block; margin-bottom: 18px; font: 400 13px Georgia; color: var(--gold); }
.rule p { margin: 0; font-size: 14px; color: var(--muted); }

/* --- modes --------------------------------------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.mode {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .025);
}

.mode b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.mode p { margin: 10px 0 12px; font-size: 14px; color: var(--muted); }
.mode small { font-size: 11.5px; color: #6f7169; }

.mode.support { border-left-color: #00f5d4; }
.mode.balance { border-left-color: var(--gold); background: rgba(215, 179, 90, .06); }
.mode.discipline { border-left-color: #e64d59; }
.mode.locked { border-left-color: #3a3b36; opacity: .72; }

.mode .tag {
  position: absolute;
  right: 20px;
  top: 22px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(215, 179, 90, .16);
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 34px; }

.app-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.app-table th {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
}

.app-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted);
  vertical-align: top;
}

.app-table tr td:first-child { color: var(--ink); }
.app-table td b { color: var(--soft); font-weight: 500; }

/* --- notes, callouts, columns -------------------------------------------- */
.notes { list-style: none; margin: 0 0 30px; padding: 0; }

.notes li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.notes li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.notes b { color: var(--ink); font-weight: 500; }
.notes i { font-style: normal; color: #b9baaf; }

.callout {
  margin: 0 0 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(215, 179, 90, .05);
}

.callout b { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--soft); }
.callout p { margin: 0; font-size: 14px; color: var(--muted); }
.callout.warn { border-left-color: #e64d59; background: rgba(230, 77, 89, .05); }
.callout.warn b { color: #f0a0a6; }
.callout.teal { border-left-color: #00f5d4; background: rgba(0, 245, 212, .045); }
.callout.teal b { color: #8df3e2; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }

.two-col > div {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}

.two-col b {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.two-col.two-col ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.two-col li { padding: 4px 0; }
.two-col .maynot b { color: #e88d95; }

/* --- close --------------------------------------------------------------- */
.app-close { text-align: center; padding: 130px 0 40px; border-top: 1px solid var(--line); }
.app-close .kicker:before { display: none; }
.app-close .lead { margin: 0 auto; }
.close-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .app-hero,
  .app-section.split,
  .app-section.split.left { grid-template-columns: 1fr; gap: 46px; }
  .app-section.split.left .split-copy,
  .app-section.split.left .phone { order: initial; }
  .phone { position: static; max-width: 340px; }
  .rule-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .app-hero { padding-top: 140px; }
  .app-hero,
  .app-section,
  .app-close { padding-top: 70px; padding-bottom: 70px; }
}

@media (max-width: 560px) {
  .app-hero,
  .app-section,
  .app-close { width: min(calc(100% - 28px), var(--max)); }
  .phone { max-width: none; }
  .phone figcaption { max-width: none; }
  .app-table { min-width: 420px; }
}
