/* Veritance — veritance.com.au */

/* Figtree (SIL Open Font License), self-hosted variable font, latin subset. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette (fixed) */
  --navy: #0F2D3D;
  --sage: #5CB38A;
  --mist: #E8EDF0;
  --sand: #F9F9F7;
  --white: #FFFFFF;

  /* Derived text tones (AA on Sand, Mist and White) */
  --text: var(--navy);
  --text-muted: #4A5F6B;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #C3CFD6;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 0.75rem;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta :focus-visible {
  outline-color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Shared elements ---------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--muted {
  color: var(--text-muted);
}

.rule {
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--sage);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

/* TODO(logo): temporary text wordmark; remove once the SVG logo is in place. */
.logo__text {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

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

.button--primary {
  background: var(--navy);
  color: var(--white);
}

.button--primary:hover {
  background: #1B4257;
}

.button--accent {
  background: var(--sage);
  color: var(--navy);
}

.button--accent:hover {
  background: #74C29D;
}

.text-link {
  display: inline-block;
  padding-block: 0.625rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .text-link {
    transition: background-color 0.2s ease, text-decoration-color 0.2s ease;
  }

  .skip-link {
    transition: transform 0.15s ease;
  }
}

/* ---------- Header ---------- */

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 10vw, 8rem);
}

.hero__inner {
  display: grid;
  gap: 2rem;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero__subline {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  font-weight: 400;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 60em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
  }

  .hero__aside {
    padding-left: 3rem;
    border-left: 1px solid var(--mist);
  }
}

/* ---------- Partner strip ---------- */

.partner {
  background: var(--mist);
  padding-block: 2rem;
}

.partner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}

.partner__title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.partner__text {
  flex: 1 1 24rem;
  color: var(--text-muted);
}

.partner__badge {
  height: 3rem;
  width: auto;
}

/* ---------- Pillars ---------- */

.pillars {
  padding-block: var(--section-y);
}

.pillars__list {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.pillar__icon {
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__title {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
}

.pillar__text {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

@media (min-width: 48em) {
  .pillars__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* ---------- Products ---------- */

.products {
  padding-bottom: var(--section-y);
}

.products h2 {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 500;
}

.products__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.card--featured {
  position: relative;
  background: var(--white);
  border: 1px solid var(--mist);
  border-top: 3px solid var(--sage);
}

.card__title {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  font-weight: 600;
}

.card__tagline {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}

.card__text {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.card__link {
  margin-top: 1.5rem;
}

/* Make the whole SettleFlo card clickable via its single link. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card--featured:has(.card__link:hover) {
  border-color: #CBD5DB;
  border-top-color: var(--sage);
}

.card--quiet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--mist);
}

.card--quiet .card__tagline {
  margin-top: 0;
  color: var(--text);
}

@media (min-width: 60em) {
  .products__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* ---------- Closing CTA ---------- */

.cta {
  background: var(--navy);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
}

.cta__inner {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.cta h2 {
  max-width: 40rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 500;
}

.cta__text {
  max-width: 36rem;
  color: var(--text-on-dark-muted);
}

.cta .button {
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.site-footer .logo__text {
  font-size: 1.375rem;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  text-underline-offset: 0.25em;
}

.site-footer__legal {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mist);
}

.site-footer__notice {
  color: var(--text);
}
