/* MyPT web. Tokens and components: see DESIGN.md (derived from the app's
   src/theme/tokens.ts and src/components/ui.tsx). Dark only. */

/* ---------- Fonts (self-hosted, OFL; licenses in fonts/) ---------- */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_500Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #090A0B;
  --surface: #191B1D;
  --raised: #24272A;
  --divider: #393D40;
  --border: #777E84;
  --text: #F6F7F2;
  --muted: #B2B8BB;
  --faint: #A0A7AC;
  --lime: #D4FF3A;
  --ink: #090A0B;
  --lime-soft: #283313;
  --tab-active: #333A25;
  --accent-line: #60684E;
  --orange: #FFA94D;
  --orange-soft: #3A2813;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-card: 28px;
  --r-hero: 30px;
  --r-sheet: 34px;
  --r-pill: 999px;

  --gutter: 16px;
  --maxw: 1120px;
  --section: 72px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; --section: 120px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (min-width: 900px) { html { scroll-padding-top: 92px; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.i { flex: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--lime); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }
main, .site-footer { overflow-x: clip; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type roles ---------- */
.eyebrow { font-weight: 800; font-size: 12px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.display, .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  padding-top: .08em; /* room for the dots on İ, Ö, Ü in tight caps */
}
.display { font-size: clamp(40px, 11vw, 76px); line-height: .95; }
.hero-title { font-size: clamp(44px, 14.2vw, 96px); line-height: .94; }
.l1, .l2 { display: block; }
.l2 { color: var(--lime); }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 54ch; margin-top: 18px; }

/* ---------- Wordmark, pills, buttons ---------- */
/* The MyPT logo: one word in the display face, "PT" in lime (the app icon, scripts/gen-wordmark.py). */
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 31px; line-height: 1; letter-spacing: -.2px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.wordmark span { color: var(--lime); }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--raised); font-size: 13px; font-weight: 700; white-space: nowrap; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 58, .14); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: var(--r-pill); border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .15s var(--ease), opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-raised { background: var(--raised); color: var(--text); font-weight: 700; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s; }
.chip:hover { background: var(--raised); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: rgba(9, 10, 11, .9); }
.header-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand soon" "nav nav"; align-items: center; gap: 8px 12px; padding-block: 10px 12px; }
.header-row .wordmark { grid-area: brand; }
.header-row .soon { grid-area: soon; justify-self: end; }
.site-nav { grid-area: nav; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 4px; border-radius: var(--r-pill); background: var(--surface); width: max-content; min-width: 100%; }
.site-nav li { flex: 1 1 auto; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--text); transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--raised); }
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(9, 10, 11, .78); box-shadow: 0 1px 0 rgba(57, 61, 64, .6); }
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav soon"; padding-block: 12px; gap: 24px; }
  .site-nav { margin: 0; padding: 0; justify-self: center; overflow: visible; }
  .site-nav ul { background: transparent; padding: 0; gap: 4px; min-width: 0; }
  .site-nav a { font-size: 14px; padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 20px 64px; }
.hero-grid { display: grid; gap: 40px; }
.hero-app { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.app-icon { width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--raised); }
.hero-title { margin-top: 10px; }
.hero-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.roles { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 600px) { .roles { grid-template-columns: 1fr 1fr; } }

.role-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: 8px; min-height: 204px; border-radius: var(--r-hero); overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; }
.role-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; transition: transform .7s var(--ease); }
.role-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,10,11,0) 18%, rgba(9,10,11,.15) 35%, rgba(9,10,11,.9) 72%, #090A0B 100%); }
.role-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0 0 19px 20px; }
.role-body .eyebrow { color: var(--lime); margin: 0; font-size: 11px; }
.role-sub { font-size: 13px; line-height: 19px; color: var(--muted); }
.role-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 38px; letter-spacing: -.4px; margin-top: 4px; }
.role-arrow { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 18px 19px 0; border-radius: 50%; background: var(--lime); color: var(--ink); transition: transform .25s var(--ease); }
.role-card:hover img { transform: scale(1.04); }
.role-card:hover .role-arrow { transform: translate(2px, -2px); }
.role-card:focus-visible { outline-offset: 4px; border-radius: var(--r-hero); }
@media (min-width: 600px) { .role-card { min-height: 240px; } }

