/* Voima website. Colours from the app's "Midnight & Royal Blue" palette (src/theme/tokens.ts). Mobile first. */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #eef2f9;
  --card: #ffffff;
  --ink: #0e1a33;
  --muted: #5a6782;
  --line: #d6ddea;
  --blue: #2f5bea;
  --blue-ink: #2449c9;
  --blue-soft: #dce5fd;
  --violet: #5b4bc4;
  --violet-soft: #e4e1f8;
  --gold: #c99227;
  --gold-bright: #f0be55;
  --gold-soft: #fbf1d9;
  --gold-ink: #7a5610;
  --good: #2e9e5b;
  --good-soft: #ddf2e5;
  --good-ink: #1d6b3d;
  --navy: #0e1a33;
  --deep: #1c2c70;
  --hero-1: #0e1a33;
  --hero-2: #1c2c70;
  --hero-3: #2f5bea;
  --shadow: 0 10px 30px rgba(14, 26, 51, 0.12);
  --radius: 20px;
  --head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1224;
    --card: #131d35;
    --ink: #e8eefb;
    --muted: #a3b0cc;
    --line: #24304d;
    --blue: #4a7dff;
    --blue-ink: #8eabff;
    --blue-soft: #1c2b55;
    --violet: #9d8cff;
    --violet-soft: #2a2550;
    --gold: #f0be55;
    --gold-soft: #3a2e14;
    --gold-ink: #f0be55;
    --good: #4cc27a;
    --good-soft: #173a2a;
    --good-ink: #7fe0a5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-ink);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) {
  .wrap {
    padding: 0 28px;
  }
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 10;
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.site-nav ul,
.langs {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a,
.langs a {
  display: inline-block;
  color: #dbe3f7;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.site-nav a:hover,
.langs a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-nav a[aria-current='page'] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold-bright);
  border-radius: 10px 10px 0 0;
}
.langs {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 2px;
}
.langs a {
  padding: 6px 9px;
  font-size: 0.85rem;
}
.langs a[aria-current='true'] {
  background: var(--gold-bright);
  color: var(--navy);
}
@media (max-width: 699px) {
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .site-nav ul {
    gap: 0;
  }
}

/* ---------- Store badges ---------- */
/* Apple's badge is used as supplied: 48 px tall (Apple's minimum is 40), with clear space of at least a quarter
   of its height (12 px) around it. The Google Play item is a plain label of the same height, not Google's badge. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 1.5em 0 0.8em;
}
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
}
.badge img {
  height: 48px;
  width: auto;
}
.soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px dashed currentColor;
  line-height: 1.15;
  opacity: 0.75;
}
.soon small {
  font-size: 0.7rem;
  font-weight: 600;
}
.soon strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.store-note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 14px;
}
.btn:hover {
  filter: brightness(1.08);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  vertical-align: 0.15em;
  white-space: nowrap;
}
.pill-free {
  background: var(--good-soft);
  color: var(--good-ink);
}
.pill-some {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.78rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 130%);
  color: #fff;
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}
.hero h1 {
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  margin-bottom: 0.3em;
}
.tagline {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 0.7em;
  color: #fff;
}
.tagline em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero .pitch {
  font-size: 1.15rem;
  color: #dbe3f7;
  max-width: 36em;
}
.hero .store-note {
  color: #c9d4ee;
}
.points {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.points li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.9rem;
}
.points li::before {
  content: '✓ ';
  color: var(--gold-bright);
  font-weight: 700;
}
.hero-media {
  justify-self: center;
  text-align: center;
}
.hero-media figcaption {
  font-size: 0.8rem;
  color: #b9c6e6;
  margin-top: 10px;
}
.video-wrap {
  position: relative;
}
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 26, 51, 0.75);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Phone frames ---------- */
.phone {
  width: min(280px, 72vw);
  border-radius: 38px;
  padding: 9px;
  background: #0b1020;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), var(--shadow);
}
.phone img,
.phone video {
  width: 100%;
  border-radius: 30px;
  background: #e8edf7;
}
.phone-sm {
  width: 210px;
}
.watch {
  width: 190px;
  border-radius: 46px;
  padding: 14px;
  background: #0b1020;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), var(--shadow);
}
.watch img {
  border-radius: 32px;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--card);
}
.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}
.eyebrow {
  font-family: var(--head);
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}

