/*
Theme Name: Bulk SMS
Theme URI: https://bulk-sms.co.nz
Author: Bulk SMS
Author URI: https://bulk-sms.co.nz
Description: A professional single-page landing theme for the Bulk SMS service, designed to pair with the ClickSend Bulk SMS plugin. Dark tech aesthetic with hero, features, how-it-works, pricing and built-in sign up / login.
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bulk-sms
*/

/* ============================================================
   Bulk SMS — dark tech landing theme
   Near-black canvas, vermillion + electric accent, grid/glow
   motifs, Fraunces display over Outfit body (matches the portal).
   ============================================================ */

:root {
	--bg: #0b0d12;
	--bg-2: #11141b;
	--panel: #161a22;
	--panel-2: #1c212b;
	--line: #262c38;
	--line-soft: #1e232d;
	--ink: #f4f2ec;
	--ink-soft: #b9bcc4;
	--muted: #7f8593;
	--accent: #df5128;
	--accent-2: #ff7a4d;
	--accent-deep: #b53d18;
	--cyan: #38d9c4;
	--gold: #e0b341;
	--ok: #36c98e;
	--radius: 14px;
	--radius-sm: 9px;
	--maxw: 1180px;
	--shadow: 0 24px 60px -24px rgba(0,0,0,.7);
	--glow: 0 0 0 1px rgba(223,81,40,.35), 0 16px 50px -12px rgba(223,81,40,.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Outfit', ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, .display {
	font-family: 'Fraunces', Georgia, serif;
	font-optical-sizing: auto;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.08;
	margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: inherit; font-size: 16px; font-weight: 600;
	padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
	transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn-primary {
	background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
	color: #fff; box-shadow: 0 12px 30px -10px rgba(223,81,40,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(223,81,40,.75); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(223,81,40,.08); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ---- Header / nav ---- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11,13,18,.72); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-logo {
	width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
	background: linear-gradient(140deg, var(--accent-2), var(--accent-deep)); color: #fff; font-size: 18px;
	box-shadow: 0 8px 20px -6px rgba(223,81,40,.6);
}
.brand-logo-img { height: 40px; width: auto; display: block; }

/* Full-width portal template — no column constraints, edge to edge. */
.bulksms-fullwidth { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.bulksms-fullwidth > .csbs-fe,
.bulksms-fullwidth .csbs-fe { max-width: 100%; width: 100%; }

/* Chromeless portal screen — the portal app fills the whole viewport. */
body.bulksms-portal-template { margin: 0; background: var(--bg); }
.bulksms-portal-screen { width: 100%; max-width: 100%; overflow-x: hidden; min-height: 100vh; }
.bulksms-portal-screen .csbs-fe { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
.bulksms-portal-screen #csbs-fe-app,
.bulksms-portal-screen #csbs-fe-auth { max-width: 100% !important; }
.bulksms-portal-screen #csbs-fe-app { min-height: 100vh !important; }
/* The auth (login/register) card stays centered and comfortable, not stretched. */
.bulksms-portal-screen #csbs-fe-auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.bulksms-portal-screen #csbs-fe-auth .csbs-fe-authcard { max-width: 460px; width: 100%; }
.brand-name { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { color: var(--ink-soft); font-size: 15.5px; font-weight: 500; transition: color .15s; }
.nav-links a.navlink:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 24px; cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; padding: 92px 0 80px; overflow: hidden; }
.hero-bg {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(680px 320px at 78% 8%, rgba(223,81,40,.22), transparent 70%),
		radial-gradient(540px 380px at 12% 90%, rgba(56,217,196,.12), transparent 70%);
}
.hero-grid {
	position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); margin: 18px 0 0; }
.hero h1 .grad {
	background: linear-gradient(120deg, var(--accent-2), var(--gold));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--ink-soft); font-size: 19px; margin: 22px 0 30px; max-width: 33ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* Hero card / signup */
.hero-card {
	background: linear-gradient(180deg, var(--panel), var(--bg-2));
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px; box-shadow: var(--shadow); position: relative;
}
.hero-card::before {
	content: ''; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
	background: linear-gradient(140deg, rgba(223,81,40,.6), transparent 45%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-card h3 { font-size: 22px; margin-bottom: 4px; }
.hero-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.hero-card .portal-embed { margin-top: 6px; }

/* The plugin's portal shortcode renders its own .csbs-fe styles; give it room. */
.portal-embed .csbs-fe { color: var(--ink); }

/* Embedded sign-up form: let the plugin's own auth card stand alone, but
   reset the margins it uses when centered standalone, and add a glow ring so
   it feels intentional inside the dark hero. */
.hero-form { position: relative; }
.hero-form .csbs-fe { max-width: none; margin: 0; }
.hero-form .csbs-fe-authcard { max-width: none; margin: 0; }
.hero-form .csbs-fe-card {
	box-shadow: 0 24px 60px -20px rgba(0,0,0,.6), var(--glow);
}

/* fallback CTA inside hero card when no shortcode used */
.signup-fallback label { display:block; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin:12px 0 6px; font-weight:700; }
.signup-fallback input { width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--bg); color:var(--ink); font-family:inherit; font-size:15px; }
.signup-fallback input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(223,81,40,.2); }

/* ---- Section scaffolding ---- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 16px 0 0; }

/* ---- Features grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px; transition: transform .15s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(223,81,40,.5); box-shadow: var(--shadow); }
.feature .ic {
	width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
	background: rgba(223,81,40,.12); color: var(--accent-2); border: 1px solid rgba(223,81,40,.25); margin-bottom: 16px;
}
.feature h3 { font-size: 19px; font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: 0; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 8px 0 0; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .n {
	font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--bg);
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-family: 'Outfit', sans-serif; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 7px 0 0; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column;
}
.price.feature-card { border-color: rgba(223,81,40,.55); box-shadow: var(--glow); position: relative; }
.price .badge { position: absolute; top: -11px; left: 26px; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price .pname { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); }
.price .pamt { font-family: 'Fraunces', serif; font-size: 44px; margin: 10px 0 2px; }
.price .pamt small { font-size: 16px; color: var(--muted); font-family: 'Outfit', sans-serif; }
.price .pdesc { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.price li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
	background: linear-gradient(135deg, rgba(223,81,40,.16), rgba(56,217,196,.08));
	border: 1px solid rgba(223,81,40,.3); border-radius: 20px; padding: 56px; text-align: center; position: relative;
}
.cta-card h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-card p { color: var(--ink-soft); font-size: 18px; margin: 14px auto 28px; max-width: 50ch; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 46px 0 60px; color: var(--muted); font-size: 14.5px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ---- Trial messaging ---- */
.trial-bar {
	background: linear-gradient(90deg, var(--accent-deep), var(--accent));
	color: #fff; border-bottom: 1px solid rgba(255,255,255,.12);
}
.trial-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 11px 0; justify-content: center; text-align: center; }
.trial-bar-text { font-size: 15px; font-weight: 600; }
.trial-bar-text strong { font-weight: 800; }
.trial-bar-note { font-size: 13px; color: rgba(255,255,255,.82); }

.hero-trial { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.hero-trial-badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(56,217,196,.14); color: var(--cyan); border: 1px solid rgba(56,217,196,.4);
	font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.hero-trial-sub { font-size: 14px; color: var(--ink-soft); }

.hero-form-trial {
	background: rgba(56,217,196,.1); border: 1px solid rgba(56,217,196,.3); color: var(--ink);
	font-size: 13.5px; line-height: 1.5; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.hero-form-trial strong { color: var(--cyan); }

.price-note {
	font-size: 12.5px; color: var(--muted); line-height: 1.45;
	margin: -6px 0 18px; padding: 9px 11px; background: rgba(255,255,255,.03);
	border: 1px solid var(--line); border-radius: var(--radius-sm);
}

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
	width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--ink);
	font-family: inherit; font-size: 17px; font-weight: 600; padding: 20px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .15s;
}
.faq-q:hover { color: var(--accent-2); }
.faq-caret { flex: none; font-size: 22px; color: var(--accent-2); transition: transform .2s; line-height: 1; }
.faq-q.is-open .faq-caret { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.features, .pricing { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.nav-links { display: none; }
	.nav-toggle { display: block; }
	.nav-links.open {
		display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
		position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-2);
		border-bottom: 1px solid var(--line); padding: 22px 24px;
	}
	.features, .pricing, .steps { grid-template-columns: 1fr; }
	.cta-card { padding: 38px 22px; }
	.hero { padding: 60px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
