/* =================================================================
   InterClip website styles
   -----------------------------------------------------------------
   EDIT HERE: brand colours and fonts are set once in :root below.
   Change a value here and it updates everywhere on the site.
   ================================================================= */
:root {
  --blue: #1a6cf0;          /* buttons, accents */
  --blue-dark: #0f55c9;     /* button hover */
  --blue-bright: #2a9bff;   /* highlighted words, "CLIP" in logo */
  --navy: #0b1e3b;          /* dark text, logo "INTER" */
  --navy-deep: #08121f;     /* hero and banner backgrounds */
  --red: #d7262e;           /* safety alert, slash accents */
  --text: #2b3445;
  --muted: #5d6879;
  --border: #dfe5ee;
  --bg-soft: #f2f6fb;
  --bg-safety: #fdf1f1;
  --white: #ffffff;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 30, 59, 0.08);
  --max-width: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* ---------- Logo ---------- */
.logo, .brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
  color: var(--navy);
  text-decoration: none;
}
.logo { font-size: 1.9rem; }
.logo span, .brand span { color: var(--blue-bright); }
.logo-lg { font-size: 2.3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright) -40%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 108, 240, .35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 34px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy);
  position: relative;
}
.site-nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 75% 40%, rgba(42,155,255,.18), transparent 60%),
    linear-gradient(120deg, var(--navy-deep) 0%, #10233d 55%, #1b2635 100%);
  color: #e7edf6;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding-top: 56px; padding-bottom: 56px;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; font-weight: 500; color: #cfd8e6;
}
.eyebrow::before { content: ""; width: 44px; height: 3px; background: var(--blue-bright); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
.hero h1 .accent { color: var(--blue-bright); }
.lead { font-size: 1.15rem; max-width: 520px; margin-bottom: 1.6em; }
.hero-image img {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-title.lined {
  display: flex; align-items: center; justify-content: center; gap: 28px; text-align: center; margin-bottom: 40px;
}
.section-title.lined::before, .section-title.lined::after {
  content: ""; height: 3px; width: 110px; background: var(--blue-bright); flex-shrink: 0;
}
.section-title.slash { font-style: italic; display: flex; align-items: center; gap: 12px; margin: 0; }
.section-title.slash::before {
  content: ""; width: 6px; height: 1.05em; background: var(--blue); transform: skewX(-20deg); border-radius: 1px;
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-bottom: 32px; }
.section-sub { margin: 0; color: var(--muted); }

/* ---------- Why Choose ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  text-align: center; padding: 30px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,30,59,.12); }
.feature-icon { width: 46px; height: 46px; color: var(--blue); margin: 0 auto 14px; display: block; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Compatibility ---------- */
.compat { background: var(--bg-soft); }
.compat .section-title.slash::before { background: var(--red); }
.compat-inner { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.compat-intro p { color: var(--muted); margin-top: 12px; }
.compat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.compat-card {
  margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.compat-card img { width: 100%; height: 130px; object-fit: contain; background: var(--white); padding: 10px; }
.compat-card figcaption {
  margin-top: auto; padding: 10px; text-align: center;
  font-weight: 700; font-size: .9rem; color: var(--navy); background: #dbe8f8;
}
.compat-more .dots { height: 130px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.compat-more .dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }

/* ---------- Installation ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.step { position: relative; }
.step:not(:last-child)::after {   /* the ">" arrow between steps */
  content: ""; position: absolute; right: -34px; top: 95px;
  width: 12px; height: 12px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}
.step-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.step-img img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.step-num {
  position: absolute; top: 10px; left: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-family: var(--font-head); font-weight: 800;
  border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.step h3 { font-size: 1.15rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Safety ---------- */
.safety-box {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  background: var(--bg-safety); border: 2px solid #f1b9bc; border-radius: 14px; padding: 32px;
}
.safety-intro { display: flex; gap: 16px; align-items: flex-start; padding-right: 28px; border-right: 1px solid #efc8ca; }
.safety-alert { width: 58px; height: 58px; color: var(--red); flex-shrink: 0; }
.safety-intro h2 { font-size: 1.9rem; font-weight: 800; }
.safety-intro p { color: var(--muted); margin: 0; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 32px; }
.safety-list li { display: flex; gap: 14px; }

/* Do Not Interact While Driving */
.safety-list li:nth-child(3) {
  transform: translateY(7px);
}

/* Do Not Block Vehicle Functions */
.safety-list li:nth-child(4) {
  transform: translateY(15px);
}

/* Keep Away From Children */
.safety-list li:nth-child(5) {
  transform: translateY(-10px);
}

/* Not a Hands-Free Platform */
.safety-list li:last-child {
  transform: translateY(-35px);
}

.safety-list .icon { width: 30px; height: 30px; color: var(--blue); margin-top: 2px; }
.safety-list strong { color: var(--navy); font-size: .95rem; }
.safety-list p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-top: 16px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 8px rgba(11,30,59,.04); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 24px; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%;
  width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 24px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta {
  margin-top: 40px;
  background:
    linear-gradient(90deg, rgba(8,18,31,.97) 0%, rgba(11,30,59,.92) 60%, rgba(26,60,100,.85) 100%);
  color: #d6dfec;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 44px; }
.cta-text { flex: 1; padding-right: 40px; border-right: 1px solid rgba(255,255,255,.2); }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.cta .brand { color: var(--white); }
.cta-text p { margin: 0; max-width: 560px; }
.cta-action { text-align: center; }
.cta-note { margin: 10px 0 0; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0 18px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 500; font-size: 1.1rem; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-link .icon { color: var(--navy); width: 22px; height: 22px; }
.copyright { text-align: center; color: var(--muted); font-size: .82rem; margin: 22px 0 0; }

/* =================================================================
   Responsive: tablets
   ================================================================= */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-inner { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-box { grid-template-columns: 1fr; }
  .safety-intro { border-right: 0; padding-right: 0; border-bottom: 1px solid #efc8ca; padding-bottom: 20px; }
  .steps { gap: 24px; }
  .step::after { display: none; }
}

/* =================================================================
   Responsive: phones
   ================================================================= */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 3px solid var(--red);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 500px; }
  .site-nav a:not(.btn) { padding: 14px 24px; border-top: 1px solid var(--border); }
  .site-nav .btn { margin: 14px 24px 18px; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-image { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .safety-list { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text { padding-right: 0; border-right: 0; }
  .cta-text p { margin: 0 auto; }
  .footer-inner { flex-direction: column; }
  .section-title.lined::before, .section-title.lined::after { width: 40px; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}


/* MOBILE: Fix Safety & Disclaimer spacing */
@media (max-width: 820px) {

  .safety-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .safety-list li,
  .safety-list li:nth-child(3),
  .safety-list li:nth-child(4),
  .safety-list li:nth-child(5),
  .safety-list li:last-child {
    transform: none;
    margin-top: 0;
  }

}