/* ---------- Phone frame ---------- */
.phone { position: relative; width: min(280px, 74vw); margin: 0 auto; padding: 9px; background: #000; border-radius: 16% / 7.6%; box-shadow: 0 0 0 1.5px #2C2F32, 0 40px 80px -30px rgba(0, 0, 0, .9); }
.phone-screen { position: relative; overflow: hidden; border-radius: 13.7% / 6.3%; background: var(--bg); aspect-ratio: 900 / 1956; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
/* the dynamic island, at the screenshots' own island position */
.phone-screen::after { content: ""; position: absolute; left: 34.4%; top: 1.6%; width: 31.2%; height: 4.2%; border-radius: var(--r-pill); background: #000; }
.phone-hero { width: min(300px, 76vw); }
.phone-hero::before { content: ""; position: absolute; z-index: -1; inset: 8% -30% 8% -30%; background: radial-gradient(closest-side, rgba(212, 255, 58, .13), rgba(212, 255, 58, 0)); pointer-events: none; }
.hero-grid > .phone { isolation: isolate; }

@media (min-width: 900px) {
  .hero { padding-block: 56px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .hero-title { font-size: clamp(64px, 7vw, 96px); }
  .phone-hero { width: 320px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; }

/* ---------- Feature tabs (the app's tab bar) ---------- */
.feature-tabs { margin-top: 36px; }
.tabbar { position: sticky; top: 8px; z-index: 5; display: flex; gap: 2px; padding: 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 0 0 1px rgba(57, 61, 64, .7), 0 12px 32px -12px rgba(0, 0, 0, .9); }
.tabbar[hidden] { display: none; }
.tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 6px 2px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.1; transition: background .2s, color .2s; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { background: var(--raised); }
.tab[aria-selected="true"] { background: var(--tab-active); color: var(--lime); }
.tab:focus-visible { outline-offset: -3px; border-radius: var(--r-pill); }
@media (min-width: 900px) { .tabbar { position: static; max-width: 560px; } .tabbar-4 { max-width: 460px; } .tab { font-size: 12px; } }

.panel { display: grid; gap: 32px; padding-top: 36px; }
.panel + .panel { margin-top: 32px; border-top: 1px solid var(--divider); }
.tabs-on .panel + .panel { margin-top: 0; border-top: 0; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; border-radius: var(--r-card); }
.panel.enter { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.tabs-on .panel-tag { display: none; }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 8.4vw, 46px); line-height: 1.02; letter-spacing: -.4px; margin-top: 10px; }
.tabs-on .panel h3 { margin-top: 0; }
.panel-copy > p:not(.panel-tag):not(.legend) { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.feature-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.feature-list li { position: relative; padding: 16px 18px 16px 54px; border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.5; }
.feature-list li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F7F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature-list strong { color: var(--text); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.key-lime::before { background: var(--lime); }
.key-orange::before { background: var(--orange); }
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 72px; padding-top: 48px; }
  .panel-copy { padding-top: 40px; }
  .panel .phone { width: 300px; }
}

/* ---------- Widgets (HTML drawings of the real iOS widgets, src/features/widgets/ui) ---------- */
/* Sizes follow iOS points: a small widget is 170pt, so --s is one point. */
.wgroups { display: grid; gap: 48px; margin-top: 40px; }
.wgroup-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.4px; }
.hs {
  --gap: 14px;
  --w: min(160px, calc((100vw - 2 * var(--gutter) - 2 * 16px - var(--gap)) / 2));
  --s: calc(var(--w) / 170);
  display: grid; grid-template-columns: repeat(2, var(--w)); gap: var(--gap); justify-content: center;
  margin-top: 18px; padding: 16px; border-radius: var(--r-sheet);
  background: radial-gradient(120% 70% at 15% 0%, #2B3517 0%, rgba(43, 53, 23, 0) 62%), radial-gradient(110% 70% at 100% 100%, #1C2A2E 0%, rgba(28, 42, 46, 0) 60%), #131517;
}
.w {
  position: relative; display: flex; flex-direction: column; width: var(--w); height: var(--w); overflow: hidden;
  padding: calc(15 * var(--s)); border-radius: calc(22 * var(--s)); background: #090A0B;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .9);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-body); color: var(--text); line-height: 1.15;
  font-size: calc(12 * var(--s));
}
.w-m { grid-column: span 2; width: auto; }
.w p { margin: 0; }
.w-head { display: flex; align-items: center; gap: calc(7 * var(--s)); font-size: calc(14 * var(--s)); font-weight: 800; color: var(--text); white-space: nowrap; }
.w-head-muted { font-size: calc(12 * var(--s)); font-weight: 600; color: var(--muted); }
.w-tile { flex: none; display: grid; place-items: center; width: calc(22 * var(--s)); height: calc(22 * var(--s)); border-radius: calc(7 * var(--s)); background: var(--lime); color: var(--ink); }
.w-tile .i { width: calc(12 * var(--s)); height: calc(12 * var(--s)); stroke-width: 2.6; }
.w-tile-lg { width: calc(32 * var(--s)); height: calc(32 * var(--s)); border-radius: calc(9 * var(--s)); }
.w-tile-lg .i { width: calc(17 * var(--s)); height: calc(17 * var(--s)); }
.w-mark { flex: none; padding: calc(3 * var(--s)) calc(5 * var(--s)); border-radius: calc(6 * var(--s)); background: var(--lime); color: var(--ink); font-size: calc(10 * var(--s)); font-weight: 900; letter-spacing: -.02em; }
.w-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.w-big { margin-top: auto; font-size: calc(32 * var(--s)); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-big small { font-size: .62em; font-weight: 800; color: var(--muted); }
.w-sub { margin-top: calc(3 * var(--s)); color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-clock { margin-top: auto; font-size: calc(42 * var(--s)); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-name { margin-top: calc(4 * var(--s)); font-size: calc(16 * var(--s)); font-weight: 700; }
.w-day { margin-top: auto; font-size: calc(16 * var(--s)); font-weight: 700; }
.w-day + .w-clock { margin-top: 0; }
.w-live::before { content: ""; display: inline-block; width: calc(7 * var(--s)); height: calc(7 * var(--s)); margin-right: calc(5 * var(--s)); border-radius: 50%; background: var(--lime); vertical-align: .05em; }
.w-title { margin-top: auto; font-size: calc(19 * var(--s)); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-actions { display: flex; gap: calc(7 * var(--s)); margin-top: calc(10 * var(--s)); }
.w-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: calc(5 * var(--s)); height: calc(38 * var(--s)); border-radius: calc(12 * var(--s)); background: var(--raised); color: var(--text); font-size: calc(13 * var(--s)); font-weight: 700; white-space: nowrap; }
.w-btn-lime { background: var(--lime); color: var(--ink); }
.w-btn .i { width: calc(14 * var(--s)); height: calc(14 * var(--s)); }
.w-btn-wide { flex: none; width: 100%; margin-top: auto; height: calc(40 * var(--s)); font-size: calc(16 * var(--s)); }
.w-foot { margin-top: auto; color: var(--muted); font-size: calc(11 * var(--s)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: calc(7 * var(--s)) calc(10 * var(--s)); border-radius: calc(10 * var(--s)); background: #191B1D; }
.w-foot-rule { display: flex; align-items: center; gap: calc(6 * var(--s)); padding: calc(8 * var(--s)) 0 0; border-radius: 0; background: none; border-top: 1px solid var(--raised); }
.w-foot-rule .i { width: calc(12 * var(--s)); height: calc(12 * var(--s)); }
.w-today, .w-workout { flex: 1; min-height: 0; display: grid; grid-template-columns: 42fr 58fr; gap: calc(10 * var(--s)); }
.w-workout { grid-template-columns: 46fr 54fr; }
.w-today + .w-foot { margin-top: calc(8 * var(--s)); }
.w-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: calc(10 * var(--s)); border-radius: calc(14 * var(--s)); background: #191B1D; }
.w-sumrow { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: calc(4 * var(--s)); }
.w-sumrow .w-big { margin-top: 0; font-size: calc(26 * var(--s)); }
.w-ring { position: relative; flex: none; display: grid; place-items: center; width: calc(38 * var(--s)); height: calc(38 * var(--s)); border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 360deg), var(--raised) 0); }
.w-ring::before { content: ""; position: absolute; inset: calc(5 * var(--s)); border-radius: 50%; background: #191B1D; }
.w-ring b { position: relative; font-size: calc(10 * var(--s)); font-weight: 800; }
.w-rows { list-style: none; display: grid; gap: calc(5 * var(--s)); min-width: 0; align-content: start; }
.w-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(6 * var(--s)); min-height: calc(30 * var(--s)); padding: 0 calc(8 * var(--s)); border-radius: calc(10 * var(--s)); background: #191B1D; font-size: calc(11 * var(--s)); }
.w-rows li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.w-rows li span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rows li i { font-style: normal; font-size: calc(9 * var(--s)); padding: calc(2 * var(--s)) calc(6 * var(--s)); border-radius: 999px; background: var(--raised); color: var(--muted); }
.w-workout .w-rows li { grid-template-columns: minmax(0, 1fr); gap: 0; align-content: center; min-height: calc(40 * var(--s)); }
.w-workout .w-rows em { font-style: normal; color: var(--muted); font-size: calc(10 * var(--s)); }
.w-workout-main { display: flex; flex-direction: column; min-width: 0; }
.w-wtitle { display: flex; align-items: flex-start; gap: calc(8 * var(--s)); }
.w-wtitle > div { min-width: 0; }
.w-wtitle .w-sub { white-space: normal; }
.w-workout-main .w-title { margin-top: 0; font-size: calc(15 * var(--s)); line-height: 1.1; white-space: normal; }
.w-left { display: flex; align-items: center; gap: calc(6 * var(--s)); margin-top: calc(9 * var(--s)); }
.w-pill { flex: none; padding: calc(4 * var(--s)) calc(7 * var(--s)); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: calc(10 * var(--s)); font-weight: 800; }
.w-bars { flex: 1; display: flex; gap: calc(2.5 * var(--s)); }
.w-bars i { flex: 1; height: calc(10 * var(--s)); border-radius: 2px; background: var(--raised); }
.w-bars i:nth-child(-n+4) { background: var(--lime); }
.w-days { display: flex; justify-content: space-between; margin-top: calc(10 * var(--s)); }
.w-days span { display: grid; justify-items: center; gap: calc(3 * var(--s)); }
.w-days span::before { content: ""; grid-area: 1 / 1; width: calc(30 * var(--s)); height: calc(30 * var(--s)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--s)) var(--divider); }
.w-days span.on::before { background: var(--lime); box-shadow: none; }
.w-days .i { grid-area: 1 / 1; place-self: center; position: relative; color: var(--ink); width: calc(14 * var(--s)); height: calc(14 * var(--s)); }
.w-days small { font-size: calc(10 * var(--s)); font-weight: 700; color: var(--muted); }
.w-strip { display: flex; align-items: center; gap: calc(6 * var(--s)); margin-top: auto; padding: calc(6 * var(--s)) calc(9 * var(--s)); border-radius: calc(10 * var(--s)); background: #191B1D; font-size: calc(11 * var(--s)); font-weight: 700; white-space: nowrap; }
.w-strip .i { width: calc(11 * var(--s)); height: calc(11 * var(--s)); color: var(--lime); }
.wlist { list-style: none; display: grid; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.wlist strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.tap-tag { display: block; width: max-content; margin: 2px 0 6px; padding: 2px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--lime); font-size: 12px; font-weight: 700; }
.live { display: grid; gap: 28px; margin-top: 56px; padding: 26px 22px; border-radius: var(--r-sheet); background: var(--surface); }
.live h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 7.6vw, 40px); line-height: 1.02; letter-spacing: -.4px; }
.live .feature-list li { background: var(--bg); }
.live-cards { display: grid; gap: 12px; align-content: center; }
.la { padding: 16px 18px; border-radius: 24px; background: rgba(9, 10, 11, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-body); }
.la p { margin: 0; }
.la-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.la-top .w-mark { font-size: 10px; padding: 3px 5px; border-radius: 6px; }
.la-time { margin-top: 6px; font-size: 34px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.la-time small { font-size: 18px; font-weight: 600; color: var(--muted); }
.la-bar { display: block; height: 6px; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--lime) calc(var(--p) * 100%), var(--raised) 0); }
.la-rest { display: flex; align-items: center; gap: 16px; }
.la-ring { --s: 1.5px; }
.la-ring::before { background: #090A0B; }
.la-title { font-size: 19px; font-weight: 700; }
.la-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
#widgetlar > .wrap > .fine { margin-top: 24px; }
@media (min-width: 900px) {
  .wgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .hs { --w: 160px; justify-content: start; width: max-content; }
  .live { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding: 36px; align-items: center; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 12px; margin-top: 36px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; border-radius: var(--r-card); background: var(--surface); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: .9; color: var(--faint); letter-spacing: -.5px; }
.step h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.3px; }
.step p { color: var(--muted); font-size: 15px; }
.invite { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px 18px; border-radius: 18px; background: var(--raised); }
.invite-label { font-weight: 800; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.invite-code { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: 3px; }
.mini-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--faint) !important; }
.mini-steps .on { color: var(--lime); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .step { padding: 28px 26px 30px; } }

/* ---------- Privacy ---------- */
.promise-grid { list-style: none; display: grid; gap: 12px; margin-top: 36px; }
.promise { padding: 24px 22px; border-radius: var(--r-card); background: var(--surface); }
.promise:first-child { background: var(--lime-soft); }
.promise-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--raised); margin-bottom: 16px; }
.promise:first-child .promise-icon { background: var(--lime); color: var(--ink); }
.promise h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.3px; }
.promise p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.promise:first-child p { color: #D5DBC4; }
.promise a { color: var(--lime); font-weight: 700; text-underline-offset: 3px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (min-width: 600px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Plans ---------- */
.plans { list-style: none; display: grid; gap: 12px; margin-top: 36px; }
.plan { padding: 24px 22px 26px; border-radius: var(--r-card); background: var(--surface); }
.plan-name { font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.plan-big { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; margin-top: 12px; color: var(--muted); }
.plan-big .num { font-size: 64px; letter-spacing: -1px; color: var(--text); margin-right: 4px; }
.plan:first-child .plan-big .num { color: var(--lime); }
.plan > p:last-child { margin-top: 14px; color: var(--muted); font-size: 15px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 14px; }
.fine a { color: var(--lime); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 36px; max-width: 820px; }
.faq details { border-radius: 22px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 16px 14px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; line-height: 1.35; letter-spacing: -.2px; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised); transition: transform .25s var(--ease), background .2s, color .2s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--lime); color: var(--ink); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--lime); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .faq-wrap .faq { margin-top: 0; }
  .faq-wrap .section-head { position: sticky; top: 104px; }
}

/* ---------- Closing ---------- */
.closing { padding-block: 0 var(--section); }
.closing-inner { padding: 40px 24px; border-radius: var(--r-sheet); background: var(--surface); text-align: center; }
.closing .display { font-size: clamp(40px, 11vw, 88px); }
.closing .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--divider); padding-top: 48px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 36px; }
.foot-brand p { margin-top: 12px; max-width: 40ch; }
.no-cookies { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 600; }
.no-cookies svg { margin-top: 1px; color: var(--lime); }
.foot-h { font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot-links ul { list-style: none; display: grid; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--text); }
.foot-links a:hover { color: var(--lime); }
.foot-company p { line-height: 1.9; }
.foot-bottom { padding-block: 28px 36px; margin-top: 36px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--faint); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }

