/* ISKRA website visual system
   Mirrors the iOS app: dark layered surfaces, SF typography, gold accent,
   rounded cards, restrained stat colours and a cinematic spark hero. */

:root {
  color-scheme: dark;

  --bg: #0b0b16;
  --bg-deep: #050509;
  --surface: #15151f;
  --surface-strong: #1e1e2c;
  --surface-glass: rgba(21, 21, 31, 0.78);
  --border: #2a2a3a;
  --border-soft: rgba(255, 255, 255, 0.075);

  --text: #eceaf5;
  --text-secondary: #9a9aae;
  --text-tertiary: #6b6b80;

  --gold: #f0b84a;
  --gold-fill: #e9a82e;
  --gold-bright: #ffd978;
  --gold-deep: #96660f;
  --gold-tint: #2a1f08;
  --on-gold: #1a1408;

  --health: #1fb58a;
  --intelligence: #3b86e0;
  --wealth: #eaa021;
  --social: #dd6a98;
  --career: #e07a4e;
  --violet: #8b7be8;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --max: 73.75rem;
  --max-read: 51rem;
  --radius-card: 1.25rem;
  --radius-hero: 2rem;
  --radius-button: 0.8rem;
}

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

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

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(70rem 52rem at 86% -12%, rgba(240, 184, 74, 0.12), transparent 57%),
    radial-gradient(42rem 34rem at 6% 13%, rgba(139, 123, 232, 0.075), transparent 62%),
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 30rem, var(--bg) 100%);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

main {
  position: relative;
}

::selection {
  background: var(--gold-fill);
  color: var(--on-gold);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.read {
  max-width: var(--max-read);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.05em;
}

a {
  color: var(--text);
  text-decoration-color: rgba(240, 184, 74, 0.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  margin: 0 0 1.2rem;
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(240, 184, 74, 0.22);
  border-radius: 999px;
  background: rgba(42, 31, 8, 0.58);
  color: var(--gold-bright);
  font-family: var(--body);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.eyebrow::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0.8rem rgba(240, 184, 74, 0.88);
  content: "";
}

.lede {
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.fine {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 5, 9, 0.72);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  backdrop-filter: saturate(135%) blur(24px);
  -webkit-backdrop-filter: saturate(135%) blur(24px);
}

.masthead-in {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 218, 117, 0.18);
  border-radius: 22.5%;
  background: url("/assets/iskra-app-icon-v10.png") center / cover no-repeat;
  box-shadow:
    0 0 1.4rem rgba(255, 185, 43, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.07);
  content: "";
}

.brand span {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  margin-left: auto;
}

.nav a {
  padding: 0.52rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 590;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav a[aria-current="page"] {
  border-color: rgba(240, 184, 74, 0.2);
  background: var(--gold-tint);
  color: var(--gold-bright);
}

.langswitch {
  display: inline-flex;
  margin-left: 0.42rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  background: rgba(30, 30, 44, 0.68);
}

.langswitch button {
  min-width: 2.4rem;
  padding: 0.37rem 0.52rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.langswitch button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-fill));
  color: var(--on-gold);
  box-shadow: 0 0.25rem 0.8rem rgba(233, 168, 46, 0.22);
}

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.2rem) 0 clamp(4.2rem, 7vw, 6.8rem);
}

.hero::before {
  position: absolute;
  top: -20rem;
  right: -18rem;
  z-index: -2;
  width: 53rem;
  height: 53rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 74, 0.15), rgba(240, 184, 74, 0.035) 42%, transparent 70%);
  filter: blur(0.2rem);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 12rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.6rem);
}

