@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/FunnelDisplay.woff2) format('woff2');
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/FunnelSans.woff2) format('woff2');
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/FunnelSans-Italic.woff2) format('woff2');
}

:root {
  --bg: #f3f4f2;
  --bg-deep: #e6e8e5;
  --ink: #131414;
  --ink-2: #565955;
  --ink-3: #676a65;
  --line: #d5d8d3;
  --line-strong: #131414;
  --display: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Funnel Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum';
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 17px var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav ul { list-style: none; display: flex; gap: 28px; padding: 0; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }


/* pill status */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 12px 18px 12px 14px;
  font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.pill svg { width: 18px; height: 18px; flex: none; }

/* hairline table */
.rows { border-top: 1px solid var(--line-strong); }
.rows > div {
  display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.rows > div > :first-child { color: var(--ink-2); }
.rows.tight > div { padding: 12px 0; }

/* footer */
footer {
  max-width: var(--max); margin: 96px auto 0; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 14px; color: var(--ink-2);
}
footer ul { list-style: none; display: flex; gap: 22px; padding: 0; }
footer a { text-decoration: none; color: var(--ink); }
footer a:hover { text-decoration: underline; }

/* long-form pages (Support, Privacy) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.doc header { margin-bottom: 40px; }
.doc header p { margin-top: 12px; color: var(--ink-2); font-size: 18px; max-width: 58ch; }
.doc h2 { font-size: 26px; margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0 14px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; }
.doc th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc code { font: 14px/1 ui-monospace, 'SF Mono', Menlo, monospace; background: var(--bg-deep); padding: 2px 6px; border-radius: 4px; }
.doc .meta { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font: 500 18px/1.3 var(--display); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-2); }
.faq-answer strong { color: var(--ink); }

/* form */
.form { display: grid; gap: 18px; padding: 8px 0 8px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field label span { color: var(--ink-3); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-3);
  padding: 10px 0; border-radius: 0; caret-color: var(--ink);
}
select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23131414' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center; padding-right: 20px; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom-color: #b3261e; }
.button {
  justify-self: start; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 13px 22px; font-weight: 500; cursor: pointer; transition: opacity .2s;
}
.button:hover { opacity: .85; }
.button:disabled { opacity: .5; cursor: default; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #b3261e; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .nav { height: 56px; }
  .nav ul { gap: 18px; font-size: 14px; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  footer { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after { transition: none; }
}
