/* Vertex Fitness
   Clean white and light-grey surfaces, large centred headlines, soft rounded
   tiles. The blue comes from the logo ring. */

:root {
  --blue: #3049F9;
  --blue-deep: #2238D6;
  --blue-soft: #8C9AFF;      /* links on black */
  --ring: #E3E3E8;

  --white: #FFFFFF;
  --grey: #F5F5F7;           /* section and tile surface */
  --ink: #1D1D1F;
  --slate: #6E6E73;
  --line: #D2D2D7;
  --black: #000000;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(84px, 11vw, 150px);
  --radius: 28px;
  --header: 52px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }

h1 { font-size: clamp(2.75rem, 7.4vw, 5.5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; }
h3 { font-size: 1.3125rem; line-height: 1.19; letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Logo mark */

.mark { width: 22px; height: 22px; flex: none; }
.mark-track, .ring-track { stroke: var(--ring); }
.mark-arc, .ring-arc { stroke: var(--blue); }

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.0625rem; font-weight: 600; line-height: 1;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}

/* Buttons and links */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  background: var(--blue); color: var(--white);
  border: 0; border-radius: 980px;
  font: 400 1.0625rem/1 var(--font); letter-spacing: -0.011em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.button:hover { background: var(--blue-deep); }
.button-small { min-height: 32px; padding: 0 14px; font-size: .8125rem; }

.more-link {
  color: var(--blue); font-size: 1.0625rem; text-decoration: none;
}
.more-link::after { content: "\203A"; display: inline-block; margin-left: .3em; font-size: 1.15em; line-height: 1; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px 28px;
}

/* Header: slim, frosted */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, .1); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header); gap: 24px;
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.site-nav a:not(.button) {
  font-size: .8125rem; color: var(--ink); opacity: .82;
  text-decoration: none; transition: opacity .2s ease;
}
.site-nav a:not(.button):hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block; width: 18px; height: 1.5px; margin-inline: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle-bars { transform: translateY(-3.5px); }
.nav-toggle-bars::before { content: ""; transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(-90deg); }

/* Hero */

.hero { padding-top: clamp(56px, 8vw, 104px); text-align: center; overflow: hidden; }

.product-name { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--blue); }
.hero h1 { max-width: 12em; margin: 10px auto 0; }

.lead {
  max-width: 34em; margin: 22px auto 0;
  font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.38; letter-spacing: -0.015em;
  color: var(--slate);
}
.hero .actions { margin-top: 30px; }

.hero-figure {
  position: relative;
  display: grid; place-items: center;
  width: min(600px, 100% - var(--gutter) * 2);
  aspect-ratio: 1;   /* keeps room for the whole ring; grows if the phone is taller */
  margin: clamp(48px, 7vw, 80px) auto 0;
}
.hero-ring {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: auto; overflow: visible;
  transform: translateY(-50%);
}
.hero-ring .ring-arc { stroke-dasharray: 1; stroke-dashoffset: 0; }

.phone {
  position: relative;
  width: 46%; min-width: 216px;
  padding: 9px;
  background: #1D1D1F;
  border-radius: 46px;
  box-shadow: 0 0 0 1px #3A3A3D inset, 0 40px 70px -30px rgba(0, 0, 0, .45);
  text-align: left;
  container-type: inline-size;
}
.phone-screen {
  position: relative;
  padding: 15cqw 6cqw 7cqw;
  background: var(--grey);
  border-radius: 37px;
  font-size: max(4.3cqw, 10px);
  line-height: 1.3;
}
.phone-island {
  position: absolute; left: 50%; top: 4cqw;
  width: 30%; height: 7cqw; border-radius: 99px;
  background: #1D1D1F; transform: translateX(-50%);
}
.ph-small { font-size: .9em; color: var(--slate); }
.ph-title { margin-top: .1em; font-size: 1.55em; font-weight: 700; letter-spacing: -0.03em; }
.ph-card { margin-top: .9em; padding: 1em 1.1em; background: var(--white); border-radius: 1.3em; }
.ph-label { font-size: .85em; color: var(--slate); }
.ph-value { margin-top: .15em; font-weight: 600; letter-spacing: -0.02em; }
.ph-note { margin-top: .3em; font-size: .88em; color: var(--slate); }
.ph-dots { display: flex; gap: .45em; margin-top: .7em; }
.ph-dots i { flex: 1; height: .45em; border-radius: 99px; background: var(--blue); }
.ph-reply {
  margin-top: 1em; padding: .85em 1em; text-align: center;
  background: var(--blue); color: var(--white); border-radius: 99px; font-size: .92em;
}

