.trial-welcome {
  margin: 0;
  color: #192c28;
  background: #f0f3ed;
  font: 17px/1.65 system-ui, sans-serif;
}
.welcome { max-width: 47rem; margin: auto; padding: 0 clamp(1rem, 4vw, 3rem) 4rem; }
.welcome .brand { padding: 1rem 0; border-bottom: 1px solid #c9d7d0; }
.welcome h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 2rem 0; }
.welcome section { margin-bottom: 1.5rem; }
.welcome section p { margin: 0; }
.welcome-action { display: inline-block; background: #20554a; color: white; border-radius: .4rem; padding: .55rem 1rem; text-decoration: none; }
.welcome-action:focus-visible { outline: 3px solid #bb7919; outline-offset: 3px; }

#lesson {
  background: #fff;
  color: #192c28;
  border: 1px solid #c9d7d0;
  border-radius: .65rem;
  padding: 1rem;
}
#lesson { margin-top: 1rem; }
#lesson[hidden], #lesson [hidden], #signIn [hidden] { display: none !important; }
#lesson legend { font-weight: 600; white-space: pre-wrap; }
#lesson fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-inline-size: 0; }
#savedAnswers { margin-bottom: 1rem; }
#signIn label, #lesson label { display: block; margin: .55rem 0; }
#signIn input, #lesson textarea { box-sizing: border-box; display: block; width: 100%; font: inherit; }
#lesson textarea { min-height: 7rem; }
.hrp-modal button, #lesson button {
  border: 1px solid #20554a;
  background: #20554a;
  color: white;
  border-radius: .4rem;
  padding: .45rem .9rem;
  cursor: pointer;
}
.trial-start-controls { margin: .75rem 0; }

.hrp-modal {
  background: #fff;
  color: #192c28;
  border: 1px solid #c9d7d0;
  box-sizing: border-box;
  position: fixed;
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 22px 72px #102d2840;
}
.hrp-modal::backdrop { background: #142e2aaa; }
.hrp-modal h2 { margin: 0 42px 10px 0; font-size: 28px; line-height: 1.25; }
#signInDescription, #signInIntent { margin: 0 0 20px; color: #4c625b; font-size: 15px; line-height: 1.65; }
#signInIntent { padding: 10px 12px; border-left: 3px solid #72958a; background: #eef3ef; }
#signIn label { margin: 0 0 16px; font-size: 15px; font-weight: 650; }
#signIn input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #a6b8b0;
  border-radius: 9px;
  background: #f7faf8;
  color: #192c28;
  font-weight: 400;
  font-size: 16px;
}
#signIn input::placeholder { color: #536a61; }
.hrp-modal :is(input, button):focus-visible { outline: 2px solid #20554a; outline-offset: 3px; }
#signIn .sign-in-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#signIn .sign-in-actions button { min-height: 44px; border-radius: 9px; padding-inline: 16px; font-weight: 650; }
.hrp-modal .quiet, .hrp-modal .modal-close { border-color: transparent; background: transparent; color: #20554a; }
.hrp-modal .quiet:hover, .hrp-modal .modal-close:hover { background: #edf4ef; }
.hrp-modal .modal-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 24px; }
.hrp-modal button:disabled { opacity: .65; cursor: wait; }
#signInStatus { margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
#signInStatus:empty { margin: 0; }
#signInStatus[data-state="success"] { color: #20554a; }
#signInStatus[data-state="error"] { color: #9d3029; }
#signIn .sign-in-privacy { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #e0e9e3; color: #536a61; font-size: 13px; }
@media (max-width: 560px) {
  .hrp-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px; border-radius: 20px; }
  .hrp-modal h2 { font-size: 23px; }
  .hrp-modal .modal-close { right: 8px; top: 8px; }
  #signIn .sign-in-actions button { width: 100%; }
}

#confirmation.hrp-modal { width: min(560px, calc(100% - 32px)); max-width: none; background: #f7f5ed; }
#confirmation :is(p, ul) { margin: 0; }
#confirmation h3 { font-size: 16px; margin: 18px 0 8px; }
#confirmation .trial-brand { margin: 0 44px 14px 0; color: #405e54; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.trial-choice, .trial-rule { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #e4ece2; }
.trial-choice p { color: #405e54; font-size: 14px; }
.trial-choice strong { display: block; font-size: 19px; margin-top: 3px; }
#trialBenefits { list-style: none; padding: 0; }
#trialBenefits li { position: relative; padding-left: 24px; margin-block: 6px; }
#trialBenefits li::before { content: "✓"; position: absolute; left: 0; color: #20554b; font-weight: 750; }
.trial-rule { background: #eeebdf; font-size: 14px; }
#confirmationDescription { padding-top: 4px; }
#trialConfirmForm { display: grid; gap: 5px; margin-top: 14px; }
#trialConfirmForm button { min-height: 44px; border-radius: 9px; font-weight: 650; }
#trialStartStatus { color: #9d3029; font-size: 14px; }
#trialStartStatus:not(:empty) { padding-top: 9px; }
@media (max-width: 560px) {
  #confirmation.hrp-modal { width: calc(100% - 24px); }
  #confirmation { font-size: 15px; }
}
