/*
  Open and Found. Ivy's own look (not Rakan's DESIGN.md): warm ivory paper,
  deep ivy green for decisions, Fraunces for headings, Manrope for text.
  Fonts are self-hosted under /fonts (SIL Open Font License, see the .txt files).
*/

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf7f0;
  --stone: #f2ede1;
  --sage: #e8efe5;
  --white: #fffdf8;
  --ink: #17231d;
  --muted: #59645d;
  --line: #e0d9c9;
  --line-strong: #c9c1ae;
  --ivy: #1f5c45;
  --ivy-hover: #164634;
  --leaf: #3f8a63;
  --leaf-soft: #e1ede2;
  --cream: #f6f1e4;
  --red: #a8321f;
  --red-soft: #f8e6e1;
  --amber: #85590a;
  --amber-soft: #f8eedb;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font:
    "Manrope", "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 48px;
  --radius: 32px;
  --section: clamp(72px, 10vw, 132px);
  --shadow: 0 1px 2px rgba(23, 35, 29, 0.05), 0 18px 40px -24px rgba(23, 35, 29, 0.28);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--leaf-soft);
  color: var(--ivy-hover);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ivy);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--stone);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

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

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

.block {
  display: block;
}

.accent {
  color: var(--ivy);
}

[hidden] {
  display: none !important;
}

/* ---- Header and footer ---- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  height: 88px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 600 21px/1 var(--serif);
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: url("/favicon.svg") center / cover no-repeat;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
}

.site-nav {
  display: flex;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.site-nav a:hover {
  background: var(--stone);
  color: var(--ink);
}

.site-footer {
  max-width: 1280px;
  margin: var(--section) auto 0;
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a {
  text-decoration: none;
}

/* ---- Type ---- */

.display,
.headline,
.title,
.legal h1,
.legal h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  text-wrap: balance;
}

.display {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 92px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.headline {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.lede {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---- Sections ---- */

main > section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}

.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(40px, 7vw, 96px) !important;
}

.hero.narrow {
  max-width: 820px;
}

.hero.narrow .button-primary,
.hero.narrow .button-secondary {
  margin-top: 36px;
}

/* The vine trails in from both top corners of the opening section only. */
main > section:first-child::before,
main > section:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 560 / 320;
  background: url("/vine.svg") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.9;
}

main > section:first-child::before {
  top: 150px;
  left: -90px;
}

main > section:first-child::after {
  right: -60px;
  transform: scaleX(-1);
}

main > section.legal-wrap:first-child::before,
main > section.legal-wrap:first-child::after {
  display: none;
}

main {
  position: relative;
  isolation: isolate;
  /* The vines hang past the page edges. iOS ignores body's overflow-x when
     sizing the page, so clip here (clip, unlike hidden, keeps sticky headings). */
  overflow-x: clip;
}

.ref-banner {
  display: inline-block;
  margin: 0 0 28px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--ivy-hover);
  font-size: 14px;
  font-weight: 650;
}

.ref-banner a {
  text-decoration: none;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.hero-note a {
  font-weight: 650;
  color: var(--ivy);
}

/* ---- Buttons ---- */

.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font: 700 16px/1 var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-primary {
  background: var(--ivy);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  background: var(--ivy-hover);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(22, 70, 52, 0.75);
}

.button-primary span[aria-hidden] {
  transition: transform 0.15s ease;
}

.button-primary:hover span[aria-hidden] {
  transform: translateX(3px);
}

.button-primary:disabled {
  opacity: 0.65;
  cursor: progress;
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button-danger {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.button-danger:hover {
  background: var(--red);
  color: var(--white);
}

/* ---- Forms ---- */

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: 500 16px/1.4 var(--font);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9a9f97;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}

.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  text-align: left;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.field-error,
.form-error {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--red);
}

.form-error {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--red-soft);
  text-align: left;
}

.form-ok {
  margin: 20px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--leaf-soft);
  color: var(--ivy-hover);
  font-weight: 700;
}

