/* © 2026 Joel Sauvain · Hopp — gethopp.ch marketing site.
   Same design language as the app: light, white cards, Inter, one indigo
   accent driving a color-mix ramp (web/src/index.css does the identical
   trick). The wordmark's airborne "o" + broken ground line recur as the
   page motif. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA;
}

:root {
  --accent: #4f46e5;
  --accent-700: color-mix(in oklab, var(--accent) 85%, black);
  --accent-100: color-mix(in oklab, var(--accent) 10%, white);
  --accent-50: color-mix(in oklab, var(--accent) 5%, white);
  --ink: #0c0a09;        /* stone-950 */
  --body: #44403c;       /* stone-700 */
  --muted: #78716c;      /* stone-500 */
  --line: #e7e5e4;       /* stone-200 */
  --line-soft: #f5f5f4;  /* stone-100 */
  --bg: #ffffff;
  --tint: #fafaf9;       /* stone-50 */
  --green: #059669;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgb(12 10 9 / 0.04), 0 8px 24px -12px rgb(12 10 9 / 0.10);
  --shadow-pop: 0 2px 4px rgb(12 10 9 / 0.06), 0 24px 48px -20px rgb(12 10 9 / 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.shell-narrow { max-width: 760px; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); white-space: nowrap; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; }
.wordmark { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--body); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* ------------------------------ buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 12px 22px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgb(79 70 229 / 0.3), 0 8px 20px -10px rgb(79 70 229 / 0.55);
}
.btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d6d3d1; background: var(--tint); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; margin-top: auto; }
.btn-static { pointer-events: none; }

/* ------------------------------- hero ------------------------------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--accent);
  background: var(--accent-50); border: 1px solid var(--accent-100);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.lead { font-size: 1.11rem; margin-top: 20px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust { margin-top: 26px; font-size: 0.86rem; color: var(--muted); }

/* the hop: broken ground line + airborne ball, same motif as the wordmark.
   The gap is snug around the ball (fixed px, ends never drift on resize)
   and a real ground shadow sells the height of every bounce. */
.ground { position: relative; height: 60px; margin-top: 40px; }
.ground-line {
  position: absolute; top: 51px; height: 2px; border-radius: 999px;
  background: #d6d3d1;
}
.gl-left { left: 0; width: calc(41% - 6px); }
.gl-right { left: calc(41% + 22px); right: 0; }
.hop-ball {
  position: absolute; left: 41%; top: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  will-change: transform;
  animation: hop 1.5s infinite;
}
.hop-shadow {
  position: absolute; left: calc(41% - 6px); top: 49px;
  width: 28px; height: 6px; border-radius: 50%;
  background: rgb(12 10 9 / 0.35);
  filter: blur(1.5px);
  will-change: transform, opacity;
  animation: hop-shadow 1.5s infinite;
}
/* real gravity: accelerate into the ground, squash on contact, decelerate
   back up to a rest at the apex. Shadow mirrors the same timing exactly. */
@keyframes hop {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.36); }
  46% { transform: translateY(33px) scale(1); animation-timing-function: linear; }
  50% { transform: translateY(36px) scaleX(1.3) scaleY(0.7); animation-timing-function: linear; }
  54% { transform: translateY(33px) scale(1); animation-timing-function: cubic-bezier(0.15, 0.64, 0.45, 1); }
  100% { transform: translateY(0); }
}
@keyframes hop-shadow {
  0% { transform: scaleX(0.45); opacity: 0.35; animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.36); }
  46% { transform: scaleX(1); opacity: 0.85; animation-timing-function: linear; }
  50% { transform: scaleX(1.2); opacity: 1; animation-timing-function: linear; }
  54% { transform: scaleX(1); opacity: 0.85; animation-timing-function: cubic-bezier(0.15, 0.64, 0.45, 1); }
  100% { transform: scaleX(0.45); opacity: 0.35; }
}

