/* CoreFit home page (about.html, served at vinven.net/). Builds on site.css.
   Dark brand look by default, with a light variant for light-mode phones. */
.home {
  --ink: #0b0b0f;
  --ink-2: #13161a;
  --ink-3: #1b1f24;
  --line: #2a2f35;
  --on-ink: #f2f5f3;
  --on-ink-2: #a3aca7;
  --neon: #3ddc5c;
  --neon-soft: rgba(61, 220, 92, 0.14);
  --section: var(--background);
  --section-alt: var(--surface);
  background: var(--section);
}

.home .wrap {
  max-width: 1160px;
}

.home h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.home h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.home .lead {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.center {
  text-align: center;
  justify-content: center;
}

.home .button {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.home .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(61, 220, 92, 0.6);
}

.home .button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.home .button.ghost:hover {
  box-shadow: none;
  border-color: var(--accent);
}

/* Nav over the dark hero */
header.site.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header.site.home-nav .logo {
  color: var(--on-ink);
}

header.site.home-nav nav a {
  color: var(--on-ink-2);
}

header.site.home-nav nav a:hover {
  color: var(--on-ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(61, 220, 92, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(61, 220, 92, 0.1), transparent 60%), var(--ink);
  padding: 56px 0 72px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--neon);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--neon-soft);
  border: 1px solid rgba(61, 220, 92, 0.35);
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 4px 0 18px;
}

.hl {
  color: var(--neon);
  background: linear-gradient(90deg, #3ddc5c, #a3f7b5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: var(--on-ink-2);
}

.hero .button.ghost {
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--on-ink-2);
  font-size: 15px;
}

.hero-points li {
  margin: 0;
  padding-left: 22px;
  position: relative;
}

.hero-points li::before,
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2306200d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--neon);
}

/* Phone mockups */
.phone {
  margin: 0;
  position: relative;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2b3036, #0d0f12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background: #111;
}

.phone::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-phones {
  position: relative;
  height: 560px;
}

.hero-phones .phone {
  position: absolute;
  width: 250px;
}

.hero-phones .phone-front {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 40px 90px -20px rgba(61, 220, 92, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.hero-phones .phone-back {
  width: 210px;
  top: 70px;
  opacity: 0.9;
}

.hero-phones .left {
  left: 2%;
  transform: rotate(-8deg);
}

.hero-phones .right {
  right: 2%;
  transform: rotate(8deg);
}

/* Facts strip */
.facts {
  background: var(--ink-2);
  color: var(--on-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.facts-grid div {
  display: flex;
  flex-direction: column;
}

.facts-grid strong {
  font-size: 22px;
  color: var(--neon);
}

.facts-grid span {
  font-size: 14px;
  color: var(--on-ink-2);
}

/* Sections */
.section {
  padding: 88px 0;
  background: var(--section);
}

.section.alt {
  background: var(--section-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head .lead {
  color: var(--text-secondary);
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.role-card p {
  color: var(--text-secondary);
  margin: 0;
}

.role-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--neon-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.role-icon svg {
  width: 24px;
  height: 24px;
}

/* Feature rows */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-grid.reverse .feature-copy {
  order: 2;
}

.feature-copy .lead {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.ticks li::before {
  top: 0.35em;
  width: 16px;
  height: 16px;
}

.feature-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.feature-phones .offset {
  margin-top: 56px;
}

/* Web dashboard */
.browser {
  margin: 0 auto;
  max-width: 980px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.35);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-3);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar span:nth-child(2) {
  background: #febc2e;
}

.browser-bar span:nth-child(3) {
  background: #28c840;
}

.browser-bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--on-ink-2);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 8px;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* More features */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.mini-grid div {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.mini-grid p {
  color: var(--text-secondary);
  margin: 0;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.steps strong {
  font-size: 18px;
}

.steps span {
  color: var(--text-secondary);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto 16px;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(61, 220, 92, 0.22), transparent 70%), var(--ink);
  color: var(--on-ink);
  border-color: rgba(61, 220, 92, 0.5);
  box-shadow: 0 30px 70px -30px rgba(61, 220, 92, 0.45);
}

.price-card.featured .muted {
  color: var(--on-ink-2);
}

.price-card .price {
  font-size: 48px;
  margin: 12px 0 4px;
}

.price-card.featured .price small {
  color: var(--on-ink-2);
}

.price-card .ticks {
  margin: 16px 0 24px;
  flex: 1;
}

.price-card .button {
  text-align: center;
}

.badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--neon);
  color: #06200d;
}

.muted-badge {
  background: var(--selected, var(--border));
  color: var(--text);
}

/* FAQ */
.narrow {
  max-width: 760px;
}

.home details {
  background: var(--background);
  border-radius: 16px;
  padding: 16px 20px;
}

.home summary {
  font-size: 17px;
}

/* Final call to action */
.cta {
  text-align: center;
  color: var(--on-ink);
  padding: 88px 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(61, 220, 92, 0.25), transparent 70%), var(--ink);
}

.cta img {
  border-radius: 18px;
  margin-bottom: 16px;
}

.cta .lead {
  color: var(--on-ink-2);
  margin: 0 auto;
}

.cta .actions {
  margin-top: 28px;
}

.home footer.site {
  background: var(--section);
}

.home footer.site p + p {
  margin-top: 4px;
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid.reverse .feature-copy {
    order: 0;
  }

  .hero-phones {
    height: 520px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .roles,
  .mini-grid,
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 560px) {
  .home-nav nav a[href='#features'],
  .home-nav nav a[href='/support'] {
    display: none;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-phones {
    height: 400px;
  }

  .hero-phones .phone {
    width: 180px;
    border-radius: 28px;
    padding: 6px;
  }

  .hero-phones .phone img {
    border-radius: 23px;
  }

  .hero-phones .phone-back {
    width: 150px;
    top: 56px;
  }

  .hero-phones .left {
    left: -2%;
  }

  .hero-phones .right {
    right: -2%;
  }

  .section {
    padding: 60px 0;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .roles {
    gap: 12px;
  }

  .role-card {
    padding: 16px;
    border-radius: 16px;
  }

  .role-card p {
    font-size: 14px;
  }

  .feature-phones {
    gap: 12px;
  }

  .feature-phones .phone {
    border-radius: 24px;
    padding: 6px;
  }

  .feature-phones .phone img {
    border-radius: 19px;
  }

  .feature-phones .phone::before {
    top: 11px;
    width: 40px;
    height: 5px;
  }

  .feature-phones .offset {
    margin-top: 36px;
  }

  .price-card .price {
    font-size: 40px;
  }
}

/* Light-mode phones keep the dark hero, pricing card and closing band. */
@media (prefers-color-scheme: light) {
  .home .facts {
    background: var(--ink-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .button,
  .role-card {
    transition: none;
  }
}
