/* ==========================================================================
   AppForge — public homepage styles
   Self-contained: everything here is prefixed .hp- or scoped to .home-body so
   it cannot collide with the dashboard stylesheet.
   ========================================================================== */

:root {
  --hp-green:  #1D9E75;
  --hp-green-d:#17855F;
  --hp-deep:   #0A4035;
  --hp-ink:    #0E1A17;
  --hp-body:   #475A55;
  --hp-line:   #E2EBE8;
  --hp-soft:   #F4F8F7;
  --hp-white:  #FFFFFF;
  --hp-radius: 14px;
  --hp-shadow: 0 1px 2px rgba(10,64,53,.05), 0 8px 24px rgba(10,64,53,.07);
  --hp-shadow-lg: 0 24px 60px rgba(10,64,53,.14);
  --hp-nav-h:  68px;
}

.home-body {
  margin: 0;
  background: var(--hp-white);
  color: var(--hp-body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.home-body * { box-sizing: border-box; }

.home-body h1, .home-body h2, .home-body h3, .home-body h4 {
  color: var(--hp-ink);
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.021em;
  font-weight: 700;
}
.home-body p { margin: 0 0 1em; }
.home-body a { color: var(--hp-green-d); text-decoration: none; }
.home-body a:hover { text-decoration: underline; }
.home-body code {
  background: var(--hp-soft);
  border: 1px solid var(--hp-line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--hp-ink); color: #fff;
  border-radius: 8px;
}

/* ───────────────────────────── Buttons ───────────────────────────── */

.home-body .hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .16s, border-color .16s,
                               color .16s, transform .12s, box-shadow .16s;
}
.home-body .hp-btn:hover { text-decoration: none; }
.home-body .hp-btn-solid {
  background: var(--hp-green); color: #fff;
  box-shadow: 0 1px 2px rgba(10,64,53,.12), 0 6px 18px rgba(29,158,117,.26);
}
.home-body .hp-btn-solid:hover { background: var(--hp-green-d); transform: translateY(-1px); }
.home-body .hp-btn-ghost {
  background: var(--hp-white); color: var(--hp-ink);
  border-color: var(--hp-line);
}
.home-body .hp-btn-ghost:hover { border-color: #C9DAD5; background: var(--hp-soft); }
.hp-btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.hp-btn-full { width: 100%; }
.home-body .hp-on-dark {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.4);
}
.home-body .hp-on-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

/* ────────────────────────────── Navbar ───────────────────────────── */

.hp-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hp-nav.is-stuck {
  border-bottom-color: var(--hp-line);
  box-shadow: 0 1px 14px rgba(10,64,53,.06);
}
.hp-nav-inner {
  height: var(--hp-nav-h);
  display: flex; align-items: center; gap: 28px;
}
.home-body .hp-brand { display: flex; align-items: center; flex: 0 0 auto; }
.hp-brand img { height: 30px; width: auto; display: block; }

.hp-links { display: flex; align-items: center; gap: 26px; margin-left: 4px; }
.hp-links a {
  color: var(--hp-body); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; position: relative;
}
.hp-links a:hover { color: var(--hp-ink); text-decoration: none; }
.hp-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--hp-green); border-radius: 2px;
  transition: right .18s;
}
.hp-links a:hover::after { right: 0; }

.hp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hp-burger {
  display: none; width: 40px; height: 40px;
  background: none; border: 1px solid var(--hp-line); border-radius: 9px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hp-burger span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--hp-ink); transition: transform .18s, opacity .18s;
}
.hp-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hp-burger.is-open span:nth-child(2) { opacity: 0; }
.hp-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hp-mobile[hidden] { display: none !important; }
.hp-mobile {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px 24px 18px;
  border-top: 1px solid var(--hp-line);
  background: var(--hp-white);
}
.hp-mobile a {
  padding: 11px 0; color: var(--hp-ink);
  font-weight: 500; border-bottom: 1px solid var(--hp-line);
}
.hp-mobile a:last-child { border-bottom: 0; }
.home-body .hp-mobile .hp-m-primary {
  margin-top: 10px; border-bottom: 0;
  background: var(--hp-green); color: #fff;
  text-align: center; border-radius: 10px; padding: 12px;
  font-weight: 600;
}

