/* site.css — layout specific to the to-image.com landing page */

.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(30px, 6vw, 60px);
}

.hero-inner {
  max-width: 780px;
}

.eyebrow-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero h1 .accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Secondary line under the two tool buttons: the page is a choice between
   them, so "how it works" must not compete with either as a third button. */
.hero-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.01em;
  margin: 0;
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tools-section {
  padding-bottom: clamp(40px, 8vw, 80px);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: #fff;
}

.tool-card-icon svg {
  width: 26px;
  height: 26px;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.tool-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex-grow: 1;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-1);
}

.tool-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.tool-card:hover .tool-card-cta svg {
  transform: translateX(3px);
}

.tool-card-status {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--success);
  background: rgba(23, 166, 115, 0.16);
  background: color-mix(in srgb, var(--success) 16%, transparent);
}

/* placeholder card, hinting more tools are coming */
.tool-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-tertiary);
  border-style: dashed;
  min-height: 200px;
  background: transparent;
  box-shadow: none;
}

.tool-card-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.tool-card-placeholder span {
  font-size: 0.88rem;
  font-weight: 600;
}

.why-section {
  padding: clamp(20px, 4vw, 40px) 0 clamp(50px, 9vw, 90px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  text-align: left;
}

.why-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
