/* Public website (landing, terms, refund): resources/views/site. Same palette and fonts as theme.css. */
:root {
    --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-500: #6366f1; --brand-600: #4f46e5; --brand-700: #4338ca;
    --violet-600: #7c3aed; --cyan-400: #22d3ee;
    --ink-900: #0f172a; --ink-800: #1e293b; --ink-700: #334155; --ink-600: #475569; --ink-500: #64748b; --ink-400: #94a3b8;
    --line: #e7e9f2; --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fd;
    --success-600: #059669; --success-50: #ecfdf5; --danger-600: #dc2626; --danger-50: #fef2f2;
    --night: #0b1024; --night-2: #121a3d;
    --radius: 14px; --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 14px 34px -14px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow-lg: 0 30px 70px -24px rgba(15, 23, 42, .35);
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site { margin: 0; font-family: var(--font-sans); color: var(--ink-700); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.15; margin: 0; }
.site p { margin: 0; }
.site a { color: var(--brand-600); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font-sans); padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); }
.btn-ghost { background: transparent; color: var(--ink-800) !important; }
.btn-ghost:hover { background: var(--brand-50); }
.btn-outline { background: #fff; color: var(--brand-700) !important; border-color: var(--brand-100); }
.btn-outline:hover { border-color: var(--brand-500); }
.btn-light { background: #fff; color: var(--brand-700) !important; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1.1 var(--font-display); color: var(--ink-900) !important; }
.site-brand small { display: block; font: 500 11.5px/1.2 var(--font-sans); color: var(--ink-500); }
.site-brand-light { color: #fff !important; }
.site-brand-light small { color: #a3abc9; }
.site-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8); flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a { color: var(--ink-600); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.site-nav > a:hover { color: var(--ink-900); background: var(--surface-2); }
.site-nav-actions { display: inline-flex; gap: 6px; margin-left: 10px; }
.site-menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--ink-800); padding: 6px; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .12), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(79, 70, 229, .10), transparent 60%), var(--surface); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-600); box-shadow: 0 0 0 4px rgba(5, 150, 105, .15); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -.03em; margin: 18px 0 18px; }
.grad { background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: var(--ink-600); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px !important; font-size: 13.5px; color: var(--ink-500); }
.hero-note .mdi { color: var(--success-600); }

.hero-visual { position: relative; min-height: 380px; }
.mock { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; }
.mock-main { width: 340px; top: 0; left: 0; }
.mock-head { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink-900); font-size: 14px; }
.muted { color: var(--ink-400); font-weight: 500; font-size: 12.5px; }
.mock-big { font: 800 34px/1.1 var(--font-display); color: var(--ink-900); margin: 14px 0; letter-spacing: -.02em; }
.mock-big small { font: 700 13px var(--font-sans); color: var(--success-600); }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.mock-bars span { flex: 1; background: var(--brand-100); border-radius: 8px; }
.mock-bars span.on { background: linear-gradient(180deg, #6366f1, #7c3aed); }
.mock-days { display: flex; gap: 10px; margin-top: 8px; }
.mock-days span { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-400); }
.mock-side { width: 260px; top: 150px; right: 0; }
.mock-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-700); padding: 9px 0; border-top: 1px solid var(--line); }
.mock-row:first-of-type { border-top: 0; margin-top: 6px; }
.mock-row i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; }
.mock-row b { margin-left: auto; color: var(--ink-900); }
.mock-chip { display: flex; gap: 10px; align-items: center; left: 30px; bottom: 0; padding: 12px 16px; }
.mock-chip b { display: block; color: var(--ink-900); font-size: 13.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-weight: 700; font-size: 13px; }

/* sections */
.section { padding: 88px 0; }
.section-tint { background: var(--bg); }
.section-dark { background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%); color: #c8cde4; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--ink-500); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.kicker-light { color: #a5b4fc; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.feature i, .industry i { font-size: 24px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.feature h3 { font-size: 17px; margin: 16px 0 8px; }
.feature p, .industry p { font-size: 14.5px; color: var(--ink-500); }
.industry { display: flex; gap: 16px; align-items: flex-start; }
.industry i { flex: none; }
.industry h3 { font-size: 16.5px; margin-bottom: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font: 800 17px var(--font-display); margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-500); }

