/* Landing page — product sections and plan comparison. Uses the shared theme
   tokens so it matches the site palette in both light and dark. */
.home-band {
  width: min(1000px, 100%);
  max-width: 100%;
  margin: 88px auto 0;
  min-width: 0;
}
.home-band h2 {
  margin: 0 auto 28px;
  max-width: 16em;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--heading);
}
.home-work-grid,
.home-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-frame {
  --home-wash: rgba(3, 22, 22, 0.18);
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}
html[data-theme="light"] .home-frame {
  --home-wash: rgba(3, 22, 22, 0.1);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .home-frame {
    --home-wash: rgba(3, 22, 22, 0.1);
  }
}
.home-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to top, var(--surface) 0%, color-mix(in srgb, var(--surface) 28%, transparent) 22%, transparent 48%),
    linear-gradient(var(--home-wash), var(--home-wash));
}
.home-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
.home-work-grid article,
.home-fit-grid article,
.home-private-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.home-work-grid article,
.home-fit-grid article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.home-work-grid {
  padding: 12px 6px 16px;
  margin: -12px -6px -16px;
}
.home-work-grid article {
  position: relative;
  z-index: 0;
  transform: scale(1) translateY(0);
  transform-origin: center center;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-work-grid article:focus {
  outline: none;
}
.home-work-grid article:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}
.home-work-grid article:focus,
.home-work-grid article:focus-within,
.home-work-grid article:active {
  z-index: 2;
  border-color: color-mix(in srgb, var(--ok) 42%, var(--line));
  box-shadow:
    0 22px 48px -26px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--ok) 16%, transparent);
  transform: scale(1.045) translateY(-6px);
}
.home-work-grid article:active {
  z-index: 3;
  transform: scale(1.02) translateY(-3px);
}
@media (hover: hover) {
  .home-work-grid article:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--ok) 42%, var(--line));
    box-shadow:
      0 22px 48px -26px rgba(0, 0, 0, 0.55),
      0 0 0 1px color-mix(in srgb, var(--ok) 16%, transparent);
    transform: scale(1.045) translateY(-6px);
  }
  .home-work-grid article:hover:active {
    z-index: 3;
    transform: scale(1.02) translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-work-grid article,
  .home-work-grid article:focus,
  .home-work-grid article:focus-within,
  .home-work-grid article:active,
  .home-work-grid article:hover {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transform: none;
  }
}
.home-trust {
  width: min(1000px, 100%);
  max-width: 100%;
  align-self: center;
  min-width: 0;
  margin-top: 72px;
  margin-inline: auto;
}
.home-trust-label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-trust-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.home-trust-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: home-trust-x 48s linear infinite;
  will-change: transform;
}
@keyframes home-trust-x {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (hover: hover) and (pointer: fine) {
  .home-trust-track:hover { animation-play-state: paused; }
}
@media (hover: none), (pointer: coarse) {
  .home-trust-track.is-paused { animation-play-state: paused; }
  .home-trust-viewport { cursor: pointer; }
}
.home-trust-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  height: 56px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
  user-select: none;
}
.home-trust-item img {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  opacity: 0.78;
  filter: brightness(0) invert(1);
  pointer-events: none;
  transition: opacity 0.28s ease, filter 0.28s ease;
}
.home-trust-item span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .home-trust-item img { filter: brightness(0); }
}
html[data-theme="light"] .home-trust-item img { filter: brightness(0); }
.home-trust-item:focus {
  outline: none;
}
.home-trust-item:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}
.home-trust-item:focus-visible,
.home-trust-item:active {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  transform: translateY(-2px);
}
.home-trust-item:focus-visible img,
.home-trust-item:active img {
  opacity: 1;
}
.home-trust-item:active { transform: scale(0.98); }
@media (hover: hover) {
  .home-trust-item:hover {
    color: var(--heading);
    border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
    box-shadow:
      0 10px 28px -12px rgba(0, 0, 0, 0.45),
      0 0 0 1px color-mix(in srgb, var(--ok) 14%, transparent);
    transform: translateY(-2px);
  }
  .home-trust-item:hover img { opacity: 1; }
  .home-trust-item:hover:active { transform: scale(0.98); }
}
.home-trust-legal {
  max-width: 36rem;
  margin: 14px auto 0;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .home-trust-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    will-change: auto;
  }
  .home-trust-viewport {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home-trust-item[aria-hidden="true"] { display: none; }
  .home-trust-item,
  .home-trust-item:hover,
  .home-trust-item:active,
  .home-work-grid article:hover,
  .home-work-grid article:active,
  .home-plan,
  .home-plan:hover,
  .home-plan:active,
  .home-plan:focus,
  .home-plan:focus-within {
    transform: none;
  }
}
.home-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 16px 18px 18px;
}
.home-work-grid h3,
.home-fit-grid h3,
.home-private-steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.home-work-grid p,
.home-fit-grid p,
.home-private-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.home-work-grid code {
  font-size: 0.92em;
}
.home-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 0.35em;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: baseline;
}
.home-more svg { display: block; flex: none; }
.home-more:hover { text-decoration: underline; }
.home-plans-jump {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.home-plans-jump svg {
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}
.home-plans-jump:hover,
.home-plans-jump:focus-visible {
  color: var(--heading);
  text-decoration: none;
}
.home-plans-jump:hover svg,
.home-plans-jump:focus-visible svg {
  color: var(--heading);
  transform: translateY(3px);
}
@media (prefers-reduced-motion: reduce) {
  .home-plans-jump svg { transition: none; }
}
.home-private-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}
.home-private-layout > .home-frame {
  height: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.home-private-layout > .home-frame::after {
  background-image: linear-gradient(var(--home-wash), var(--home-wash));
}
.home-private-layout > .home-frame .home-shot {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
}
.home-private-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.home-private-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  background: transparent;
  transition: background-color 140ms ease;
}
.home-private-steps li:hover,
.home-private-steps li:focus-within {
  background: color-mix(in srgb, var(--heading) 7%, var(--surface));
}
@media (prefers-reduced-motion: reduce) {
  .home-private-steps li { transition: none; }
}
.home-private-steps li + li {
  border-top: 1px solid var(--line);
}
.home-private-steps li > span {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg);
  color: var(--heading);
  font-size: 13px;
  font-weight: 650;
}
.home-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-fit-grid p { margin-bottom: 16px; }
.home-fit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.home-fit-cta:hover { border-color: var(--accent); }
.home-fit-cta.is-primary {
  border-color: transparent;
  color: var(--on-accent, #fff);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.home-fit-cta.is-primary:hover { filter: brightness(1.05); }
.home-band-foot { margin: 22px 0 0; text-align: center; }
.home-pricing {
  width: min(1000px, 100%);
  max-width: 100%;
  align-self: center;
  min-width: 0;
  margin-top: 88px;
  margin-bottom: 0;
  margin-inline: auto;
  padding: 0 0 8px;
}
.home-pricing-head { text-align: center; margin-bottom: 28px; }
.home-pricing-head h2 {
  margin: 0 0 10px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.15;
}
.home-pricing-sub { margin: 0 auto; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--muted); }

.home-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  align-items: stretch;
  margin: -20px 0 0;
  padding: 36px 14px 18px;
}
.home-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  z-index: 0;
  transform: scale(1) translateY(0);
  transform-origin: center center;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-plan:focus { outline: none; }
