/* Hop On landing page. One self-hosted typeface, no scripts, no third-party requests. */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #14201b;
  --muted: #5d6a64;
  --paper: #ffffff;
  --mint: #e8f3ed;
  --green: #1f7a5c;
  --green-deep: #155a43;
  --hop: #f5c543;
  --line: #d6e0da;
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--green-deep); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--hop); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; font-stretch: 90%; max-width: 12ch; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.15rem; }
.brand svg { width: 2rem; height: 2rem; }
.top nav a { margin-left: 1.4rem; color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Hero: words left, the phone right */
.hero { display: grid; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: center; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 4rem; } }
.hero .lead { font-size: 1.3rem; color: var(--muted); max-width: 36ch; }

.button {
  display: inline-block; padding: 0.9rem 1.5rem; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700;
}
.button:hover { background: var(--green-deep); }
.button.quiet { background: transparent; color: var(--green-deep); border: 2px solid var(--line); }
.button.quiet:hover { border-color: var(--green); background: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.5rem; }
.actions small { color: var(--muted); flex-basis: 100%; }

/* The phone: a sign-in sheet, and the toast that makes it go away */
.phone-stage { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.phone {
  width: min(100%, 19rem); border-radius: 2rem; background: #101614; padding: 0.7rem;
  box-shadow: 0 30px 60px -30px rgba(20, 32, 27, 0.6);
  transform: rotate(-3deg);
}
.screen { background: #f6f5f1; border-radius: 1.5rem; overflow: hidden; color: #1b1b1b; font-size: 0.82rem; }
.statusbar { display: flex; justify-content: space-between; padding: 0.6rem 1rem 0.3rem; font-size: 0.7rem; color: #444; }
.sheet-title { padding: 0.5rem 1rem 0.9rem; background: #1b1f1e; color: #fff; }
.sheet-title strong { display: block; font-size: 1rem; }
.sheet-title span { color: #a9b0ad; font-size: 0.72rem; }
.portal { padding: 1.3rem 1rem 1.5rem; }
.portal h4 { margin: 0 0 0.25rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.portal p { margin: 0 0 1rem; color: #555; font-size: 0.78rem; }
.field { border: 1px solid #c9ccc8; border-radius: 0.45rem; padding: 0.55rem 0.7rem; background: #fff; letter-spacing: 0.2em; margin-bottom: 0.7rem; }
.field-label { font-size: 0.72rem; color: #555; margin-bottom: 0.3rem; }
.tick { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; margin-bottom: 0.9rem; }
.tick i { width: 1rem; height: 1rem; border-radius: 0.2rem; background: var(--green); display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: 0.7rem; }
.login { background: #8f7a46; color: #fff; text-align: center; border-radius: 0.45rem; padding: 0.6rem; font-weight: 600; }

.toast {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%) rotate(-3deg);
  width: min(92%, 19rem); background: #fff; border-radius: 1rem; padding: 0.8rem 1rem;
  box-shadow: 0 18px 40px -16px rgba(20, 32, 27, 0.55); display: flex; gap: 0.75rem; align-items: center;
  animation: hop 900ms cubic-bezier(.2,.9,.3,1.2) 600ms both;
}
.toast .dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.toast .dot svg { width: 1.3rem; height: 1.3rem; }
.toast strong { display: block; font-size: 0.95rem; }
.toast span { color: var(--muted); font-size: 0.82rem; }
@keyframes hop { from { opacity: 0; transform: translateX(-50%) translateY(2rem) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Sections */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--mint); color: var(--green-deep); font-weight: 800; margin-bottom: 0.9rem; font-size: 1.1rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.install ol { padding-left: 1.3rem; max-width: var(--measure); }
.install li { margin-bottom: 0.9rem; }
.install li::marker { font-weight: 700; color: var(--green-deep); }
.note { background: var(--mint); border-radius: 1rem; padding: 1.1rem 1.3rem; max-width: var(--measure); margin-top: 1.5rem; }
.note p:last-child { margin-bottom: 0; }

.faq { max-width: var(--measure); }
.faq dt { font-weight: 700; margin-top: 1.4rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--muted); }

/* Privacy page */
.prose { max-width: var(--measure); padding: 2rem 0 4rem; }
.prose h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.updated { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer p { margin: 0.3rem 0; }

.centered { text-align: center; padding: 6rem 0; }
.centered h1 { margin-inline: auto; }