/* ---------- Placeholders (filled by site.js from window.MYPT_SITE) ---------- */
.ph { color: var(--orange); background: var(--orange-soft); border: 1px dashed rgba(255, 169, 77, .65); border-radius: 6px; padding: 0 .3em; font-weight: 700; font-size: .92em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ph-var { color: var(--text); font-weight: 700; border-bottom: 1.5px dotted var(--faint); }
.co a { color: inherit; }

/* ---------- Reveal on scroll (only after JS marks an element as pending) ---------- */
.reveal { transition: opacity .6s ease, transform .6s var(--ease); }
.js .reveal.pending { opacity: 0; transform: translateY(16px); }

/* ---------- Legal index (yasal.html) ---------- */
.yasal { padding-block: 32px var(--section); }
.yasal h1.display { font-size: clamp(44px, 13vw, 88px); }
.legal-group { margin-top: 44px; }
.group-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.4px; }
.doc-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.doc-card { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 16px 16px 16px 20px; border-radius: 22px; background: var(--surface); text-decoration: none; transition: background .15s; }
.doc-card:hover { background: var(--raised); }
.doc-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.doc-title { font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.doc-sum { color: var(--muted); font-size: 14px; line-height: 1.45; }
.doc-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); transition: background .15s, color .15s; }
.doc-card:hover .doc-arrow { background: var(--lime); color: var(--ink); }
@media (min-width: 900px) { .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.notfound { padding-block: 48px var(--section); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 12px var(--section); }
.legal-grid { display: grid; gap: 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -4px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }
.legal-head .eyebrow { margin: 12px 0 10px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 9.6vw, 60px); line-height: .98; letter-spacing: -.01em; padding-top: .06em; overflow-wrap: break-word; }
.updated { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.meta { margin: 18px 0 0; padding: 4px 18px; border-radius: 22px; background: var(--surface); font-size: 14px; }
.meta-row { display: grid; gap: 2px; padding: 12px 0; }
.meta-row + .meta-row { border-top: 1px solid var(--divider); }
.meta dt { color: var(--faint); font-weight: 600; font-size: 13px; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 480px) { .meta-row { grid-template-columns: 10.5rem minmax(0, 1fr); gap: 12px; } }

.toc details { border-radius: 22px; background: var(--surface); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 18px; cursor: pointer; list-style: none; font-weight: 700; border-radius: 22px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { transition: transform .2s var(--ease); }
.toc details[open] summary svg { transform: rotate(180deg); }
.toc ol { list-style: none; padding: 0 8px 12px; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 10px; border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--text); background: var(--raised); }
.toc a[aria-current="true"] { color: var(--lime); background: var(--tab-active); }

.prose { min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose > :first-child { margin-top: 8px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 7.4vw, 34px); line-height: 1.1; letter-spacing: -.4px; margin: 52px 0 16px; }
.prose h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.3px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin: 6px 0; padding-left: .15em; }
.prose li::marker { color: var(--faint); }
.prose li > ul { margin: 6px 0 0; }
.prose strong { font-weight: 700; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; background: var(--raised); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
.prose blockquote { margin: 0 0 18px; padding: 16px 18px; border-left: 3px solid var(--accent-line); border-radius: 0 18px 18px 0; background: var(--surface); }
.prose blockquote p:last-child { margin-bottom: 0; }
.clause { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: .2em; }
.callout { margin: 0 0 20px; padding: 18px 20px 4px; border-radius: 22px; background: var(--lime-soft); }
.callout p, .callout li { color: #E3E8D6; }
.callout ul { margin-bottom: 14px; }
.callout li::marker { color: var(--lime); }

.table-wrap {
  margin: 8px 0 24px;
  overflow-x: auto;
  border-radius: 18px;
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(25, 27, 29, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgba(25, 27, 29, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--raised); font-size: 13px; font-weight: 700; vertical-align: bottom; }
.prose tbody tr + tr > * { border-top: 1px solid var(--divider); }
.prose table.kv th[scope="row"] { width: 34%; color: var(--muted); font-weight: 600; }
.cols-3 { min-width: 34rem; }
.cols-4 { min-width: 42rem; }
.cols-5 { min-width: 50rem; }
.cols-6 { min-width: 60rem; }
.cols-8 { min-width: 78rem; }
.prose table.kv { min-width: 0; }
.prose td { min-width: 7rem; }

/* printable form */
.print-row { margin: 0 0 24px; }
.box { display: inline-block; width: 1em; height: 1em; margin: 0 .45em 0 0; border: 1.5px solid var(--border); border-radius: 4px; vertical-align: -.15em; }
.prose ul.checklist, .prose ul.alpha { list-style: none; padding-left: 0; }
.prose li.check { padding-left: 1.6em; text-indent: -1.6em; }
.fill { display: inline-block; min-width: 9em; height: 1.1em; border-bottom: 1.5px dotted var(--border); vertical-align: baseline; }
.fill-line { height: 2.4em; border-bottom: 1.5px dotted var(--border); margin-bottom: 8px !important; }
.form-table td.blank { height: 48px; min-width: 12rem; border-bottom: 1.5px dotted var(--border); }
@media (max-width: 599px) {
  .prose table.form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: auto !important; }
  .form-table th[scope="row"] { padding-bottom: 0; }
  .form-table td.blank { min-width: 0; height: 40px; margin: 0 14px 12px; padding: 0; }
  .prose .form-table tbody tr + tr > * { border-top: 0; }
  .prose .form-table tbody tr + tr { border-top: 1px solid var(--divider); }
}
.scroll-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--faint); }
.scroll-hint::after { content: "\2192"; }
@media (min-width: 760px) { .cols-hint-3, .cols-hint-4 { display: none; } }

