/* Landing pages under /tools. Builds on styles.css and only adds what those pages need. */

/* Hero: text to the left, screenshot to the right */
.landing-hero {
  padding: 4rem 0 4.5rem;
}

.landing-hero .container {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
}

/* Until a screenshot has been delivered, the text gets the full width */
.landing-hero.landing-hero-nomedia .container {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.landing-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1.25rem;
}

.landing-hero .hero-content p {
  font-size: 1.15rem;
  margin: 0 0 1.5rem;
}

.landing-hero .hero-buttons {
  margin-top: 0;
}

.landing-hero .cta-button {
  margin: 0;
}

.landing-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.landing-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0;
}

.landing-breadcrumb a:hover {
  text-decoration: underline;
}

.landing-breadcrumb a:after {
  content: none;
}

.landing-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.landing-trust li:before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Screenshots and clips */
.landing-media {
  margin: 0;
  position: relative;
}

.landing-media img,
.landing-media video {
  display: block;
  width: 100%;
  height: auto;
}

.landing-hero-media .landing-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  background: white;
}

/* Shown during development where a screenshot has not been delivered yet */
.landing-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: repeating-linear-gradient(45deg, #fff7ed, #fff7ed 14px, #ffedd5 14px, #ffedd5 28px);
  border: 2px dashed var(--warning);
  border-radius: var(--radius-lg);
}

.landing-placeholder-note {
  background: #fff7ed;
  border-top: 2px dashed var(--warning);
  color: #7c2d12;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.6rem 0.9rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.landing-placeholder .landing-placeholder-note {
  border: 0;
  background: transparent;
  max-width: 34rem;
}

/* Text sections */
.landing-section {
  padding: 4.5rem 0;
  background: white;
}

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

.landing-narrow {
  max-width: 860px;
}

.landing-section h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.landing-section h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.landing-section p,
.landing-section li {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-section p {
  margin-bottom: 1rem;
}

.landing-section a {
  color: var(--primary);
}

.landing-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.landing-prose li {
  margin-bottom: 0.6rem;
}

.landing-section code,
.landing-showcase code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.88em;
  background-color: var(--primary-light);
  color: #3730a3;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.landing-section pre {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}

.landing-section pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-wrap: normal;
  white-space: pre;
}

.landing-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.landing-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.landing-section th,
.landing-section td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.landing-section th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.landing-section td:last-child {
  white-space: nowrap;
}

/* Privacy block */
.landing-privacy {
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

.landing-fineprint {
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0 !important;
}

/* Showcase: reuses .feature-card from styles.css */
.landing-showcase {
  padding-bottom: 1rem;
}

.landing-showcase .section-title {
  margin-bottom: 3.5rem;
}

.landing-showcase .feature-card {
  margin-bottom: 4.5rem;
  gap: 3rem;
}

.landing-showcase .feature-image {
  flex: 1.25;
  min-width: 0;
}

.landing-card-text-only .feature-content {
  max-width: 860px;
  margin: 0 auto;
}

/* Steps */
.landing-steps {
  list-style: none;
  counter-reset: landing-step;
  margin: 2rem 0;
}

.landing-steps li {
  counter-increment: landing-step;
  position: relative;
  padding: 0 0 1.5rem 3.5rem;
}

.landing-steps li:before {
  content: counter(landing-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-steps h3 {
  margin: 0 0 0.25rem;
  padding-top: 0.2rem;
  font-size: 1.15rem;
}

.landing-steps p {
  margin: 0;
}

.landing-samples {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.landing-section .landing-cta-inline {
  background: var(--primary);
  color: white;
  margin: 0.5rem 0 0;
}

.landing-section .landing-cta-inline:hover {
  background: var(--primary-hover);
}

/* Links to the other landing pages */
.landing-related h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.landing-section a.landing-related-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.landing-section a.landing-related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.landing-related-card h2,
.landing-related-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.landing-related-card p {
  font-size: 0.95rem;
  margin: 0;
}

.landing-feature-links {
  text-align: center;
  margin: 2rem 0 0 !important;
  font-size: 0.95rem !important;
}

@media (max-width: 992px) {
  .landing-hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Headline and button first on small screens, screenshot after */
  .landing-hero .hero-content {
    order: 1;
  }

  .landing-hero .landing-hero-media {
    order: 2;
  }

  .landing-showcase .feature-card,
  .landing-showcase .feature-card-reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 2rem 0 3rem;
  }

  .landing-hero h1 {
    font-size: 1.9rem;
  }

  .landing-hero .hero-content p {
    font-size: 1.05rem;
  }

  .landing-section {
    padding: 3rem 0;
  }

  .landing-section td:last-child {
    white-space: normal;
  }
}
