/* The website's one stylesheet. Hand-written: no build step.
   Colours and the display font are the app's (app/lib/theme.dart). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1b1340;
  --purple: #6c3fd1;
  --purple-deep: #4b2bb0;
  --lilac: #f1edfb;
  --line: #e6e1f5;
  --sun: #ffc93c;
  --muted: #5b5675;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --edge: clamp(20px, 5vw, 56px);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .wordmark, .pill, .button, .num, .word, .with, .eyebrow {
  font-family: var(--display);
  font-variation-settings: "wght" 800;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.98; margin: 0 0 0.35em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.04; margin: 0 0 0.4em; text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.15; margin: 0 0 0.25em; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top and bottom */
.top, .foot, main > section, main > article { padding-inline: var(--edge); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--wide) + 2 * var(--edge)); margin-inline: auto; padding-block: 18px;
}
/* On the home page the top bar and the hero share one lilac band, edge to edge. */
.home .top, .hero { background: var(--lilac); box-shadow: 0 0 0 100vmax var(--lilac); clip-path: inset(0 -100vmax); }
.wordmark { font-size: 1.9rem; color: var(--ink); text-decoration: none; }
.wordmark.small { font-size: 1.4rem; }
.top nav a, .foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; margin-left: 1.25rem; }
.top nav a:hover, .foot nav a:hover { text-decoration: underline; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  max-width: calc(var(--wide) + 2 * var(--edge)); margin: 0 auto; padding-block: 36px 48px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.foot nav { margin-right: auto; }
.foot nav a:first-child { margin-left: 0; }
.foot p { margin: 0; }

/* Home: hero */
.hero {
  max-width: calc(var(--wide) + 2 * var(--edge)); margin-inline: auto;
  display: grid; gap: 28px; align-items: center;
  padding-block: clamp(12px, 4vw, 40px) clamp(40px, 7vw, 72px);
}
.eyebrow { color: var(--purple); font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.9em; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.4; color: var(--muted); max-width: 30ch; }
.pill {
  display: inline-block; background: var(--sun); color: var(--ink);
  padding: 0.7em 1.2em; border-radius: 999px; font-size: 1.05rem;
}
.soon { margin-top: 1.6em; }
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: min(78vw, 330px); border-radius: 44px; padding: 10px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(27, 19, 64, 0.45); transform: rotate(2.5deg);
}
.phone img { border-radius: 35px; }

/* Home: sections */
main > section:not(.hero) { max-width: calc(var(--wide) + 2 * var(--edge)); margin-inline: auto; padding-block: clamp(56px, 9vw, 104px); }
.section-lede { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }

.local-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.local {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  background: var(--accent); color: #fff; border-radius: 28px; padding: 18px 20px 18px 14px;
}
.local .face { width: 96px; }
.local h3 { font-size: 1.6rem; margin: 0 0 0.15em; }
.local p { margin: 0; line-height: 1.35; opacity: 0.92; font-size: 0.98rem; }
.local .with { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-bottom: 0.2em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .local .face { transition: transform 0.25s ease; }
  .local:hover .face { transform: rotate(-6deg) scale(1.05); }
}

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { background: var(--lilac); border-radius: 28px; padding: 26px 24px 20px; }
.steps p { color: var(--muted); margin: 0; }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 1.3rem; margin-bottom: 14px;
}

.start { display: grid; gap: 32px; align-items: center; }
.start p { color: var(--muted); max-width: 52ch; }
.verdicts { display: flex; flex-wrap: wrap; gap: 10px; }
.word { font-size: clamp(1.5rem, 4vw, 2.2rem); padding: 0.25em 0.6em; border-radius: 16px; border: 3px solid currentColor; background: #fff; }
.word.green { color: var(--green); }
.word.amber { color: var(--amber); }
.word.red { color: var(--red); }

.yours { text-align: center; }
.yours p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
main > section.yours { background: var(--ink); color: #fff; max-width: none; }
.yours p { color: #d8d2ee; }
.yours a { color: var(--sun); }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .hero-phone { justify-content: flex-end; padding-right: 12px; }
  .start { grid-template-columns: 1.1fr 0.9fr; }
}

/* Plain pages: support, legal, not found */
.plain { max-width: calc(68ch + 2 * var(--edge)); margin-inline: auto; padding-block: clamp(24px, 6vw, 64px) clamp(56px, 9vw, 96px); }
.plain h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.plain h2 { font-size: 1.45rem; margin-top: 1.9em; letter-spacing: -0.01em; }
.plain .lede { max-width: none; }
.plain ul { padding-left: 1.2em; }
.plain li { margin-bottom: 0.5em; }
.plain.center { text-align: center; }
.big-face { width: 160px; margin: 0 auto 8px; }
.button { display: inline-block; background: var(--purple); color: #fff; text-decoration: none; padding: 0.75em 1.3em; border-radius: 999px; }
.button:hover { background: var(--purple-deep); color: #fff; }
.draft { background: #fff7db; border: 2px solid var(--sun); border-radius: 16px; padding: 14px 18px; }
mark.todo { background: #ffe9a8; color: var(--ink); padding: 0.05em 0.3em; border-radius: 4px; }
