/* HostingPie Call-In-Chat website. Colours match the app (WhatsApp greens). */
:root {
  --green: #008069;
  --green-dark: #006b58;
  --green-bright: #25d366;
  --green-soft: #d9fdd3;
  --teal-ink: #0b3d33;
  --ink: #111b21;
  --muted: #54656f;
  --line: #e2e8ea;
  --bg: #ffffff;
  --tint: #f4f8f6;
  --chat-bg: #efeae2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 27, 33, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-soft); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-img { height: 36px; width: auto; }
.logo-mark { display: inline-flex; width: 36px; height: 36px; border-radius: 11px; background: var(--green); color: #fff; align-items: center; justify-content: center; }
.logo-icon { width: 20px; height: 20px; }
.logo-accent { color: var(--green); }
.logo-light { color: #fff; }
.logo-light .logo-accent { color: var(--green-bright); }
.logo-light .logo-mark { background: var(--green-bright); color: var(--teal-ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav > a:hover { color: var(--ink); background: var(--tint); }
.nav-actions { display: flex; gap: 8px; margin-left: 12px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-btn .icon-close { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, #f0faf6 0%, #fff 100%); padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.accent { color: var(--green); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--green); }

/* Chat widget illustration */
.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 36px; }
.mock {
  width: 100%; max-width: 360px; border-radius: 22px; overflow: hidden;
  background: var(--chat-bg); box-shadow: 0 30px 60px rgba(11, 61, 51, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(-1.5deg);
}
.mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--green); color: #fff; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mock-title { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.mock-title small { opacity: 0.85; font-size: 12px; }
.mock-call { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; }
.mock-body {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 18px; min-height: 330px;
  background-color: var(--chat-bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bubble {
  max-width: 82%; padding: 7px 10px 8px; border-radius: 10px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); position: relative;
}
.bubble time { display: block; text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { background: var(--green-soft); align-self: flex-end; border-top-right-radius: 2px; }
.ticks { color: #53bdeb; letter-spacing: -3px; margin-left: 2px; }
.voice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.play { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: #8696a0; }
.dur { font-size: 12px; color: #667781; }
.doc { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.doc time { grid-column: 1 / -1; }
.doc-icon { width: 34px; height: 40px; border-radius: 6px; background: #e53935; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.doc small { display: block; color: #667781; font-size: 12px; }
.call-pill {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: #54656f; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.call-pill .icon { color: var(--green); }
.mock-input { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.mock-input span:first-child { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; color: #8696a0; font-size: 14px; }
.mock-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.launcher {
  position: absolute; right: 6%; bottom: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-bright); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}
.launcher .icon { width: 28px; height: 28px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); align-items: center; justify-content: center; margin-bottom: 14px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; position: relative; border: 1px solid var(--line); min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; color: #e3efe9; line-height: 1;
}
.step-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; }
.snippet {
  display: block; background: var(--ink); color: #c7f5d9; font-size: 12px; padding: 10px 12px; border-radius: 10px;
  overflow-x: auto; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Pricing */
.billing-toggle { display: flex; width: max-content; margin: 0 auto 36px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.billing-toggle button {
  font: inherit; font-weight: 600; font-size: 15px; border: 0; background: none; color: var(--muted);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.save-badge { background: var(--green-soft); color: var(--green-dark); font-size: 12px; padding: 2px 8px; border-radius: 999px; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan-grid.plans-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.plan-grid.plans-2 { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.plan-grid.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; min-width: 0; }
.plan-popular { border: 2px solid var(--green); box-shadow: 0 20px 40px rgba(0, 128, 105, 0.15); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 21px; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.price { margin: 6px 0 18px; }
.amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-size: 15px; margin-left: 2px; }
.price-note { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.price-note strong { color: var(--green-dark); }
.pricing[data-billing='monthly'] .price-yearly, .pricing[data-billing='yearly'] .price-monthly { display: none; }
.plan-limits, .plan-features { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; font-size: 15px; }
.plan-limits { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.plan-limits li, .plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-limits .icon, .plan-features .icon { color: var(--green); margin-top: 2px; }
.plan-features { flex: 1; color: var(--muted); }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Call to action */
.cta-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal-ink) 100%); color: #fff;
  border-radius: 28px; padding: 48px;
}
.cta-card h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.cta-card p { opacity: 0.9; font-size: 17px; }
.hours { display: flex; align-items: center; gap: 8px; font-size: 15px !important; }
.cta-actions { display: grid; gap: 16px; justify-items: start; }
.contact-links { display: grid; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; word-break: break-all; }
.contact-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #aebac1; padding: 56px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a, .footer-grid span { display: block; color: #aebac1; text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.social a { display: inline-block !important; margin-right: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 20px; font-size: 13px; }

/* Policy pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: #3b4a54; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* Tablet */
@media (max-width: 1020px) {
  .plan-grid, .plan-grid.plans-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px; }
  .nav-actions { margin: 8px 0 0; flex-direction: column; }
  .nav-actions .btn { width: 100%; }
  .menu-btn[aria-expanded='true'] .icon-open { display: none; }
  .menu-btn[aria-expanded='true'] .icon-close { display: block; }

  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 32px 24px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo { font-size: 16px; }
  .section { padding: 64px 0; }
  .feature-grid, .plan-grid, .plan-grid.plans-2, .plan-grid.plans-3 { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .billing-toggle button { padding: 8px 12px; font-size: 14px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
