/* RTU-X Optimization Module — Franchise Owner Landing Page
   Design goals: fast, credible, clean, non-flashy, conversion-focused.
*/
:root{
  --bg:#0b1220;
  --card:#0f1930;
  --muted:#9fb0d0;
  --text:#e9f0ff;
  --accent:#4de3a1;
  --accent2:#5aa7ff;
  --warn:#ffd36a;
  --border: rgba(255,255,255,.10);
  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(90,167,255,.25), transparent 55%),
    radial-gradient(900px 700px at 10% 0%, rgba(77,227,161,.18), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding: 22px;}
.site-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(12px);
  background: rgba(11,18,32,.55);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:850; letter-spacing:.2px}
.brand-logo{height:48px; width:auto; display:block}
.navlinks{display:flex; gap:14px; flex-wrap:wrap; align-items:center; color:var(--muted); font-weight:650}
.navlinks a{padding:8px 10px; border-radius:12px}
.navlinks a:hover{background: rgba(255,255,255,.06); color: var(--text)}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:14px;
  background: rgba(255,255,255,.08);
  border:1px solid var(--border);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(77,227,161,.95), rgba(90,167,255,.95));
  border:0; color:#07101f;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}
@media (max-width: 940px){
  .navlinks{display:none}
  .brand-logo{height:44px}
}

/* HERO */
.hero{
  padding: 52px 0 22px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 940px){
  .hero{grid-template-columns:1fr; padding-top:28px}
}
.pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  color: var(--muted);
  font-weight:700;
  width: fit-content;
}
.pill.small{font-size:12px; padding:8px 10px}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(77,227,161,.14);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.02em;
}
.grad{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.sub{
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}
.cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.trust{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; color: rgba(233,240,255,.82); font-weight:650}
.trust-item{padding:8px 10px; border-radius:12px; background: rgba(255,255,255,.04); border:1px solid var(--border)}

.card{
  background: rgba(15,25,48,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card{padding:18px}
.card-title{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.kicker{font-weight:900; font-size:16px}
.muted{color:var(--muted); font-weight:650}
.badge{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(77,227,161,.12);
  border:1px solid rgba(77,227,161,.25);
  color: var(--accent);
  font-weight:900;
}
.badge.blue{background: rgba(90,167,255,.12); border-color: rgba(90,167,255,.25); color: var(--accent2)}
.badge.warn{background: rgba(255,211,106,.12); border-color: rgba(255,211,106,.25); color: var(--warn)}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:14px}
@media (max-width: 520px){.grid2{grid-template-columns:1fr}}
.mini{
  padding:14px;
  border-radius:16px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
}
.mini-k{font-weight:900}
.mini-d{color:var(--muted); font-weight:650; font-size:12.5px; margin-top:4px}
.callout{
  margin-top:14px;
  padding:14px; border-radius:16px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
}
.callout-k{font-weight:900}
.callout-d{color:var(--muted); margin-top:6px}

/* SECTIONS */
.section{padding: 34px 0}
.sec-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px}
h2{margin:0; font-size:28px; letter-spacing:-.01em}
.lead{color:var(--muted); max-width:75ch; margin:8px 0 0}
.cols3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 940px){.cols3{grid-template-columns:1fr}}
.item{padding:16px}
.item h3{margin:8px 0 6px; font-size:18px}
.item p{margin:0; color:var(--muted)}
.icon{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(77,227,161,.12);
  border:1px solid rgba(77,227,161,.25);
  color: var(--accent);
  font-weight:900;
}
.icon.blue{background: rgba(90,167,255,.12); border-color: rgba(90,167,255,.25); color: var(--accent2)}
.icon.warn{background: rgba(255,211,106,.12); border-color: rgba(255,211,106,.25); color: var(--warn)}

.split{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 940px){.split{grid-template-columns:1fr}}
.panel{padding:18px}
.panel-top{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.bullets li{margin:6px 0}

/* ROI */
.roi{display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; align-items:stretch}
@media (max-width: 940px){.roi{grid-template-columns:1fr}}
.calc{
  padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
}
label{display:block; font-weight:850; font-size:13px; color:var(--muted); margin-top:10px}
input, select, textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.65);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{border-color: rgba(90,167,255,.55); box-shadow: 0 0 0 4px rgba(90,167,255,.12)}
.result{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(77,227,161,.10);
  border: 1px solid rgba(77,227,161,.25);
  color: var(--text);
  font-weight:850;
}
.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.fine{color:var(--muted); font-size:12px; margin-top:8px}

/* Lead form */
.leadform .row2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 680px){.leadform .row2{grid-template-columns:1fr}}
.leadform button{margin-top:12px; width:100%}

/* FAQ */
.faq details{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  padding: 12px 14px;
}
.faq summary{cursor:pointer; font-weight:900}
.faq p{color:var(--muted); margin:8px 0 0}
.faq{display:grid; gap:10px}

/* Footer */
.site-footer{
  padding: 28px 0 40px;
  color: rgba(233,240,255,.75);
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.foot{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.foot-brand{font-weight:900}
.foot-links{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-weight:650}
.foot-links a{padding:6px 10px; border-radius:12px}
.foot-links a:hover{background: rgba(255,255,255,.06); color: var(--text)}

/* Subtle animation (non-flashy) */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible{
  opacity:1;
  transform: translateY(0);
}
/* HubSpot Form Styling Fix */

.hs-form label,
.hs-form .hs-form-field label {
  color: #1a1a1a !important;
  font-weight: 500;
}

.hs-form input,
.hs-form textarea,
.hs-form select {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
  border: 1px solid #ccc !important;
}

.hs-form ::placeholder {
  color: #666 !important;
  opacity: 1;
}
/* HubSpot Form Styling Fix (match RTU-X site) */
.hs-form,
.hs-form * {
  font-family: inherit;
}

/* Labels */
.hs-form label,
.hs-form .hs-form-field label {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 600 !important;
}

/* Help text / errors */
.hs-form .hs-form-required,
.hs-form .hs-error-msg,
.hs-form .hs-error-msgs label {
  color: rgba(255,255,255,0.92) !important;
}

/* Inputs */
.hs-form input,
.hs-form textarea,
.hs-form select {
  color: #111 !important;
  background: rgba(255,255,255,0.86) !important; /* NOT pure white */
  border: 1px solid rgba(255,255,255,0.28) !important;
  border-radius: 10px !important;
  padding: 12px 12px !important;
  outline: none !important;
}

/* Placeholder */
.hs-form ::placeholder {
  color: rgba(0,0,0,0.55) !important;
  opacity: 1 !important;
}

/* Focus state */
.hs-form input:focus,
.hs-form textarea:focus,
.hs-form select:focus {
  border-color: rgba(255,255,255,0.75) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18) !important;
}

/* Submit button */
.hs-form input[type="submit"],
.hs-form .hs-button {
  background: rgba(255,255,255,0.92) !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.hs-form input[type="submit"]:hover,
.hs-form .hs-button:hover {
  filter: brightness(0.96) !important;
}
/* SAFETY OVERRIDE: always show sections even if animation JS/CSS misbehaves */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
