/* SunGrid ERP — marketing site. Plain CSS, no build step. */
:root {
  --navy: #0b2148;
  --navy-deep: #071733;
  --navy-soft: #1b3566;
  --orange: #f26a10;
  --orange-2: #ff8c12;
  --amber: #f7b01e;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -12px rgba(11, 33, 72, 0.18);
  --grad: linear-gradient(135deg, var(--amber) 0%, var(--orange-2) 45%, var(--orange) 100%);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 106, 16, 0.75); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(242, 106, 16, 0.85); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--navy); opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn { min-height: 42px; padding: 0 1.1rem; font-size: 0.92rem; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.mobile-menu { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .login { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--line); padding: 0.5rem 0 1.2rem; }
  .mobile-menu a { display: block; padding: 0.85rem 0.25rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
  .mobile-menu a.btn { display: flex; margin-top: 1rem; width: 100%; color: #fff; border-bottom: 0; padding: 0 1.4rem; }
}
@media (max-width: 520px) {
  .nav-cta .trial { display: none; }
  .brand img { height: 34px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(247, 176, 30, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(11, 33, 72, 0.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.38rem 0.85rem; border-radius: 999px;
  background: #fff4e8; color: #b44d07; font-weight: 700; font-size: 0.82rem;
  border: 1px solid #ffd9b5;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 16, 0.18); }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.4rem; }
.ticks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 0; list-style: none; font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.ticks li { display: flex; align-items: center; gap: 0.45rem; }
.ticks svg { width: 18px; height: 18px; color: #16a34a; flex: none; }

.hero-visual { position: relative; }
.browser {
  background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -25px rgba(11, 33, 72, 0.45);
  border: 1px solid var(--line); overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar .url { flex: 1; margin-left: 10px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: #64748b; display: flex; align-items: center; padding: 0 10px; width: auto; }
.phone {
  position: absolute; right: -4%; bottom: -12%; width: 34%; min-width: 150px;
  border-radius: 28px; padding: 8px; background: var(--navy-deep);
  box-shadow: 0 30px 60px -20px rgba(7, 23, 51, 0.6);
}
.phone img { border-radius: 21px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 1rem auto 3rem; max-width: 640px; }
}
@media (max-width: 520px) { .phone { right: -2%; width: 38%; min-width: 120px; } }

/* Trust strip */
.strip { padding: 1.4rem 0; background: var(--navy); color: #dbe4f3; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.2rem; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.95rem; }
.strip li { display: flex; align-items: center; gap: 0.5rem; }
.strip svg { width: 20px; height: 20px; color: var(--amber); }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 46rem; margin: 0 auto 2.8rem; text-align: center; }
.section-head .kicker { display: inline-block; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--orange); margin-bottom: 0.7rem; }
.section-head p { font-size: 1.08rem; }
.alt { background: #fff; }

/* Problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.panel { border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); background: #fff; }
.panel.before { background: #fff7f5; border-color: #fde2d8; }
.panel.after { background: #f2fbf5; border-color: #cdeed9; }
.panel h3 { display: flex; align-items: center; gap: 0.6rem; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { display: flex; gap: 0.7rem; padding: 0.55rem 0; color: var(--ink); border-top: 1px dashed rgba(15, 23, 42, 0.1); }
.panel li:first-child { border-top: 0; }
.panel li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.before li svg { color: #dc2626; }
.after li svg { color: #16a34a; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Feature grid */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #ffd2a8; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff4e8; color: var(--orange); margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.94rem; }
.card li { margin: 0.25rem 0; }

/* Lifecycle */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.8rem; counter-reset: step; }
.flow li { list-style: none; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 0.9rem; text-align: center; box-shadow: var(--shadow); }
.flow li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 0.6rem;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 0.9rem;
}
.flow strong { display: block; color: var(--navy); font-size: 0.95rem; }
.flow span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.45; }
.flow { padding: 0; margin: 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* Mobile section */
.mobile { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%); color: #dbe4f3; overflow: hidden; }
.mobile h2, .mobile h3 { color: #fff; }
.mobile p { color: #c4d0e6; }
.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mobile .kicker { color: var(--amber); }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .bullet { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(247, 176, 30, 0.14); color: var(--amber); }
.feature-list .bullet svg { width: 20px; height: 20px; }
.feature-list strong { color: #fff; display: block; }
.feature-list span { color: #b7c4dc; font-size: 0.95rem; }
.phones { position: relative; display: flex; justify-content: center; gap: 1.2rem; }
.phones .phone { position: relative; right: auto; bottom: auto; width: 46%; max-width: 270px; }
.phones .phone:nth-child(2) { transform: translateY(2.5rem); }
@media (max-width: 900px) { .mobile-grid { grid-template-columns: 1fr; } .phones { margin-bottom: 2rem; } }

/* Security */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.badge { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.badge svg { width: 26px; height: 26px; color: var(--navy); flex: none; }
.badge strong { display: block; color: var(--navy); }
.badge span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 1000px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem 1.7rem; box-shadow: var(--shadow); }
.price-card.popular { border: 2px solid var(--orange); box-shadow: 0 24px 50px -24px rgba(242, 106, 16, 0.55); }
.price-card .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.78rem; font-weight: 800; padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.price-card .for { font-size: 0.92rem; margin-bottom: 1.2rem; }
.amount { display: flex; align-items: baseline; gap: 0.3rem; color: var(--navy); }
.amount b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.amount small { color: var(--muted); font-weight: 600; }
.gst { font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 1.3rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; flex: 1; }
.price-card li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--ink); }
.price-card li svg { width: 19px; height: 19px; color: #16a34a; flex: none; margin-top: 3px; }
.price-card .btn { width: 100%; }
.price-note { text-align: center; margin: 1.8rem auto 0; font-size: 0.92rem; max-width: 760px; }
.cycle-switch { display: flex; width: max-content; max-width: 100%; margin: -0.6rem auto 2.2rem; padding: 0.3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.cycle-switch button { font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 0.55rem 1.2rem; cursor: pointer; }
.cycle-switch button span { font-size: 0.78rem; font-weight: 700; color: #16a34a; margin-left: 0.3rem; }
.cycle-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cycle-switch button[aria-pressed="true"] span { color: #ffd59a; }
.cyc-a { display: none; }
.pricing[data-cycle="annual"] .cyc-m { display: none; }
.pricing[data-cycle="annual"] .cyc-a { display: grid; gap: 0.7rem; margin-bottom: 1.3rem; }
.annual-opt { border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem 0.1rem; }
.annual-opt .amount b { font-size: 1.9rem; }
.annual-opt .gst { margin-bottom: 0.6rem; }
.opt-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #16a34a; }
@media (max-width: 480px) { .cycle-switch button { padding: 0.5rem 0.8rem; font-size: 0.88rem; } .cycle-switch button span { display: block; margin: 0; } }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 1.15rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; margin: 0; }

/* CTA */
.cta { padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.6rem);
  background: radial-gradient(600px 300px at 100% 0%, rgba(247, 176, 30, 0.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; color: #fff;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #c4d0e6; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }
@media (max-width: 800px) { .cta-box { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb0cc; padding: 3.5rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #9fb0cc; }
.footer-logo img { height: 42px; width: auto; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) { .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; } .wa-float svg { width: 27px; height: 27px; } }

/* Plain pages (policies, contact) */
.page-hero { padding: 3.5rem 0 2rem; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 44rem; }
.prose { max-width: 780px; padding: 2.5rem 0 4rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose p, .prose li { color: #334155; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 2.5rem 0 4rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff4e8; color: var(--orange); margin-bottom: 1rem; }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card a.big { font-size: 1.15rem; font-weight: 800; color: var(--navy); word-break: break-word; }

/* Reveal on scroll */
/* Only hidden when scripts run (html.js), so the page never stays blank without them. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Demo video */
.demo-video { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); border: 1px solid var(--line); }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--navy); }
.demo-note { text-align: center; margin: 1.4rem auto 0; font-size: 0.98rem; }
.demo-note a { color: var(--orange); font-weight: 700; }
.demo-note a:hover { text-decoration: underline; }
.watch-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; font-weight: 700; color: var(--navy); }
.watch-link svg { width: 1.6rem; height: 1.6rem; padding: 0.35rem; border-radius: 50%; background: var(--grad); color: #fff; }
.watch-link:hover { color: var(--orange); }