.has-error input[type="text"],
.has-error input[type="tel"],
.has-error input[type="email"],
.has-error .services-box {
  border-color: var(--red);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.contact-fields {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  text-align: left;
}

.contact-fields legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.contact-fields > .hint {
  margin: 4px 0 14px;
}

.contact-fields .field {
  margin-bottom: 0;
}

/* "What do you do?" once app.js turns it into chips. */
.services-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  cursor: text;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.services-box:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}

.services-box input[type="text"] {
  flex: 1 1 140px;
  width: auto;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.service-chips {
  display: contents;
  list-style: none;
}

.service-chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--ivy-hover);
  font-size: 15px;
  font-weight: 650;
}

.service-chips button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 600 17px/1 var(--font);
  cursor: pointer;
}

.service-chips button:hover {
  background: rgba(31, 92, 69, 0.14);
}

.copy-row {
  display: flex;
  gap: 10px;
}

.copy-row input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Turnstile runs only after a form is submitted and stays hidden unless Cloudflare needs a human check. */
.turnstile-slot {
  display: flex;
  justify-content: center;
}

/* ---- Checker: one search bar ---- */

.check-form {
  max-width: 660px;
  margin: 44px auto 0;
  text-align: left;
}

.check-form .copy-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 8px 8px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.check-form .copy-row:focus-within {
  border-color: var(--leaf);
  box-shadow:
    0 0 0 4px var(--leaf-soft),
    var(--shadow);
}

.check-form .copy-row input[type="text"] {
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  box-shadow: none;
}

.check-form.compact {
  margin: 16px 0 0;
}

.tiers {
  max-width: 560px;
  margin: 44px auto 18px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tiers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.tier-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 600 16px/1 var(--serif);
  background: var(--stone);
  color: var(--muted);
}

.tier-badge.tier-1,
.tier-badge.tier-2 {
  background: var(--leaf-soft);
  color: var(--ivy-hover);
}

.tier-badge.tier-3,
.tier-badge.tier-4 {
  background: var(--ivy);
  color: var(--cream);
}

.tier-badge.large {
  width: 96px;
  height: 96px;
  font-size: 46px;
  box-shadow: var(--shadow);
}

.result-host {
  display: inline-block;
  margin: 0 0 26px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--stone);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.result-tier {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.share-result {
  max-width: 560px;
  margin: 26px auto 0;
}

.findings-wrap {
  max-width: 900px !important;
}

.findings {
  margin: 20px 0 56px;
  padding: 0;
  list-style: none;
}

.finding {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.finding p {
  margin: 0;
}

.finding-level {
  align-self: start;
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  background: var(--stone);
  color: var(--muted);
}

.finding-pass .finding-level {
  background: var(--leaf-soft);
  color: var(--ivy-hover);
}

.finding-fail .finding-level {
  background: var(--red-soft);
  color: var(--red);
}

.finding-warn .finding-level {
  background: var(--amber-soft);
  color: var(--amber);
}

.finding-title {
  font-weight: 700;
}

.finding-detail,
.finding-fix {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.finding-ref {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- Claim: a card on sage ---- */

.claim-section {
  padding-top: var(--section) !important;
}

.claim-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 88px);
  border-radius: var(--radius);
  background: var(--sage);
  overflow: hidden;
  text-align: center;
}

.claim-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -50px;
  width: 320px;
  aspect-ratio: 560 / 320;
  background: url("/vine.svg") center / contain no-repeat;
  transform: rotate(180deg);
  opacity: 0.45;
  pointer-events: none;
}

.claim {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 40px auto 0;
}

.slug-input {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font: 600 clamp(19px, 2.6vw, 25px) / 1.2 var(--font);
  letter-spacing: -0.01em;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  cursor: text;
}

.slug-input:focus-within {
  border-color: var(--leaf);
  box-shadow:
    0 0 0 4px rgba(63, 138, 99, 0.18),
    var(--shadow);
}

/* The name grows with what's typed so it always reads as one address. */
.slug-input input[type="text"] {
  flex: 0 1 auto;
  width: auto;
  min-width: 3ch;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: right;
  color: var(--ivy);
  background: transparent;
  field-sizing: content;
}

.slug-input input[type="text"]::placeholder {
  color: #a3a99f;
}

.slug-input input[type="text"]:focus {
  box-shadow: none;
}

.slug-suffix {
  flex: 0 0 auto;
  color: var(--ink);
}

.slug-status {
  min-height: 26px;
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
}

.slug-status.is-available {
  color: var(--ivy);
}

.slug-status.is-taken {
  color: var(--red);
}

.slug-suggestion {
  margin: 4px 0 0 6px;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font: 650 14px/1.6 var(--font);
  color: var(--ink);
  cursor: pointer;
}

.slug-suggestion:hover {
  border-color: var(--ivy);
  color: var(--ivy);
}

.claim-details {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
}

.consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ivy);
}

