/* Marketing-only styles (does NOT apply to the CRM app templates/base.html) */

:root {
  --assured-navy: #0b1f3a;
  --assured-blue: #1e63ff;
  --assured-green: #18a957;
  --assured-ink: #0f172a;
  --assured-muted: #64748b;
  --assured-border: rgba(15, 23, 42, 0.12);
  --assured-bg: #f8fafc;
}

body {
  background: var(--assured-bg);
  color: var(--assured-ink);
}

body, .btn, .nav-links a {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* NAV – overlay on hero */
.assured-nav {
  position: sticky;
  top: 0;
  z-index: 1020;

  background:
    radial-gradient(900px 320px at 10% 10%, rgba(30,99,255,.32), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(44,196,106,.26), transparent 62%),
    linear-gradient(90deg, #07162d 0%, #0f3c68 45%, #14735a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.assured-nav .container {
  min-height: 72px;
}

.assured-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.assured-nav .logo img {
  width: 32px;
  height: 32px;
}

.assured-nav .logo .crm {
  color: #b7ffcf; /* soft green highlight */
}

.assured-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.assured-nav .nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  opacity: 0.9;
}

.assured-nav .nav-links a:hover {
  opacity: 1;
  color: #fff;
}

.assured-nav-cta{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(44,196,106,.98), rgba(30,99,255,.92));
  box-shadow: 0 16px 36px rgba(2,6,23,.22);
}

.assured-nav-cta:hover{
  color: #fff;
  filter: brightness(1.03);
}

.assured-nav-cta:focus-visible{
  outline: 3px solid rgba(255,255,255,.28);
  outline-offset: 2px;
}

/* HERO – mockup style (image gradient)
   Add your image at: static/img/assured-hero-bg.png */

/* Landing hero (video-first) */
.landing-hero{
  padding: 92px 0 96px;
  color: #fff;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(900px 520px at 18% 18%, rgba(30,99,255,.38), transparent 60%),
    radial-gradient(820px 520px at 88% 5%, rgba(44,196,106,.30), transparent 62%),
    linear-gradient(115deg, rgba(7,22,45,.96), rgba(15,60,104,.92), rgba(20,115,90,.88));
}

.landing-hero::after{
  content:"";
  position:absolute;
  inset:-120px -120px auto -120px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent 72%);
  transform: translate3d(0,0,0);
  pointer-events:none;
}

.landing-hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.landing-hero-text h1{
  font-size: clamp(2.35rem, 3.6vw, 3.35rem);
  line-height: 1.05;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.landing-hero-text p{
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0;
}

.landing-hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-hero-primary{
  border-radius: 999px;
  border: none;
  font-weight: 900;
  padding: .9rem 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(44,196,106,.98), rgba(30,99,255,.92));
  box-shadow:
    0 18px 44px rgba(2,6,23,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.btn-hero-primary:hover{
  color: #fff;
  filter: brightness(1.03);
}

.btn-hero-secondary{
  border-radius: 999px;
  font-weight: 850;
  padding: .86rem 1.25rem;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover{
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.62);
}

.logo-video-card{
  position: relative;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 26px 80px rgba(2,6,23,.35);
  padding: 12px;
}

.logo-video{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #fff;
}

.logo-video-fallback{
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
}

.logo-video-fallback img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badges{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.video-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,23,42,.72);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 28px rgba(2,6,23,.18);
}

.landing-hero-media{
  position: relative;
}

.landing-hero-media::before{
  content:"";
  position: absolute;
  inset: -40px -30px -40px -30px;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
  pointer-events:none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-text p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-actions .btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

/* FEATURE STRIP – floating cards */
.feature-strip {
  padding: 0 0 56px;
  margin-top: -42px; /* pulls cards into hero area */
  position: relative;
  z-index: 5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border-radius: 14px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
}

.feature-card .icon {
  font-size: 1.25rem;
  margin-bottom: 8px;
  opacity: 0.9;
}

.feature-card .icon i {
  font-size: 1.35rem;
  color: var(--assured-blue);
}

.feature-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--assured-muted);
}