.apps { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.apps h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 10px 0 14px; letter-spacing: -.02em; }
.apps p { font-size: 17px; max-width: 560px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--ink-900) !important; text-decoration: none; font: 700 17px/1.15 var(--font-display); box-shadow: var(--shadow-md); }
.store-btn i { font-size: 30px; }
.store-btn small { display: block; font: 500 11.5px var(--font-sans); color: var(--ink-500); }
.store-btn-soon { background: rgba(255, 255, 255, .08); color: #e3e7f7 !important; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .25); }
.store-btn-soon small { color: #a3abc9; }

/* pricing */
.period-toggle { display: inline-flex; margin-top: 24px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.period-toggle button { border: 0; background: none; font: 600 14px var(--font-sans); color: var(--ink-600); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.period-toggle button.on { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.period-toggle .save { font-size: 11.5px; font-weight: 700; color: var(--success-600); margin-left: 4px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; }
.plan-featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 21px; }
.plan-tagline { color: var(--ink-500); font-size: 14.5px; margin-top: 4px !important; }
.plan-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font: 800 40px/1 var(--font-display); color: var(--ink-900); letter-spacing: -.02em; }
.plan-price .per { color: var(--ink-500); font-weight: 500; }
.plan-gst { font-size: 13px; color: var(--ink-500); }
.plan-save { font-size: 13px; font-weight: 600; color: var(--success-600); margin-top: 2px !important; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; }
.plan li i { color: var(--success-600); font-size: 18px; line-height: 1.3; }
.pricing-note { text-align: center; margin-top: 26px !important; font-size: 13.5px; color: var(--ink-500); }

/* faq */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink-900); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .2s; color: var(--ink-400); font-size: 20px; }
.faq[open] summary i { transform: rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--ink-600); }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 10px 0 14px; letter-spacing: -.02em; }
.contact > div > p { font-size: 17px; color: var(--ink-500); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.contact-list i { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-form { display: grid; gap: 16px; padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.contact-form .opt { font-weight: 400; color: var(--ink-400); }
.contact-form input, .contact-form textarea { width: 100%; font: 400 15px var(--font-sans); color: var(--ink-900); padding: 11px 13px; border: 1px solid #d6dae6; border-radius: 11px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 11px; background: var(--success-50); color: #065f46; }
.form-status.error { background: var(--danger-50); color: #991b1b; }

/* offers (Platform Admin → Offers, public ones) */
.offer-bar { background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #eef2ff; font-size: 14.5px; }
.offer-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.offer-bar code, .offer-code { font: 700 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .18); color: #fff; padding: 2px 8px; border-radius: 7px; letter-spacing: .04em; }
.offer-bar a { color: #fff !important; font-weight: 700; text-decoration: underline; }
.offers { display: grid; gap: 12px; max-width: 760px; margin: -16px auto 36px; }
.offer { display: flex; gap: 14px; align-items: flex-start; background: var(--brand-50); border: 1px dashed var(--brand-500); border-radius: var(--radius); padding: 14px 18px; color: var(--ink-700); font-size: 15px; }
.offer .offer-code { background: var(--brand-600); white-space: nowrap; margin-top: 1px; }
.offer-desc { font-size: 13.5px; color: var(--ink-500); margin-top: 3px; }
.plan-offer { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px !important; font-size: 13px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border-radius: 999px; padding: 4px 12px; align-self: flex-start; }

/* final call + footer */
.cta-band { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #e0e7ff; }
.cta-inner { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.cta-band p { margin: 10px 0 24px; font-size: 17px; }
.site-footer { background: var(--night); color: #a3abc9; padding: 48px 0 24px; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer-note { margin-top: 12px !important; font-size: 14px; max-width: 320px; }
.site-footer-links { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 10px 32px; align-content: start; }
.site-footer-links a { color: #d6dbf0; text-decoration: none; font-size: 14.5px; }
.site-footer-links a:hover { color: #fff; text-decoration: underline; }
.site-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* legal pages */
.legal { padding: 64px 0 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; }
.legal .updated { color: var(--ink-500); margin: 10px 0 32px !important; font-size: 14px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--ink-700); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }

/* phones and small tablets */
@media (max-width: 980px) {
    .hero-inner, .apps, .contact { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 48px; padding-bottom: 64px; }
    .hero-visual { min-height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .steps { grid-template-columns: 1fr; }
    .plans { max-width: 460px; margin: 0 auto; }
    .store-buttons { justify-content: flex-start; }
}
@media (max-width: 860px) {
    .site-menu-btn { display: block; }
    .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow-md); }
    .site-nav.open { display: flex; }
    .site-nav-actions { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .section { padding: 64px 0; }
    .grid-4, .field-row { grid-template-columns: 1fr; }
    .lead { font-size: 17px; }
    .hero-visual { min-height: 300px; }
    .mock-main { width: 86%; }
    .mock-side { width: 66%; top: 150px; }
    .mock-chip { display: none; }   /* no room for a third card on a phone */
    .hero-cta .btn { width: 100%; }
    .store-btn { width: 100%; }
    .site-footer-links { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
