/* hypoai.org. Static files, no build and no script: what is here is what is served (infra/website.tf).
   The look is the Lovable draft's (orange and white, Calibri with Carlito as the web fallback), as plain CSS,
   with the orange taken from the logo. */

@font-face {
  font-family: Carlito; /* SIL Open Font License, fonts/OFL.txt */
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/carlito-400.woff2) format("woff2");
}
@font-face {
  font-family: Carlito;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/carlito-700.woff2) format("woff2");
}

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.21 0.006 285.885);
  --primary: #ff5a1f; /* the logo's: large text, dots, numbers */
  --primary-strong: #d2410e; /* white text on it passes AA: buttons, links */
  --primary-deep: #b8370b; /* a button under the pointer */
  --secondary: oklch(0.985 0.001 106.423);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.98 0.016 73.684);
  --accent-foreground: oklch(0.553 0.195 38.402);
  --accent-border: oklch(0.954 0.038 75.164); /* also the icon tiles */
  --ok: oklch(0.448 0.119 151.328);
  --ok-bg: oklch(0.962 0.044 156.743);
  --dark: oklch(0.21 0.006 285.885);
  --dark-border: oklch(0.37 0.013 285.805);
  --border: oklch(0.923 0.003 48.717);
  --subtle: oklch(0.705 0.015 286.067);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --wide: 80rem;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: Calibri, Carlito, ui-sans-serif, system-ui, sans-serif;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--muted-foreground); }
.orange { color: var(--primary); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-border);
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary-strong); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline { border-color: color-mix(in oklab, var(--foreground) 22%, transparent); }
.btn-outline:hover { border-color: var(--foreground); }
.btn-ghost { border-color: var(--dark-border); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.btn-arrow::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask: url(/assets/arrow.svg) center / contain no-repeat;
  transition: transform 0.15s;
}
.btn-arrow:hover::after { transform: translateX(0.2rem); }
.actions { display: flex; flex-direction: column; gap: 1rem; }

/* every page's header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-head > div { display: flex; align-items: center; gap: 2.5rem; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; line-height: 1; font-weight: 800; letter-spacing: -0.025em; }
.logo img { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
.site-head nav { display: none; gap: 2rem; color: var(--muted-foreground); font-size: 0.9375rem; }
.site-head nav a:hover { color: var(--foreground); }
.site-head .btn { margin-left: auto; }

/* home */
.hero { display: grid; gap: 4rem; align-items: center; padding-top: 4rem; padding-bottom: 5rem; }
.hero-copy { max-width: 48rem; }
.hero h1 { margin-bottom: 1.5rem; font-size: 3rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.lead { max-width: 42rem; margin-bottom: 2.5rem; font-size: 1.25rem; line-height: 1.625; }

/* the hero's picture of the product: invented mail, in HTML so it stays sharp and needs no screenshot */
.demo { position: relative; isolation: isolate; width: 100%; max-width: 30rem; justify-self: center; }
.demo::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--primary) 16%, transparent), transparent);
}
.demo-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--background);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 48px -16px rgb(0 0 0 / 0.18);
  font-size: 0.875rem;
  line-height: 1.4286;
}
.demo-mail, .demo-read, .demo-draft { padding: 1.25rem 1.5rem; }
.demo-from { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--accent-border);
  color: var(--accent-foreground);
  font-size: 0.8125rem;
  font-weight: 700;
}
.demo-from div { min-width: 0; }
.demo-from strong { display: block; }
.demo-to, .demo-from time { color: var(--muted-foreground); font-size: 0.8125rem; }
.demo-from time { margin-left: auto; align-self: flex-start; }
.demo-subject { margin-top: 0.875rem; font-size: 1rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chips span { padding: 0 0.625rem; border: 1px solid var(--border); border-radius: 9999px; color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.5rem; }
.demo-read { border-block: 1px solid var(--border); background: var(--secondary); }
.demo-read .eyebrow { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.demo-read .eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--primary); }
.demo-read dl > div { display: flex; gap: 1rem; padding-block: 0.5rem; }
.demo-read dl > div + div { border-top: 1px solid var(--border); }
.demo-read dt { flex: none; width: 6.5rem; color: var(--muted-foreground); }
.demo-read dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; min-width: 0; }
.ok, .warn { padding: 0 0.5rem; border-radius: 9999px; font-size: 0.75rem; line-height: 1.25rem; font-weight: 600; }
.ok { background: var(--ok-bg); color: var(--ok); }
.warn { background: var(--accent-border); color: var(--accent-foreground); }
.demo-draft { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-draft strong { display: block; }
.demo-send { flex: none; padding: 0.375rem 0.875rem; border-radius: 9999px; background: var(--primary-strong); color: #fff; font-size: 0.8125rem; font-weight: 700; }

.solutions { padding: 6rem 1.5rem; background: var(--secondary); }
.solutions > div { max-width: var(--wide); margin-inline: auto; }
.solutions h2 { margin-bottom: 1rem; font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
.solutions header { margin-bottom: 4rem; }
.cards { display: grid; gap: 2rem; }
.card { padding: 2rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--background); box-shadow: var(--shadow-sm); }
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  background: var(--accent-border);
  color: var(--primary-strong);
}
.tile svg { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.card p { margin-bottom: 1.5rem; line-height: 1.625; }
.checks li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.checks li + li { margin-top: 0.75rem; }
.checks li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  background: var(--primary);
  mask: url(/assets/check.svg) center / contain no-repeat;
}
.checks strong { color: var(--foreground); }

.claims { padding-block: 6rem; }
.claims-grid { display: grid; gap: 4rem; align-items: start; }
.claims h2 { margin-bottom: 1.5rem; font-size: 2.25rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.claims-copy p { font-size: 1.125rem; line-height: 1.625; }
.claims-copy p + p { margin-top: 1.5rem; }
.panel { padding: 2rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--secondary); }
.eyebrow {
  margin-bottom: 2rem;
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.steps li { display: flex; align-items: flex-start; gap: 1.25rem; }
.steps li + li { margin-top: 2rem; }
.steps .n { padding-top: 0.25rem; color: var(--primary); font-size: 1.5rem; line-height: 1; font-weight: 800; }
.steps h3 { margin-bottom: 0.25rem; font-size: 1.125rem; line-height: 1.5556; font-weight: 700; }
.steps p { font-size: 0.875rem; line-height: 1.625; }
.shots { display: grid; gap: 2rem; margin-top: 4rem; }
.shots figure { padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--secondary); }
.shots img { width: 100%; border: 1px solid var(--border); border-radius: 0.5rem; box-shadow: var(--shadow-sm); }
.shots figcaption { margin-top: 1rem; padding-inline: 0.25rem; font-size: 0.875rem; line-height: 1.4286; }

.how { padding-block: 6rem; }
.how header { margin-bottom: 5rem; text-align: center; }
.how h2 { margin-bottom: 1rem; font-size: 2.25rem; line-height: 1.1111; font-weight: 700; }
.how header p { max-width: 36rem; margin-inline: auto; }
.how-grid { display: grid; gap: 3rem; text-align: center; }
.how-grid .n { margin-bottom: 1rem; color: var(--primary); font-size: 3rem; line-height: 1; font-weight: 800; }
.how-grid h3 { margin-bottom: 0.75rem; font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.how-grid p { font-size: 0.875rem; line-height: 1.4286; }

.cta { padding: 5rem 1.5rem; background: var(--dark); color: #fff; text-align: center; }
.cta > div { max-width: 56rem; margin-inline: auto; }
.cta h2 { margin-bottom: 2rem; font-size: 2.25rem; line-height: 1.1111; font-weight: 700; }
.cta .actions { justify-content: center; }
.cta .btn { padding-inline: 2.5rem; }
.cta-note { margin-top: 2rem; color: var(--dark-border); font-size: 0.875rem; line-height: 1.4286; }

footer { padding: 3rem 1.5rem; border-top: 1px solid var(--border); }
footer > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin-inline: auto;
  color: var(--subtle);
  font-size: 0.875rem;
  line-height: 1.4286;
}
.foot-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--foreground); font-weight: 700; }
.foot-brand img { width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; }
footer nav { display: flex; gap: 2rem; }
.foot-right { text-align: right; }
.foot-right a { display: block; margin-top: 0.25rem; }
.cta-note a:hover, footer a:hover { color: var(--primary); }