.hero h1 em {
  display: block;
  padding-bottom: 0.08em;
  background: linear-gradient(108deg, var(--gold-bright), var(--gold-fill) 45%, #fff2ba 76%, var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
  text-shadow: 0 0 2.8rem rgba(240, 184, 74, 0.12);
}

.hero .lede {
  margin-top: 1.55rem;
}

.hero-visual {
  position: relative;
  min-height: 38rem;
  perspective: 80rem;
}

.spark-art {
  position: absolute;
  inset: 0 0 7.4rem;
  overflow: hidden;
  border: 1px solid rgba(240, 184, 74, 0.18);
  border-radius: var(--radius-hero);
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.02), rgba(5, 5, 9, 0.26)),
    url("/assets/iskra-gold-hero.webp") center / cover no-repeat;
  box-shadow:
    0 2.8rem 7rem rgba(0, 0, 0, 0.56),
    0 0 5rem rgba(233, 168, 46, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.12);
  transform: rotateY(-2deg) rotateX(1deg);
}

.spark-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 5, 9, 0.68) 100%),
    linear-gradient(90deg, rgba(5, 5, 9, 0.15), transparent 28%);
  content: "";
}

.spark-caption {
  position: absolute;
  top: 1.2rem;
  left: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.56rem;
  background: rgba(5, 5, 9, 0.38);
  color: rgba(255, 247, 219, 0.88);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(0.9rem);
}

.spark-caption::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--health);
  box-shadow: 0 0 0.7rem var(--health);
  content: "";
}

/* App-like character card */
.charcard {
  position: absolute;
  right: 1.15rem;
  bottom: 0;
  left: 1.15rem;
  z-index: 3;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(30, 30, 44, 0.92), rgba(11, 11, 22, 0.94)),
    rgba(21, 21, 31, 0.92);
  box-shadow:
    0 2.3rem 5.4rem rgba(0, 0, 0, 0.62),
    0 0 3.5rem rgba(240, 184, 74, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(1.6rem) saturate(130%);
  -webkit-backdrop-filter: blur(1.6rem) saturate(130%);
}

.charcard::before,
.charcard::after {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border-color: rgba(240, 184, 74, 0.82);
  content: "";
}

.charcard::before {
  top: 0.56rem;
  left: 0.56rem;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 0.32rem 0 0;
}

.charcard::after {
  right: 0.56rem;
  bottom: 0.56rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 0.32rem;
}

.charcard-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.charcard-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.charcard-lvl {
  color: var(--gold);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat {
  display: grid;
  grid-template-columns: 7.4rem minmax(4rem, 1fr) 2rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.stat-name {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.095em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-track {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

.stat-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0.85rem currentColor;
  transition: width 1.05s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.stat-val {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.charcard-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.chip {
  padding: 0.5rem 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0.58rem;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-tertiary);
  font-size: 0.61rem;
  font-weight: 670;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.chip b {
  color: var(--health);
  font-weight: 690;
}

/* Buttons */
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-fill));
  color: var(--on-gold);
  box-shadow:
    0 0.8rem 2rem rgba(233, 168, 46, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.52);
}

.btn-primary:hover {
  box-shadow:
    0 1rem 2.5rem rgba(233, 168, 46, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.58);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(21, 21, 31, 0.58);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  border-color: rgba(240, 184, 74, 0.34);
  background: var(--surface);
}

/* Home sections */
.section {
  position: relative;
  padding: clamp(4rem, 7vw, 6.4rem) 0;
}

.section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2 * var(--gut)), var(--max));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 74, 0.18) 25%, rgba(255, 255, 255, 0.075) 62%, transparent);
  content: "";
  transform: translateX(-50%);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 14.5rem;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    radial-gradient(22rem 15rem at 100% 0, rgba(240, 184, 74, 0.075), transparent 55%),
    linear-gradient(145deg, rgba(30, 30, 44, 0.82), rgba(21, 21, 31, 0.72));
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

.card:hover {
  border-color: rgba(240, 184, 74, 0.22);
  transform: translateY(-0.2rem);
}

