/* SpaAccess — single page styles
   Brand: pink #F652A0 (accent), grey from the wordmark, white grounds, soft blush bands. */

@font-face {
  font-family: "Jost";
  src: url("jost-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #2f2d31;          /* body text, 13.6:1 on white */
  --muted: #5d5b61;        /* secondary text, 6.6:1 on white */
  --logo-grey: #747479;    /* the wordmark grey, used for fine detail only */
  --pink: #f652a0;         /* brand accent */
  --pink-ink: #b0236b;     /* pink for text, links and outlines, 6.3:1 on white */
  --pink-deep: #9a1d5d;
  --blush: #fdf0f5;
  --blush-strong: #f9dce9;
  --line: #ece3e7;

  --font: "Jost", "Futura", "Century Gothic", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 4.5rem;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  background: var(--white);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

/* Keeps the strip behind the phone status bar the same colour as the header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 380;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

p { margin: 0; }

a { color: var(--pink-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-deep); text-decoration-thickness: 2px; }

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

.wrap {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); color: var(--white); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
/* White on #F652A0 is 3.2:1, so solid buttons use large bold text (≥ 18.7px, 700) to meet WCAG AA. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--pink); color: var(--white); }
.btn--primary:hover { background: var(--pink-ink); color: var(--white); text-decoration: none; }

.btn--outline { background: transparent; color: var(--pink-ink); border-color: var(--pink-ink); font-weight: 600; }
.btn--outline:hover { background: var(--blush); color: var(--pink-deep); text-decoration: none; }

.btn--small { min-height: 2.75rem; padding: 0.45rem 1.15rem; font-size: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-block; padding-block: 0.5rem; border-radius: 6px; }
.brand img { width: 216px; height: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 450;
  padding-block: 0.6rem;
}
.site-nav a:not(.btn):hover { color: var(--pink-ink); text-decoration: underline; }

.nav-toggle { display: none; }

@media (max-width: 47.99em) {
  :root { --header-h: 4rem; }
  .brand img { width: 172px; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -5px; }
  .nav-toggle__bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); background: var(--ink); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 0 1.25rem;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; }
  .site-nav .btn { margin-top: 1rem; width: 100%; }
  .site-nav li:last-child { border-top: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__copy { max-width: 32rem; }
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 30rem;
}
.hero .actions { margin-top: 2.25rem; }

.powered {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.powered::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

@media (max-width: 55.99em) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 36rem; }
}

/* ---------- Screenshots and placeholders ---------- */
.shot { margin: 0; position: relative; }

/* A soft blush plane sits behind the hero screenshot, offset like a second sheet. */
.shot--hero { padding: 0 1.5rem 1.5rem 0; }
.shot--hero::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0 0 1.5rem;
  background: var(--blush-strong);
  border-radius: var(--radius-l);
}

.shot img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--white);
}

.placeholder {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  aspect-ratio: 16 / 11;
  padding: 2rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--muted);
}
.placeholder--wide { aspect-ratio: 16 / 9; background: var(--blush); }


@media (max-width: 34.99em) {
  .placeholder { aspect-ratio: 4 / 3; }
  .shot--hero { padding: 0 0.9rem 0.9rem 0; }
  .shot--hero::before { inset: 0.9rem 0 0 0.9rem; border-radius: var(--radius-m); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--blush { background: var(--blush); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 2rem 1.75rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
}
.feature .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--blush);
  fill: none;
  stroke: var(--pink-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p { margin-top: 0.6rem; color: var(--muted); }

@media (max-width: 61.99em) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.99em) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Who it's for ---------- */
.audience { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.audience h2 { max-width: 18ch; }
.audience__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--blush-strong);
}
.audience__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0.5rem 1rem 0;
  border-bottom: 1px solid var(--blush-strong);
  font-size: 1.15rem;
}
.audience__list li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pink);
}

@media (max-width: 55.99em) { .audience__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 29.99em) { .audience__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Product preview ---------- */
.preview__intro { max-width: 40rem; }
.preview__intro p { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; }
.shot--wide { margin-top: clamp(2.25rem, 5vw, 3.25rem); }
.preview__cta { margin-top: 2.25rem; }

/* ---------- Demo ---------- */
.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.demo__intro p { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; max-width: 30rem; }
.demo__actions { display: grid; justify-items: start; gap: 1rem; }
.demo__actions p { color: var(--muted); }
@media (max-width: 47.99em) {
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
}

.todo {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #fff6e5;
  border: 1px solid #f1d39a;
  color: #5c4100;
  font-size: 0.78rem;
  line-height: 1.6;
  vertical-align: 0.1em;
}

/* ---------- Contact page ---------- */
.contact-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.contact-hero h1 { max-width: 14ch; }
.contact-options { padding-bottom: var(--section-y); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-m);
  background: var(--blush);
}
.contact-card .icon {
  width: 2.75rem; height: 2.75rem; padding: 0.55rem; margin-bottom: 0.8rem;
  border-radius: 50%; background: var(--white);
  fill: none; stroke: var(--pink-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card h2 { font-size: 1.35rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.contact-card p, .contact-card address { color: var(--muted); font-style: normal; }
.contact-card__action { margin-top: auto; padding-top: 0.8rem; font-size: 1.15rem; font-weight: 500; }
.contact-card .todo { margin: 0.4rem 0 0; align-self: flex-start; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--pink-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.contact-note { margin-top: 2.5rem; color: var(--muted); max-width: 40rem; }
@media (max-width: 55.99em) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Privacy policy ---------- */
.legal { max-width: calc(44rem + 2 * var(--gutter)); padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal__date { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; font-weight: 500; letter-spacing: 0; }
.legal p, .legal address { margin-top: 0.9rem; font-style: normal; }
.legal__date + p { margin-top: 2rem; font-size: 1.15rem; }
.site-footer a[aria-current="page"] { color: var(--pink-ink); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
  color: var(--muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 2rem;
}
.site-footer__brand img { width: 184px; }
.site-footer__brand p { margin-top: 0.9rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--pink-ink); }

@media (max-width: 47.99em) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 39.99em) {
  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    padding: 1.4rem 1.25rem 1.5rem;
  }
  .feature .icon { margin-bottom: 0; }
  .feature p { grid-column: 1 / -1; }
}