/* privacy, terms */
.doc { max-width: 48rem; margin-inline: auto; padding: 4rem 1.5rem; }
.doc h1 { margin-bottom: 0.5rem; font-size: 2.25rem; line-height: 1.1111; font-weight: 800; letter-spacing: -0.025em; }
.updated { margin-bottom: 2rem; color: var(--subtle); font-size: 0.875rem; line-height: 1.4286; }
.prose { color: var(--muted-foreground); line-height: 1.625; }
:where(.prose > :not(:last-child)) { margin-bottom: 1.5rem; }
.prose h2 { margin: 2.5rem 0 0.75rem; color: var(--foreground); font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.prose a { color: var(--primary-strong); text-decoration: underline; }
.prose ul { padding-left: 1.5rem; list-style: disc; }
.prose li { padding-left: 0.25rem; }
.prose li:not(:last-child) { margin-bottom: 0.5rem; }
.prose li > ul { margin-top: 0.5rem; }

/* contact: the form posts to /lead (website_lead.py) */
.form-page { max-width: 36rem; margin-inline: auto; padding: 4rem 1.5rem 6rem; }
.form-page h1 { margin-bottom: 0.75rem; font-size: 2.25rem; line-height: 1.1111; font-weight: 800; letter-spacing: -0.025em; }
.form-page > p { margin-bottom: 2rem; font-size: 1.125rem; line-height: 1.625; }
.lead-form { display: grid; gap: 1.25rem; }
.lead-form label { display: grid; gap: 0.375rem; font-size: 0.9375rem; font-weight: 700; }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-weight: 400;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.lead-form textarea { resize: vertical; }
.lead-form .btn { justify-self: start; margin-top: 0.5rem; }
.hp { position: absolute; left: -9999px; } /* a field people never see and bots fill */
.form-note { margin-top: 2rem; color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.4286; }
.form-note a { color: var(--primary-strong); text-decoration: underline; }

/* 404, 500 */
.notfound { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding-inline: 1rem; text-align: center; }
.notfound h1 { font-size: 4.5rem; line-height: 1; font-weight: 700; }
.notfound h2 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.notfound p { max-width: 30rem; margin: 0.5rem auto 0; font-size: 0.875rem; line-height: 1.4286; }
.notfound div > a {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
}
.notfound div > a:hover { background: var(--primary-deep); }
.notfound p a { color: var(--primary-strong); text-decoration: underline; }

@media (min-width: 40rem) {
  .actions { flex-direction: row; }
}
@media (min-width: 48rem) {
  .site-head nav { display: flex; }
  .hero { padding-block: 6rem; }
  .hero h1 { font-size: 4.5rem; }
  .cards, .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .claims h2 { font-size: 3rem; }
  .panel { padding: 2.5rem; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots figure { padding: 1.5rem; }
  footer > div { flex-direction: row; }
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero h1 { font-size: clamp(3rem, 4.5vw, 4.25rem); }
  .demo { justify-self: end; }
  .claims-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
