/* The free trial's pages (views/try.ejs, views/trial-gate.ejs), scoped .try.
   Palette sampled from the logo: navy #0a2850, green #0a5028, gold #c9962f.
   Contrast checked by scripts/check-trial-contrast.js. */
.try {
  --navy: #0a2850; --navy-2: #133a6e; --green: #0a5028; --gold: #c9962f; --gold-soft: #f3d58f;
  --paper: #fffdf7; --ink: #10161f; --muted: #4f5a68;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 28px;
  max-width: 1180px; margin: 8px auto 40px; align-items: start;
}
.try--gate { grid-template-columns: minmax(0, 720px); justify-content: center; }

.try-pitch {
  background: radial-gradient(120% 90% at 0% 0%, var(--navy-2), var(--navy) 60%);
  color: #fff; border-radius: 20px; padding: 36px 36px 30px; position: relative; overflow: hidden;
}
.try-pitch::after { /* a gold coin edge, for warmth; decorative only */
  content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 18px solid rgba(201, 150, 47, 0.22); pointer-events: none;
}
.try-kicker {
  display: inline-block; font: 700 0.86rem/1.2 'IBM Plex Sans', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 12px;
}
.try-pitch h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.try-pitch h1 span { color: var(--gold-soft); }
.try-lede { font-size: 1.05rem; line-height: 1.6; margin: 0 0 22px; }
.try-pitch .try-lede { color: rgba(255, 255, 255, 0.92); }

