/* Clarity Writers site footer on the Clarity Box pages (9 Nov 2026, Jordan:
   "use the standard website footer"). Copied from the main site's computed
   footer rules in index.html; if the main footer's look changes, update this
   too. Markup sits between <!-- Clarity Writers site footer --> comments. */
.site-footer {
  --site-gutter: 64px;
  --site-content-width: 1152px;
  --sf-dur-s: 180ms;
  --sf-dur-m: 260ms;
  --sf-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sf-ease-std: cubic-bezier(0.2, 0, 0, 1);
  padding: 5rem var(--site-gutter) 3rem;
  background: #ffffff radial-gradient(rgb(229, 232, 229) 0.65px, transparent 0.8px) 0 0 / 5px 5px !important;
  border-top: 1px solid rgb(230, 230, 227) !important;
  color: rgb(10, 14, 28);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.site-footer * { box-sizing: border-box; }
.site-footer a { text-decoration: none; }
.site-footer p { margin: 0; }
.footer-inner { max-width: var(--site-content-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; align-items: start; margin-bottom: 3rem; }
.footer-brand { grid-column: 1 / 3; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo { height: 24px; width: auto; align-self: flex-start; }
.footer-signup { grid-column: 1 / 3; width: 100%; max-width: 25.5rem; justify-self: start; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-signup__blurb { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 400; font-size: 13px; line-height: 1.5; color: rgba(10, 14, 28, 0.6); margin: 0 0 0.6rem !important; }
.footer-signup__row { display: flex; gap: 0.5rem; position: relative; }
.footer-signup__input { flex: 1 1 auto; min-width: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; color: rgb(10, 14, 28); background: #ffffff; border: 1px solid rgba(10, 14, 28, 0.18); border-radius: 100px; padding: 0.7rem 3.1rem 0.7rem 1.1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.footer-signup__input::placeholder { color: rgba(10, 14, 28, 0.4); }
.footer-signup__input:focus { outline: none; border-color: #1979eb; box-shadow: rgba(25, 121, 235, 0.15) 0 0 0 3px; }
.footer-signup__go { position: absolute; top: 50%; right: 5px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(10, 14, 28); color: #ffffff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(-50%) scale(0.7); transition: opacity var(--sf-dur-s) var(--sf-ease-std), transform var(--sf-dur-s) var(--sf-ease-out), visibility var(--sf-dur-s), background-color var(--sf-dur-s) var(--sf-ease-std); }
.footer-signup__go svg { width: 16px; height: 16px; }
.footer-signup.is-ready .footer-signup__go { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.footer-signup.is-ready .footer-signup__go:active { transform: translateY(-50%) scale(0.98); }
.footer-signup__go:hover { background: #1979eb; }
.footer-signup__go:focus-visible { outline: #1979eb solid 2px; outline-offset: 2px; }
.footer-signup__go:disabled { opacity: 0.6; cursor: default; }
.footer-signup__msg { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.8rem; line-height: 1.4; margin: 0.15rem 0 0 !important; min-height: 1.1em; }
.footer-signup__msg--error { color: rgb(192, 57, 43); }
.footer-signup__msg--success { color: rgb(31, 138, 76); }
.footer-signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-label { font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(10, 14, 28, 0.5); margin-bottom: 0.35rem; }
.footer-link { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 500; font-size: 13.5px; color: rgb(10, 14, 28); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: rgba(10, 14, 28, 0.55); }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: rgba(10, 14, 28, 0.6); border: 1px solid rgba(10, 14, 28, 0.14); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.footer-social:hover { color: #ffffff; background: #1979eb; border-color: #1979eb; }
.footer-base { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 300; font-size: 0.8rem; color: rgba(10, 14, 28, 0.68); }
.footer-copy--panel { color: rgb(10, 14, 28); margin: 0; line-height: 1.5; max-width: 26rem; }
@media (max-width: 880px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 1rem; }
  .footer-brand, .footer-signup { grid-column: 1; }
}
@media (max-width: 560px) {
  .site-footer { --site-gutter: 20px; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (min-width: 981px) {
  .footer-inner { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .footer-top { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 2rem; margin: 0; }
  .footer-brand, .footer-signup { grid-column: auto; }
  .footer-logo { height: 22px; }
  .footer-signup { max-width: 22rem; }
  .footer-signup__row { flex-wrap: wrap; }
  .footer-signup__input { flex: 1 1 100%; }
  .footer-cols { grid-area: 1 / 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2rem; margin: 0; }
  .footer-base { grid-column: 1 / -1; margin-top: 4.5rem; }
}

/* Phone fixes (9 Nov 2026, Jordan approved the phone audit in mockups/phone-audit-20261109.md).
   Backup _archive/file-backups/box-pre-phone-fixes-20261109/. Phones and tablets only. */
@media (max-width: 767px) {
  .site-footer { --site-gutter: 24px; }
}
@media (max-width: 980px) {
  /* Item 25: less empty space above the footer. */
  .site-footer { padding-top: 3rem; }
  /* Item 9: a 16px field, so iPhones don't zoom into it. */
  .footer-signup__input { font-size: 16px; padding-right: 3.4rem; }
  /* Item 32: the arrow shows faintly before a valid email is typed, then darkens. */
  .footer-signup__go { opacity: 0.3; visibility: visible; transform: translateY(-50%); }
  .footer-signup.is-ready .footer-signup__go { opacity: 1; transform: translateY(-50%); }
  /* Item 26: tap targets of at least 40px for the sign-up arrow, footer links and socials. */
  .footer-signup__go { width: 40px; height: 40px; right: 4px; }
  .footer-col { gap: 0; }
  .footer-label { margin-bottom: 0.25rem; }
  .footer-link { display: flex; align-items: center; min-height: 40px; }
  .footer-social { width: 44px; height: 44px; }
}