.home-plan:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}
.home-plan:focus,
.home-plan:focus-within,
.home-plan:active {
  z-index: 2;
  border-color: color-mix(in srgb, var(--ok) 42%, var(--line));
  box-shadow:
    0 22px 48px -26px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--ok) 16%, transparent);
  transform: scale(1.045) translateY(-6px);
}
.home-plan:active { z-index: 3; transform: scale(1.02) translateY(-3px); }
.home-plan.is-premium:focus,
.home-plan.is-premium:focus-within,
.home-plan.is-premium:active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 22px 48px -18px color-mix(in srgb, var(--accent) 36%, transparent);
}
@media (hover: hover) {
  .home-plan:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--ok) 42%, var(--line));
    box-shadow:
      0 22px 48px -26px rgba(0, 0, 0, 0.55),
      0 0 0 1px color-mix(in srgb, var(--ok) 16%, transparent);
    transform: scale(1.045) translateY(-6px);
  }
  .home-plan:hover:active { z-index: 3; transform: scale(1.02) translateY(-3px); }
  .home-plan.is-premium:hover,
  .home-plan.is-premium:hover:active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 22px 48px -18px color-mix(in srgb, var(--accent) 36%, transparent);
  }
  .home-plan.is-premium:hover:active { transform: scale(1.02) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-plan,
  .home-plan:focus,
  .home-plan:focus-within,
  .home-plan:active,
  .home-plan:hover {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transform: none;
  }
}
.home-plan.is-premium {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 48px color-mix(in srgb, var(--accent) 22%, transparent);
}
.home-plan.is-business {
  border-color: color-mix(in srgb, var(--heading) 22%, var(--line));
}
.home-plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background-color: var(--accent); background-image: var(--accent-grad); color: #fff; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.home-plan h3 { margin: 0 0 6px; font-size: 22px; color: var(--heading); }
.home-plan-tagline { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.home-plan-price { margin: 0; display: flex; align-items: center; gap: 8px; }
.home-plan-amount { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--heading); }
.home-plan-per { color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.15; white-space: nowrap; }
.home-plan-note { margin: 0; min-height: 1.15em; font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--ok); white-space: nowrap; }
.home-plan-cta {
  display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid var(--line); color: inherit;
}
.home-plan-cta:hover { border-color: var(--accent); }
.home-plan-cta.is-primary {
  background-color: var(--accent);
  background-image: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.home-plan-cta.is-primary:hover { filter: brightness(1.05); }
.home-plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.home-plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.home-plan-features svg { color: var(--ok); flex: none; margin-top: 1px; width: 16px; height: 16px; }

.home-plan-features a { color: var(--accent); font-weight: 650; }

.home-pricing-foot { text-align: center; margin: 28px 0 0; }
.home-pricing-foot a { color: var(--accent); font-weight: 500; text-decoration: none; font-size: 15px; }
.home-pricing-foot a:hover { text-decoration: underline; }
.home-business {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}
.home-business h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--heading); }
.home-business p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.home-business p a {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-business > a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 640px) {
  .home-business { flex-direction: column; align-items: stretch; }
}

