:root {
  --brand: #006847;
  --brand-dark: #004d35;
  --accent: #6b8ca3;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-warm: #fdfcf9;
  --surface-cream: #faf6f0;
  --surface-black: #111827;
  --surface-grey: #f3f4f6;
  --ink: #111827;
  --ink-light: #4b5563;
  --text-muted: #64748b;
  --border: #e5e7eb;
  --green-50: #f0fdf7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --space-section: 88px;
  --header-offset: calc(var(--topbar-banner-offset, 34px) + var(--topbar-height, 78px));
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-warm);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.trial-page {
  background: var(--surface-warm);
}

.trial-section {
  padding: clamp(56px, 7vw, var(--space-section)) 20px;
}

.trial-container,
.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Hero */
.trial-hero {
  padding: clamp(40px, 5vw, 56px) 20px clamp(48px, 6vw, 72px);
  background: var(--green-50);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
}

.trial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.trial-copy {
  padding-top: 8px;
}

.trial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.trial-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.trial-copy h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.trial-subheadline {
  max-width: 640px;
  margin: 0;
  color: var(--ink-light);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 500;
  line-height: 1.65;
}

.trial-supporting-copy {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.trial-points {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trial-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.trial-points li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Form card */
.trial-form-card {
  position: sticky;
  top: calc(var(--header-offset) + 16px);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 28px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.trial-form-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trial-form-card h2 {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
}

.trial-form-card > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.trial-form {
  display: grid;
  gap: 14px;
}

.trial-field {
  display: grid;
  gap: 6px;
}

.trial-field label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.trial-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.trial-field input:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}

.trial-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.trial-submit,
.trial-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  color: #ffffff;
  background: var(--brand);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, transform 0.15s ease;
}

.trial-submit:hover,
.trial-cta-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.trial-form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.trial-message {
  display: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.trial-message.success {
  background: var(--green-50);
  color: var(--brand-dark);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}

.trial-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Product showcase */
.product-showcase {
  padding: clamp(56px, 7vw, var(--space-section)) 20px;
  background: var(--surface);
}

.section-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2,
.trial-section-title {
  margin: 0;
  color: var(--surface-black);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-header .body-text,
.trial-section-intro {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.product-showcase-mockup {
  max-width: 1040px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}

.product-showcase .hero-mockup {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 0;
  border: 1px solid var(--border);
}

.product-showcase .mockup-browser {
  background: var(--surface-black);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-showcase .mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.product-showcase .mockup-dot:nth-child(1) {
  background: #ff5f56;
}

.product-showcase .mockup-dot:nth-child(2) {
  background: #ffbd2e;
}

.product-showcase .mockup-dot:nth-child(3) {
  background: #27ca3f;
}

.product-showcase .mockup-url {
  flex: 1;
  background: #374151;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-left: 12px;
  border: none;
  font-weight: 500;
}

.product-showcase .showcase-tabs-container {
  background: var(--surface-grey);
  padding: 12px 12px 0;
  border-bottom: 1px solid var(--border);
}

.product-showcase .showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.product-showcase .showcase-tab {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--ink-light);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 0.84rem;
  white-space: nowrap;
}

.product-showcase .showcase-tab:hover {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
}

.product-showcase .showcase-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.product-showcase .mockup-screen-image {
  aspect-ratio: 16 / 9;
  min-height: clamp(200px, 50vw, 520px);
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.product-showcase .mockup-screen-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

/* Card grids */
.trial-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.trial-card,
.trial-feature-card,
.trial-software-card,
.trial-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.trial-card:hover,
.trial-feature-card:hover,
.trial-software-card:hover {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trial-card,
.trial-feature-card,
.trial-software-card {
  padding: 20px 22px;
}

.trial-card h3,
.trial-feature-card h3,
.trial-software-card h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.trial-card p,
.trial-feature-card p,
.trial-software-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.trial-features {
  background: var(--surface-soft);
}

.trial-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.trial-feature-card {
  min-height: 110px;
}

.trial-software {
  background: var(--surface-cream);
  border-top: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
}

.trial-software-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.trial-software-copy .trial-section-title {
  text-align: left;
}

.trial-software-copy p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.trial-software-grid {
  display: grid;
  gap: 14px;
}

/* FAQ */
.trial-faq {
  background: var(--surface);
}

.trial-faq-list {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 28px auto 0;
}

.trial-faq details {
  padding: 0;
  overflow: hidden;
}

.trial-faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 20%, var(--border));
  background: var(--green-50);
}

.trial-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.trial-faq summary::-webkit-details-marker {
  display: none;
}

.trial-faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.trial-faq details[open] summary::after {
  content: "−";
}

.trial-faq p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Final CTA */
.trial-final {
  padding: clamp(56px, 7vw, 80px) 20px;
  background: var(--brand-dark);
  color: #ffffff;
  text-align: center;
  border-top: 4px solid color-mix(in srgb, #ffffff 12%, transparent);
}

.trial-final h2 {
  max-width: 680px;
  margin: 0 auto;
  color: #ffffff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.trial-final p {
  max-width: 560px;
  margin: 14px auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.trial-final .trial-cta-button {
  width: auto;
  min-width: 200px;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.trial-final .trial-cta-button:hover {
  background: var(--green-50);
  color: var(--brand-dark);
}

@media (max-width: 980px) {
  .trial-hero-grid,
  .trial-software-layout {
    grid-template-columns: 1fr;
  }

  .trial-form-card {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  .trial-card-grid,
  .trial-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-software-copy .trial-section-title {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .trial-hero {
    padding-top: 32px;
  }

  .trial-card-grid,
  .trial-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase .mockup-browser {
    padding: 10px 12px;
  }

  .product-showcase .mockup-url {
    margin-left: 6px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .product-showcase .showcase-tab {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .trial-final .trial-cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-submit,
  .trial-cta-button,
  .trial-card,
  .trial-feature-card,
  .trial-software-card,
  .product-showcase .mockup-screen-image img {
    transition: none;
  }
}