.consent a {
  color: var(--muted);
}

.consent.has-error span {
  color: var(--red);
}

.consent-slug {
  font-weight: 750;
  color: var(--ivy);
}

.claim-details .button-primary {
  width: 100%;
  min-height: 58px;
  font-size: 17px;
}

.promises {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ivy-hover);
}

.promises li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("/favicon.svg") center / cover no-repeat;
  border-radius: 5px;
}

.city-count {
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--ivy-hover);
}

/* ---- Why band ---- */

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.band-inner > .headline {
  position: sticky;
  top: 32px;
}

.rows {
  counter-reset: why;
}

.rows .row {
  position: relative;
  padding: 30px 0 30px 72px;
  border-top: 1px solid var(--line);
  counter-increment: why;
}

.rows .row:first-child {
  border-top: 0;
  padding-top: 6px;
}

.rows .row::before {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 32px;
  font: 500 26px/1 var(--serif);
  color: var(--leaf);
}

.rows .row:first-child::before {
  top: 8px;
}

.rows p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---- How it works ---- */

.how-card {
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ivy) 0%, #123628 60%, #0c271d 100%);
  color: var(--cream);
  text-align: center;
}

.how-card .eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd6b1;
}

.how-card .lede {
  color: rgba(246, 241, 228, 0.78);
}

.how-card code {
  background: rgba(246, 241, 228, 0.12);
  color: var(--cream);
}

.how-file {
  display: inline-block;
  max-width: 100%;
  margin: 32px 0 0;
  padding: 12px 22px;
  border: 1px solid rgba(246, 241, 228, 0.22);
  border-radius: 999px;
  font: 500 15px/1.4 var(--mono);
  color: #9fd6b1;
  overflow-wrap: anywhere;
}

.how-file span {
  color: rgba(246, 241, 228, 0.6);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
  text-align: left;
}

.how-steps li {
  padding: 28px;
  border: 1px solid rgba(246, 241, 228, 0.14);
  border-radius: 24px;
  background: rgba(246, 241, 228, 0.05);
  counter-increment: how;
}

.how-steps li::before {
  content: counter(how, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font: 500 24px/1 var(--serif);
  color: #9fd6b1;
}

.how-steps p {
  margin: 10px 0 0;
  color: rgba(246, 241, 228, 0.74);
}

.how-card a {
  color: var(--cream);
}

.how-note {
  margin: 36px 0 0;
  font-size: 15px;
  color: rgba(246, 241, 228, 0.66);
}

.how-note a {
  margin-left: 6px;
  font-weight: 700;
}

/* ---- News ---- */

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.news-list li:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.news-list time {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
}

.news-list a {
  font: 560 21px/1.3 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.news-list a::after {
  content: " ↗";
  font-family: var(--font);
  font-size: 0.8em;
  color: var(--muted);
}

/* ---- Manage ---- */

.reward {
  text-align: center;
}

.reward .headline {
  font-size: clamp(34px, 5.6vw, 66px);
  overflow-wrap: anywhere;
}

.reward-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--leaf-soft);
  font-weight: 750;
  color: var(--ivy-hover);
}

.panel {
  max-width: 640px;
  margin: 40px auto 24px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

/* Signed in as …, sign out; and a way back to the list. */
.account-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 32px;
  font-size: 15px;
  text-align: left;
}

.account-bar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  overflow-wrap: anywhere;
}