.home-compare { margin: 36px 0 0; }
.home-compare h3 { margin: 0 0 8px; text-align: center; font-size: 22px; font-weight: 500; letter-spacing: -.015em; color: var(--heading); }
.home-compare-sub { margin: 0 auto 18px; text-align: center; max-width: 640px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.home-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .06);
}
.home-compare-table { width: 100%; border-collapse: collapse; min-width: 480px; table-layout: fixed; }
.home-compare-table th, .home-compare-table td {
  padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line);
}
.home-compare-table thead th {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.home-compare-table thead th:nth-child(n+2),
.home-compare-table td { text-align: center; width: 18%; }
.home-compare-table tbody th { font-weight: 600; }
.home-compare-table tbody tr:last-child th,
.home-compare-table tbody tr:last-child td { border-bottom: 0; }
.home-compare-yes {
  display: inline-flex; align-items: center; justify-content: center; color: var(--ok);
}
.home-compare-yes svg { display: block; }
.home-compare-no { color: var(--muted); opacity: .55; font-weight: 600; }

@media (min-width: 760px) {
  @supports (grid-template-rows: subgrid) {
    .home-pricing-grid { grid-template-rows: auto auto auto auto 1fr; }
    .home-plan {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
    }
    .home-plan > .plan-price-stack { align-self: start; }
    .home-plan > .home-plan-cta,
    .home-plan > .home-plan-features { align-self: start; width: 100%; }
  }
}

@media (max-width: 800px) {
  .home-work-grid,
  .home-fit-grid,
  .home-private-layout { grid-template-columns: 1fr; }
  .home-private-layout > .home-frame,
  .home-private-layout > .home-frame .home-shot { height: auto; min-height: 0; }
}
@media (max-width: 620px) {
  .home-band { margin-top: 56px; }
  .home-trust { margin-top: 56px; }
  .home-band h2 { margin-bottom: 20px; }
  .home-pricing { padding: 0 0 8px; margin-top: 56px; }
  .home-pricing-head { margin-bottom: 22px; }
  .home-pricing-sub { font-size: 15.5px; }
  .home-plan { padding: 24px 20px; }
  .home-plan-amount { font-size: 36px; }
  .home-compare { margin-top: 36px; }
  .home-compare h3 { font-size: 20px; }
}

/* Below ~560px the comparison table reflows to fit the viewport instead of
   scrolling horizontally: the feature label wraps and the mark columns shrink. */
@media (max-width: 560px) {
  .home-compare-wrap { overflow-x: hidden; border-radius: 14px; }
  .home-compare-table,
  .home-compare-table th,
  .home-compare-table td { box-sizing: border-box; }
  .home-compare-table { min-width: 0; }
  .home-compare-table th,
  .home-compare-table td { padding: 10px 6px; font-size: 12px; }
  .home-compare-table thead th {
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 8px 3px;
  }
  .home-compare-table tbody th { font-weight: 600; line-height: 1.3; }
  .home-compare-table thead th:first-child,
  .home-compare-table tbody th { width: 40%; overflow-wrap: break-word; }
  .home-compare-table thead th:nth-child(n+2),
  .home-compare-table td {
    width: 20%;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
  }
  .home-compare-table .compare-detail { max-width: 100%; }
  .home-compare-yes svg { width: 16px; height: 16px; }
}
