/* Hahu pre-login site. Visual system follows tally.so: Inter only, centred
   narrow columns, warm black text, thin lines, 8px buttons. One accent colour,
   used only for the Connect Gmail button and the one email that matters. */

:root {
  --heading: #000000;
  --text: #37352F;
  --body: #5F5E5A;
  --muted: #777672;
  --line: #E9E9E7;
  --chip: #F1F1EF;
  --page: #FFFFFF;
  --accent: #FF5A1F;
  --on-accent: #000000;
  --radius: 8px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 992px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 758px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.slim { max-width: 576px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Logo: wordmark + one dot. Bricolage is loaded for these four letters only. */
.logo { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--heading); text-decoration: none; }
.logo span { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-stretch: 85%; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 2px; }
.logo.small span { font-size: 20px; }
.logo.small i { width: 6px; height: 6px; margin-top: 1px; }

.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.site-header nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: filter .1s ease-in-out;
}
.btn:hover { color: var(--on-accent); filter: brightness(0.94); }

/* Type */
h1, h2, h3 { color: var(--heading); margin: 0; }
h1 { font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.lead { font-size: 22px; font-weight: 500; line-height: 1.3; }
.center { text-align: center; }
.note { font-size: 14px; color: var(--muted); margin: 0; }

/* Section rhythm. Margin, not padding: the .wrap/.narrow/.slim containers own the
   side padding, and a padding shorthand here would be overridden by them (it was:
   the first live build shipped with zero space between sections). */
main > section { margin-top: 176px; }
main > section:last-child { margin-bottom: 176px; }

/* Hero */
.hero { padding: 128px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin-bottom: 32px; }
.hero .lead { margin: 0 0 48px; max-width: 560px; }
.hero .note { margin-top: 16px; }
.works-with { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.works-with strong { font-weight: 600; color: var(--text); }
.underline { position: relative; white-space: nowrap; }
.underline svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px; }
.underline path { stroke: var(--accent); }

/* Five emails */
.section-sub { margin: 16px 0 56px; font-size: 18px; color: var(--body); }
.inbox { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 20px 18px 40px; border-bottom: 1px solid var(--line); }
.mail:last-child { border-bottom: 0; }
.mail .who { font-size: 14px; color: var(--muted); }
.mail .what { font-size: 16px; color: var(--body); margin-top: 2px; }
.mail-text { flex: 1 1 340px; min-width: 0; }
.mail.important { padding-left: 20px; }
.mail.important .mail-text { display: flex; align-items: center; gap: 12px; }
.mail.important .what { color: var(--heading); font-weight: 600; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--chip); font-size: 14px; font-weight: 500; }
.tag.slack { background: var(--page); border: 1px solid var(--line); color: var(--heading); font-weight: 600; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 80px; margin-top: 80px; }
.quotes blockquote { margin: 0; }
.quotes p { margin: 0; }
.quotes .q { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; color: var(--heading); }
.quotes .a { margin-top: 10px; color: var(--body); }
.for-whom h2 { max-width: 576px; margin: 0 auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin: 72px 0 0; padding: 0; list-style: none; }
.num { width: 32px; height: 32px; border-radius: 8px; background: var(--chip); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--heading); }
.steps h3 { margin-top: 16px; }
.steps p { margin: 8px 0 0; color: var(--body); }

/* Pricing */
.price-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-box .from { font-weight: 500; color: var(--body); }
.price { margin-top: 8px; font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--heading); }
.price small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--body); }
.price-box p { margin: 16px 0 32px; color: var(--body); }

/* FAQ */
.faq { margin-top: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 60px; font-size: 17px; font-weight: 600; color: var(--heading); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--body); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 32px; padding-bottom: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.site-footer nav a { color: var(--body); text-decoration: none; padding: 10px 0; }
.site-footer nav a:hover { color: var(--heading); }

/* Legal and contact pages */
.doc { padding-top: 72px; padding-bottom: 144px; }
.doc h1 { font-size: 44px; letter-spacing: -1.5px; margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 48px; }
.doc h2 { font-size: 22px; letter-spacing: -0.3px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin: 0 0 14px; }
.doc .box p:last-child { margin-bottom: 0; }
.contact-list { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.contact-list div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { flex: 0 0 180px; font-weight: 600; color: var(--heading); }
.contact-list dd { margin: 0; flex: 1 1 260px; }

/* Tablet */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 50px; }
  h2 { font-size: 32px; }
}

/* Phone */
@media (max-width: 600px) {
  .wrap, .narrow, .slim { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  h1 { font-size: 38px; line-height: 1.1; letter-spacing: -1.5px; }
  h2 { font-size: 24px; line-height: 1.25; }
  .lead { font-size: 17px; line-height: 1.35; }
  .hero { padding: 72px 16px 0; }
  .hero h1 { margin-bottom: 24px; }
  .hero .lead { margin-bottom: 32px; }
  .underline svg { bottom: -8px; height: 11px; }
  main > section { margin-top: 112px; }
  main > section:last-child { margin-bottom: 112px; }
  .section-sub { font-size: 16px; margin: 10px 0 28px; }
  .mail { padding: 16px 16px 16px 34px; }
  .mail.important { padding-left: 16px; }
  .mail.important .tag { margin-left: 20px; }
  .quotes { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .quotes .q { font-size: 19px; }
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .price { font-size: 48px; }
  .price-box { padding: 32px 20px; }
  .doc { padding-top: 40px; padding-bottom: 96px; }
  .doc h1 { font-size: 34px; }
  .doc h2 { font-size: 20px; }
  .contact-list dt { flex-basis: 100%; }
}