.figure-caption { margin-top: 22px; font-size: .75rem; color: var(--slate); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.facts div { padding-inline: 20px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dd { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.facts dt { max-width: 13em; margin: 8px auto 0; font-size: .875rem; line-height: 1.35; color: var(--slate); }

/* Sections */

.section { padding-block: var(--section); }
.section-grey { background: var(--grey); }
.section-black { background: var(--black); color: #F5F5F7; }

.section-head { max-width: 800px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head p {
  max-width: 32em; margin: 18px auto 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); line-height: 1.4; letter-spacing: -0.015em;
  color: var(--slate);
}
.section-black .section-head p { color: #A1A1A6; }

/* Tiles */

.tile {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
}
.tile p { margin-top: 10px; color: var(--slate); max-width: 30em; }

/* What's included: bento grid */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile-programme { grid-column: span 4; flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 48px); }
.tile-programme .tile-copy { flex: 1 1 0; }
.tile-programme h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.tile-checkins, .tile-technique, .tile-progress, .tile-support { grid-column: span 2; }
.tile-nutrition {
  grid-column: span 6;
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 20px clamp(24px, 6vw, 80px);
}
.tile-nutrition .tile-copy { flex: 1 1 0; }
.tile-nutrition .tile-aside {
  flex: 1 1 0; margin: 0; padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: .875rem; line-height: 1.45;
}

.tile-checkins .tile-copy, .tile-technique .tile-copy,
.tile-progress .tile-copy, .tile-support .tile-copy { margin-top: auto; padding-top: 28px; }

/* Tile visuals */

.session {
  flex: 1 1 0; min-width: 0;
  padding: 20px 22px 12px;
  background: var(--grey); border-radius: 20px;
  font-size: .9375rem;
}
.session-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-weight: 600; color: var(--ink); max-width: none; }
.session-head span + span { font-weight: 400; font-size: .8125rem; color: var(--slate); }
.session ul { list-style: none; margin: 12px 0 0; padding: 0; }
.session li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.session li span + span { color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }

.week-rings svg { width: 112px; height: 112px; }

.video {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #2B2B30, #0E0E10);
  border-radius: 18px;
}
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}
.video-play::after {
  content: ""; position: absolute; left: 19px; top: 15px;
  border-left: 13px solid var(--ink);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.video-tag {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 11px; border-radius: 99px;
  background: var(--blue); color: var(--white);
  font-size: .75rem; font-weight: 500;
}

.bars { display: flex; align-items: flex-end; gap: 8px; height: 112px; }
.bars i { flex: 1; border-radius: 6px; background: var(--ring); }
.bars i:nth-child(1) { height: 34%; }
.bars i:nth-child(2) { height: 42%; }
.bars i:nth-child(3) { height: 40%; }
.bars i:nth-child(4) { height: 56%; }
.bars i:nth-child(5) { height: 66%; }
.bars i:nth-child(6) { height: 80%; }
.bars i:nth-child(7) { height: 100%; background: var(--blue); }

.chat { display: grid; gap: 8px; }
.chat .bubble {
  margin: 0; max-width: 88%; justify-self: start;
  padding: 10px 14px; border-radius: 18px;
  background: var(--grey); color: var(--ink);
  font-size: .875rem; line-height: 1.35;
}
.chat .bubble-me { justify-self: end; background: var(--blue); color: var(--white); }

/* A typical week */

.cycle span { color: #6E6E73; }
.cycle span:last-child { color: #F5F5F7; }

.loop {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #333336;
}
.loop li { position: relative; padding: 34px 28px 0 0; }
.loop li::before {
  content: ""; position: absolute; left: 0; top: -6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--black); border: 2px solid #6E6E73;
}
.loop li:last-child::before { background: var(--blue); border-color: var(--blue); }
.loop h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.loop p { margin-top: 10px; color: #A1A1A6; font-size: 1rem; }

/* How it works */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.steps li { padding: 24px 22px 28px; background: var(--grey); border-radius: 22px; }
.step-ring { width: 40px; height: 40px; margin-bottom: 40px; }
.step-ring .ring-track { stroke: #DCDCE2; }
.step-number { font-size: .8125rem; color: var(--slate); }
.steps h3 { margin-top: 4px; font-size: 1.125rem; }
.steps li p:last-child { margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--slate); }

/* Who it's for */

.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fit h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.fit-note { max-width: 40em; margin: 32px auto 0; text-align: center; font-size: .9375rem; color: var(--slate); }

/* Pricing */

.price-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(28px, 5vw, 64px);
  background: var(--grey); border-radius: clamp(28px, 3vw, 36px);
}
.price-main h3 { font-size: 1.3125rem; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.price-amount { font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.price-term { color: var(--slate); font-size: 1.0625rem; }
.price-note { margin: 22px 0 28px; max-width: 24em; color: var(--slate); }

.price-lists { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-content: start; }
.price-lists h4 { margin-bottom: 10px; }

.check-list, .cross-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .cross-list li {
  position: relative; padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  font-size: 1rem; line-height: 1.4;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m5.2 9.3 2.5 2.5 5.1-5.4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cross-list li { color: var(--slate); }
.cross-list li::before {
  content: ""; position: absolute; left: 3px; top: 22px;
  width: 12px; height: 2px; border-radius: 2px; background: #A1A1A6;
}
.fine { margin-top: 16px; font-size: .8125rem; line-height: 1.45; color: var(--slate); }

/* Coach */

.coach {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 96px); align-items: center;
}
.coach-photo {
  position: relative;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}
.coach-photo svg { position: absolute; inset: 0; width: 38%; margin: auto; }
.coach-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.coach-copy > p { margin-top: 18px; max-width: 32em; color: var(--slate); font-size: 1.1875rem; line-height: 1.42; }
.coach-copy .placeholder { color: #8E8E93; }
.coach-points { list-style: none; margin: 30px 0 0; padding: 0; max-width: 32em; }
.coach-points li { padding: 14px 0; border-top: 1px solid var(--line); }

/* Questions */

.faq-list { max-width: 820px; margin-inline: auto; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { padding: 0 48px 26px 4px; max-width: 40em; color: var(--slate); }

/* Consultation */

.consult-form {
  display: grid; gap: 20px;
  max-width: 720px; margin-inline: auto;
  padding: clamp(24px, 4.5vw, 48px);
  background: var(--white); border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px;
  background: var(--white); color: var(--ink);
  border: 1px solid #86868B; border-radius: 12px;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--blue); border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(48, 73, 249, .22);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-hint { font-size: .8125rem; color: var(--slate); }
.form-error { font-size: .9375rem; font-weight: 500; color: #B3261E; }

/* Footer */

.site-footer { background: var(--grey); padding-block: 28px 32px; font-size: .75rem; line-height: 1.5; color: var(--slate); }
.footnotes { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footnotes p { max-width: 80em; }

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.footer-nav h2 { margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--ink); }
.footer-nav a { display: block; padding: 4px 0; color: #424245; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; }
.footer-base .brand { font-size: .875rem; }
.footer-base .mark { width: 18px; height: 18px; }
.footer-base .mark-track { stroke: var(--line); }

/* One load moment: the ring fills, then the phone settles */

@media (prefers-reduced-motion: no-preference) {
  .hero-ring .ring-arc { animation: fill 1.6s cubic-bezier(.65, 0, .2, 1) .2s both; }
  .phone { animation: settle .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
}
@keyframes fill { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-ring { margin-bottom: 28px; }
  .price-card { grid-template-columns: minmax(0, 1fr); }
  .tile-programme { grid-column: span 6; }
  .tile-checkins, .tile-technique, .tile-progress, .tile-support { grid-column: span 3; }
  .tile-checkins { flex-direction: row; align-items: center; gap: 24px; grid-column: span 6; }
  .tile-checkins .tile-copy { margin: 0; padding: 0; }
  .tile-technique { grid-column: span 6; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 14px 0; font-size: 1.0625rem; opacity: 1; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 20px; min-height: 46px; font-size: 1.0625rem; }

  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .facts div:nth-child(odd) { border-left: 0; }

  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; border-top: 0; }
  .loop li { border-top: 1px solid #333336; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .coach { grid-template-columns: minmax(0, 1fr); }
  .coach-photo { max-width: 360px; }
}

@media (max-width: 640px) {
  .tile-programme, .tile-nutrition { flex-direction: column; align-items: stretch; }
  .tile-progress, .tile-support { grid-column: span 6; }
  .tile-nutrition .tile-aside { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .session { flex: none; }

  .phone { width: 64%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-lists, .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq-list details p { padding-right: 4px; }
}

@media (max-width: 460px) {
  .steps, .loop { grid-template-columns: minmax(0, 1fr); }
  .loop { row-gap: 36px; }
  .step-ring { margin-bottom: 20px; }
  .hero .actions .button, .price-main .button, .form-foot .button { width: 100%; }
}