.button-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--ivy);
  text-decoration: underline;
  cursor: pointer;
}

.page-list {
  max-width: 640px;
  margin: 32px auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.page-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-list a:hover {
  border-color: var(--line-strong);
}

.share {
  text-align: center;
}

.share-previews {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin: 44px 0 30px;
}

.share-previews figure {
  margin: 0;
}

.share-previews canvas {
  display: block;
  height: clamp(220px, 32vw, 400px);
  width: auto;
  border-radius: 20px;
  background: var(--ivy-hover);
  box-shadow: 0 30px 60px -34px rgba(23, 35, 29, 0.6);
}

.share-previews figure:first-child canvas {
  transform: rotate(-2deg);
}

.share-previews figure:last-child canvas {
  transform: rotate(2deg);
}

.share-previews figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.share .field {
  max-width: 640px;
  margin: 0 auto;
}

.share .field .button-secondary {
  margin-top: 10px;
}

.step-two-head {
  display: flex;
  align-items: center;
  gap: 28px;
}

.step-two-head .lede {
  margin-left: 0;
}

.ring {
  position: relative;
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 3.2;
}

.ring-track {
  stroke: var(--stone);
}

.ring-fill {
  stroke: var(--leaf);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.4s ease;
}

.ring-1 {
  stroke-dasharray: 20 100;
}
.ring-2 {
  stroke-dasharray: 40 100;
}
.ring-3 {
  stroke-dasharray: 60 100;
}
.ring-4 {
  stroke-dasharray: 80 100;
}
.ring-5 {
  stroke-dasharray: 100 100;
}

.ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 20px/1 var(--serif);
}

.step-two-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.step-two form {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
}

.agent-preview {
  position: sticky;
  top: 24px;
  padding: 30px;
  border-radius: 26px;
  background: var(--ivy);
  color: var(--cream);
  box-shadow: 0 30px 60px -36px rgba(23, 35, 29, 0.7);
}

.agent-preview-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, 0.7);
}

.agent-preview-name {
  margin: 0;
  font: 580 30px/1.15 var(--serif);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.agent-preview-meta {
  margin: 6px 0 22px;
  color: rgba(246, 241, 228, 0.75);
}

.agent-preview dl {
  margin: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 14px;
  font-size: 15px;
}

.agent-preview dt {
  font-weight: 650;
  color: rgba(246, 241, 228, 0.65);
}

.agent-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.agent-preview-host {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 228, 0.2);
  font-weight: 700;
  color: #a9d8b9;
  overflow-wrap: anywhere;
}

.step-two form .button-primary {
  width: 100%;
}

.danger {
  max-width: 820px !important;
}

.danger .muted {
  margin: 10px 0 18px;
}

/* ---- Other platforms (manage step 2) ---- */

.social-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

.social-fields legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .social-fields {
    grid-template-columns: 1fr;
  }
}

/* ---- Go live (manage) ---- */

.publish {
  max-width: 820px !important;
}

.publish form {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: 18px;
}

/* ---- Business pages (subdomains) ---- */

.business .eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--leaf-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivy);
}

.business-details {
  max-width: 720px !important;
}

.business-details dl {
  display: grid;
  margin: 0;
  padding: 6px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.business-details dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
}

.business-details dl > div + div {
  border-top: 1px solid var(--line);
}

.business-details dt {
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.business-details dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.business-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.business-footer {
  max-width: 720px !important;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  text-align: center;
}

.business-footer p {
  margin: 6px 0;
}

@media (max-width: 560px) {
  .business-details dl {
    padding: 4px 22px;
    border-radius: 22px;
  }

  .business-details dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
}

/* ---- Made with Ivy (live list) ---- */

.made-with {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  list-style: none;
}

.made-with li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  overflow-wrap: anywhere;
}

/* ---- Tables (live list, legal) ---- */

.live .table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 8px 20px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

td a {
  font-weight: 700;
}

td .tier-badge {
  width: 28px;
  height: 28px;
  font-size: 14px;
  margin-right: 8px;
}

.live > .muted {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  text-align: center;
  font: 500 22px/1.3 var(--serif);
}

