/* theme.css — Crowd Security
   Brand blue #2A6A9E from the original site and the CROWD SECURITY wordmark. */
:root {
  --color-primary: #2a6a9e;
  --color-primary-dark: #1d4f78;
  --color-accent: #2a6a9e;
  --color-text: #22303c;
  --color-muted: #5a6875;
  --color-surface: #f2f6fa;
  --color-border: #dbe4ec;
  --color-footer-bg: #16212b;
  --color-footer-text: #c2ccd6;
  --hero-overlay: linear-gradient(180deg, rgba(10, 20, 30, .55) 0%, rgba(10, 20, 30, .78) 100%);
}

/* Uppercase headings and menu, as on the original site */
h1, h2, .site-nav a, .btn, .feature h3, .phone-block h3 { text-transform: uppercase; letter-spacing: .04em; }
.prose h2, .prose h3 { text-transform: none; letter-spacing: 0; }
.legal h2 { text-transform: none; letter-spacing: 0; font-size: 1.35rem; }
.brand img { height: 28px; }
.footer-logo { width: 220px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.site-footer .social-links { margin-top: 1.25rem; }

/* Transparent PNG artwork (logos, phone screenshots) should not get the photo frame/shadow */
.split img[src$=".png"] { box-shadow: none; border-radius: 0; }

/* Home hero */
.cs-hero { background: #fff; border-bottom: 1px solid var(--color-border); padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; }
.cs-hero h1 { margin: 0 0 1.25rem; }
.cs-hero h1 img { width: min(100%, 560px); }
.cs-tagline { font-size: clamp(1.4rem, 2vw + .8rem, 2rem); font-weight: 800; letter-spacing: .08em; color: var(--color-text); line-height: 1.3; }
.cs-hero .hero__phone { width: min(70%, 300px); margin: 0 auto; }

/* How it works (light photo on the right) */
.cs-how {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255,255,255,0) 62%), #fff url("../img/bg-how-it-works.jpg") right center / contain no-repeat;
}
/* Feathered white backing keeps the text readable if it ever overlaps the photo
   (invisible over the white part of the image; no hard edge). */
.cs-how .content {
  max-width: 560px; border-radius: 32px;
  background: rgba(255, 255, 255, .78); box-shadow: 0 0 48px 32px rgba(255, 255, 255, .78);
}
/* When the photo is pinned (.bg-fixed, desktop) it is sized to the window. Shift it
   right so the figure sits clear of the text; its left side is white, so the gap blends in. */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .cs-how.bg-fixed { background-size: 100% 100%, cover; background-position: 0 0, left 18vw center; }
}
@media (max-width: 860px) { .cs-how { background: #fff; } .cs-how .content { background: none; box-shadow: none; } }
.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: .25rem 0 .25rem 3.5rem; margin-top: 1.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-weight: 800; display: grid; place-items: center;
}

.bg-ecosystem { background-image: url("../img/bg-ecosystem.jpg"); }
.bg-download  { background-image: url("../img/bg-download.jpg"); }
.bg-house     { background-image: url("../img/bg-house.jpg"); }
.bg-hiw       { background-image: url("../img/bg-how-it-works.jpg"); background-position: right center; }
.bg-about     { background-image: url("../img/bg-ecosystem.jpg"); }

.about-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 2rem; }
.about-grid h3 { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05rem; }
.about-grid p { color: rgba(255, 255, 255, .9); }

/* Live updates: phone + feature list */
.tool-list { list-style: none; padding: 0; display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tool-list li { margin: 0; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.tool-list svg { flex: none; width: 22px; height: 22px; color: var(--color-primary); }
.phone-shot { width: min(100%, 300px); margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow); }

.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

.partners { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; justify-content: center; }
.partners img { height: 110px; width: auto; }
.partners .ask-us img { height: 110px; width: auto; max-width: 100%; object-fit: contain; }

/* How it works page */
.phone-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0 0; padding: 0; list-style: none; }
.phone-row li { margin: 0; }
.phone-row img { width: 190px; height: auto; }
.phone-block { padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.phone-block h3 { font-size: 1.05rem; }
.phone-block p { color: var(--color-muted); }
.phone-block .btn { margin-top: auto; align-self: flex-start; }
.hiw-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.hiw-nav li { margin: 0; }
.hiw-nav a { display: block; padding: .45rem .9rem; border: 1px solid var(--color-border); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; }
.hiw-nav a:hover { border-color: var(--color-primary); }

.team-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.team-card h3, .team-card h2.h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.safety-tools { margin-top: 2.5rem; }
.two-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.survey { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.survey li { margin-top: .6rem; }
.survey .options { color: var(--color-muted); font-size: .92rem; display: block; }