/* ─────────────────────────────── Hero ───────────────────────────── */

.hp-hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 440px at 88% -8%, rgba(29,158,117,.16), transparent 62%),
    radial-gradient(760px 380px at 4% 6%,  rgba(10,64,53,.07),  transparent 60%),
    var(--hp-white);
}
.hp-hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}

.hp-eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(29,158,117,.11);
  border: 1px solid rgba(29,158,117,.26);
  color: var(--hp-green-d);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .055em; text-transform: uppercase;
}
.hp-hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  letter-spacing: -.032em;
  margin-bottom: 20px;
}
.hp-hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--hp-green) 0%, #34C79A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--hp-green);
}
.hp-lede {
  font-size: 17.5px; line-height: 1.68;
  max-width: 34em; margin-bottom: 28px;
}

.hp-urlform {
  display: flex; gap: 10px; max-width: 520px; margin-bottom: 12px;
}
.hp-urlform input {
  flex: 1 1 auto; min-width: 0; height: 50px;
  padding: 0 16px; font-size: 15.5px; color: var(--hp-ink);
  border: 1px solid var(--hp-line); border-radius: 12px;
  background: var(--hp-white);
  box-shadow: var(--hp-shadow);
  transition: border-color .16s, box-shadow .16s;
}
.hp-urlform input::placeholder { color: #9BAFA9; }
.hp-urlform input:focus {
  outline: none; border-color: var(--hp-green);
  box-shadow: 0 0 0 3px rgba(29,158,117,.16);
}

.hp-microcopy { font-size: 13.5px; color: #7C918B; margin-bottom: 26px; }

.hp-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hp-trust li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; color: var(--hp-body);
}
.hp-trust li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(29,158,117,.14);
  box-shadow: inset 0 0 0 1px rgba(29,158,117,.32);
}
.hp-trust li::after {
  content: ''; position: absolute; left: 5px; top: .62em;
  width: 5px; height: 8px;
  border-right: 2px solid var(--hp-green);
  border-bottom: 2px solid var(--hp-green);
  transform: rotate(42deg);
}

/* Phone mock */
.hp-hero-art { position: relative; display: flex; justify-content: center; }
.hp-phone {
  position: relative; width: 272px; height: 552px;
  background: #0B1513; border-radius: 42px;
  padding: 11px;
  box-shadow: var(--hp-shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.1);
}
.hp-phone-notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; border-radius: 12px;
  background: #0B1513; z-index: 3;
}
.hp-phone-screen {
  width: 100%; height: 100%; border-radius: 32px;
  background: var(--hp-white); overflow: hidden;
  padding: 44px 18px 18px; position: relative;
}
.hp-ps-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--hp-soft); border: 1px solid var(--hp-line);
  border-radius: 8px; padding: 7px 10px; margin-bottom: 20px;
}
.hp-ps-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-green); flex: 0 0 auto; }
.hp-ps-url { font-size: 11px; color: #8C9F9A; }
.hp-ps-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.hp-ps-logo img { width: 54px; height: 54px; border-radius: 13px; }
.hp-ps-skel {
  height: 9px; border-radius: 5px; margin-bottom: 11px;
  background: linear-gradient(90deg, #EDF3F1, #F7FAF9, #EDF3F1);
  background-size: 200% 100%;
  animation: hp-shimmer 2.1s linear infinite;
}
.hp-w80 { width: 80%; } .hp-w70 { width: 70%; }
.hp-w60 { width: 60%; } .hp-w45 { width: 45%; }
.hp-ps-card {
  height: 112px; border-radius: 12px; margin: 16px 0;
  background: linear-gradient(135deg, rgba(29,158,117,.16), rgba(10,64,53,.09));
  border: 1px solid rgba(29,158,117,.2);
}
.hp-ps-tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54px; display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--hp-line); background: var(--hp-white);
}
.hp-ps-tabs span { width: 22px; height: 22px; border-radius: 6px; background: #E6EEEC; }
.hp-ps-tabs span:first-child { background: rgba(29,158,117,.3); }
@keyframes hp-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hp-float {
  position: absolute; z-index: 4;
  background: var(--hp-white); border: 1px solid var(--hp-line);
  border-radius: 11px; padding: 9px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--hp-ink);
  box-shadow: var(--hp-shadow);
  white-space: nowrap;
  animation: hp-bob 5.5s ease-in-out infinite;
}
.hp-float::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hp-green); margin-right: 8px;
}
.hp-float-1 { top: 11%;  left: -4%;  animation-delay: 0s; }
.hp-float-2 { top: 47%;  right: -6%; animation-delay: 1.3s; }
.hp-float-3 { bottom: 13%; left: -7%; animation-delay: 2.6s; }
@keyframes hp-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ──────────────────────────── Sections ──────────────────────────── */

