/* =========================================================
   Protero — device protection app site
   Palette: deep forest + jade green + pale mint (from shield icon)
   Type: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ========================================================= */

:root {
  --forest:        #0a3b26;
  --forest-2:      #0e4c31;
  --green:         #1f9d56;
  --green-strong:  #178047;
  --green-bright:  #5ad98c;
  --green-soft:    #e3f2e8;
  --green-soft-2:  #eef7f0;
  --paper:         #f1f6ef;
  --white:         #ffffff;
  --ink:           #0e1c15;
  --muted:         #566b60;
  --muted-2:       #7c8c82;
  --line:          #d9e5db;
  --line-strong:   #c3d5c7;
  --coral:         #ee5b41;

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;

  --shadow-soft: 0 18px 44px -24px rgba(10, 59, 38, 0.35);
  --shadow-phone: 0 40px 80px -34px rgba(10, 59, 38, 0.55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -0.02em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem; color: var(--green-strong);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 54ch; }

/* ---------- buttons / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 0.82rem;
  background: var(--green-soft); color: var(--green-strong);
  border: 1px solid var(--line-strong);
}
.pill.dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex: none;
}
.pill--threat { background: #fdeae6; color: #c23a22; border-color: #f6cbc0; }
.pill--threat.dot::before { background: var(--coral); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,157,86,0.75); }
.btn--primary:hover { background: var(--green-strong); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-strong); }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(241, 246, 239, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.98rem; color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  right: -14%; top: -30%; width: min(760px, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, var(--green-soft), transparent 62%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  margin-bottom: 1.4rem;
}
.hero h1 .soft { color: var(--green-strong); }
.hero .lead { margin-bottom: 2rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-score {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-top: 2.4rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-soft); width: fit-content;
}
.score-ring {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--green-strong);
  background: conic-gradient(var(--green) 100%, var(--green-soft) 0);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score-ring span { position: relative; z-index: 1; }
.hero-score b { font-family: var(--font-display); }
.hero-score small { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: var(--r-lg);
  filter: drop-shadow(0 40px 70px rgba(10,59,38,0.28));
}

/* =========================================================
   STATS BAND (forest)
   ========================================================= */
.stats {
  background: var(--forest);
  color: #eaf5ee;
  border-radius: var(--r-xl);
  margin-inline: var(--gutter);
  position: relative; overflow: hidden;
}
.stats-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.5rem, 4vw, 3rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; letter-spacing: -0.03em; line-height: 1;
}
.stat b em { font-style: normal; color: var(--green-bright); }
.stat p { margin: 0.6rem 0 0; color: #b8d3c2; font-size: 0.98rem; }
.stats::after {
  content: ""; position: absolute; left: -6%; bottom: -60%; width: 480px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(90,217,140,0.18), transparent 60%);
}

/* =========================================================
   FEATURES — bento grid
   ========================================================= */
.feat-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.feat-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.card h3 { font-size: 1.28rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green-strong);
}
.card .ico svg { width: 24px; height: 24px; }

/* bento sizing */
.card--wide { grid-column: span 3; }
.card--std  { grid-column: span 2; }
.card--tall { grid-column: span 2; }
.card--feature {
  grid-column: span 4; background: var(--forest); color: #eaf5ee; border-color: transparent;
  flex-direction: row; align-items: center; gap: 1.6rem; padding: 1.8rem;
}
.card--feature .ico { background: rgba(90,217,140,0.16); color: var(--green-bright); width: 56px; height: 56px; border-radius: 15px; }
.card--feature .ico svg { width: 28px; height: 28px; }
.card--feature h3 { color: #fff; font-size: 1.5rem; }
.card--feature p { color: #bcd7c6; }
.card--accent { grid-column: span 2; background: var(--green-soft-2); border-color: var(--line-strong); }

/* closing score tile */
.card--score {
  grid-column: span 4; background: var(--forest); color: #eaf5ee; border-color: transparent;
  flex-direction: row; align-items: center; gap: 1.6rem; padding: 1.8rem;
}
.card--score h3 { color: #fff; font-size: 1.5rem; }
.card--score p { color: #bcd7c6; }
.card--score .score-ring {
  width: 70px; height: 70px; font-size: 1.15rem; flex: none;
  background: conic-gradient(var(--green-bright) 100%, rgba(255,255,255,0.15) 0);
  color: var(--forest);
}
.card--score .score-ring::after { inset: 6px; background: var(--forest); }
.card--score .score-ring span { color: var(--green-bright); }

/* =========================================================
   SCREENS — scattered phone cards
   ========================================================= */
.screens { background: linear-gradient(180deg, var(--green-soft-2), var(--paper)); }
.screens-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.screens-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1rem; }
.screens-head .lead { margin-inline: auto; }
.phone-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(0.6rem, 2vw, 1.6rem); flex-wrap: nowrap;
}
.phone {
  position: relative; flex: 1 1 0; max-width: 300px;
  border-radius: var(--r-lg);
}
.phone img { border-radius: var(--r-lg); box-shadow: var(--shadow-phone); }
.phone figcaption {
  margin-top: 1rem; text-align: center; font-weight: 600; color: var(--ink); font-size: 0.98rem;
}
.phone figcaption small { display: block; color: var(--muted); font-weight: 500; font-size: 0.86rem; margin-top: 0.15rem; }
.phone--lift { transform: translateY(-28px) rotate(-3deg); }
.phone--lift2 { transform: translateY(-14px) rotate(2.5deg); }

/* =========================================================
   DEEP DIVES — alternating
   ========================================================= */
.dive { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dive + .dive { margin-top: clamp(3.5rem, 7vw, 6rem); }
.dive:nth-child(even) .dive-media { order: 2; }
.dive-media { position: relative; }
.dive-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-phone); }
.dive-media.tall { max-width: 340px; margin-inline: auto; }
.dive-media.wide {
  background: linear-gradient(140deg, var(--green-soft), #fff 78%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-soft);
}
.dive-media.wide img { box-shadow: none; border-radius: var(--r-md); }
.dive h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1.1rem; }
.dive p { color: var(--muted); margin: 0 0 1.4rem; }
.dive .tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.dive ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.dive ul li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.dive ul li svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }

