/*
Theme Name: NinjaAssurance Website Update
Author: OpenAI
Version: 2.0
Description: Refined marketing theme for NinjaAssurance.
*/
:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-alt: #f5f8fe;
  --line: #dbe5f4;
  --text: #0f1a38;
  --muted: #52627e;
  --blue: #2f73e0;
  --blue-dark: #255dc3;
  --green: #22a55a;
  --shadow: 0 24px 60px rgba(17, 36, 87, 0.08);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f5f8fd 0%, #eef3fb 100%);
  color: var(--text);
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 48px 0 72px; }
.alt-surface { background: rgba(255,255,255,0.45); border-top: 1px solid rgba(219,229,244,0.7); border-bottom: 1px solid rgba(219,229,244,0.7); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,248,253,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(219,229,244,0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-icon { width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 14px 30px rgba(15,26,56,0.14); }
.brand-wordmark { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--text); font-weight: 700; opacity: 0.72; }
.main-nav a.active, .main-nav a:hover { opacity: 1; }
.language-picker { position: relative; }
.lang-toggle { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 14px 22px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: var(--shadow); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.lang-menu a { color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; font-weight: 700; }
.lang-menu a.current, .lang-menu a:hover { background: #eef4ff; color: var(--blue-dark); }
.hero-grid, .how-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; align-items: center; }
.hero-copy { padding-right: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 18px; background: #edf3ff; color: #2a5fda; font-size: 0.98rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(47,115,224,0.06); }
.eyebrow.small { font-size: 0.83rem; padding: 10px 15px; margin-bottom: 16px; }
.dot { width: 11px; height: 11px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 6px rgba(34,165,90,0.12); }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; margin: 0 0 20px; letter-spacing: -0.05em; }
.hero-title span { display: block; color: #2e8bf0; margin-top: 8px; }
.hero-body, .section-heading p, .info-card p, .step-card p, .faq-card p, .footer-copy, .legal-note, .legal-section p { color: var(--muted); line-height: 1.6; font-size: 1.08rem; }
.hero-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.hero-list li { padding-left: 34px; position: relative; color: var(--text); font-size: 1.05rem; }
.hero-list li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue-dark); background: rgba(47,115,224,0.09); border-radius: 999px; font-size: 0.9rem; }
.hero-actions, .center-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 16px 24px; font-weight: 900; border: 1px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(47,115,224,0.16); }
.button.primary { background: linear-gradient(180deg, #377ef2, #2f73e0); color: #fff; }
.button.secondary { background: rgba(255,255,255,0.7); border-color: var(--line); color: var(--blue-dark); }
.card-surface, .preview-card, .promo-visual { background: linear-gradient(180deg, #ffffff, #f2f6ff); border: 1px solid rgba(219,229,244,0.9); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; }
.hero-visual { padding: 16px; }
.hero-visual img { width: 100%; border-radius: 24px; }
.section-heading { max-width: 760px; text-align: center; margin: 0 auto 32px; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading h2, .legal-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.info-card, .step-card, .faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 16px 40px rgba(17,36,87,0.05); }
.info-card h3, .step-card h3, .faq-card h3, .screen-title, .legal-box h2 { margin: 0 0 10px; font-size: 1.45rem; letter-spacing: -0.03em; }
.steps-list { display: grid; gap: 18px; }
.step-card { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; }
.step-no { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg,#3c7ff0,#2f73e0); color: #fff; font-weight: 900; font-size: 1.25rem; }
.preview-card { padding: 18px; }
.preview-card img { width: 100%; min-height: 360px; object-fit: cover; border-radius: 24px; }
.preview-card figcaption { color: var(--muted); padding: 16px 10px 4px; }
.screens-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.screen-card { background: linear-gradient(180deg, #eef4ff, #dfeafb); border-radius: 28px; padding: 18px 18px 14px; border: 1px solid rgba(47,115,224,0.08); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 100%; }
.screen-title { min-height: 76px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.screen-card img { max-height: 360px; width: auto; margin: auto; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.legal-hero { display: grid; gap: 28px; }
.legal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.legal-note { background: #eef4ff; border: 1px solid rgba(47,115,224,0.12); border-radius: 20px; padding: 18px 20px; }
.legal-box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: 0 16px 40px rgba(17,36,87,0.05); }
.legal-section + .legal-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.updated-line { font-weight: 800; color: var(--text); }
.support-card, .promo-visual { max-width: 560px; }
.promo-visual { padding: 26px; }
.promo-visual img { width: 100%; max-width: 330px; margin: 0 auto; }
.footer-inner { padding: 34px 0 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.footer-brand { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: flex-end; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-weight: 800; color: var(--text); opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
@media (max-width: 1100px) {
  .hero-grid, .how-grid, .footer-inner, .legal-cards, .feature-grid, .screens-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .screens-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 18px; }
  .hero-grid, .how-grid, .feature-grid, .faq-grid, .legal-cards, .screens-grid, .footer-inner { grid-template-columns: 1fr; }
  .section-pad { padding: 36px 0 56px; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .preview-card img { min-height: 280px; }
  .lang-menu { left: 0; right: auto; min-width: 240px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 24px, 1200px); }
  .brand-wordmark { height: 28px; }
  .brand-icon { width: 48px; height: 48px; }
  .hero-actions, .center-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .step-card { grid-template-columns: 1fr; }
}


/* FINAL FIXES: cleaner header, updated brand, wider screenshot spacing, legal text formatting */
.site-shell { width: min(1380px, calc(100% - 56px)); }
.site-header { background: #ffffff; border-bottom: 1px solid rgba(219,229,244,0.95); }
.header-inner { padding: 14px 0; align-items: center; }
.brand { min-width: 280px; }
.brand-icon { width: 56px; height: 56px; object-fit: cover; border-radius: 16px; }
.brand-wordmark { display: none !important; }
.brand-text { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1; font-weight: 900; letter-spacing: -0.045em; color: var(--text); white-space: nowrap; }
.main-nav { gap: 22px; }
.lang-toggle { box-shadow: none; border-color: #cfd9ea; }
.lang-menu { max-height: 72vh; overflow: auto; }
.screens-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; }
.screen-card { padding: 22px 20px 18px; }
.screen-card img { max-height: 390px; }
.legal-pre { white-space: pre-wrap; font-family: inherit; line-height: 1.7; color: var(--muted); margin: 0; }
.legal-box { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .screens-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .brand { min-width: auto; } }
@media (max-width: 700px) { .site-shell { width: min(100% - 24px, 1380px); } .screens-grid { grid-template-columns: 1fr; } .screen-card img { max-height: none; } .brand-text { font-size: 1.35rem; } }


/* FINAL COMPLETE FIXES: favicon/header/dropdown/video/screenshot spacing */
.site-header .site-shell.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 2.2vw, 32px);
  padding-right: clamp(16px, 2.2vw, 32px);
}
.brand {
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}
.brand-icon {
  object-fit: cover;
  background: #07142c;
}
.lang-menu[hidden] { display: none !important; }
.lang-toggle[aria-expanded="true"] {
  border-color: rgba(47,115,224,0.45);
  background: #eef4ff;
  color: var(--blue-dark);
}
.lang-menu a.current,
.lang-menu a[aria-current="true"] {
  background: #e7f0ff;
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px rgba(47,115,224,0.12);
}
.video-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(238,244,255,0.7));
  border-top: 1px solid rgba(219,229,244,0.75);
  border-bottom: 1px solid rgba(219,229,244,0.75);
}
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}
.video-card {
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  border: 1px solid rgba(219,229,244,0.95);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 16px;
}
.demo-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  background: #08142c;
}
.video-replay { margin-top: 18px; }
.screens-grid {
  gap: clamp(24px, 3vw, 46px);
  align-items: stretch;
}
.screen-card {
  padding: clamp(18px, 2vw, 28px);
}
.screen-card img {
  filter: drop-shadow(0 16px 24px rgba(15,26,56,0.08));
}
@media (max-width: 980px) {
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header .site-shell.header-inner { padding-left: 14px; padding-right: 14px; }
  .main-nav { order: 3; }
  .language-picker { margin-left: auto; }
}