/* hero reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.r1 { animation-delay: 0.05s; } .r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.28s; } .r4 { animation-delay: 0.42s; }
.r5 { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .hop-ball { animation: none; transform: translateY(10px); }
  .hop-shadow { animation: none; transform: scaleX(0.7); opacity: 0.5; }
  .btn, .card { transition: none; }
}

/* ---------------------------- product mock --------------------------- */
.hero-visual { position: relative; min-height: 380px; }
.mock {
  position: absolute; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.mock-event { width: min(92%, 360px); left: 4%; top: 78px; padding: 20px; transform: rotate(-1.2deg); z-index: 2; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-title { font-weight: 650; color: var(--ink); font-size: 0.98rem; }
.mock-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.pill-green { color: var(--green); background: color-mix(in oklab, var(--green) 9%, white); }
.pill-indigo { color: var(--accent); background: var(--accent-50); border: 1px solid var(--accent-100); }
.mock-roster { display: flex; margin-top: 16px; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 650; color: #fff;
  border: 2px solid #fff; margin-left: -6px;
}
.av:first-child { margin-left: 0; }
.av1 { background: #6366f1; } .av2 { background: #0ea5e9; }
.av3 { background: #10b981; } .av4 { background: #f59e0b; }
.av5 { background: #ec4899; } .av6 { background: #8b5cf6; }
.av.more { background: var(--line-soft); color: var(--muted); }
.quorum { margin-top: 14px; }
.quorum-bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.quorum-bar span { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--accent); }
.quorum-label { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.chip {
  font-size: 0.78rem; font-weight: 550; color: var(--ink);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.mock-poll { width: min(70%, 250px); right: 0; top: 0; padding: 16px; transform: rotate(1.6deg); z-index: 1; }
.mock-poll-q { font-weight: 650; color: var(--ink); font-size: 0.86rem; margin-bottom: 10px; }
.poll-opt { display: grid; grid-template-columns: 62px 1fr 16px; gap: 8px; align-items: center; font-size: 0.76rem; color: var(--muted); padding: 4px 0; }
.poll-bar { height: 8px; border-radius: 999px; background: var(--accent-100); position: relative; overflow: hidden; }
.poll-bar::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 999px; background: var(--accent); }
.poll-n { text-align: right; font-weight: 600; color: var(--ink); }
.mock-toast {
  display: flex; gap: 12px; align-items: center;
  right: 6%; bottom: 0; padding: 14px 18px; z-index: 3; transform: rotate(0.8deg);
}
.toast-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--green) 12%, white); color: var(--green);
  font-weight: 700; font-size: 0.9rem;
}
.toast-title { font-size: 0.85rem; font-weight: 650; color: var(--ink); }
.toast-sub { font-size: 0.76rem; color: var(--muted); }

/* ------------------------------ sections ----------------------------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-lead { margin-top: 18px; max-width: 44em; font-size: 1.02rem; }

.grid { display: grid; gap: 20px; margin-top: 44px; }
.features { grid-template-columns: repeat(4, 1fr); }
.perks { grid-template-columns: repeat(2, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: #d6d3d1; }
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 0.9rem; }

.ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-50); border: 1px solid var(--accent-100);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card-feature { padding: 32px; }
.card-feature h3 { font-size: 1.25rem; margin-top: 16px; }
.card-feature p { font-size: 0.95rem; }
.ticks { list-style: none; margin-top: 16px; }
.ticks li { position: relative; padding: 4px 0 4px 26px; font-size: 0.9rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-100);
}
.ticks li::after {
  content: ''; position: absolute; left: 4px; top: 13px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* steps */
.step { position: relative; padding-top: 10px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 10px 20px -8px rgb(79 70 229 / 0.5);
}
.step h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.step p { font-size: 0.92rem; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { color: var(--ink); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 6px 0 4px; }
.plan .price span { color: var(--muted); font-weight: 500; font-size: 0.85rem; letter-spacing: 0; }
.plan .ticks { margin: 12px 0 22px; }
.plan-hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-pop); position: relative; }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 4px 12px;
}

/* faq */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1rem;
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); font-weight: 600; font-size: 1.25rem;
  transition: transform 0.18s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin-top: 12px; font-size: 0.94rem; max-width: 60em; }

/* ------------------------------- form -------------------------------- */
.section-cta { padding-bottom: 120px; }
#lead-form { margin-top: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.form-grid .span2 { grid-column: span 2; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.form-grid ::placeholder { color: #a8a29e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-msg { margin-top: 14px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; color: var(--green); }
.form-msg.err { display: block; color: #dc2626; }

/* ------------------------------ footer ------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wordmark-foot { height: 24px; }
.footer-meta { font-size: 0.88rem; color: var(--muted); }
.footer-meta a { color: var(--body); }
.footer-copy { margin-left: auto; font-size: 0.82rem; color: #a8a29e; }

/* ---------------------------- responsive ----------------------------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 400px; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 700px) {
  .site-nav { display: none; }
  .hero { padding-top: 48px; }
  .section { padding: 68px 0; }
  .features, .perks, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .desk-br { display: none; }
  .footer-copy { margin-left: 0; }
  .hero-visual { min-height: 430px; }
  .mock-event { left: 0; width: min(100%, 340px); }
  .mock-poll { right: 0; width: 220px; }
  .mock-toast { right: 0; }
}