/* Features */
.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type {
  border-top: 0;
}
.feature .media {
  justify-self: center;
}
@media (min-width: 820px) {
  .feature {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    padding: 40px 0;
  }
  .feature.flip .text {
    order: 2;
  }
}
.feature h3 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
}
.feature .lead {
  font-size: 1.1rem;
  color: var(--muted);
}
.feature-tag {
  margin: 0 0 0.6em;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.55em;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f5bea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .card {
  background: var(--paper);
}
.card h3 {
  margin-bottom: 0.35em;
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* Pricing */
.plans {
  display: grid;
  gap: 18px;
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}
.plan-pro {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-price {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0.2em 0 0.1em;
}
.plan-alt {
  color: var(--muted);
  margin-bottom: 0.6em;
}
.trial {
  display: inline-block;
  background: var(--good-soft);
  color: var(--good-ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.9rem;
  margin-bottom: 1em;
}
.plan h3 {
  margin: 0;
}
.fine {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 60em;
}

/* Screenshot strip */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  margin: 0 -4px;
  list-style: none;
}
.shots li {
  scroll-snap-align: start;
  flex: 0 0 auto;
  text-align: center;
}
.shots figcaption {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.shots .phone {
  width: 200px;
  border-radius: 30px;
  padding: 7px;
}
.shots .phone img {
  border-radius: 24px;
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
}
.section-alt .faq details {
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '−';
}
.faq .answer {
  padding: 0 18px 16px;
}
.faq .answer p {
  margin: 0;
}
.faq h3 {
  margin-top: 1.4em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(140deg, var(--hero-1), var(--hero-2));
  color: #fff;
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
}
.cta-band .stores {
  justify-content: center;
}
.cta-band p {
  color: #dbe3f7;
}

/* Page head (inner pages) */
.page-head {
  background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 100%);
  color: #fff;
  padding: 40px 0 44px;
}
.page-head p {
  color: #dbe3f7;
  font-size: 1.15rem;
  max-width: 44em;
  margin: 0;
}
.page-head .eyebrow {
  color: var(--gold-bright);
}
.free-badge {
  display: inline-block;
  background: var(--gold-bright);
  color: var(--navy);
  font-family: var(--head);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
  margin-top: 18px;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 820px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
  min-height: 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.guides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 700px) {
  .guides {
    grid-template-columns: repeat(3, 1fr);
  }
}
.guides a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.guides a:hover {
  border-color: var(--blue);
}
.guides strong {
  color: var(--blue-ink);
}
.guides span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Legal text */
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}
.prose ul {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.35em;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--blue-soft);
}
.notice {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 1.5em;
}
.terms-list {
  list-style: none;
  padding: 0;
}
.terms-list li {
  margin-bottom: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d4ee;
  padding: 44px 0 28px;
  margin-top: 56px;
  font-size: 0.95rem;
}
.site-footer a {
  color: #fff;
}
.foot-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}
.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 0.7em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.4em;
}
.foot-brand {
  font-family: var(--head);
  font-weight: 800;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4em;
}
.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.foot-small {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #9fb0d4;
}
.foot-small p {
  margin: 0 0 0.4em;
}

/* 404 */
.nf {
  text-align: center;
  padding: 72px 0 24px;
}
.nf .big {
  font-family: var(--head);
  font-weight: 800;
  font-size: 5rem;
  color: var(--blue);
  line-height: 1;
}

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

/* Small helpers */
.mt {
  margin-top: 20px;
}
.narrow {
  max-width: 820px;
}
.h3 {
  font-size: 1.25rem;
}
.cta-band a:not(.store) {
  color: #fff;
}
figure {
  margin: 0;
}
.prose .terms-list {
  padding-left: 0;
}
[id] {
  scroll-margin-top: 90px;
}

/* Dark band (adverts) */
.section-dark {
  background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 100%);
  color: #fff;
}
.section-dark .section-head p,
.section-dark .fine {
  color: #c9d4ee;
}
.adverts {
  display: grid;
  gap: 28px;
  justify-items: center;
}
@media (min-width: 760px) {
  .adverts {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    gap: 48px;
  }
}
.advert {
  width: min(340px, 100%);
}
.advert video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #0b1020;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), var(--shadow);
}
.advert figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.advert figcaption strong {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.1rem;
}
.advert figcaption span {
  color: #c9d4ee;
  font-size: 0.95rem;
}

/* "Get Voima" download card */
.section-get {
  padding-top: 8px;
}
.get-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.get-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.get-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(14, 26, 51, 0.18);
}
.get-text .eyebrow {
  margin-bottom: 0.3em;
}
.get-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.25em;
}
.get-text p {
  color: var(--muted);
  margin-bottom: 18px;
}
.get-qr {
  flex: 0 0 auto;
  text-align: center;
}
.get-qr img {
  width: 148px;
  height: 148px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.get-qr figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 160px;
}
@media (max-width: 879px) {
  .get-qr {
    display: none;
  }
  .get-card {
    padding: 24px 20px;
  }
  .get-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* "How we work out your targets": the "your own numbers win" box and the sources list */
.own-box {
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 1.5em;
}
.own-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.own-box p:last-child {
  margin-bottom: 0;
}
.own-box .own-how {
  font-weight: 700;
}
.sources {
  padding-left: 1.3em;
}
.sources li {
  margin-bottom: 1em;
}
.sources li p {
  margin: 0 0 0.25em;
}
.sources a {
  overflow-wrap: anywhere;
}
