/* Yafa front page (en + fi), 21.10.2026. Light page, with the app's own navy world dropped in as bands:
   the demo, the coach and the closing. Mint only on navy; on the light page the accent is navy, apart from
   the wave under the headline's one word. Other pages still use styles.css. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --page: #eef2f6;
  --surface: #ffffff;
  --ink: #0c2340;
  --ink-2: rgba(12, 35, 64, 0.74);
  --ink-3: rgba(12, 35, 64, 0.64);   /* 4.67:1 on --page; 0.62 was 4.37 */
  --rule: rgba(12, 35, 64, 0.12);
  --mint: #0c2340;         /* accents on the light page are navy; mint lives on dark surfaces only */
  --mint-strong: #01142d;
  --band: #01142d;
  --app: #0c2340;
  --app-card: rgba(255, 255, 255, 0.08);
  --app-stroke: rgba(255, 255, 255, 0.16);
  --on-band: #ffffff;
  --on-band-2: rgba(255, 255, 255, 0.66);
  --band-mint: #64e6d8;
  --app-mint: #5cbdb9;

  --display: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-hero: clamp(2.6rem, 6.4vw, 4.6rem);
  --step-h2: clamp(1.9rem, 3.8vw, 2.9rem);
  --step-h3: 1.25rem;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--band);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
/* Mint on navy, navy on the light page: mint on #eef2f6 was 1.5:1, under the 3:1 a focus ring needs. */
header.site :focus-visible, .band :focus-visible, footer :focus-visible { outline-color: var(--band-mint); }

.wrap {
  width: 100%; max-width: 1140px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-h2); line-height: 1.1; }
h3 { font-size: var(--step-h3); line-height: 1.25; }
p { margin: 0; }
.eyebrow {
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36ch; }
.section-lede { color: var(--ink-2); max-width: 56ch; }
section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--band); color: var(--on-band);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.wordmark img { height: 34px; width: auto; }
.wordmark { display: inline-flex; align-items: stretch; gap: 13px; text-decoration: none; }
/* The address is yetanotherfitapp.com, so the name is spelled out beside the mark where there is room. Centred on
   the mark's lowercase "afa" (9-32px of its 34px, measured from the image), with a rule exactly that tall: on the
   baseline a 13px line sank to the foot of the 34px mark. */
.wordmark-name {
  position: relative; display: flex; align-items: center; padding: 9px 0 2px 14px; white-space: nowrap;
  font: 600 0.82rem/1 var(--body); letter-spacing: .02em; color: var(--on-band-2);
}
.wordmark-name::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 2px; width: 1px; background: rgba(255,255,255,.24); }
@media (max-width: 1100px) { .wordmark-name { display: none; } }
nav.site { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
nav.site a { color: var(--on-band-2); text-decoration: none; }
nav.site a:hover { color: var(--on-band); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--band-mint); color: var(--band);
  font: 700 0.98rem/1 var(--display); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: var(--band); background: #8ff0e5; transform: translateY(-1px); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; margin-left: auto;
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: transparent;
  color: var(--on-band); font-family: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(255, 255, 255, 0.6); }
