/* =============================================================================
   TRIAL PAGE — /trial/
   Page-specific layout only. All component styles live in global.css.
   ============================================================================= */


/* =============================================================================
   HERO
   ============================================================================= */
.trial-hero {
  background: var(--navy);
  padding-block: 72px var(--s-20);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.trial-hero-inner {
  max-width: 620px;
}

/* Override sh-label colors for dark background */
.trial-hero-label {
  color: var(--on-dark-badge);
  margin-bottom: var(--s-4);
}
.trial-hero-label::before {
  background: var(--on-dark-badge);
}

.trial-hero-inner h1 {
  font-size: var(--t-hero-page);
  color: var(--on-dark);
  margin-bottom: var(--s-5);
}

.trial-hero-sub {
  font-size: var(--t-lead);
  color: var(--on-dark-sec);
  max-width: 500px;
  margin-bottom: var(--s-8);
  line-height: var(--lh-relaxed);
}

.trial-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.trial-trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: var(--w-semibold);
  color: var(--on-dark-sec);
}

.trial-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--on-dark-badge);
  flex-shrink: 0;
}


/* =============================================================================
   BODY SECTION — two-column grid
   ============================================================================= */
.trial-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-14);
  align-items: start;
}


/* =============================================================================
   FORM CARD
   ============================================================================= */
.trial-form-card {
  background: var(--bg);
  border: 1.5px solid var(--border-sub);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  box-shadow: var(--sh-xl);
}

.trial-form-title {
  font-size: var(--t-3xl);
  margin-bottom: var(--s-2);
}

.trial-form-subtitle {
  font-size: var(--t-base);
  color: var(--text-muted);
  margin-bottom: var(--s-8);
  line-height: var(--lh-normal);
}

/* Two-column row for name + email on desktop */
.trial-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

/* Suppress default form-group margin inside two-col row */
.trial-form-row .form-group {
  margin-bottom: 0;
}

/* Spacing between standalone form groups */
#trialForm .form-group {
  margin-bottom: var(--s-5);
}

.trial-submit-btn {
  width: 100%;
  margin-top: var(--s-2);
}

.trial-form-fine {
  font-size: var(--t-caption);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--s-4);
  line-height: var(--lh-relaxed);
}

.trial-form-fine strong {
  color: var(--text-sec);
  font-weight: var(--w-semibold);
}

/* Version note below card */
.trial-version-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-caption);
  color: var(--text-muted);
  margin-top: var(--s-4);
  padding-inline: var(--s-2);
  line-height: var(--lh-normal);
}

.trial-version-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.trial-version-note a {
  color: var(--blue);
  font-weight: var(--w-semibold);
}

.trial-version-note a:hover {
  text-decoration: underline;
}


/* =============================================================================
   SUCCESS STATE
   ============================================================================= */
.trial-success {
  text-align: center;
}

/* Remove default browser focus ring — we set focus programmatically */
.trial-success:focus {
  outline: none;
}

.trial-success-check {
  width: 56px;
  height: 56px;
  background: var(--green-soft);
  border: 2px solid var(--green-border);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-6);
}

.trial-success-check svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.trial-success-title {
  font-size: var(--t-2xl);
  margin-bottom: var(--s-3);
}

.trial-success-msg {
  color: var(--text-sec);
  font-size: var(--t-body);
  margin-bottom: var(--s-2);
}

.trial-success-sub {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  line-height: var(--lh-relaxed);
}

/* Install guide link buttons */
.trial-dl-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  text-align: left;
}

.trial-dl-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-sub);
  border-radius: var(--r-md);
  font-size: var(--t-base);
  font-weight: var(--w-semibold);
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}

.trial-dl-link:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.trial-dl-link > svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color .15s;
}

.trial-dl-link:hover > svg:first-child {
  color: var(--blue);
}

.trial-dl-link-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  transition: color .15s, transform .15s;
}

.trial-dl-link:hover .trial-dl-link-arrow {
  color: var(--blue);
  transform: translateX(2px);
}

.trial-success-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  font-size: var(--t-caption);
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.trial-success-meta a {
  color: var(--blue);
  font-weight: var(--w-semibold);
}

.trial-success-meta a:hover {
  text-decoration: underline;
}

/* Reset callout bottom margin when inside success card */
.trial-success .callout {
  margin-bottom: 0;
  text-align: left;
}


/* =============================================================================
   INCLUDES COLUMN
   ============================================================================= */
.trial-includes {
  padding-top: var(--s-4);
}

.trial-includes-heading {
  font-size: var(--t-xl);
  color: var(--text);
  margin-bottom: var(--s-7);
}

.trial-includes-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
  padding: 0;
  list-style: none;
}

.trial-includes-list li {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.trial-includes-list li > svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.trial-includes-list li > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.trial-includes-list strong {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--text);
  line-height: var(--lh-snug);
  display: block;
}

.trial-includes-list span {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  display: block;
}

/* Team card — dark navy, appears below the includes list */
.trial-team-card {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-8);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.trial-team-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.trial-team-head svg {
  width: 20px;
  height: 20px;
  color: var(--on-dark-badge);
  flex-shrink: 0;
  margin-top: 2px;
}

.trial-team-head strong {
  font-size: var(--t-base);
  font-weight: var(--w-bold);
  color: var(--on-dark);
  line-height: var(--lh-snug);
}

.trial-team-card > p {
  font-size: var(--t-sm);
  color: var(--on-dark-sec);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-5);
}


/* =============================================================================
   SYSTEM REQUIREMENTS
   ============================================================================= */
.trial-reqs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}

.trial-req-card {
  background: var(--bg);
  border: 1.5px solid var(--border-sub);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.trial-req-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trial-req-icon-blue {
  background: var(--blue-soft);
}

.trial-req-icon-blue svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.trial-req-icon-green {
  background: var(--green-soft);
}

.trial-req-icon-green svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.trial-req-card h3 {
  font-size: var(--t-card);
  color: var(--text);
  margin: 0;
}

.trial-req-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.trial-req-list li {
  font-size: var(--t-sm);
  color: var(--text-sec);
  padding-left: var(--s-4);
  position: relative;
  line-height: var(--lh-relaxed);
}

.trial-req-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--border);
}

.trial-req-link {
  font-size: var(--t-sm);
  font-weight: var(--w-semibold);
  color: var(--blue);
  margin-top: auto;
  display: inline-block;
}

.trial-req-link:hover {
  text-decoration: underline;
}

/* Reset callout margin for requirements note at bottom */
.trial-reqs-note {
  margin-bottom: 0;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
  .trial-body {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }

  .trial-includes {
    padding-top: 0;
  }

  .trial-reqs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .trial-hero {
    padding-block: var(--s-14) var(--s-14);
  }

  .trial-form-card {
    padding: var(--s-7) var(--s-5);
  }

  .trial-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .trial-hero-inner h1 {
    font-size: var(--t-3xl);
  }

  .trial-trust {
    gap: var(--s-2) var(--s-4);
  }

  .trial-success-meta {
    flex-direction: column;
    gap: var(--s-2);
  }
}