/* ---- Legal ---- */

.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) 0;
  font-size: 16.5px;
  line-height: 1.7;
}

.legal h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
}

.legal h2 {
  font-size: 25px;
  font-weight: 580;
  letter-spacing: -0.01em;
  margin: 48px 0 10px;
}

.legal h3 {
  font-size: 18px;
  margin: 30px 0 8px;
}

.legal p,
.legal li {
  color: #3a443e;
}

/* Long source URLs wrap on phones instead of running off the edge. */
.legal a {
  overflow-wrap: anywhere;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal li::marker {
  color: var(--leaf);
}

/* ---- Film ---- */

.film {
  text-align: center;
}

.film .eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.film-frame {
  position: relative;
  max-width: 1040px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.film-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.film-play {
  position: absolute;
  left: 50%;
  top: 79%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ivy);
  color: var(--cream);
  font: 700 16px/1 var(--font);
  box-shadow: 0 18px 36px -18px rgba(23, 35, 29, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background 0.15s ease,
    transform 0.2s ease;
}

.film-play:hover {
  background: var(--ivy-hover);
  transform: translate(-50%, -50%) scale(1.04);
}

.film-play span {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
}

.film-play span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivy);
  clip-path: polygon(40% 30%, 40% 70%, 72% 50%);
}

