/* PowerFull website. Brand: Inter 400, 700, 800; navy, raised, white, secondary, Harbour blue, mint. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1a30;
  --raised: #12243f;
  --border: #22385a;
  --white: #f4f6fa;
  --secondary: #b8c6d8;
  --blue: #3cc8f0;
  --mint: #4cc9a0;
  --mint-hover: #3fb891;
  --ink: #081627;
  --field: #6b84a6;
  --error: #ffb4ab;
  --max: 68rem;
  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fe0f7;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.full {
  color: var(--blue);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.logo {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.logo:hover {
  color: var(--white);
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--mint);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--mint-hover);
  color: var(--ink);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.button-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

/* Layout */

main {
  flex: 1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem var(--gutter);
}

.narrow {
  max-width: 40rem;
}

.center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--mint);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-title {
  margin-top: 1.75rem;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
}

.page-title {
  font-size: clamp(2.1rem, 7vw, 3.25rem);
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--secondary);
  font-size: 1.1rem;
}

.page-lede {
  margin: 1rem 0 0;
  color: var(--secondary);
  font-size: 1.1rem;
}

.tagline {
  margin: 2.5rem 0 0;
  color: var(--mint);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.closing {
  border-top: 1px solid var(--border);
}

.closing h2 {
  font-size: clamp(2rem, 7vw, 3.25rem);
}

.prose p {
  margin: 1.1rem 0 0;
  color: var(--secondary);
  font-size: 1.075rem;
}

.prose p.strong {
  color: var(--white);
  font-weight: 700;
}

.actions {
  margin-top: 2rem;
}

/* Forms */

.form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--raised);
}

.hero-form {
  max-width: 34rem;
  margin: 2rem auto 0;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

label,
legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.optional {
  color: var(--secondary);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--field);
  border-radius: 0.85rem;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8fa2bb;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.choice input:checked + span {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--secondary);
}

.consent input {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--mint);
}

.small-print {
  margin: 0;
  color: var(--secondary);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0;
  font-weight: 700;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color: var(--error);
}

.form-message.preview {
  padding: 0.75rem 1rem;
  border: 1px dashed #ffb547;
  border-radius: 0.75rem;
  color: #ffb547;
  font-weight: 400;
}

.success {
  padding: 1.5rem;
  border: 1px solid var(--mint);
  border-radius: 1.25rem;
  background: var(--raised);
  text-align: center;
}

.success h2 {
  font-size: 1.6rem;
}

.success p {
  margin: 0.75rem 0 0;
  color: var(--secondary);
}

/* Privacy */

.policy h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.policy ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--secondary);
}

.policy li + li {
  margin-top: 0.4rem;
}

/* Review notes: visible only while the site is being reviewed; remove before publishing. */
.to-confirm {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #ffb547;
  border-radius: 0.75rem;
  color: #ffb547;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: grid;
  gap: 1rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.footer-inner .logo {
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--secondary);
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 2rem;
  }
}

@media (min-width: 56rem) {
  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

.page-lede,
.policy,
.prose {
  overflow-wrap: break-word;
}