.card::after {
  position: absolute;
  right: -2.4rem;
  bottom: -3.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(240, 184, 74, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 3rem rgba(240, 184, 74, 0.055);
  content: "";
}

.card h3 {
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.card p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.card-mark {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.56rem;
  border: 1px solid rgba(240, 184, 74, 0.16);
  border-radius: 0.55rem;
  background: rgba(42, 31, 8, 0.46);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.strip > div {
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.strip h3 {
  margin-bottom: 0.58rem;
  font-family: var(--body);
  font-size: 1.04rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.strip p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.strip .yes {
  color: var(--health);
}

.strip .no {
  color: var(--gold);
}

.section > .read {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    radial-gradient(24rem 17rem at 100% 0, rgba(240, 184, 74, 0.065), transparent 58%),
    var(--surface-glass);
}

.section > .read h2 {
  margin-bottom: 1rem;
}

.section > .read p:not(.eyebrow) {
  color: var(--text-secondary);
}

/* Legal, FAQ and support routes */
.legal {
  min-height: calc(100vh - 4.7rem);
  padding: clamp(3.4rem, 7vw, 6.2rem) 0 clamp(4rem, 8vw, 7rem);
}

.legal::before {
  position: absolute;
  top: -8rem;
  right: max(-15rem, calc((100vw - var(--max)) / 2 - 18rem));
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 184, 74, 0.12), transparent 64%);
  content: "";
}

.legal > .read {
  position: relative;
  padding: clamp(1.4rem, 4.6vw, 3rem);
  border: 1px solid var(--border-soft);
  border-radius: 1.6rem;
  background:
    radial-gradient(26rem 20rem at 105% -4%, rgba(240, 184, 74, 0.075), transparent 64%),
    linear-gradient(145deg, rgba(21, 21, 31, 0.86), rgba(11, 11, 22, 0.84));
  box-shadow:
    0 2.6rem 7rem rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

.legal > .read::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 22.5%;
  background: url("/assets/iskra-app-icon-v10.png") center / cover no-repeat;
  box-shadow: 0 0 2rem rgba(240, 184, 74, 0.12);
  content: "";
  opacity: 0.74;
}

.legal h1 {
  max-width: 13ch;
  padding-right: 3.6rem;
  font-size: clamp(2.65rem, 6vw, 4.65rem);
}

.legal .lede {
  margin-top: 1.2rem;
}

.legal h2 {
  margin: 2.65rem 0 0.9rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--border-soft);
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  letter-spacing: -0.022em;
}

.legal h2:first-of-type {
  border-top: 0;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.legal ul,
.legal ol:not(.steps) {
  padding-left: 1.3rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal li::marker {
  color: var(--gold);
}

.legal strong {
  color: var(--text);
  font-weight: 680;
}

.meta {
  display: grid;
  gap: 0.35rem;
  margin: 1.6rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 184, 74, 0.14);
  border-radius: 0.82rem;
  background: rgba(42, 31, 8, 0.33);
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

/* FAQ */
.faqgroup {
  margin-top: 1.1rem;
  margin-bottom: 1rem;
  padding: 0.35rem 1.25rem 0.2rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(30, 30, 44, 0.46);
}

.faqgroup > h2 {
  margin: 0;
  padding: 1.15rem 0 1rem;
  border-top: 0;
  color: var(--gold-bright);
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
}

details {
  border-top: 1px solid var(--border-soft);
}

summary {
  position: relative;
  padding: 1.05rem 2.5rem 1.05rem 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 640;
  list-style: none;
}

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

summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--gold);
  content: "+";
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
}

details[open] summary {
  color: var(--gold-bright);
}

details[open] summary::after {
  border-color: rgba(240, 184, 74, 0.24);
  background: var(--gold-tint);
  content: "−";
}

details > *:not(summary) {
  padding: 0 2.5rem 0.55rem 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

details p:last-child {
  margin-bottom: 0.9rem;
}

/* Support */
.contactgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contactgrid.is-single {
  grid-template-columns: minmax(0, 29rem);
}

.contact[hidden] {
  display: none;
}

.contact {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.55rem;
  border: 1px solid rgba(240, 184, 74, 0.14);
  border-radius: var(--radius-card);
  background:
    radial-gradient(18rem 12rem at 100% 0, rgba(240, 184, 74, 0.095), transparent 60%),
    var(--surface-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.contact h3 {
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.contact p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.contact .btn {
  align-self: flex-start;
  margin-top: auto;
}

.steps {
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 2.15rem;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0 0.45rem 2.9rem;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 0.18rem;
  left: 0;
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid rgba(240, 184, 74, 0.2);
  border-radius: 0.65rem;
  background: var(--gold-tint);
  color: var(--gold);
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 690;
}

/* Footer */
.foot {
  margin-top: 1rem;
  padding: 2.6rem 0 calc(3.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-soft);
  background: rgba(5, 5, 9, 0.34);
}

.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.foot small {
  color: var(--text-tertiary);
  font-size: 0.79rem;
}

.foot-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.foot a {
  padding: 0.38rem 0.55rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  text-decoration: none;
}

.foot a:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

/* Language fallback and switcher state */
[data-lang="ru"] {
  display: none;
}

.js [data-lang] {
  display: none;
}

.js [data-lang].is-on {
  display: block;
}

.js summary[data-lang].is-on {
  display: list-item;
}

.js span[data-lang].is-on,
.js a[data-lang].is-on {
  display: inline;
}

/* Responsive */
@media (max-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid > div:first-child {
    max-width: 48rem;
  }

  .hero-visual {
    width: min(100%, 42rem);
    min-height: 40rem;
    margin-inline: auto;
  }

  .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .masthead-in {
    min-height: auto;
    flex-wrap: wrap;
    padding-top: 0.72rem;
    padding-bottom: 0.65rem;
  }

  .brand {
    margin-right: auto;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: 0.08rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a,
  .langswitch {
    flex: 0 0 auto;
  }

  .nav a {
    padding: 0.5rem 0.62rem;
  }

  .langswitch {
    margin-left: auto;
  }

  .hero {
    padding-top: 3.75rem;
  }

  .cards,
  .cards.three,
  .strip,
  .contactgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .strip > div {
    min-height: 0;
  }

  .legal {
    padding-top: 2.5rem;
  }

  .legal > .read::after {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.82rem;
  }
}

@media (max-width: 34rem) {
  h1 {
    font-size: clamp(2.65rem, 13vw, 3.7rem);
  }

  .brand::before {
    width: 1.95rem;
    height: 1.95rem;
  }

  .hero-visual {
    min-height: 34rem;
  }

  .spark-art {
    bottom: 8.6rem;
  }

  .charcard {
    right: 0.55rem;
    left: 0.55rem;
    padding: 1.1rem;
  }

  .stat {
    grid-template-columns: 6.6rem minmax(3rem, 1fr) 1.8rem;
    gap: 0.48rem;
  }

  .stat-name {
    font-size: 0.59rem;
  }

  .charcard-foot {
    gap: 0.38rem;
  }

  .chip {
    padding: 0.45rem;
    font-size: 0.56rem;
  }

  .btnrow {
    display: grid;
  }

  .btnrow .btn {
    width: 100%;
  }

  .legal > .read {
    padding: 1.15rem;
    border-radius: 1.2rem;
  }

  .legal h1 {
    padding-right: 2.6rem;
  }

  .faqgroup {
    padding-right: 0.95rem;
    padding-left: 0.95rem;
  }

  details > *:not(summary) {
    padding-right: 0;
  }

  .foot-in {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Download CTA, pricing ---------- */

.price-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: .01em;
  color: rgba(233, 231, 240, .62);
}

/* Until an App Store link exists, the button says so instead of going nowhere. */
.btn[data-appstore][aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

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

.plan {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, .03);
}

.plan-premium {
  border-color: rgba(240, 184, 74, .45);
  background: rgba(240, 184, 74, .06);
}

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

.plan-price {
  margin: 2px 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #f0b84a;
}

/* Free card has no price line — pad it so both cards start their lists level. */
.plan:not(.plan-premium) h3 { margin-bottom: 18px; }

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

.plan li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .88;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0b84a;
}

.center { text-align: center; }
.center-row { justify-content: center; }
