/* Hawah website: the app's Mist palette (lavender-white and slate-blue neutrals, one plum accent).
   Text colours are darkened versions of the app's own so every pairing clears
   WCAG 2.1 AA (4.5:1 for body text). Fonts are self-hosted; nothing loads from
   another site. */

@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif_400Regular_Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #d8dce6;
  --surface: #e9ecf2;
  --text: #1e2230;
  --text-soft: #4a4f5e;
  --accent: #8a3f5c;
  --accent-text: #fbf6f4;
  --button: #8a3f5c;
  --rule: #c3c8d6;
  --select: #a3a9bc;
  --frame: #1e2230;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1f2a;
    --surface: #272b38;
    --text: #d8dce6;
    --text-soft: #a3a9bc;
    --accent: #d68fb0;
    --accent-text: #fbf6f4;
    --button: #9a4b6c;
    --rule: #363b4c;
    --select: #363b4c;
    --frame: #0f1118;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--button);
  color: var(--accent-text);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.brand svg {
  color: var(--accent);
  width: 3.1rem;
  height: auto;
  flex: none;
}
.brand-name {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text);
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 7vw, 5rem);
  max-width: 46rem;
}
.eyebrow {
  margin: 0 0 1.25rem;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
}
.lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--button);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  text-decoration: underline;
}
.note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Sections */
section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
}
h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.1;
}
h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps p,
.cols p {
  margin: 0;
  color: var(--text-soft);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem;
}
.cols > div {
  min-width: 0;
}
.cols ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}
.cols li {
  margin-bottom: 0.4rem;
}

.trust {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: none;
}
.trust-wrap {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.trust p {
  margin: 0 0 0.9rem;
  max-width: 40rem;
}
.trust p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Legal pages */
.legal {
  max-width: 44rem;
  padding-block: 2rem 4rem;
}
.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.7rem;
}
.legal h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.2rem;
}
.legal p,
.legal li {
  max-width: 40rem;
}
.draft-note {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.9rem;
  margin: 0 0 1.5rem;
  background: var(--surface, transparent);
}
.legal ul {
  padding-left: 1.3rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.updated {
  color: var(--text-soft);
  margin: 0 0 2rem;
}
.table-scroll {
  overflow-x: auto;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 34rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.legal th {
  font-weight: 700;
  background: var(--surface);
}

@media (max-width: 30rem) {
  .site-header {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* On narrow screens, a wide table becomes a stack of labelled blocks so
   nothing needs sideways scrolling. */
@media (max-width: 40rem) {
  .legal table.stack {
    min-width: 0;
  }
  .legal table.stack thead {
    position: absolute;
    left: -9999px;
  }
  .legal table.stack tr {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .legal table.stack td {
    display: block;
    border: none;
    padding: 0.2rem 0;
  }
  .legal table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
  }
  .legal table.stack td:first-child {
    font-weight: 700;
  }
}


/* Home page, layout 2: the three phones. The phones are drawn in HTML and CSS
   (no images, no scripts), so they scale and stay sharp. */
.hero.center {
  max-width: none;
  text-align: center;
}
.hero.center .lede {
  margin-inline: auto;
}
.hero.center .cta-row {
  justify-content: center;
}
.trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 2rem);
  align-items: start;
}
.trio > li {
  min-width: 0;
}
.trio > li:nth-child(2) {
  margin-top: 1.75rem;
}
.trio figcaption {
  margin-top: 0.9rem;
  text-align: center;
}
.trio figcaption strong {
  display: block;
}
.trio figcaption span {
  font-size: 0.95rem;
  color: var(--text-soft);
}
.phone {
  width: min(100%, 15.5rem);
  margin: 0 auto;
  border: 0.45rem solid var(--frame);
  border-radius: 2.1rem;
  background: var(--frame);
  box-shadow: 0 1.1rem 2.5rem -1.1rem rgba(30, 34, 48, 0.55);
  overflow: hidden;
}
.screen {
  background: var(--bg);
  color: var(--text);
  padding: 0.85rem 0.75rem 0.65rem;
  min-height: 27.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.7rem;
  line-height: 1.35;
}
.screen .status {
  display: flex;
  justify-content: space-between;
  font-size: 0.56rem;
  font-weight: 700;
  padding-inline: 0.25rem;
  opacity: 0.8;
}
.screen .ey {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.screen .ti {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.05;
}
.screen .tile {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
}
.screen .tile b {
  display: block;
}
.screen .soft {
  color: var(--text-soft);
}
.screen .pill {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 99px;
  padding: 0.1rem 0.45rem;
  background: var(--select);
  color: var(--text);
}
.screen .pill.ok,
.screen .pbtn {
  background: var(--button);
  color: var(--accent-text);
}
.screen .pbtn {
  text-align: center;
  border-radius: 0.55rem;
  padding: 0.55rem;
  font-weight: 700;
  margin-top: 0.4rem;
}
.screen .hero-tile {
  background: var(--button);
  color: var(--accent-text);
}
.screen .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.screen .chip {
  background: var(--surface);
  border-radius: 99px;
  padding: 0.25rem 0.55rem;
}
.screen .chip.on {
  background: var(--button);
  color: var(--accent-text);
}
.screen .field {
  background: var(--surface);
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
  color: var(--text-soft);
}
.screen .tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-radius: 99px;
  padding: 0.4rem 0.25rem;
  font-size: 0.5rem;
  color: var(--text-soft);
}
.screen .tabbar .on {
  color: var(--text);
  font-weight: 700;
}

/* Pricing, who it is for, and the confirmation pages */
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
}
.card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
}
.card p,
.card ul {
  margin: 0;
  color: var(--text-soft);
}
.card ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.97rem;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.plan {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.plan.best {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.plan .name {
  font-weight: 700;
}
.plan .amount {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 2.8rem;
  line-height: 1;
}
.plan .amount small {
  font-family: "Work Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: 1rem;
  color: var(--text-soft);
}
.plan .saving {
  color: var(--accent);
  font-size: 0.95rem;
}
.plan ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.plan .button {
  margin-top: auto;
  text-align: center;
}
.message {
  max-width: 34rem;
  padding-block: clamp(3rem, 9vw, 6rem);
}
.message h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

@media (max-width: 44rem) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .trio > li:nth-child(2) {
    margin-top: 0;
  }
}