@media (min-width: 1100px) {
  .legal { padding-top: 32px; }
  .legal-grid { grid-template-columns: 240px minmax(0, 720px); column-gap: 64px; row-gap: 12px; justify-content: center; align-items: start; }
  .legal-head, .prose { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
  .toc details { background: transparent; }
  .toc summary { padding-inline: 10px; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; min-height: 44px; }
  .toc ol { padding: 0 0 12px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
  .role-card:hover img { transform: none; }
}

/* ---------- Print (legal texts and the application form) ---------- */
@media print {
  :root { --text: #000; --muted: #222; --faint: #444; --surface: #fff; --raised: #f1f1f1; --divider: #bbb; --border: #444; --lime: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .skip, .site-nav, .soon, .toc, .site-footer, .back, .print-row, .tabbar { display: none !important; }
  .site-header { position: static; background: #fff; box-shadow: none; }
  .wordmark span { color: #000; }
  .js .reveal.pending { opacity: 1; transform: none; }
  .legal-grid { display: block; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose a { color: #000; text-decoration: none; }
  .prose h2 { break-after: avoid; margin-top: 24pt; }
  .table-wrap { overflow: visible; background: none; border: 1px solid #999; border-radius: 0; }
  .prose table { min-width: 0 !important; }
  .prose thead th { background: #eee; }
  .meta, .callout, .prose blockquote { background: #fff; border: 1px solid #999; }
  .ph { color: #000; background: #fff; border-color: #000; }
  .box { border-color: #000; }
  .fill, .fill-line { border-color: #000; }
}
