/* Hand Noted: components. Built only from tokens.css. */

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

body {
  margin: 0;
  background: var(--hn-paper);
  color: var(--hn-ink);
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-md);
  line-height: var(--hn-leading-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.hn-wrap { max-width: var(--hn-max); margin: 0 auto; padding: 0 var(--hn-space-5); }
.hn-narrow { max-width: var(--hn-max-text); margin: 0 auto; padding: 0 var(--hn-space-5); }

/* Headlines */
.hn-h1, .hn-h2, .hn-h3 {
  font-family: var(--hn-font-head);
  font-weight: 800;
  letter-spacing: var(--hn-track-tight);
  line-height: var(--hn-leading-head);
  margin: 0 0 var(--hn-space-4);
  color: var(--hn-ink);
}
.hn-h1 { font-size: var(--hn-text-3xl); }
.hn-h2 { font-size: var(--hn-text-2xl); }
.hn-h3 { font-size: var(--hn-text-lg); letter-spacing: -0.02em; font-weight: 600; }
.hn-lede { font-size: var(--hn-text-lg); line-height: 1.45; color: var(--hn-ink); margin: 0 0 var(--hn-space-5); }
.hn-muted { color: var(--hn-muted); }
.hn-mark { background: linear-gradient(transparent 55%, var(--hn-yellow) 55%); padding: 0 0.08em; }

/* Links: underlined blue, always */
.hn-link, .hn-prose a {
  color: var(--hn-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.hn-link:hover, .hn-prose a:hover { color: var(--hn-blue-dark); text-decoration-thickness: 2px; }

/* Buttons: square, solid, plain */
.hn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hn-space-2);
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--hn-radius);
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.hn-btn--primary { background: var(--hn-blue); color: var(--hn-paper); }
.hn-btn--primary:hover { background: var(--hn-blue-dark); }
.hn-btn--quiet { background: var(--hn-wash); color: var(--hn-ink); border-color: var(--hn-wash); }
.hn-btn--quiet:hover { border-color: var(--hn-line); }
.hn-btn--outline { background: var(--hn-paper); color: var(--hn-blue); border-color: var(--hn-blue); }
.hn-btn--block { width: 100%; }

/* Top bar and link row nav */
.hn-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--hn-space-4);
  padding: var(--hn-space-5) var(--hn-space-5);
}
.hn-top > :first-child { justify-self: start; }
.hn-top > :last-child { justify-self: end; }
.hn-logo { display: inline-flex; align-items: center; gap: var(--hn-space-2); text-decoration: none; color: var(--hn-ink); font-family: var(--hn-font-head); font-weight: 800; font-size: var(--hn-text-lg); letter-spacing: -0.03em; }
.hn-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.hn-navrow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--hn-space-2) var(--hn-space-6);
  padding: var(--hn-space-5) 0 var(--hn-space-4);
  margin: 0; list-style: none;
  font-size: var(--hn-text-md);
}

/* The pale panel that holds the hero */
.hn-panel { background: var(--hn-panel); border-radius: var(--hn-radius-lg); overflow-x: clip; margin-bottom: var(--hn-space-7); }
.hn-band { background: var(--hn-wash); }

/* Hero */
.hn-hero { text-align: center; padding: var(--hn-space-6) var(--hn-space-5) var(--hn-space-7); }
.hn-hero .hn-h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.hn-hero .hn-lede { max-width: 36em; margin-left: auto; margin-right: auto; }
.hn-actions { display: flex; flex-wrap: wrap; gap: var(--hn-space-3); justify-content: center; }

/* Tour chip (a small card with a play mark) */
.hn-chip {
  display: inline-flex; align-items: center; gap: var(--hn-space-3);
  background: var(--hn-paper); padding: var(--hn-space-2) var(--hn-space-4) var(--hn-space-2) var(--hn-space-2);
  border-radius: var(--hn-radius); box-shadow: var(--hn-shadow-sm);
  text-decoration: none; color: var(--hn-ink); text-align: left; line-height: 1.3;
  margin-bottom: var(--hn-space-6);
}
.hn-chip__play { width: 48px; height: 40px; border-radius: var(--hn-radius); background: var(--hn-green); display: grid; place-items: center; flex-shrink: 0; }
.hn-chip small { display: block; color: var(--hn-muted); font-size: var(--hn-text-sm); }

