/* VFit: site styles */

:root {
  --ink: #101112;
  --white: #ffffff;
  --paper: #ffffff;
  --soft: #f3f4f4;
  --muted: #64676b;
  --faint: #a4a7ab;
  --line: #e5e7e8;
  --error: #c8372d;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 14px 34px -18px rgb(0 0 0 / .2);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --mono: var(--font);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: 19px; color: #3e4145; margin: 0; max-width: 32em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 12px;
  background: var(--bg); color: var(--fg); font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--ghost { --bg: var(--soft); --fg: var(--ink); }
.btn--ghost:hover { background: #e8eaea; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 30px; height: 30px; }
.logo .word { width: 52px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } .site-header .container { height: 68px; } }

/* Hero */
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 112px); }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ticks { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 600; color: #3e4145; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

.photo { margin: 0; justify-self: end; width: 100%; max-width: 400px; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-lg); background: var(--soft); }

/* Photo carousel */
.carousel { justify-self: end; width: 100%; max-width: 400px; }
.slides { user-select: none; -webkit-user-select: none; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); touch-action: pan-y; }
.slide { -webkit-user-drag: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 6s linear; }
.slide.is-active { opacity: 1; transform: scale(1); }
.dots { display: flex; gap: 6px; margin-top: 16px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #d3d5d7; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dots button[aria-current="true"] { width: 26px; background: var(--ink); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .carousel { justify-self: start; max-width: 360px; } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(80px, 10vw, 128px); }
.section--soft { background: var(--soft); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 44px; }
.head p { text-wrap: balance; margin: 0; max-width: 26em; color: var(--muted); }

/* Goal tiles + approach panel */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.goal {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 26px; text-align: left;
  background: #fff; border: 0; border-radius: var(--radius-lg); color: var(--ink); font: inherit; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.goal-title { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.goal-desc { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); transition: color .25s; }
.goal .go { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-top: 28px; }
.goal .go i { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; transition: background .25s, color .25s, transform .3s var(--ease); }
.goal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.goal[aria-pressed="true"] { background: var(--ink); color: #fff; }
.goal[aria-pressed="true"] .goal-desc { color: rgb(255 255 255 / .7); }
.goal[aria-pressed="true"] .go i { background: #fff; color: var(--ink); transform: rotate(180deg); }

.goal-panel { margin-top: 14px; background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.goal-detail h3 { font-size: 24px; margin-bottom: 20px; }
.goal-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.goal-points li { display: flex; gap: 12px; align-items: flex-start; color: #3e4145; }
.goal-points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.goal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.goal-actions .btn--ghost { --bg: var(--soft); }

@media (max-width: 960px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .goals { grid-template-columns: 1fr; } .goal { min-height: 0; } .goal-points { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about .photo { justify-self: start; max-width: 300px; }
.about-text h2 { margin-bottom: 28px; }
.about-text p { margin: 0 0 1.1em; font-size: 18px; color: #3e4145; max-width: 36em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.pillars p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .photo { max-width: 240px; } .pillars { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 40px; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.steps .when { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li::before { margin-bottom: 20px; } }

/* Closing band */
.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band .bg-mark { position: absolute; right: -60px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%); color: #fff; opacity: .06; pointer-events: none; }
.band p { margin: 14px 0 0; color: rgb(255 255 255 / .7); }
.band > * { position: relative; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* Fade in */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