.try-tools { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-tools li {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 10px 12px 10px 10px;
  display: flex; gap: 12px; align-items: center;
}
.try-tools li.is-wide { grid-column: 1 / -1; }
.try-tools li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.try-art { /* the tool's own hub picture, on a cream tile */
  flex: 0 0 76px; height: 76px; border-radius: 10px; background: #fff8e6 no-repeat center bottom / contain;
}
.try-tools li.is-locked .try-art { filter: grayscale(0.55); opacity: 0.85; }
.try-tools b { font-size: 1rem; color: #fff; }
.try-tools span { font-size: 0.9rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.try-tools li.is-locked { background: rgba(201, 150, 47, 0.14); border-color: rgba(243, 213, 143, 0.45); }
.try-tools .try-lock { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gold-soft); margin-top: 2px; }

/* review 2 (2026-11-16): the next batch up top, "education, not advice", the teacher, and an FAQ */
.try-next {
  display: inline-block; background: rgba(243, 213, 143, 0.14); border: 1px solid rgba(243, 213, 143, 0.5); border-radius: 12px;
  padding: 9px 14px; margin: 0 0 16px; color: #fff; font-size: 1.05rem; line-height: 1.45;
}
.try-next b { color: var(--gold-soft); font-size: 1.12rem; }
.try-edu { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; margin: -10px 0 20px; }
.try-teacher { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; margin-top: 16px; }
.try-teacher img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; flex-shrink: 0; background: #fff; }
.try-teacher > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.try-teacher-k { margin: 0; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); }
.try-teacher b { color: #fff; font-size: 1.08rem; }
.try-teacher span { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; }
.try-teacher ul { margin: 6px 0 0; padding-left: 18px; color: #fff; font-size: 0.92rem; line-height: 1.5; }
.try-faq { grid-column: 1; background: var(--paper); border: 1px solid rgba(10, 40, 80, 0.14); border-radius: 20px; padding: 26px 30px 12px; color: var(--ink); }
.try-faq h2 { margin: 0 0 14px; color: var(--navy); font-size: 1.35rem; }
.try-faq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 28px; }
.try-faq-q h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); font-family: 'IBM Plex Sans', sans-serif; }
.try-faq-q p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
@media (max-width: 600px) { .try-faq { padding: 20px 18px 6px; } .try-faq-list { grid-template-columns: minmax(0, 1fr); } }
.try-batch { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; }
.try-batch p { margin: 0 0 6px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.try-batch .try-batch-line { color: #fff; font-size: 1rem; }

.try-card {
  background: var(--paper); border: 1px solid rgba(10, 40, 80, 0.14); border-radius: 20px; padding: 30px 30px 24px;
  box-shadow: 0 24px 48px -32px rgba(10, 40, 80, 0.55); position: sticky; top: 84px; color: var(--ink);
}
.try--gate .try-card { position: static; }
.try-card h2 { font-size: 1.35rem; margin: 0 0 6px; color: var(--navy); }
.try-gate h1 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; }
.try-gate .try-kicker { color: #8a6412; }
.try-gate .try-lede { color: var(--ink); }
.try-card p { font-size: 0.98rem; line-height: 1.55; }
.try-hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.try-opt { color: var(--muted); font-weight: 400; }
.try-card label { font-weight: 600; font-size: 0.95rem; }
.try-card input[type=text], .try-card input[type=email], .try-card input[type=tel], .try-card input[type=password], .try-card select {
  width: 100%; font-size: 1rem; padding: 11px 12px;
}
.try-card input[aria-invalid] { border-color: #b02e28; }
.try-err { color: #b02e28; font-size: 0.9rem; margin: 6px 0 0; }
.try-ok { color: #0a6b46; font-weight: 600; }
.try-check { text-transform: none; letter-spacing: normal; font-size: 0.95rem !important; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; margin: 4px 0 6px; cursor: pointer; }
.try-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--green); }
.try-go, button.try-go, .btn.try-go {
  background: linear-gradient(165deg, #12703a, var(--green) 40%); color: #fff; border-radius: 999px;
  font-size: 1.02rem; font-weight: 700; padding: 13px 24px; margin-top: 14px; width: 100%;
}
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.try-actions .try-go { width: auto; margin-top: 0; }
.try-actions form { margin: 0; display: contents; }
.try-fine { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.try-note { background: #fff4d6; border: 1px solid #ecd08a; border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 0.95rem; line-height: 1.5; }
.try-points { margin: 0 0 6px; padding-left: 20px; }
.try-points li { margin: 6px 0; font-size: 1rem; line-height: 1.5; }
/* the once-only feedback form (trial-gate.ejs) */
.tfb { margin-top: 8px; }
.tfb-q { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.tfb-q legend { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 8px; padding: 0; }
.tfb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tfb-chip { position: relative; cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 500 !important; }
.tfb-chip input, .tfb-n input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tfb-chip span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(10, 40, 80, 0.28);
  background: #fff; color: var(--ink); font-size: 0.93rem; line-height: 1.3;
}
.tfb-chip input:checked + span, .tfb-n input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.tfb-chip input:focus-visible + span, .tfb-n input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.tfb-nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.tfb-n { cursor: pointer; position: relative; text-transform: none; }
.tfb-n span {
  display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 9px; border: 1px solid rgba(10, 40, 80, 0.28);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 0.95rem;
}
.tfb-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.tfb-small { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 0.9rem; text-transform: none; letter-spacing: normal; }
.tfb textarea, .tfb input[type=text] { width: 100%; font-size: 1rem; padding: 10px 12px; }
.try--gate .tj-shelf { margin: 16px 0 20px; }
.try--gate .tj-shelf ul { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.try--gate .tj-badge small { display: none; } /* compact here: the form is the point of this page */
/* feedback at any time (views/trial-feedback.ejs): a quick note, and the form until it is sent */
.tfp-back { margin: 0 0 16px; }
.tfp-due { background: #fff4d6; border: 1px solid #ecd08a; border-radius: 12px; padding: 10px 14px; color: var(--ink); margin: -6px 0 20px; }
.tfp-sent { background: #eef6ef; border: 1px solid #9cc7a6; border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; }
.tfp-sent h2 { color: var(--green); font-size: 1.2rem; }
.tfp-sent p { margin: 4px 0 0; }
.tfp-sent .try-actions { margin: 12px 0 0; }
.tfp-note { background: #fff; border: 1px solid rgba(10, 40, 80, 0.16); border-radius: 16px; padding: 18px 18px 16px; margin: 0 0 26px; scroll-margin-top: 90px; }
.tfp-note select { max-width: 360px; }
.tfp-note .try-go { width: auto; padding-inline: 28px; }
.tfp-note .try-fine { margin: 10px 0 0; }
.tfp-form { border-top: 1px solid rgba(10, 40, 80, 0.16); padding-top: 22px; }
.tfp-form .tfb { scroll-margin-top: 90px; }
.tfp-sub { color: var(--muted); margin: 0 0 14px; }
.btn.try-jump { display: none; width: auto; margin: 0 0 20px; }
@media (max-width: 900px) { .btn.try-jump { display: inline-flex; } }
.try-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .try { grid-template-columns: 1fr; }
  .try-card { position: static; }
  .try:not(.try--step-form) .try-card { order: -1; } /* after the form, the next step comes first on a phone */
}
@media (max-width: 560px) {
  .try-pitch { padding: 26px 20px 22px; border-radius: 16px; }
  .try-card { padding: 22px 18px 18px; border-radius: 16px; }
  .try-tools { grid-template-columns: 1fr; }
}