/* Handwritten margin note */
.hn-note {
  font-family: var(--hn-font-hand);
  font-size: var(--hn-hand-size);
  font-weight: 500;
  line-height: 1.1;
  color: var(--hn-ink);
  transform: rotate(-3deg);
  display: inline-block;
}
.hn-note--blue { color: var(--hn-blue); }
.hn-note svg { display: block; width: 90px; height: 44px; margin-top: var(--hn-space-1); }

/* App window mock */
.hn-window {
  background: var(--hn-paper);
  border: var(--hn-border);
  border-radius: var(--hn-radius-lg);
  box-shadow: var(--hn-shadow);
  padding: var(--hn-space-4);
  text-align: left;
  font-size: var(--hn-text-sm);
}
.hn-window__bar { display: flex; gap: 6px; margin-bottom: var(--hn-space-3); }
.hn-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hn-line); }
.hn-window__title { font-family: var(--hn-font-head); font-weight: 800; font-size: var(--hn-text-lg); letter-spacing: -0.02em; margin: 0; }
.hn-window__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hn-space-3); margin-top: var(--hn-space-3); }
.hn-tile { border: var(--hn-border); border-radius: var(--hn-radius); padding: var(--hn-space-3); min-width: 0; }
.hn-tile h4 { margin: 0 0 var(--hn-space-2); font-size: var(--hn-text-xs); font-weight: 600; color: var(--hn-green); }
.hn-check { display: flex; gap: var(--hn-space-2); align-items: flex-start; font-size: var(--hn-text-xs); line-height: 1.35; margin-bottom: 6px; }
.hn-check::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--hn-muted); border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.hn-check--done::before { background: var(--hn-green); border-color: var(--hn-green); }
.hn-bar { height: 7px; border-radius: 4px; background: var(--hn-wash); margin-bottom: 6px; }
.hn-bar--green { background: var(--hn-green-soft); }
.hn-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hn-paper); margin-right: -6px; }