.film-text {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.film-text summary {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
}

.film-text p {
  margin: 12px 0 0;
  text-align: left;
  line-height: 1.6;
}

/* ---- Technical details: plain words first, specifics on request ---- */

.tech {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.tech summary {
  cursor: pointer;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
}

.tech > p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.finding .tech {
  margin-top: 6px;
}

.how-tech {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(246, 241, 228, 0.66);
}

.how-tech summary {
  margin: 0 auto;
}

.how-tech .how-file {
  margin: 14px 0 0;
}

/* ---- Mobile ---- */

@media (max-width: 860px) {
  :root {
    --gutter: 28px;
    --radius: 26px;
  }

  .band-inner,
  .step-two-grid {
    grid-template-columns: 1fr;
  }

  .band-inner > .headline {
    position: static;
  }

  .agent-preview {
    position: static;
  }

  .news-list,
  .how-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --radius: 24px;
  }

  /* Small and low on phones, clear of the poster's text. */
  .film-play {
    top: 84%;
    gap: 8px;
    padding: 8px 16px 8px 8px;
    font-size: 14px;
  }

  .film-play span {
    width: 26px;
    height: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-fields .field + .field {
    margin-top: 16px;
  }

  .site-header {
    height: 72px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .site-nav {
    gap: 0;
    font-size: 14px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  main > section:first-child::before,
  main > section:first-child::after {
    top: -24px;
    width: 170px;
    opacity: 0.5;
  }

  main > section:first-child::before {
    left: -70px;
  }

  main > section:first-child::after {
    right: -70px;
  }

  .check-form .copy-row {
    flex-direction: row;
    padding: 6px 6px 6px 18px;
  }

  .check-form .copy-row input[type="text"] {
    font-size: 16px;
    min-height: 48px;
  }

  .check-form .copy-row .button-primary {
    min-height: 48px;
    padding: 0 18px;
  }

  .claim-card {
    margin: 0 calc(var(--gutter) * -0.5);
  }

  .slug-input {
    min-height: 62px;
    padding: 0 18px;
    font-size: 17px;
  }

  .rows .row {
    padding-left: 52px;
  }

  .rows .row::before {
    font-size: 22px;
  }

  .news-list li {
    padding: 22px;
  }

  .share-previews {
    gap: 14px;
  }

  .share-previews canvas {
    height: auto;
    width: 100%;
    max-height: 300px;
  }

  .share-previews figure:first-child {
    flex: 0 0 52%;
  }

  .share-previews figure:last-child {
    flex: 0 0 34%;
  }

  .share-actions .button-primary,
  .share-actions .button-secondary {
    flex: 1 1 100%;
  }

  .step-two-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .copy-row {
    flex-direction: column;
  }

  .result-tier {
    flex-direction: column;
    text-align: center;
  }

  .finding {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .live .table-wrap {
    padding: 4px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---- Blog ---- */

.legal blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--leaf);
  font-family: var(--serif);
  font-size: 1.12em;
}

.legal pre {
  overflow-x: auto;
  background: var(--stone);
  padding: 14px 18px;
  border-radius: 12px;
}

.legal pre code {
  background: none;
  padding: 0;
}

.post-meta {
  font-size: 14.5px;
  color: var(--muted);
}

.post-draft {
  font-weight: 600;
  color: var(--amber);
}

.blog-index .blog-lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 8px;
}

.legal .post-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

.legal .post-list li {
  margin: 0;
}

/* Each post is one card; the whole card is the link. */
.post-card {
  position: relative;
  display: block;
  padding: 26px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(23, 35, 29, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    translate 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  translate: 0 -2px;
}

.post-card .post-meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
}

.legal .post-card h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 25px);
  line-height: 1.25;
}

.legal .post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.legal .post-card p.post-summary {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.post-read {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ivy);
}

.post-card:hover .post-read {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .post-card {
    padding: 22px 20px 20px;
    border-radius: 20px;
  }
}

/* ---- Motion: small and slow, and off for anyone who asks their device for less ---- */

@keyframes ivy-rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

@keyframes ivy-pop {
  0% {
    opacity: 0;
    scale: 0.6;
  }
  70% {
    scale: 1.08;
  }
}

@keyframes ivy-highlight {
  to {
    background-size: 100% 0.32em;
  }
}

@keyframes ivy-vine-grow {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes ivy-sway {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 1.6deg;
  }
}

@keyframes ivy-wiggle {
  0%,
  100% {
    rotate: 0deg;
  }
  30% {
    rotate: -12deg;
  }
  60% {
    rotate: 6deg;
  }
}

@keyframes ivy-ring-draw {
  from {
    stroke-dasharray: 0 100;
  }
}

/* The opening section rises in, one line after another. */
.hero > * {
  animation: ivy-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero > :nth-child(5) {
  animation-delay: 0.32s;
}

/* A soft highlighter stroke draws in under the headline's accent. */
.display .accent {
  background: linear-gradient(rgba(63, 138, 99, 0.18), rgba(63, 138, 99, 0.18)) 0 88% / 0% 0.32em
    no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: ivy-highlight 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards;
}

/* The vines grow in from the page corners, then sway very slowly. */
main > section:first-child::before {
  transform-origin: 0 0;
  animation:
    ivy-vine-grow 1.6s ease-out 0.15s backwards,
    ivy-sway 9s ease-in-out 1.8s infinite;
}

main > section:first-child::after {
  transform-origin: 100% 0;
  animation:
    ivy-vine-grow 1.6s ease-out 0.3s backwards,
    ivy-sway 11s ease-in-out 2s infinite reverse;
}

.brand:hover .brand-mark {
  transform: none;
  animation: ivy-wiggle 0.6s ease;
}

.button-primary:active,
.button-secondary:active,
.button-danger:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.service-chips li {
  animation: ivy-pop 0.32s cubic-bezier(0.3, 1.4, 0.5, 1) backwards;
}

.tier-badge.large {
  animation: ivy-pop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.2s backwards;
}

.ring-fill {
  animation: ivy-ring-draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards;
}

/* Set by app.js on content below the fold; removed once it has drifted in. */
.reveal.reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal.is-in {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .display .accent {
    background-size: 100% 0.32em;
  }

  .reveal.reveal {
    opacity: 1;
    translate: none;
  }
}

/* Three nav links and the brand on one line at phone width. */
@media (max-width: 480px) {
  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .site-nav {
    gap: 0;
    font-size: 14px;
  }

  .site-nav a {
    padding: 8px 7px;
  }
}

/* The longer brand name leaves no room for "Check a site" on small phones. */
@media (max-width: 400px) {
  .nav-long {
    display: none;
  }

  .site-header {
    gap: 8px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav a {
    padding: 8px 6px;
  }
}

@media (max-width: 340px) {
  .site-header .brand-mark {
    display: none;
  }
}
