/*
  Family Scam Guard: sign-up site styles.
  Colours (all pass WCAG AAA 7:1 for text):
    --ink    #1A1A1A on white  = 17.4:1
    --navy   #1B3A5C on white  = 11.6:1  (headings, links, buttons)
    --tint   #F2F5F9 behind ink = 15.9:1 (section background)
    --amber  #FFC94D behind navy = 7.6:1 (focus halo only)
  To change the brand colour, edit --navy and re-check contrast.
*/
:root {
  --ink: #1A1A1A;
  --navy: #1B3A5C;
  --navy-dark: #14304D;
  --tint: #F2F5F9;
  --amber: #FFC94D;
  --white: #FFFFFF;
  --error-bg: #FFF4D6;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 125%; /* 20px base when the browser default is 16px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link: visible when focused */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

header.site {
  border-bottom: 3px solid var(--navy);
  padding: 1rem 0;
}
.brand {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 1.5em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 1.25em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.6em; }
strong { font-weight: 700; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.15em; }

/* One clear focus style everywhere: navy ring with amber halo */
a:focus-visible, button:focus-visible, input:focus-visible, .button:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--amber);
}

.lede { font-size: 1.15rem; }

.panel {
  background: var(--tint);
  border-left: 6px solid var(--navy);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.panel p:last-child { margin-bottom: 0; }

.source { font-size: 1rem; }

.checks { list-style: none; padding: 0; }
.checks li {
  position: relative;
  padding-left: 2.25rem;
}
.checks li::before {
  content: "\2713"; /* check mark */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--navy);
}

/* Buttons: large tap targets (at least 56px tall) */
.button, button {
  display: inline-block;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  border: 3px solid var(--navy);
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
button[disabled] { opacity: 0.75; cursor: wait; }

/* Form */
.signup {
  background: var(--tint);
  border: 3px solid var(--navy);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.signup h2 { margin-top: 0; }
label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
input[type="email"] {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.6rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.hint { font-size: 1rem; }

/* Honeypot field: hidden from people and screen readers, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  background: var(--error-bg);
  border: 3px solid var(--ink);
  padding: 1rem;
  margin: 1rem 0;
}

footer.site {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 3px solid var(--navy);
  font-size: 1rem;
}
footer.site ul { list-style: none; padding: 0; }
footer.site li { margin-bottom: 0.75em; }
footer.site a { display: inline-block; padding: 0.35rem 0; } /* bigger tap area */
address { font-style: normal; }

@media (min-width: 40rem) {
  .button, button { width: auto; min-width: 18rem; }
  h1 { font-size: 2.3rem; }
}

@media print {
  .skip, .signup, footer.site nav { display: none; }
  body { font-size: 14pt; }
}

/* Links that sit on their own line get a taller tap area (44px+) */
main p > a:only-child:not(.button) { display: inline-block; padding: 0.6rem 0; }

/* Second button in a row of actions: outlined, so the main one stands out */
#share-native { background: #fff; color: var(--navy); }
#share-native:hover { background: var(--tint); }

/* Secondary button: outlined, so it does not compete with the main action */
.button.secondary { background: var(--white); color: var(--navy); }
.button.secondary:hover { background: var(--tint); }