.why {
  padding: 78px 0;
  background: #fff;
  border-top: 1px solid rgba(15,23,42,0.08);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.why-visual {
  background: radial-gradient(600px 220px at 30% 20%, rgba(30,99,255,.25), transparent 60%),
              radial-gradient(560px 220px at 70% 70%, rgba(24,169,87,.18), transparent 60%),
              #071a33;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(2,6,23,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

.why-visual img {
  border-radius: 14px;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.cta {
  padding: 64px 0;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.assured-footer {
  padding: 22px 0;
  background:
    radial-gradient(900px 300px at 20% 10%, rgba(30,99,255,0.35), transparent 60%),
    radial-gradient(800px 300px at 80% 0%, rgba(44,196,106,0.30), transparent 60%),
    linear-gradient(90deg, #07162d 0%, #0f3c68 45%, #14735a 100%);
  background-repeat: no-repeat;
  background-position: 0 0;
  color: rgba(255,255,255,0.75);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.assured-footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.assured-footer-brand {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.assured-footer-tagline {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

.assured-footer-heading {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.assured-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.assured-footer-links a,
.assured-footer-inline {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.assured-footer-links a:hover,
.assured-footer-inline:hover {
  color: #fff;
}

.assured-footer-links li {
  margin-bottom: 8px;
}

.assured-footer-small {
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
}

.assured-footer-divider {
  border-color: rgba(255,255,255,0.12);
}

.assured-footer-social {
  display: flex;
  gap: 10px;
}

.assured-footer-social .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.assured-footer-social .icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 991px) {
  .landing-hero-grid { grid-template-columns: 1fr; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .assured-nav .nav-links {
    display: none;
  }
}

/* Page hero (features/pricing/about) */
.page-hero{
  background: linear-gradient(120deg, #0f3c68, #1fa971);
  padding: 4.5rem 0;
  color: #fff;
}
.page-hero h1{ font-size: 2.6rem; font-weight: 800; margin-bottom: .75rem; }
.page-hero p{ font-size: 1.15rem; opacity: .95; max-width: 780px; }

/* Home hero: keep video smaller and on the right */
.home-hero-video{
  max-width: 520px;
  margin-left: auto;
}

.page-hero .logo-video-card{
  padding: 10px;
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 22px 70px rgba(2,6,23,.32);
}

/* Home hero no longer uses .page-hero; .page-hero remains for inner pages */

/* Video section under the banner */
.logo-video-section{
  padding: 44px 0 14px;
  background:
    radial-gradient(900px 320px at 18% 10%, rgba(30,99,255,.10), transparent 60%),
    radial-gradient(820px 320px at 88% 0%, rgba(44,196,106,.10), transparent 62%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}

.logo-video-wrap{
  max-width: 760px;
  margin: 0 auto;
}

/* Spacing helpers */
.section{ padding: 4rem 0; }

/* Feature tiles */
.feature-grid-lg{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tile{
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
  border: 1px solid rgba(15, 60, 104, .06);
}
.tile-icon{ font-size: 2rem; margin-bottom: .75rem; }
.tile h3{ font-weight: 800; margin-bottom: .5rem; }
.tile ul{ padding-left: 1.1rem; margin: 1rem 0 0; color: #4b5563; }

/* Pricing */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.plan{
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
  border: 1px solid rgba(15, 60, 104, .06);
  position: relative;
}
.plan-featured{
  border: 2px solid rgba(31, 169, 113, .45);
  transform: translateY(-6px);
}
.plan .badge{
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(31,169,113,.15);
  color: #0b6b46;
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
}
.plan-header h3{ font-weight: 900; margin-bottom: .25rem; }
.price{
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f3c68;
  margin: .5rem 0;
}
.price span{ font-size: 1rem; font-weight: 600; color: #6b7280; }
.plan-list{
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  color: #374151;
}
.plan-list li{ margin-bottom: .5rem; }

/* Comparison table */
.comparison{
  margin-top: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
}
.assured-table th{
  background: rgba(15, 60, 104, .06);
  font-weight: 800;
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.about-card{
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
}
.about-card h2{ font-weight: 900; margin-bottom: .75rem; }
.about-list{ list-style: none; padding: 0; margin: 0; }
.about-list li{ margin-bottom: .6rem; color: #374151; }

.values-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.value{
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
  border: 1px solid rgba(15, 60, 104, .06);
}
.value-icon{ font-size: 2rem; margin-bottom: .75rem; }
.value h3{ font-weight: 900; margin-bottom: .5rem; }

/* Mobile polish */
@media (max-width: 768px){
  .page-hero h1{ font-size: 2rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .why-grid{ grid-template-columns: 1fr; }
}
