/* The free-trial page (round 5, /trial/ and /es/trial/). On top of
   aegean.css: the sand theme, the solid header, the pills. The form is one
   white card; text keeps the homepage's contrast (ink #14201F and muted
   #4F5A57 on sand and white). */
.trial-page .transition-theme { background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; }
.trial-main { flex: 1; }
.trial-main { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 7vw, 96px); }
.trial-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .trial-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.trial-intro { display: grid; gap: 18px; align-content: start; }
.trial-intro .statement { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.trial-lede { color: var(--muted); max-width: 34em; font-size: 1.0625rem; margin: 0; }
.trial-terms { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.trial-terms li { position: relative; padding-left: 26px; color: var(--muted); }
.trial-terms li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.trial-terms b { color: var(--fg); font-weight: 600; }
.trial-note { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(184, 137, 58, .14); color: var(--fg); font-size: .9375rem; }
.trial-alt { color: var(--muted); font-size: .9375rem; margin: 0; }
.trial-alt a, .trial-note a { color: var(--accent); }

.trial-card { background: #FFFFFF; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(20, 32, 31, .35); padding: clamp(20px, 4vw, 36px); }
.trial-card h2 { font: 600 clamp(1.6rem, 3.4vw, 2rem)/1.15 var(--display); margin: 0 0 6px; color: var(--fg); }
.trial-form { display: grid; gap: 16px; }
.trial-form[hidden] { display: none; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-size: .9375rem; font-weight: 600; color: var(--fg); padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.trial-form input:not([type="radio"]):not([type="checkbox"]), .trial-form select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #B9AE99; background: #FFFFFF; color: #14201F;
  font: 400 1rem/1.4 var(--sans); -webkit-appearance: none; appearance: none; }
.trial-form select { background-image: linear-gradient(45deg, transparent 50%, #4F5A57 50%), linear-gradient(135deg, #4F5A57 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.trial-form input:focus-visible, .trial-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.trial-form input:not([type="radio"]):not([type="checkbox"])[aria-invalid="true"], .trial-form select[aria-invalid="true"] { border-color: #A3361F; box-shadow: inset 0 0 0 1px #A3361F; }
.field-error { margin: 0; min-height: 0; color: #A3361F; font-size: .875rem; }
.field-error:empty { display: none; }
.choices { display: grid; gap: 8px; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(3, auto); justify-content: start; } }
.trial-page .header-actions { margin-left: auto; }
.field .choice, .choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid #B9AE99; cursor: pointer; color: #14201F; font-size: .9375rem; font-weight: 500; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: #136B80; }
.choice:has(input:checked) { border-color: #136B80; box-shadow: inset 0 0 0 1px #136B80; background: rgba(19, 107, 128, .06); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: #14201F; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #136B80; }
.consent a { color: #136B80; }
.trial-submit { justify-self: start; margin-top: 4px; }
.trial-submit[disabled] { opacity: .7; cursor: progress; }
.trial-small { margin: 0; color: #4F5A57; font-size: .875rem; }
/* the honeypot: off screen, never focusable, never read out */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the thank-you and the error: shown in place of the form, by the script
   (.on) or, without it, by the address the server sent back (#sent, #error) */
.trial-done, .trial-failed { display: none; }
.trial-done.on, .trial-done:target, .trial-failed.on, .trial-failed:target { display: block; }
.trial-done:target ~ .trial-form { display: none; }
.trial-done p, .trial-failed p { color: #4F5A57; margin: 8px 0 0; }
.trial-failed { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(163, 54, 31, .08); }
.trial-failed h2 { font-size: 1.25rem; }
.trial-failed a, .trial-done a { color: #136B80; }

.trial-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.trial-footer p { margin: 0; color: var(--muted); font-size: .9375rem; }
.trial-footer a { color: var(--fg); }
