/* ---------- Nav ---------- */
.trial-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) { .trial-nav { height: 72px; } }
.trial-back { font-size: 14px; font-weight: 500; color: var(--muted); }
.trial-back:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.trial-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .trial-layout { grid-template-columns: 560px 1fr; gap: 64px; padding-top: 60px; }
}

/* ---------- Form column ---------- */
.trial-heading-wrap { position: relative; display: inline-block; margin-bottom: 8px; }
.trial-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.trial-smiley { top: -16px; right: -32px; }
.trial-subtitle { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0 0 32px; }

.trial-form { display: flex; flex-direction: column; gap: 24px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-sans);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
  color: var(--ink);
}
.field input::placeholder,
.field textarea::placeholder { color: #A3A39C; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field input.invalid,
.field textarea.invalid { border-color: #dc2626; }
.field textarea { resize: vertical; line-height: 1.5; }

/* ---------- Ticket size selector ---------- */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .size-grid { grid-template-columns: 1fr; } }

.size-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all .2s;
  font-family: var(--font-sans);
}
.size-card.selected {
  border: 2px solid #22c55e;
  background: #F0FFF4;
  padding: 15px;
}
.size-locked { opacity: .6; }
.size-locked:hover { opacity: .85; }

.lock-icon { position: absolute; top: 10px; right: 10px; }
.size-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.size-dot { width: 8px; height: 8px; border-radius: 50%; }
.size-dot-green { background: var(--green); }
.size-dot-yellow { background: var(--yellow); }
.size-dot-orange { background: var(--accent); }
.size-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.size-label-green { color: var(--green); }
.size-range { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--ink); }
.size-locked .size-range { color: var(--muted); }
.size-eta { font-size: 11px; color: var(--muted); }
.size-badge {
  margin-top: 10px;
  display: inline-flex;
  padding: 3px 10px;
  background: var(--border);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.size-badge-free { background: var(--green); color: #fff; }

/* ---------- Locked banner ---------- */
.locked-banner[hidden] { display: none; }
.locked-banner {
  background: #FFF8F0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.locked-banner-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.locked-banner-desc { font-size: 13px; color: var(--muted); margin: 0; }
.locked-banner .btn { flex-shrink: 0; padding: 10px 20px; font-size: 13px; }

.trial-reply-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }

/* Honeypot: visually and semantically hidden from real users, still reachable by naive bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error[hidden] { display: none; }
.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0;
}

/* ---------- Tiers sidebar ---------- */
.trial-tiers { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .trial-tiers { position: sticky; top: 96px; } }
.tiers-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 20px;
  line-height: 1.1;
}
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.tier-card:last-child { margin-bottom: 0; }
.tier-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tier-dot { width: 10px; height: 10px; border-radius: 50%; }
.tier-dot-green { background: var(--green); }
.tier-dot-yellow { background: var(--yellow); }
.tier-dot-orange { background: var(--accent); }
.tier-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.tier-badge {
  margin-left: auto;
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tier-badge-free { background: var(--green); color: #fff; }
.tier-badge-sub { background: var(--accent-soft); color: var(--accent); }
.tier-desc { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.tier-note { font-size: 12px; color: var(--muted); margin: -8px 0 12px; font-style: italic; }
.tier-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tier-tag { display: inline-flex; padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 500; border: 1px solid transparent; }
.tier-tags-green .tier-tag { background: #F0FFF4; border-color: #dcfce7; color: #166534; }
.tier-tags-yellow .tier-tag { background: #FFF8F0; border-color: #fde68a; color: #92400e; }
.tier-tags-orange .tier-tag { background: var(--accent-soft); border-color: #fed7aa; color: #9a3412; }

/* ---------- Success state ---------- */
.trial-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.trial-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.trial-success h2 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.trial-success p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Footer ---------- */
.trial-footer {
  background: var(--bg);
  padding: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