/* =========================================================
   FINAL slogan
   ========================================================= */
.finale {
  background: var(--forest); color: #fff; text-align: center;
  border-radius: var(--r-xl); margin-inline: var(--gutter);
  position: relative; overflow: hidden;
}
.finale-inner { max-width: 820px; margin-inline: auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); position: relative; z-index: 1; }
.finale h2 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 1.3rem; }
.finale p { color: #bcd7c6; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; margin-inline: auto; }
.finale .pill { margin-bottom: 1.8rem; background: rgba(90,217,140,0.16); color: var(--green-bright); border-color: rgba(90,217,140,0.3); }
.finale::before { content: ""; position: absolute; right: -10%; top: -30%; width: 520px; aspect-ratio: 1; background: radial-gradient(circle, rgba(90,217,140,0.2), transparent 62%); }
.finale::after { content: ""; position: absolute; left: -12%; bottom: -40%; width: 460px; aspect-ratio: 1; background: radial-gradient(circle, rgba(90,217,140,0.12), transparent 62%); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #cdd8d0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(4rem, 8vw, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #9fb0a6; max-width: 34ch; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: #7f9188; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a, .footer-col address { color: #cdd8d0; font-style: normal; font-size: 0.96rem; line-height: 1.6; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); color: #8a9c92; font-size: 0.88rem; }

/* =========================================================
   INNER PAGES (legal + contact)
   ========================================================= */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .eyebrow { margin-bottom: 0.9rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); margin-bottom: 0.9rem; }
.page-hero p { color: var(--muted); max-width: 60ch; }
.doc { max-width: 780px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.6rem 0 0.8rem; }
.doc h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; font-family: var(--font-body); font-weight: 700; }
.doc p, .doc li { color: #384539; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.doc a { color: var(--green-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doc .updated { color: var(--muted-2); font-size: 0.92rem; }
.doc .callout {
  background: var(--green-soft-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 1.3rem 1.5rem; margin: 1.6rem 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--green-strong); min-height: 1.2em; }

.info-card { display: grid; gap: 1.4rem; }
.info-item { background: var(--green-soft-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 1.3rem 1.4rem; }
.info-item h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.info-item p, .info-item address { margin: 0; font-style: normal; color: var(--ink); font-weight: 500; }
.info-item a { color: var(--green-strong); font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .pill { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; gap: 0.4rem; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem;
  }
  .site-header.open .nav-links a { padding: 0.6rem 0; font-size: 1.05rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .hero::before { right: -30%; top: -10%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide, .card--std, .card--tall, .card--feature, .card--accent, .card--score { grid-column: span 1; }
  .card--feature, .card--score { grid-column: span 2; }

  .dive { grid-template-columns: 1fr; gap: 1.8rem; }
  .dive:nth-child(even) .dive-media { order: -1; }
  .dive-media { order: -1; max-width: 360px; margin-inline: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .bento { grid-template-columns: 1fr; }
  .card--feature, .card--score { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .phone-row { flex-wrap: wrap; gap: 1.4rem 1rem; }
  .phone { flex: 1 1 42%; max-width: 46%; }
  .phone--lift, .phone--lift2 { transform: none; }
  .phone figcaption { font-size: 0.86rem; }
  .feat-head { align-items: start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .phone { flex: 1 1 100%; max-width: 260px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .phone--lift, .phone--lift2 { transform: none; }
}