.nav-toggle[hidden] { display: none !important; }
.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -5px; }
.nav-bars::after { top: 5px; }
.nav-open .nav-bars { background: transparent; }
.nav-open .nav-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-bars::after { transform: translateY(-5px) rotate(-45deg); }
/* Under 860px the links fold behind a Menu button (nav.js) and open as a list under the header.
   Without the script they wrap onto as many rows as they need, all of them visible. */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-inner .btn { margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  .header-inner nav.site {
    order: 3; width: 100%; margin: 0; padding: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 20px;
  }
  .header-inner nav.site a { margin: 0; }
  .has-toggle nav.site { display: none; }
  .has-toggle.nav-open nav.site {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .has-toggle.nav-open nav.site a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .has-toggle.nav-open nav.site a:last-child { border-bottom: none; }
}
@media (max-width: 420px) {
  /* Logo, Menu and Download share one row on the narrowest phones: the word goes, its name stays for screen readers. */
  .nav-toggle { font-size: 0; gap: 0; padding: 0 14px; }
  .header-inner .btn { padding-left: 16px; padding-right: 16px; }
}

/* ---------- store row ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge img { height: 54px; width: auto; }
/* Both store badges side by side on a 390 pt phone: 54 px tall they need 355 px and wrap. */
@media (max-width: 420px) { .badge img { height: 46px; } }
.badge-soon {
  display: inline-flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 18px;
  border: 1.5px dashed currentColor; border-radius: 12px; font: 700 0.95rem/1.1 var(--display); opacity: .78;
}
.badge-soon small { font: 500 0.75rem/1.2 var(--body); opacity: .85; }
.fine { font-size: 0.88rem; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -30% -10% auto 30%; height: 120%;
  background: radial-gradient(50% 50% at 60% 40%, rgba(45, 138, 158, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
/* The name as the hero's eyebrow, plain: no pill, no initials picked out. */
.hero h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 .bend { color: var(--mint); display: inline-block; position: relative; }
.hero h1 .bend svg { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.28em; overflow: visible; }
.hero h1 .bend path { stroke: var(--app-mint); stroke-width: 5; fill: none; stroke-linecap: round; }
.status { font-size: 0.95rem; color: var(--ink-2); }
.status strong { color: var(--ink); }

.hero-stage { position: relative; justify-self: center; width: min(360px, 100%); }
.phone {
  border-radius: 44px; padding: 10px; background: #0a1a30;
  box-shadow: 0 40px 80px -30px rgba(1, 20, 45, .55), 0 0 0 1px rgba(1, 20, 45, .2);
}
.phone img { border-radius: 34px; width: 100%; }
/* The top of a screen only: the frame runs off the bottom and fades into the page. */
.phone-top { border-radius: 44px 44px 0 0; padding-bottom: 0; -webkit-mask-image: linear-gradient(#000 94%, transparent); mask-image: linear-gradient(#000 94%, transparent); }
.phone-top img { border-radius: 34px 34px 0 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { width: min(300px, 78%); margin-top: 4px; }
}


/* ---------- "I want..." → a programme ---------- */
.wants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.want { display: grid; gap: 14px; align-content: start; min-width: 0; }
.q {
  justify-self: start; font: 700 1.08rem/1.35 var(--display); padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--surface); border: 1px solid var(--rule); max-width: 100%;
}
.prog {
  border-radius: 20px; background: var(--app); color: var(--on-band); padding: 16px 18px; display: grid; gap: 8px;
  margin-left: 22px; border: 1px solid var(--app-stroke);
}
.prog-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.prog strong { font: 700 1.08rem/1.2 var(--display); }
.prog-top span { font-size: 0.8rem; color: var(--on-band-2); white-space: nowrap; }
.prog .wk { font-size: 0.84rem; color: var(--on-band-2); }
.weeks { display: flex; gap: 3px; height: 6px; }
.weeks i { flex: 1; border-radius: 3px; background: var(--tint); }
.weeks i:last-child { opacity: .45; }
.more-link { margin-top: 22px; font-weight: 600; }
@media (max-width: 960px) { .wants { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .wants { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding: 0 max(20px, env(safe-area-inset-left, 0px)) 10px; scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
  .want { scroll-snap-align: start; }
  .wants { scrollbar-width: none; }
  .wants::-webkit-scrollbar { display: none; }
}
.wants-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.wants-nav[hidden] { display: none; }
.wants-step {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--surface);
  color: var(--ink); font: 700 1.5rem/1 var(--display); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.wants-step:hover:not(:disabled) { border-color: var(--ink-3); }
.wants-step:disabled { opacity: .35; cursor: default; }
.wants-dots { display: flex; gap: 6px; }
.wants-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .22; transition: opacity .2s ease, width .2s ease; }
.wants-dots i.on { opacity: .8; width: 18px; border-radius: 4px; }

/* ---------- demo band ---------- */
.band { background: var(--band); color: var(--on-band); }
.band .eyebrow { color: var(--band-mint); }
.band .section-lede { color: var(--on-band-2); }
.band .ticks li { color: var(--on-band-2); }
.band .ticks li strong { color: var(--on-band); }
.band .ticks li::before { border-color: var(--band-mint); }
.band .phone { background: #050d1a; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -30px #000; }
/* one programme, three days */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.day-card {
  border-radius: 22px; background: var(--app); border: 1px solid var(--app-stroke); padding: 22px 22px 20px;
  display: grid; gap: 8px; align-content: start; min-width: 0;
}
.day-label { font: 600 0.75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--band-mint); }
.day-said { font: 700 1.05rem/1.35 var(--display); color: var(--on-band); padding-bottom: 14px; border-bottom: 1px solid var(--app-stroke); margin-bottom: 6px; }
.day-card h3 { font-size: 1.2rem; }
.day-meta { font-size: 0.85rem; color: var(--on-band-2); }
.day-moves { font-size: 0.9rem; color: var(--on-band-2); line-height: 1.5; }
.day-why { font-size: 0.9rem; font-style: italic; color: var(--band-mint); margin-top: 4px; }
@media (max-width: 860px) { .days { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split .copy { display: grid; gap: 18px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); }
.ticks li strong { color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.media-first > :last-child { order: -1; } }

/* coach */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; max-width: 520px; justify-self: center; }
.duo .phone { border-radius: 36px; padding: 8px; }
.duo .phone img { border-radius: 28px; }
/* The watch in the phone's own case, so the two read as one device family, and at a
   watch's real size beside a phone (about two thirds of its width). The black ring is
   the display's own border; without it the corners cut into the screen. */
.duo { grid-template-columns: 1fr .7fr; }
.watch {
  position: relative; border-radius: 27% / 23%; padding: 7px; background: #050d1a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -24px #000;
}
.watch img { display: block; width: 100%; border-radius: 21% / 17%; border: 6px solid #000; background: #000; }
.watch::after { content: ""; position: absolute; right: -4px; top: 26%; width: 4px; height: 15%; border-radius: 0 3px 3px 0; background: #050d1a; box-shadow: 1px 0 0 rgba(255,255,255,.1); }

/* just today */
.plan-top { max-width: 330px; width: 100%; justify-self: center; -webkit-mask-image: linear-gradient(#000 93%, transparent); mask-image: linear-gradient(#000 93%, transparent); }
.change-line { color: var(--ink-2); padding-top: 18px; border-top: 1px solid var(--rule); max-width: 44ch; }
.change-line strong { color: var(--ink); }
.free .marquee { margin-block: 56px 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-block: 8px 44px; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font: 700 1rem/1 var(--display); padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--surface); border: 1px solid var(--rule); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
/* privacy + pricing */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--rule); padding-top: 24px; }
.promises div { display: grid; gap: 6px; align-content: start; }
.promises p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; gap: 20px; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pricing > * { min-width: 0; }
.plan { background: var(--surface); border-radius: 28px; border: 1px solid var(--rule); padding: 30px; display: grid; gap: 18px; box-shadow: 0 30px 60px -40px rgba(1,20,45,.45); }
.price-promises { grid-column: 1 / -1; display: grid; gap: 20px; margin-top: 16px; }
.price-fine { grid-column: 1 / -1; max-width: 80ch; }
.plan-price { font: 700 2.6rem/1 var(--display); }
.plan-price span { font: 500 1rem/1 var(--body); color: var(--ink-3); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-grid > * { min-width: 0; }
.faq-head { display: grid; gap: 14px; position: sticky; top: 90px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } .faq-head { position: static; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 700 1.05rem/1.4 var(--display); padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; }

/* closing + footer */
.closing { text-align: center; }
.closing .wrap { display: grid; gap: 22px; justify-items: center; }
.closing img.mark { height: 72px; width: auto; }
.closing-name { display: grid; gap: 10px; justify-items: center; margin-bottom: 8px; }
.closing-name p { font: 600 0.82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-band-2); }
.closing h2 { max-width: 18ch; }
.closing-sub { color: var(--on-band-2); font-size: 1.1rem; max-width: 36ch; margin-bottom: -10px; } /* the set-up, then the punchline */
.closing .badge-soon { color: var(--on-band); }
footer { background: var(--band); color: var(--on-band-2); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,.08); }
footer .wrap { padding-block: 32px; display: grid; gap: 12px; }
footer a { color: var(--on-band); }
/* The page-wide a:hover is navy, which vanishes on navy. On dark surfaces a link stays light. */
.band a:not(.btn):not(.badge), footer a, footer a:hover, .band a:not(.btn):not(.badge):hover { color: var(--on-band); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee ul { width: auto; flex-wrap: wrap; }
  .marquee ul li[aria-hidden] { display: none; }
  .marquee { mask-image: none; }
}

/* An example programme card links to that programme on /programmes (/ohjelmat). */
a.prog { text-decoration: none; color: var(--on-band); transition: transform .2s ease, box-shadow .2s ease; }
a.prog:hover { color: var(--on-band); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(1,20,45,.6); }

/* Skip link: the first thing a keyboard reaches, out of sight until then. */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--band-mint); color: var(--band); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); outline: 3px solid var(--band); outline-offset: 2px; }
main:focus { outline: none; }