/* Sections and cards */
.hn-section { padding: var(--hn-space-8) 0; }
.hn-kicker { font-family: var(--hn-font-hand); font-size: var(--hn-hand-size); color: var(--hn-green); margin: 0 0 var(--hn-space-2); display: block; }
.hn-grid { display: grid; gap: var(--hn-space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hn-card { border-top: 3px solid var(--hn-ink); padding-top: var(--hn-space-4); }
.hn-card p { margin: 0; color: var(--hn-muted); }
.hn-quote { font-family: var(--hn-font-head); font-weight: 600; font-size: var(--hn-text-xl); letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 var(--hn-space-3); }
.hn-badge {
  display: inline-block; padding: 2px var(--hn-space-2);
  background: var(--hn-green-soft); color: var(--hn-green);
  border-radius: var(--hn-radius); font-size: var(--hn-text-xs); font-weight: 600;
}
.hn-badge--yellow { background: var(--hn-yellow); color: var(--hn-ink); }

/* Lists and plain facts */
.hn-facts { list-style: none; padding: 0; margin: 0; }
.hn-facts li { padding: var(--hn-space-3) 0; border-bottom: var(--hn-border); display: flex; gap: var(--hn-space-3); }
.hn-facts li::before { content: "\2713"; color: var(--hn-green); font-weight: 700; }

/* Pricing */
.hn-price-card { border: 2px solid var(--hn-ink); border-radius: var(--hn-radius-lg); padding: var(--hn-space-6); background: var(--hn-paper); }
.hn-price { font-family: var(--hn-font-head); font-weight: 800; font-size: 4rem; letter-spacing: -0.05em; line-height: 1; margin: var(--hn-space-3) 0; }
.hn-price small { font-family: var(--hn-font-body); font-size: var(--hn-text-md); font-weight: 400; letter-spacing: 0; color: var(--hn-muted); }
.hn-table { width: 100%; border-collapse: collapse; font-size: var(--hn-text-sm); }
.hn-table th, .hn-table td { text-align: left; padding: var(--hn-space-3) var(--hn-space-2); border-bottom: var(--hn-border); vertical-align: top; }
.hn-table th { font-weight: 600; }

/* FAQ */
.hn-faq details { border-bottom: var(--hn-border); padding: var(--hn-space-4) 0; }
.hn-faq summary { font-family: var(--hn-font-head); font-weight: 600; font-size: var(--hn-text-lg); letter-spacing: -0.02em; cursor: pointer; }
.hn-faq p { margin: var(--hn-space-3) 0 0; color: var(--hn-muted); }

/* Article */
.hn-byline { display: flex; align-items: center; gap: var(--hn-space-3); font-size: var(--hn-text-sm); color: var(--hn-muted); margin-bottom: var(--hn-space-6); }
.hn-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hn-green-soft); color: var(--hn-green); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.hn-prose { font-size: 1.1875rem; line-height: 1.7; }
.hn-prose h2 { font-family: var(--hn-font-head); font-weight: 800; letter-spacing: var(--hn-track-tight); font-size: var(--hn-text-xl); line-height: 1.15; margin: var(--hn-space-7) 0 var(--hn-space-3); }
.hn-prose p { margin: 0 0 var(--hn-space-5); }
.hn-prose blockquote { margin: var(--hn-space-6) 0; padding-left: var(--hn-space-5); border-left: 4px solid var(--hn-yellow); font-family: var(--hn-font-head); font-weight: 600; font-size: var(--hn-text-xl); line-height: 1.3; letter-spacing: -0.02em; }
.hn-aside { background: var(--hn-panel); border-radius: var(--hn-radius-lg); padding: var(--hn-space-5); margin: var(--hn-space-6) 0; font-size: var(--hn-text-md); }

/* Forms */
.hn-form { display: grid; gap: var(--hn-space-4); }
.hn-label { display: block; font-weight: 600; font-size: var(--hn-text-sm); margin-bottom: var(--hn-space-1); }
.hn-input, .hn-select {
  width: 100%; padding: 0.7rem 0.8rem;
  border: 1px solid var(--hn-muted); border-radius: var(--hn-radius);
  font: inherit; font-size: var(--hn-text-md); color: var(--hn-ink); background: var(--hn-paper);
  min-height: 3rem;
}
.hn-input:focus, .hn-select:focus { outline: 3px solid var(--hn-yellow); outline-offset: 0; border-color: var(--hn-ink); }
.hn-hint { font-size: var(--hn-text-xs); color: var(--hn-muted); margin-top: var(--hn-space-1); }
.hn-checkline { display: flex; gap: var(--hn-space-2); align-items: flex-start; font-size: var(--hn-text-sm); }
.hn-checkline input { margin-top: 4px; accent-color: var(--hn-blue); }

/* Footer */
.hn-footer { border-top: var(--hn-border); padding: var(--hn-space-7) 0; font-size: var(--hn-text-sm); color: var(--hn-muted); }
.hn-footer__cols { display: grid; gap: var(--hn-space-5); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hn-footer h4 { color: var(--hn-ink); font-size: var(--hn-text-sm); margin: 0 0 var(--hn-space-2); }
.hn-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--hn-space-1); }

@media (max-width: 640px) {
  .hn-top { display: flex; justify-content: space-between; padding: var(--hn-space-4); }
  .hn-top .hn-btn { padding: 0.55rem 0.8rem; font-size: var(--hn-text-sm); }
  .hn-navrow { gap: var(--hn-space-2) var(--hn-space-4); font-size: var(--hn-text-sm); }
  .hn-window__grid { grid-template-columns: minmax(0, 1fr); }
  .hn-price { font-size: 3rem; }
  .hn-section { padding: var(--hn-space-7) 0; }
  .hn-hide-sm { display: none !important; }
}
