/* HeyHerbert landing page. Colors from the logo: cream paper, deep navy ink, coral accents, mail-carrier blue. */
:root {
  --cream: #fdfbf6;
  --paper: #ffffff;
  --navy: #121f3a;
  --ink: #26324d;
  --muted: #5b6478;
  --coral: #f2785a;
  --coral-deep: #c9533a;
  --blue: #2f4a7f;
  --sand: #f4eee3;
  --line: #e6dfd2;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Outfit, -apple-system, "Segoe UI", sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 650; text-decoration: none;
  box-shadow: 0 2px 0 var(--coral); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--sand); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-full { width: 100%; }
.fine { font-size: .9rem; color: var(--muted); }

.nav { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo img { width: 170px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.nav nav a:not(.btn):hover { color: var(--coral-deep); }

main > section { max-width: 1120px; margin: 0 auto; padding: 56px 16px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 32px !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 650; color: var(--coral-deep); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-art { justify-self: center; max-width: 440px; width: 100%; }
.hero-art img { width: 100%; }

/* Herbert's layers share one 480x467 canvas; transform origins are points on that canvas. */
.herbert { position: relative; aspect-ratio: 480 / 467; }
.herbert img { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-eyes { transform-origin: 49% 26.5%; animation: h-blink 4.6s infinite; }
.h-envelope { transform-origin: 67% 42%; animation: h-wave 5s ease-in-out infinite; }
.h-sparks { transform-origin: 84% 24%; animation: h-sparks 5s ease-out infinite; }
@keyframes h-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.1); }
  96% { transform: scaleY(1); }
}
@keyframes h-wave {
  0%, 55%, 100% { transform: rotate(0deg); }
  63% { transform: rotate(-9deg); }
  71% { transform: rotate(6deg); }
  79% { transform: rotate(-6deg); }
  87% { transform: rotate(3deg); }
}
@keyframes h-sparks {
  0%, 60% { transform: scale(1); opacity: 1; }
  72% { transform: translate(3%, -3%) scale(1.18); opacity: 1; }
  84% { transform: translate(5%, -5%) scale(1.28); opacity: 0; }
  85% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .h-eyes, .h-envelope, .h-sparks { animation: none; }
}

.how h2, .pricing h2, .faq h2 { text-align: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff; font-family: Outfit, sans-serif; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 0 0 4px var(--cream), 0 0 0 2px var(--coral); }
.checks strong { color: var(--navy); }
.sample { margin: 0; }
.sample figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 8px; text-align: center; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 18px 40px rgba(18, 31, 58, .08); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-head span:not(.avatar) { display: block; font-size: .82rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.post p { margin: 0; }

.price-card { max-width: 460px; margin: 26px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; box-shadow: 0 18px 40px rgba(18, 31, 58, .07); }
.price { font-family: Outfit, sans-serif; color: var(--muted); }
.price span { font-size: 3rem; font-weight: 700; color: var(--navy); margin-right: 4px; }
.price-card ul { padding-left: 1.1em; margin: 0 0 24px; }
.price-card li { margin-bottom: 6px; }
.price-card li::marker { color: var(--coral); }
.price-card .fine { text-align: center; margin: 12px 0 0; }

.faq { max-width: 760px !important; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta { text-align: center; }
.cta { background: var(--navy); color: #e8ebf3; border-radius: 28px; max-width: 1088px !important; margin-bottom: 40px !important; }
.cta h2 { color: #fff; }
.cta .btn { background: var(--coral); box-shadow: none; color: var(--navy); }
.cta .btn:hover { background: #f78f74; }

.foot { max-width: 1120px; margin: 0 auto; padding: 10px 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.foot img { width: 130px; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .hero, .why { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  main > section { padding: 40px 16px; }
  .cta { margin: 0 16px 32px !important; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
