/* =========================================
   SafetyBit Services — styles.css (Premium SaaS Update)
   ========================================= */

/* ================================
   1) Design Tokens / Variables
================================= */
:root {
  --primary: #0FA3B1;
  --primary-dark: #077580;
  --accent: #0077B6;

  --bg: #F5F7FA;
  --card-bg: #FFFFFF;

  --text-main: #1F2937;
  --text-muted: #64748B;

  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.10);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.14);
}

/* ================================
   2) Base / Reset
================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16.5px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.text-muted {
  color: var(--text-muted);
}

/* ================================
   3) Layout + Typography
================================= */
.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

section {
  margin: 3rem 0;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

h4 {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
}

p {
  font-size: 0.95rem;
}

.highlight {
  color: var(--primary);
}

/* ================================
   4) Header (Sticky)
================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 0;
  margin-bottom: 1rem;

  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid #E2E8F0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ================================
   5) Hero
================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: center;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.btn-primary {
  padding: 0.72rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.72rem 1.15rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(15, 163, 177, 0.06);
  transform: translateY(-2px);
}

.hero-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-card {
  background: #F9FBFC;
  border: 1px solid #E2E8F0;
  padding: 0.85rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(15, 163, 177, 0.12);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item strong {
  font-size: 0.92rem;
}

.feature-item div {
  font-size: 0.85rem;
}

/* ================================
   6) Services
================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.service-list {
  margin: 0.55rem 0 0.5rem 1.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

#services .service-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

#services .service-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  color: #374151;
}

#services .service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.service-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0.85rem 0;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 163, 177, 0.25);
  background: rgba(15, 163, 177, 0.08);
  color: #075A63;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.service-price small {
  font-weight: 700;
  opacity: 0.85;
}

/* ================================
   7) Legacy Pricing Section
================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

#pricing {
  background: linear-gradient(135deg, #0FA3B1 0%, #11B3A6 55%, #0C8F99 100%);
  border-radius: 28px;
  padding: 1.6rem 1.5rem 2.1rem;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#pricing h2 {
  color: #EAFBFB;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

#pricing .price-card {
  background: var(--card-bg);
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#pricing .price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

#pricing .price-card,
#pricing .price-card p,
#pricing .price-card li {
  color: #374151;
}

#pricing .price-card li::marker {
  color: #6B7280;
}

#pricing .highlight-card {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 32px rgba(0, 150, 170, 0.25);
}

/* ================================
   8) Contact — Premium SaaS Style
================================= */
.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,252,0.98) 100%);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid #E2E8F0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 0.55rem;
}

