/* Welcome offer: sign-up form (shared), strip above the footer and pop-up. Light theme, same button system. */

/* ----- form ----- */
.wform { display: grid; gap: 14px; width: 100%; max-width: 520px; }
.wform-row { display: flex; gap: 8px; }
.wform-input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--white); border: 1px solid var(--ink); border-radius: 12px; font-size: 15px; transition: box-shadow var(--dur-fast); }
.wform-input::placeholder { color: #9a9a9f; }
.wform-input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.wform-input[aria-invalid="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.wform-submit { background: var(--ink); color: var(--white); padding-inline: 22px; }
.wform-submit:hover { background: var(--accent); border-color: var(--accent); }
.wform-submit[disabled] { background: var(--soft); border-color: var(--line); color: var(--muted); }
.wform.is-busy .wform-submit { cursor: progress; }
.wform-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.wform-check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid #9a9a9f; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.wform-check input:checked { background: var(--ink); border-color: var(--ink); }
.wform-check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: translateY(-1px) rotate(-45deg); }
.wform-fine { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.wform-fine + .wform-fine { margin-top: -8px; }
.wform-fine a { text-decoration: underline; }
.wform-fine a:hover { color: var(--ink); }
.wform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wform-status { min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--muted); }
.wform-status.is-error { color: #b00020; }
.wform-status.is-ok { color: #11693a; }
.wform.is-done .wform-row, .wform.is-done .wform-check, .wform.is-done .wform-fine { display: none; }

/* ----- strip above the footer (every page) ----- */
.signup { background: var(--soft); padding-block: clamp(36px, 4.5vw, 60px); }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.signup .h2 { margin: 12px 0 10px; max-width: 18ch; }
.signup-text { color: var(--muted); max-width: 42ch; }
.signup-form { width: 100%; }

/* ----- pop-up ----- */
.wmodal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s 0.4s; }
.wmodal.is-open { visibility: visible; transition-delay: 0s; }
.wmodal-overlay { position: absolute; inset: 0; background: rgba(12, 12, 13, 0.4); opacity: 0; transition: opacity 0.4s var(--ease); }
.wmodal.is-open .wmodal-overlay { opacity: 1; }
.wmodal-panel { position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--white); box-shadow: 0 30px 80px rgba(12, 12, 13, 0.25); opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.45s var(--ease); }
.wmodal.is-open .wmodal-panel { opacity: 1; transform: none; }
.wmodal-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color var(--dur-fast); }
.wmodal-close:hover { color: var(--ink); }
.wmodal-mark { display: block; width: 132px; height: auto; margin: 34px 0 0 clamp(24px, 6vw, 40px); }
.wmodal-body { padding: 22px clamp(24px, 6vw, 40px) clamp(24px, 5vw, 36px); }
.wmodal-title { margin: 12px 0 6px; font-weight: 600; font-size: clamp(28px, 5.4vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
.wmodal-sub { font-size: clamp(18px, 3.2vw, 21px); font-weight: 600; letter-spacing: -0.015em; }
.wmodal-text { margin: 10px 0 22px; color: var(--muted); font-size: 15px; }
.wmodal .wform { max-width: none; }
.wmodal-skip { display: block; margin: 18px auto 0; padding: 8px 4px; font-size: 14px; font-weight: 500; color: #55555b; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-fast); }
.wmodal-skip:hover, .wmodal-skip:focus-visible { color: var(--ink); }
@media (max-width: 480px) { .wmodal .perks { gap: 6px; margin-bottom: 16px; } .wmodal-body { padding-top: 14px; } .wmodal-title { font-size: 28px; } .wmodal-mark { margin-top: 26px; width: 118px; } }

@media (max-width: 860px) {
  .signup-inner { grid-template-columns: 1fr; }
  .signup-form { justify-self: start; max-width: none; }
}
@media (max-width: 480px) {
  .wform-row { flex-direction: column; }
  .wform-input { flex: none; width: 100%; }
  .wform-input { border-bottom: 1px solid var(--ink); }
  .wform-submit { width: 100%; }
}
.wmodal .wform-row { flex-direction: column; }
.wmodal .wform-input { flex: none; width: 100%; }
.wmodal .wform-submit { width: 100%; padding-inline: 14px; }

/* ----- more inviting offer: benefits list, form on a card with a big percentage badge ----- */
.perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.perks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--white); box-sizing: border-box; }
.signup-card { position: relative; justify-self: end; width: 100%; max-width: 540px; padding: clamp(24px, 3vw, 36px); padding-top: clamp(40px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(12, 12, 13, 0.07); }
.signup-badge { position: absolute; top: -22px; left: clamp(24px, 3vw, 36px); margin: 0; padding: 9px 16px; background: var(--accent); color: var(--white); border-radius: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.signup .wform { max-width: none; }
.wmodal .perks { margin: 0 0 22px; gap: 8px; }
.wmodal .wmodal-text { margin-bottom: 16px; }
@media (max-width: 860px) { .signup-card { justify-self: stretch; max-width: none; } }

/* Compact pop-up: no reserved space for the status line until there is a message */
.wform-status { min-height: 0; margin-top: 8px; }
.wform-status:empty { margin: 0; }
.wmodal-skip { margin-top: 6px; }
.wmodal-body { padding-bottom: clamp(16px, 4vw, 24px); }
