/* Howzit Chat - public site. Brand palette sampled from the app. */
:root {
  --cream: #F8F7F2;
  --ink: #163F36;
  --ink-2: rgb(22 63 54 / 0.72);
  --ink-3: rgb(22 63 54 / 0.5);
  --ink-4: rgb(22 63 54 / 0.2);
  --ink-5: rgb(22 63 54 / 0.08);
  --muted: #EDEBE2;
  --green: #155B40;
  --green-wash: rgb(21 91 64 / 0.1);
  --orange: #E7A143;
  --font: "KMR Melange Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 44px 22px 60px; }

/* Header */
.site-title { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 10px; }
.site-fact { color: var(--green); font-weight: 600; font-size: 15px; margin: 0 0 20px; }
.site-intro { color: var(--ink-2); font-size: 16px; margin: 0 0 26px; max-width: 640px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; border-bottom: 1px solid var(--ink-4); margin-bottom: 26px; }
.site-nav a { padding: 10px 0; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }
@media (max-width: 600px) { .site-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

/* Sections */
.group { margin: 40px 0; }
.group-label { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; font-weight: 500; }
.group-heading { font-size: 23px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 14px; }
p { margin: 0 0 14px; }
.caption { font-size: 13px; color: var(--ink-3); margin: 8px 0; }
a.inline { color: var(--green); font-weight: 600; }

/* Rows */
.rows { margin: 6px 0; }
.row { padding: 13px 0; border-bottom: 1px solid var(--ink-5); }
.row:last-child { border-bottom: 0; }
.row-name { font-weight: 700; font-size: 15px; }
.row-detail { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }

/* Numbered list */
.steps { list-style: none; margin: 6px 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 10px 0 10px 44px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-wash); color: var(--ink);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Bullets */
.bullets { margin: 6px 0 14px; padding-left: 22px; }
.bullets li { padding: 5px 0; }

/* Callouts */
.callout { background: var(--muted); border-left: 3px solid var(--green); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.callout.warn { border-left-color: var(--orange); }
.callout-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; }

/* Facts */
.facts { margin: 6px 0; }
.fact { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--ink-5); }
.fact:last-child { border-bottom: 0; }
.fact-label { width: 150px; flex-shrink: 0; color: var(--ink-3); font-size: 14px; }
.fact-value { font-weight: 500; }
@media (max-width: 480px) { .fact { flex-direction: column; gap: 2px; } .fact-label { width: auto; } }

/* Buttons */
.btn { display: inline-block; background: #fff; border: 1px solid var(--ink-4); border-radius: 10px; padding: 10px 20px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; margin: 4px 12px 4px 0; min-height: 44px; }
.btn:hover { background: var(--ink-5); }

/* Choice pills + text field */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.choice { font: inherit; font-weight: 600; font-size: 14.5px; padding: 9px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--ink-4); background: #fff; color: var(--ink-2); cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--green-wash); border-color: var(--green); color: var(--green); }
.field-label { display: block; font-size: 14px; color: var(--ink-3); margin: 12px 0 6px; }
.field { font: inherit; font-weight: 500; width: 100%; max-width: 340px; padding: 12px 14px; border: 1px solid var(--ink-4); border-radius: 10px; background: #fff; color: var(--ink); }
.field:focus { outline: 2px solid var(--green); outline-offset: 1px; }

/* Photo */
.photo { width: 100%; border-radius: 16px; display: block; margin: 10px 0 4px; }

/* Footer */
.site-footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--ink-5); color: var(--ink-3); font-size: 14px; }

/* ---- Vibrant layer ---- */
.hw-hero { background: #163F36; border-radius: 24px; padding: 40px 28px 32px; margin: 8px 0 4px; color: #F8F7F2; }
.hw-dots { display: flex; gap: 16px; justify-content: center; margin-bottom: 18px; }
.hw-dot { width: 14px; height: 14px; border-radius: 50%; animation: hwBob 2.6s ease-in-out infinite; }
.hw-dot.hw-m { animation-delay: 0.3s; }
.hw-dot.hw-p { animation-delay: 0.6s; }
.hw-y { background: #F6D28C; }
.hw-m, .hw-mint { background: #B7DBCE; }
.hw-p { background: #C6C5ED; }
.hw-o { background: #F3C9A1; }
@keyframes hwBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hw-hero-row { display: flex; align-items: center; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hw-hero-copy { text-align: center; min-width: 240px; }
.hw-wordmark-img { width: 300px; max-width: 78%; height: auto; display: block; margin: 0 auto; }
.hw-tagline { margin: 12px 0 0; font-size: 19px; color: rgb(248 247 242 / 0.75); }
.hw-chips { margin: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hw-chip { font-size: 13px; font-weight: 600; color: #163F36; background: #F6D28C; border-radius: 999px; padding: 7px 12px; }
.hw-chip + .hw-chip { background: #B7DBCE; }

/* phone mock-up with looping chat */
.hw-phone { background: #0E2C25; border-radius: 34px; padding: 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); }
.hw-screen { background: #F8F7F2; border-radius: 26px; width: 230px; min-height: 340px; padding: 12px 10px 16px; overflow: hidden; display: flex; flex-direction: column; }
.hw-chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgb(22 63 54 / 0.12); margin-bottom: 10px; }
.hw-avatar { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #163F36; }
.hw-chat-name { font-size: 14px; font-weight: 700; color: #163F36; }
.hw-bubble { font-size: 13px; line-height: 1.35; color: #163F36; padding: 8px 11px; border-radius: 14px; margin: 6px 0; max-width: 85%; }
.hw-bubble b { display: block; font-size: 11px; margin-bottom: 2px; color: #155B40; }
.hw-in { background: #FFFFFF; border: 1px solid rgb(22 63 54 / 0.1); border-bottom-left-radius: 4px; align-self: flex-start; }
.hw-out { background: #DCEBE1; border-bottom-right-radius: 4px; margin-left: auto; }
.hw-voice { display: inline-block; font-weight: 600; }
.hw-typing { display: inline-flex; gap: 4px; background: #FFFFFF; border: 1px solid rgb(22 63 54 / 0.1); border-radius: 14px; border-bottom-left-radius: 4px; padding: 10px 12px; margin: 6px 0; width: max-content; }
.hw-typing i { width: 6px; height: 6px; border-radius: 50%; background: #96A198; animation: hwPulse 1s ease-in-out infinite; }
.hw-typing i:nth-child(2) { animation-delay: 0.15s; }
.hw-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hwPulse { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.hw-b1, .hw-b2, .hw-b3, .hw-b4 { animation-duration: 14s; animation-iteration-count: infinite; animation-fill-mode: both; }
.hw-b1 { animation-name: hwB1; }
.hw-b2 { animation-name: hwB2; }
.hw-b3 { animation-name: hwB3; }
.hw-b4 { animation-name: hwB4; }
@keyframes hwB1 { 0%, 88% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes hwB2 { 0%, 18% { opacity: 0; transform: translateY(10px); } 24%, 88% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes hwB3 { 0%, 38% { opacity: 0; } 42%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes hwB4 { 0%, 58% { opacity: 0; transform: translateY(10px); } 64%, 88% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; transform: translateY(10px); } }

/* language ribbon */
.hw-ribbon { background: #E7A143; transform: rotate(-1.2deg); margin: 26px -6px 18px; padding: 10px 0; overflow: hidden; border-radius: 6px; }
.hw-ribbon-track { display: flex; width: max-content; animation: hwSlide 38s linear infinite; }
.hw-ribbon-run { display: flex; flex-shrink: 0; }
.hw-ribbon-word { color: #163F36; font-weight: 700; font-size: 17px; padding: 0 18px; white-space: nowrap; }
.hw-ribbon-word::after { content: "·"; margin-left: 36px; opacity: 0.55; }
@keyframes hwSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* moments marquee */
.hw-marquee { overflow: hidden; margin: 4px 0 6px; }
.hw-marquee-track { display: flex; width: max-content; gap: 12px; animation: hwSlide 32s linear infinite; }
.hw-marquee:hover .hw-marquee-track { animation-play-state: paused; }
.hw-marquee-run { display: flex; gap: 12px; flex-shrink: 0; padding-right: 12px; }
.hw-moment { width: 158px; border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; color: #163F36; }
.hw-moment-emoji { font-size: 34px; line-height: 1.1; }
.hw-moment-name { font-weight: 700; font-size: 15px; }
.hw-moment-caption { font-size: 13px; color: rgb(22 63 54 / 0.88); }

/* QR demo */
.hw-qr-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 10px 0 4px; }
.hw-qr { position: relative; width: 132px; height: 132px; border-radius: 16px; overflow: hidden; border: 1px solid rgb(22 63 54 / 0.15); background: #F8F7F2; flex-shrink: 0; }
.hw-qr-svg { width: 100%; height: 100%; display: block; }
.hw-scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #155B40; box-shadow: 0 0 10px 2px rgb(21 91 64 / 0.55); animation: hwScan 2.4s ease-in-out infinite; }
@keyframes hwScan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
.hw-qr-btn { font: inherit; font-weight: 700; font-size: 15px; color: #F8F7F2; background: #155B40; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; cursor: pointer; }
.hw-qr-btn:hover { background: #163F36; }
.hw-biz-card { background: #DCEBE1; border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; animation: hwPop 0.45s ease both; color: #163F36; }
.hw-biz-name { font-weight: 800; font-size: 17px; }
.hw-biz-detail { font-size: 13px; color: rgb(22 63 54 / 0.75); }
.hw-biz-open { font-size: 13px; font-weight: 700; color: #155B40; margin-top: 6px; }
@keyframes hwPop { from { opacity: 0; transform: scale(0.94) translateY(6px); } to { opacity: 1; transform: none; } }

/* SA flag + proudly South African line */
.hw-proud { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 16px 0 0; font-size: 15px; font-weight: 600; color: rgb(248 247 242 / 0.85); }
.hw-flag { width: 38px; height: auto; border-radius: 5px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); animation: hwSway 3.2s ease-in-out infinite; transform-origin: left center; flex-shrink: 0; }
@keyframes hwSway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

/* Section bands in the app palette */
.hw-band { border-radius: 20px; padding: 16px 20px 20px; margin: 12px 0; }
.hw-band-mint { background: #DCEBE1; }
.hw-band-gold { background: #F9E9C6; }
.hw-band-lav { background: #E7E6F6; }

/* Flag-colour pattern strip */
.hw-pattern { height: 16px; border-radius: 999px; margin: 20px 0 12px; background: repeating-linear-gradient(135deg, #007749 0 16px, #FFB612 16px 32px, #DE3831 32px 48px, #001489 48px 64px, #163F36 64px 80px); }

@media (max-width: 480px) {
  .hw-hero { padding: 30px 18px 26px; }
  .hw-proud { font-size: 13.5px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-ribbon-track, .hw-marquee-track, .hw-dot, .hw-scanline, .hw-b1, .hw-b2, .hw-b3, .hw-b4, .hw-typing i, .hw-flag { animation: none; }
  .hw-b1, .hw-b2, .hw-b4 { opacity: 1; transform: none; }
  .hw-b3 { opacity: 0; }
}