.contact-lead {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.contact-points {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.contact-points li {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #DCE6EE;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.9rem;
  transition: all 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 163, 177, 0.22);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.contact-text strong {
  display: block;
  line-height: 1.2;
  font-size: 0.9rem;
  color: var(--text-main);
}

.contact-text div {
  line-height: 1.35;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #475569;
}

.contact-hint {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form panel */
.contact-card .mini-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  border: 1px solid #DCE6EE;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

/* Form styles */
label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.38rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.88rem;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 163, 177, 0.65);
  box-shadow: 0 0 0 4px rgba(15, 163, 177, 0.10);
  background: #FFFFFF;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

form button[type="submit"] {
  width: 100%;
  padding: 0.82rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #18B6C4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 163, 177, 0.22);
  transition: all 0.2s ease;
}

form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #129EAA 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 163, 177, 0.28);
}

/* ================================
   9) Footer
================================= */
footer {
  margin-top: 2rem;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ================================
   10) Modern Pricing Cards
================================= */
.pricing-section {
  margin: 2.5rem 0;
}

.pricing-head {
  margin-bottom: 0.8rem;
}

.pricing-subtitle {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.pricing-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan-card-modern {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.05rem 1rem 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.plan-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.plan-name {
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #123b2d;
  font-weight: 800;
}

.plan-desc {
  color: #4B5563;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
  min-height: 38px;
}

.plan-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0.3rem;
  background: #123b2d;
  color: #ffffff;
  padding: 0.52rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  min-height: 40px;
}

.featured-price {
  background: #4BE686;
  color: #103326;
}

.price-main {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
}

.price-unit {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.plan-includes-title {
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
  color: #123b2d;
  font-weight: 700;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: #1f2937;
  font-size: 0.76rem;
  line-height: 1.45;
}

.plan-feature-list li.included::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 0.82rem;
  height: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4BE686;
  color: #103326;
  border-radius: 2px;
  font-size: 0.58rem;
  font-weight: 800;
}

.plan-feature-list li.excluded::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 0.82rem;
  height: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c7d0ca;
  color: #3f4b46;
  border-radius: 2px;
  font-size: 0.58rem;
  font-weight: 800;
}

.featured-plan {
  border: 2px solid #F6B100;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.featured-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: #F6B100;
  color: #1f2937;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 14px rgba(246, 177, 0, 0.22);
}

.plan-card-modern .plan-cta {
  margin-top: 0.8rem;
}

.plan-card-modern .plan-cta button {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card-modern .plan-cta button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Interactive plan options */
.plan-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #D7DEE7;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option:hover {
  border-color: rgba(15, 163, 177, 0.35);
  background: #fbfefe;
}

.plan-option input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.plan-option span {
  line-height: 1.35;
}

.fixed-option {
  background: #F0FDFA;
  border-color: rgba(15, 163, 177, 0.20);
  cursor: not-allowed;
}

.fixed-option span {
  opacity: 0.9;
}

.plan-note {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: #6B7280;
  line-height: 1.4;
}

/* ================================
   11) Responsive
================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .pricing-grid,
  .pricing-grid-modern,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .logo-mark {
    width: 52px;
    height: 52px;
  }

  nav {
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .featured-badge {
    right: 14px;
  }

  .container {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.6rem;
  }

  #pricing {
    padding: 1.3rem 1rem 1.7rem;
  }

  .plan-price {
    max-width: 100%;
  }

  .contact-card {
    padding: 1.1rem;
  }

  .contact-card .mini-card {
    padding: 0.85rem;
  }
}

/* ================================
   12) Dark-mode Readiness (auto)
================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --card-bg: #0F172A;
    --text-main: #E5E7EB;
    --text-muted: #A1A1AA;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.55);
    --shadow-strong: 0 26px 65px rgba(0, 0, 0, 0.45);
  }

  body {
    background: var(--bg);
    color: var(--text-main);
  }

  header {
    background: rgba(11, 18, 32, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    color: rgba(229, 231, 235, 0.8);
  }

  .nav-link:hover {
    color: #7EE5E7;
  }

  .hero-panel,
  .mini-card,
  .service-card,
  .contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  #pricing {
    background: linear-gradient(135deg, #064E56 0%, #087A7F 55%, #043B44 100%);
    box-shadow:
      0 26px 65px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  #pricing h2 {
    color: #E6FAFA;
  }

  .hero-subtitle,
  .service-list,
  #pricing .price-card,
  #pricing .price-card p,
  #pricing .price-card li {
    color: rgba(229, 231, 235, 0.86);
  }

  #services .service-list li {
    color: rgba(229, 231, 235, 0.88);
  }

  #services .service-list li::before {
    color: #7EE5E7;
  }

  .service-price {
    background: rgba(126, 229, 231, 0.08);
    border-color: rgba(126, 229, 231, 0.18);
    color: #7EE5E7;
  }

  #pricing .price-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  .pricing-subtitle {
    color: rgba(229, 231, 235, 0.72);
  }

  .plan-card-modern {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .plan-name,
  .plan-includes-title {
    color: #E5E7EB;
  }

  .plan-desc,
  .plan-feature-list li {
    color: rgba(229,231,235,0.88);
  }

  .plan-price {
    background: #123b2d;
    color: #ffffff;
  }

  .featured-price {
    background: #4BE686;
    color: #103326;
  }

  .contact-card .mini-card,
  .contact-item,
  input,
  select,
  textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
  }

  .contact-item {
    box-shadow: none;
  }

  .contact-text strong,
  .contact-text div,
  label {
    color: var(--text-main);
  }

  .contact-text div {
    color: rgba(229, 231, 235, 0.82);
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(229, 231, 235, 0.62);
  }

  input:focus,
  select:focus,
  textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(126, 229, 231, 0.08);
    border-color: rgba(126, 229, 231, 0.28);
  }

  .plan-option {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: rgba(229,231,235,0.9);
  }

  .plan-option:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(126,229,231,0.22);
  }

  .fixed-option {
    background: rgba(15,163,177,0.08);
    border-color: rgba(126,229,231,0.14);
  }

  .plan-note {
    color: rgba(229,231,235,0.68);
  }
}