/* Home page. Colours come from the Yogesh Fitness logo: sky blue through violet to magenta. */
:root {
  --ink: #1b1035;
  --violet: #6d28d9;
  --violet-deep: #2e1065;
  --sky: #0ea5f0;
  --magenta: #d946ef;
  --mist: #f5f1fc;
  --line: #e2d9f3;
  --muted: #5b4d78;
  --display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }
a { color: var(--violet); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.h-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.h-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; color: var(--violet-deep); }
h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(23px, 3.2vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 500; }

/* Buttons */
.h-btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 14px 24px; border-radius: 12px; border: 2px solid transparent;
}
.h-btn-solid { background: var(--violet); color: #fff; }
.h-btn-solid:hover { background: #5b21b6; }
.h-btn-line { border-color: var(--violet); color: var(--violet); background: #fff; }
.h-btn-line:hover { background: var(--mist); }
.h-btn-white { background: #fff; color: var(--violet-deep); }
.h-btn-white:hover { background: var(--mist); }

/* Header: logo left, links in the middle, login at the top right */
.h-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.h-bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.h-brand { display: flex; align-items: center; }
.h-brand img { height: 46px; width: auto; display: block; }
.h-links { display: flex; gap: 26px; margin-left: auto; }
.h-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.h-links a:hover { color: var(--violet); }
.h-login { padding: 11px 20px; }

/* Hero: the headline, with the Y from the logo as the one large shape on the page */
.h-hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.h-hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 110px; align-items: center; min-height: 560px; }
.h-hero-text { padding: 56px 0; }
.h-lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.h-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-hero-media { position: relative; justify-self: end; width: 100%; max-width: 400px; margin: 48px 0; }
.h-photo { display: block; width: 100%; border-radius: 28px; position: relative; }
.h-mark { position: absolute; width: 46%; left: -22%; bottom: -7%; }

/* Sections */
.h-section { padding: 76px 0; }
.h-tint { background: var(--mist); }
.h-sub { color: var(--muted); margin: 10px 0 0; max-width: 36em; }

/* Programmes: two panels with different weight, because the two programmes are different things */
.h-programmes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.h-prog { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; }
.h-prog h3 { font-size: 22px; font-weight: 700; }
.h-prog-line { margin: 10px 0 18px; font-size: 18px; }
.h-prog ul { margin: 0 0 22px; padding-left: 20px; }
.h-prog li { margin-bottom: 8px; }
.h-price { font-family: var(--display); font-weight: 700; font-size: 24px; margin: auto 0 20px; }
.h-price span { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); }
.h-prog .h-btn { align-self: flex-start; }
.h-prog-open { border: 2px solid var(--line); background: #fff; }
.h-prog-open .h-prog-line { color: var(--muted); }
.h-prog-deep { background: linear-gradient(160deg, var(--violet-deep) 0%, #4c1d95 55%, #7e22ce 100%); color: #f3e8ff; }
.h-prog-deep h3, .h-prog-deep .h-price { color: #fff; }
.h-prog-deep li::marker { color: #d8b4fe; }
.h-prog-deep { position: relative; overflow: hidden; padding-right: 42%; }
.h-prog-photo { position: absolute; top: 0; right: 0; width: 38%; height: 100%; object-fit: cover; object-position: 70% 30%; }

/* How it works: a real sequence, so it is numbered */
.h-steps { list-style: none; counter-reset: step; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.h-steps li { counter-increment: step; border-top: 3px solid var(--violet); padding-top: 18px; }
.h-steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--violet); display: block; line-height: 1; margin-bottom: 12px; }
.h-steps p { margin: 8px 0 0; color: var(--muted); }

/* Free tools */
.h-tools { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.h-tools .h-btn { margin-top: 24px; }
.h-tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.h-tool-list a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.h-tool-list a:hover { color: var(--violet); border-bottom-color: var(--violet); }

/* Coach */
.h-coach { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.h-coach-photo { display: block; width: 100%; border-radius: 24px; }
.h-coach h2 { margin-bottom: 18px; }
.h-coach p { margin: 0 0 14px; max-width: 34em; }

/* Questions */
.h-narrow h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--violet-deep); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.h-footer { background: var(--violet-deep); color: #e9d5ff; padding: 48px 0 26px; font-size: 15px; }
.h-footer a { color: #fff; }
.h-footer strong { font-family: var(--display); font-weight: 500; color: #fff; font-size: 17px; }
.h-footer p { margin: 8px 0 0; }
.h-foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.h-foot-links { display: grid; grid-template-columns: auto auto; gap: 10px 34px; align-content: start; }
.h-foot-links a { text-decoration: none; font-weight: 600; }
.h-foot-links a:hover { text-decoration: underline; }
.h-footer .h-copy { margin: 34px auto 0; color: #c4b5fd; font-size: 14px; }

/* Policy and contact pages */
.h-doc { padding: 56px 0 76px; }
.h-doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.h-doc h2 { font-size: 19px; margin: 32px 0 8px; }
.h-doc p { margin: 0 0 14px; }
.h-doc-date { color: var(--muted); font-size: 15px; }

/* 21-day challenge page */
.c-hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; min-height: 0; }
.c-price { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--violet-deep); margin: 0 0 22px; }
.c-price span { font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--muted); }
.c-week { background: var(--mist); border-radius: 24px; padding: 28px; margin: 48px 0; }
.c-week h2 { font-size: 19px; }
.c-week ol { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; gap: 8px; }
.c-week li { display: flex; gap: 16px; align-items: center; background: var(--violet); color: #fff; font-weight: 700; border-radius: 12px; padding: 11px 16px; }
.c-week li span { font-weight: 500; font-size: 14px; width: 48px; opacity: .85; }
.c-week li.c-rest { background: #fff; color: var(--muted); border: 1px dashed #c9bde0; }
.c-week p { margin: 0; color: var(--muted); font-size: 15px; }
.c-inside { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.c-inside div { border-top: 1px solid var(--line); padding: 20px 0; }
.c-inside dt { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--violet-deep); }
.c-inside dd { margin: 6px 0 0; color: var(--muted); }
.c-for { margin: 0 0 20px; padding-left: 20px; }
.c-for li { margin-bottom: 8px; }
.c-small { font-size: 15px; color: var(--muted); }
.c-cta { background: linear-gradient(160deg, var(--violet-deep) 0%, #4c1d95 55%, #7e22ce 100%); color: #f3e8ff; padding: 72px 0; text-align: center; }
.c-cta h2 { color: #fff; }
.c-cta p { margin: 12px 0 26px; }

/* Join and pay page */
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.b-kicker { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.b-summary h1 { margin-bottom: 0; }
.b-summary .c-price { margin: 22px 0; }
.b-points { margin: 0; padding-left: 20px; color: var(--muted); }
.b-points li { margin-bottom: 8px; }
.b-panel { background: var(--mist); border-radius: 24px; padding: 30px; }
.b-panel h2 { margin: 0 0 8px; font-size: 20px; }
.b-panel label { display: block; font-weight: 600; font-size: 15px; margin-top: 16px; }
.b-panel input:not([type="checkbox"]) {
  width: 100%; margin-top: 6px; padding: 13px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #c9bde0; border-radius: 12px;
}
.b-panel input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.b-agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; margin-top: 20px !important; }
.b-agree input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.b-pay { display: block; width: 100%; margin-top: 22px; cursor: pointer; font-family: inherit; font-size: 17px; }
.b-pay:disabled { opacity: .6; cursor: default; }
.b-small { font-size: 15px; color: var(--muted); margin: 16px 0 0 !important; }
.b-error { color: #b91c1c; font-weight: 600; margin: 14px 0 0 !important; }
.b-error:empty { display: none; }

@media (max-width: 860px) {
  .b-grid { grid-template-columns: 1fr; gap: 28px; }
  .b-panel { padding: 22px; }
  .c-hero { grid-template-columns: 1fr; gap: 0; }
  .c-week { margin: 20px 0 48px; }
  .c-inside { grid-template-columns: 1fr; }
  .h-links { display: none; }
  .h-login { margin-left: auto; }
  .h-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .h-hero-text { padding: 40px 0 10px; }
  .h-hero-media { justify-self: center; max-width: 300px; margin: 24px 0 44px; }
  .h-mark { display: none; }
  .h-prog-deep { padding-right: 32px; padding-top: 0; }
  .h-prog-photo { position: static; width: calc(100% + 64px); max-width: none; height: 240px; margin: 0 -32px 26px; object-position: 70% 62%; }
  .h-coach-photo { max-width: 260px; }
  .h-section { padding: 54px 0; }
  .h-programmes, .h-steps, .h-tools, .h-coach, .h-foot-grid { grid-template-columns: 1fr; }
  .h-steps { gap: 24px; }
  .h-tools, .h-coach { gap: 22px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .h-brand img { height: 34px; }
  .h-login { padding: 10px 14px; font-size: 15px; }
  .h-actions .h-btn { width: 100%; }
  .h-prog { padding: 24px; }
  .h-prog-deep { padding-right: 24px; padding-top: 0; }
  .h-prog-photo { width: calc(100% + 48px); margin: 0 -24px 22px; }
  .h-tool-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Show/hide button inside password boxes */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-eye {
  position: absolute; right: 4px; top: 6px; bottom: 0; width: 44px;
  display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted);
}
.pw-eye:hover { color: var(--violet); }