.hp-section { padding: 84px 0; }
.hp-alt { background: var(--hp-soft); border-block: 1px solid var(--hp-line); }

.hp-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.hp-head h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.3rem);
  margin-bottom: 14px;
}
.hp-head p { font-size: 17px; margin: 0; }

/* Steps */
.hp-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: none;
}
.hp-steps li {
  position: relative;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 26px 22px 22px;
  box-shadow: var(--hp-shadow);
}
.hp-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--hp-deep); color: #fff;
  font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.hp-steps h3 { font-size: 17px; margin-bottom: 8px; }
.hp-steps p  { font-size: 14.5px; margin: 0; }

/* Feature grid */
.hp-feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.hp-feat {
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 24px 22px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.hp-feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow);
  border-color: #CFE0DB;
}
.hp-feat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,158,117,.1);
  font-size: 21px; margin-bottom: 15px;
}
.hp-feat h3 { font-size: 16.5px; margin-bottom: 7px; }
.hp-feat p  { font-size: 14.5px; margin: 0; }

.hp-feat-more {
  max-width: 820px; margin: 40px auto 0; text-align: center;
  font-size: 15px; color: #6E837D;
  padding-top: 26px; border-top: 1px solid var(--hp-line);
}

/* ──────────────────────────── Pricing ───────────────────────────── */

