/* Well Said family app (my.wellsaid.uk) — phone first, matches the Holyport prototype. */
:root {
  --ivory: #F4F0E7; --ink: #0D1B2A; --muted: #55606B; --line: #E2DCCD; --paper: #FFFFFF;
  --teal: #0E7C77; --teal-dark: #0A5A56; --coral: #EB4F4A; --coral-dark: #B23531;
  --amber: #FFB21D; --blue: #1B4FD6; --peach: #FFE3D8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.55 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-dark); }
.fa { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 0 20px 40px; overflow: hidden; }

@keyframes fa-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fa-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-6px) rotate(var(--r, 0deg)); } }
.fa-screen { position: relative; animation: fa-rise .32s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .fa-screen, .fa-mark { animation: none !important; } }

/* speech marks */
.fa-mark { display: inline-block; width: 12px; height: 16px; }
.fa-mark.inline { width: 12px; height: 16px; vertical-align: 2px; margin-left: 2px; }
.fa-mark.d1, .fa-mark.d2 { position: absolute; z-index: 0; pointer-events: none; animation: fa-float 6s ease-in-out infinite; }
.fa-mark.d1 { width: 104px; height: 140px; top: 14px; right: -30px; --r: 14deg; }
.fa-mark.d2 { width: 46px; height: 62px; top: 92px; right: 92px; --r: 186deg; animation-delay: -2s; }
.fa-screen { z-index: 1; }
.fa-mark.corner { position: absolute; width: 64px; height: 86px; right: -12px; bottom: -28px; transform: rotate(180deg); }
.fa-teal p, .fa-blue p { padding-right: 34px; }

/* logo */
.fa-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.fa-logo img { width: 28px; height: 38px; object-fit: contain; }
.fa-logo span { font: 19px/0.95 'Special Elite', monospace; }
.fa-logo b { color: var(--coral); font-weight: 400; }
.fa-logo.big img { width: 46px; height: 62px; }
.fa-logo.big span { font-size: 30px; }

/* sign-in */
.fa-signin { padding-top: 72px; display: flex; flex-direction: column; gap: 20px; min-height: 100vh; min-height: 100dvh; }
.fa-signin h1 { margin: 36px 0 0; }
h1 { font: 700 30px/1.15 'Courier Prime', monospace; margin: 0; }
.fa-lead { margin: 0; font-size: 15px; color: #47515C; }
.fa-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; position: relative; }
.fa-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.fa-form input:not([type=checkbox]) { font: 400 16px 'Poppins', sans-serif; padding: 15px 16px; border: 1.5px solid #D9D1BF; border-radius: 14px; background: var(--paper); color: var(--ink); width: 100%; }
.fa-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.fa-form .fa-code { font: 700 26px 'Courier Prime', monospace; letter-spacing: 0.3em; text-align: center; }
.fa-form label.fa-tick { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 14px; color: #47515C; }
.fa-tick input { width: 20px; height: 20px; accent-color: var(--teal); }
.fa-btn { font: 600 16px 'Poppins', sans-serif; padding: 16px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; cursor: pointer; transition: transform .12s; }
.fa-btn:active { transform: scale(.97); }
.fa-back { align-self: flex-start; width: 44px; height: 44px; border-radius: 22px; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.fa-back svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fa-foot { margin-top: auto; font-size: 12px; color: var(--muted); text-align: center; }
.fa-help { font-size: 14px; color: #47515C; }
.fa-help summary { cursor: pointer; font-weight: 600; color: var(--teal-dark); }
.fa-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--peach); color: #8F2A26; font-size: 14px; }
.fa-ok { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #E1F0EF; color: var(--teal-dark); font-size: 14px; }
.fa-test { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF1CC; color: #6B4A00; font-size: 14px; }

/* signed in */
.fa-head { display: flex; align-items: center; justify-content: space-between; padding: 50px 0 16px; }
.fa-head form { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); }
.fa-link { border: 0; background: none; padding: 0; font: 600 12px 'Poppins', sans-serif; color: var(--coral-dark); cursor: pointer; }
.fa-hi { font-size: 28px; margin: 4px 0 14px; }
.fa-card { position: relative; overflow: hidden; background: var(--paper); border-radius: 22px; padding: 18px 20px; margin-bottom: 14px; }
.fa-card p { margin: 0; position: relative; }
.fa-teal { background: var(--teal); color: #fff; }
.fa-blue { background: var(--blue); color: #fff; }
.fa-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.fa-big { font: 700 26px/1.15 'Courier Prime', monospace; margin: 6px 0 !important; }
.fa-strong { font-size: 14px; font-weight: 600; }
.fa-muted { font-size: 13px; color: var(--muted); }
.fa-row { display: flex; gap: 14px; align-items: center; }
.fa-grow { flex: 1; min-width: 0; }
.fa-switch { flex: none; width: 52px; height: 32px; border-radius: 16px; border: 0; padding: 3px; cursor: pointer; display: flex; justify-content: flex-start; background: #CFC6B3; transition: background-color .2s; }
.fa-switch.on { justify-content: flex-end; background: var(--teal); }
.fa-switch span { width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(13, 27, 42, .25); }
