/* home.css — the Home page the logo opens: hero, the three steps with alternating screenshots,
   purpose and "free for everyone". Reads tokens only. */
.home {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.home-hero {
  text-align: center;
  padding-block: var(--space-6) var(--space-7);
}

.home-hero__lead {
  max-width: 34rem;
  margin: var(--space-3) auto 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.home-section {
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}

.home-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: var(--space-6);
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

/* Text beside the screenshot; every other step swaps sides. */
.home-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--space-7);
}

.home-step:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); /* the screenshot keeps the wide column */
}

.home-step:nth-child(even) .home-step__text {
  order: 2;
}

.home-step__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
}

.home-step__title {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-step__body {
  margin-top: var(--space-2);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--muted);
}

.home-step__list {
  list-style: none;
  margin: var(--space-2) 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.home-step__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}

.home-step__outro {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--muted);
}

.home-step__shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.home-step__shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.home-step__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* "Our purpose" — four illustrated panels in a row, a small chevron between neighbours. */
.home-purpose {
  text-align: center;
}

.home-purpose .home-section__title {
  margin-bottom: var(--space-3);
}

.home-purpose__lead {
  max-width: 40rem;
  text-wrap: balance;
  margin: 0 auto;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--muted);
}

.home-story {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-story__art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-story__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-story__item:not(:first-child) .home-story__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--space-5) / -2 - 5px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}

.home-story__title {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
}

.home-story__body {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 720px) {
  .home-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
  .home-story__item:nth-child(3) .home-story__art::before {
    display: none; /* starts the second row */
  }
  .home-story__item:not(:first-child) .home-story__art::before {
    left: calc(var(--space-4) / -2 - 5px);
  }
}

/* "Free, for everyone" — a quote signed by PanTik.io. */
.home-quote .home-section__title {
  margin-bottom: var(--space-5);
}

.home-quote__figure {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.home-quote__figure::before {
  content: "\201C";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

.home-quote__text {
  margin: 0;
}

.home-quote__phrase {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.home-quote__body {
  max-width: 32rem;
  margin: var(--space-4) auto 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.home-quote__figure + .home-quote__figure {
  margin-top: var(--space-5);
}

.home-quote__by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* Account-style avatar standing in for the studio's logo. */
.home-quote__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.home-quote__who {
  display: grid;
  text-align: left;
  line-height: 1.3;
}


.home-quote__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.home-quote__name:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .home-quote__figure {
    padding: var(--space-7) var(--space-4) var(--space-4);
  }
}

.home-disclaimer {
  max-width: 40rem;
  margin: 0 auto;
  padding-block: var(--space-5) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 720px) {
  .home-hero {
    padding-block: var(--space-4) var(--space-6);
  }
  .home-step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    text-align: center;
  }
  .home-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-step:nth-child(even) .home-step__text {
    order: 0;
  }
  .home-step__list {
    justify-content: center;
  }
  .home-steps {
    gap: var(--space-7);
  }
}

/* Pricing — three plans side by side, the monthly Pro plan highlighted; stacked on phones. */
.home-pricing {
  text-align: center;
}

.home-pricing .home-section__title {
  margin-bottom: var(--space-3);
}

.home-pricing__lead {
  margin: 0 auto;
  font-size: var(--text-md);
  color: var(--muted);
}

.home-plans {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  text-align: left;
}

.home-plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-plan--featured {
  border: 2px solid var(--primary);
}

.home-plan__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
}

.home-plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.home-plan__amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.home-plan__period {
  font-size: var(--text-sm);
  color: var(--muted);
}

.home-plan__note {
  min-height: 2.6em;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--muted);
}

.home-plan--featured .home-plan__note {
  color: var(--primary);
  font-weight: 600;
}

.home-plan__features {
  list-style: none;
  margin: var(--space-2) 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
  flex: 1;
}

.home-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.home-plan__features svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

.home-plan .btn {
  justify-content: center;
  width: 100%;
}

@media (max-width: 720px) {
  .home-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