.hp-price-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; align-items: stretch;
}
.hp-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 26px 20px 22px;
}
.hp-plan-pop {
  border-color: var(--hp-green);
  box-shadow: 0 0 0 1px var(--hp-green), var(--hp-shadow);
  transform: translateY(-6px);
}
.hp-plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--hp-green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.hp-plan:not(.hp-plan-pop) .hp-plan-badge {
  background: var(--hp-deep);
}
.hp-plan h3 { font-size: 17px; margin-bottom: 10px; }
.hp-plan-price { margin-bottom: 8px; line-height: 1; }
.hp-cur { font-size: 18px; font-weight: 700; color: var(--hp-ink); vertical-align: 18px; }
.hp-amt { font-size: 38px; font-weight: 700; color: var(--hp-ink); letter-spacing: -.03em; }
.hp-per { font-size: 14px; color: #7C918B; font-weight: 500; }
.hp-custom { font-size: 26px; font-weight: 700; color: var(--hp-ink); }
.hp-plan-tag { font-size: 13.5px; color: #6E837D; min-height: 3.4em; margin-bottom: 16px; }

.hp-plan-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; gap: 8px; flex: 1 1 auto;
}
.hp-plan-list li {
  position: relative; padding-left: 21px;
  font-size: 13.5px; line-height: 1.5;
}
.hp-plan-list li::before {
  content: ''; position: absolute; left: 1px; top: .5em;
  width: 5px; height: 8px;
  border-right: 2px solid var(--hp-green);
  border-bottom: 2px solid var(--hp-green);
  transform: rotate(42deg);
}
.hp-plan-list li b { color: var(--hp-ink); font-weight: 600; }
.hp-plan-rest { color: #8C9F9A; font-style: italic; }
.hp-plan-rest::before { opacity: .45; }

.hp-price-note {
  max-width: 640px; margin: 48px auto 0; text-align: center;
  font-size: 14.5px; color: #6E837D;
}

/* ────────────────────────────── FAQ ─────────────────────────────── */

.hp-faq-wrap { max-width: 820px; }
.hp-faq { display: grid; gap: 12px; }
.hp-faq details {
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  padding: 0 20px;
  transition: border-color .16s;
}
.hp-faq details[open] { border-color: #CFE0DB; }
.hp-faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 34px 17px 0; position: relative;
  font-size: 15.5px; font-weight: 600; color: var(--hp-ink);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--hp-green);
  border-bottom: 2px solid var(--hp-green);
  transform: rotate(45deg); transition: transform .18s;
}
.hp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hp-faq details p {
  margin: 0; padding: 0 0 18px;
  font-size: 15px; color: var(--hp-body);
}

/* ───────────────────────────── CTA ──────────────────────────────── */

.hp-cta {
  background: linear-gradient(135deg, var(--hp-deep) 0%, #0D5244 55%, #11614F 100%);
  padding: 78px 0;
  position: relative; overflow: hidden;
}
.hp-cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(620px 300px at 82% 112%, rgba(52,199,154,.3), transparent 62%);
  pointer-events: none;
}
.hp-cta-inner { position: relative; z-index: 1; text-align: center; }
.hp-cta h2 { color: #fff; font-size: clamp(1.65rem, 3.2vw, 2.2rem); }
.hp-cta p  { color: rgba(255,255,255,.84); font-size: 17px; margin-bottom: 28px; }
.hp-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ──────────────────────────── Footer ────────────────────────────── */

.hp-foot { background: #071F1A; color: rgba(255,255,255,.62); padding: 56px 0 0; }
.hp-foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.hp-foot-brand img { height: 28px; margin-bottom: 14px; }
.hp-foot-brand p { font-size: 14px; max-width: 30em; margin: 0; color: rgba(255,255,255,.55); }
.hp-foot-col { display: flex; flex-direction: column; gap: 9px; }
.hp-foot-col h4 {
  color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; margin: 0 0 4px;
}
.hp-foot-col a { color: rgba(255,255,255,.62); font-size: 14px; }
.hp-foot-col a:hover { color: #fff; text-decoration: none; }

.hp-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px; display: flex; gap: 16px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  font-size: 13px;
}
.home-body .hp-foot-wa { color: #5FD6AC; font-weight: 600; }
.home-body .hp-foot-wa:hover { color: #86E6C4; text-decoration: none; }

/* ───────────────────────── WhatsApp FAB ─────────────────────────── */

.hp-wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,.4);
  transition: transform .16s, box-shadow .16s;
}
.hp-wa-fab:hover { transform: scale(1.07); box-shadow: 0 8px 28px rgba(37,211,102,.52); }
.hp-wa-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ──────────────────────────── Responsive ────────────────────────── */

@media (max-width: 1040px) {
  .hp-price-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-plan-pop { transform: none; }
  .hp-steps { grid-template-columns: repeat(2, 1fr); }
  .hp-feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hp-links { display: none; }
  .hp-burger { display: flex; }
  .hp-mobile:not([hidden]) { display: flex; }
  .hp-hero { padding: 48px 0 60px; }
  .hp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hp-hero-art { order: 2; }
  .hp-float-1 { left: 2%; }
  .hp-float-2 { right: 0; }
  .hp-float-3 { left: 0; }
  .hp-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hp-wrap { padding: 0 18px; }
  .hp-section { padding: 58px 0; }
  .hp-head { margin-bottom: 36px; }
  .hp-actions .hp-btn-ghost { display: none; }   /* keep "Sign up" + burger only */
  .hp-urlform { flex-direction: column; }
  .hp-urlform .hp-btn { width: 100%; }
  .hp-steps, .hp-feat-grid, .hp-price-grid { grid-template-columns: 1fr; }
  .hp-plan-tag { min-height: 0; }
  .hp-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-foot-bottom { flex-direction: column; align-items: flex-start; }
  .hp-cta-btns .hp-btn { width: 100%; }
  .hp-wa-fab { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-body *, .home-body *::before, .home-body *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
