/* EverGuard public site — styles distilled from the desktop GUI palette + leaflet brand.
   Colours, surfaces and buttons mirror the WPF shell so the website feels like a
   natural extension of the app. */

:root {
  --brand-blue:     #1E7BFF;
  --brand-blue-dk:  #1769E6;
  --brand-blue-pr:  #1458C4;
  --brand-blue-soft:#E6F0FF;
  --brand-green:    #22C55E;
  --brand-green-dk: #16A34A;
  --protected:      #10B981;
  --bg:             #F5F7FB;
  --bg-tint:        #EAF2FF;
  --card:           #FFFFFF;
  --border:         #E6EAF2;
  --text:           #0F172A;
  --text-muted:     #64748B;
  --text-faint:     #94A3B8;
  --danger:         #B91C1C;
  --warn:           #B45309;
  --shadow:         0 4px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg:      0 10px 36px rgba(15, 23, 42, 0.12);
  --radius:         14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--bg-tint)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ----- Header ----- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.site-header nav a.cta { background: var(--brand-blue); color: white; padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.site-header nav a.cta:hover { background: var(--brand-blue-dk); text-decoration: none; color: white; }

.brand-mark { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand-mark:hover { text-decoration: none; }
.brand-mark .ever { color: var(--brand-blue); }
.brand-mark .guard { color: var(--brand-green); }

.shield-logo {
  width: 30px; height: 36px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue) 50%, var(--brand-green) 50%, var(--brand-green) 100%);
  -webkit-mask: url("shield-mask.svg") center/contain no-repeat;
          mask: url("shield-mask.svg") center/contain no-repeat;
  flex-shrink: 0;
}

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(1000px 600px at 80% -20%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(1200px 700px at -10% 10%, rgba(30,123,255,0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: 56px; line-height: 1.05; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--brand-blue); }
.hero h1 .accent-green { color: var(--brand-green); }
.hero .lead { font-size: 19px; color: var(--text-muted); margin: 0 0 28px; max-width: 540px; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero-shield {
  width: 280px; height: 320px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue) 50%, var(--brand-green) 50%, var(--brand-green) 100%);
  -webkit-mask: url("shield-mask.svg") center/contain no-repeat;
          mask: url("shield-mask.svg") center/contain no-repeat;
  filter: drop-shadow(0 18px 40px rgba(30,123,255,0.35));
}
.hero-meta { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; }
.hero-meta .hm { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta .hm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--protected); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; transition: background 120ms ease, transform 80ms ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-blue); color: white; }
.btn-primary:hover { background: var(--brand-blue-dk); color: white; }
.btn-primary:active { background: var(--brand-blue-pr); transform: translateY(1px); }
.btn-soft { background: var(--brand-blue-soft); color: var(--brand-blue); }
.btn-soft:hover { background: #D7E6FF; }
.btn-green { background: var(--brand-green); color: white; }
.btn-green:hover { background: var(--brand-green-dk); color: white; }
.btn-outline { background: transparent; color: var(--brand-blue); border: 1px solid var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue-soft); }
.btn-disabled { background: #E2E8F0; color: var(--text-faint); cursor: not-allowed; pointer-events: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ----- Cards ----- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card.elevated { box-shadow: var(--shadow-lg); }

/* ----- Feature grid ----- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 150ms ease, box-shadow 150ms ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-card .icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-blue-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.feature-card p  { margin: 0; color: var(--text-muted); font-size: 14px; }

.icon-tile.email      { background: #E0EBFF; color: #3B82F6; }
.icon-tile.cleanup    { background: #D6F4F0; color: #14B8A6; }
.icon-tile.startup    { background: #EDE3FE; color: #8B5CF6; }
.icon-tile.shortcuts  { background: #D9F7E1; color: #22C55E; }
.icon-tile.maint      { background: #FFE7D5; color: #F97316; }
.icon-tile.junk       { background: #FEF3C7; color: #B45309; }

/* ----- Pricing ----- */
.pricing-card { max-width: 460px; margin: 0 auto; background: linear-gradient(160deg, var(--brand-blue) 0%, var(--brand-blue-dk) 100%); color: white; border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow-lg); }
.pricing-card h3 { margin: 0 0 8px; font-size: 18px; opacity: 0.9; font-weight: 500; }
.pricing-card .amount { font-size: 56px; font-weight: 700; line-height: 1; margin: 4px 0 6px; }
.pricing-card .period { opacity: 0.8; }
.pricing-card ul { list-style: none; padding: 24px 0 0; margin: 0; }
.pricing-card ul li { padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li::before { content: "\2713"; color: white; background: rgba(255,255,255,0.2); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.pricing-card .btn-primary { background: white; color: var(--brand-blue); width: 100%; margin-top: 24px; }
.pricing-card .btn-primary:hover { background: #F1F5FF; color: var(--brand-blue); }

/* ----- Forms ----- */
.form-grid label { display: block; font-weight: 600; font-size: 14px; color: var(--text); margin: 16px 0 6px; }
.form-grid input, .form-grid textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: white; color: var(--text); font-family: inherit; font-size: 15px; }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(30,123,255,0.15); }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
.form-msg.ok  { background: #DCFCE7; color: #15803D; }
.form-msg.err { background: #FEE2E2; color: #B91C1C; }

/* ----- Footer ----- */
.site-footer { background: white; border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 60px; color: var(--text-muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-col h4 { color: var(--text); font-size: 14px; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--brand-blue); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }

/* ----- Section helpers ----- */
.section-title { font-size: 36px; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
.section-lead  { font-size: 17px; color: var(--text-muted); margin: 0 0 36px; max-width: 640px; }
.section-center { text-align: center; }
.section-center .section-lead { margin-left: auto; margin-right: auto; }
.kicker { color: var(--brand-blue); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }

/* ----- Banner strip ----- */
.banner-strip { background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%); color: white; padding: 16px 0; text-align: center; font-weight: 600; }
.banner-strip .row { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; }
.banner-strip .pip { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.banner-strip .pip::before { content: "\2713"; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; font-weight: 600; }

/* ----- How-it-works 3-step ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-blue-soft); color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p  { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ----- Testimonials ----- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 16px; font-size: 16px; color: var(--text); line-height: 1.6; }
.testimonial blockquote::before { content: "\201C"; font-size: 32px; color: var(--brand-blue); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial .who .name { font-weight: 600; }
.testimonial .who .role { color: var(--text-muted); font-size: 13px; }

/* ----- App screenshot placeholder ----- */
.app-shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--border); display: grid; grid-template-columns: 220px 1fr; min-height: 380px; }
.app-shot .sidebar { background: #FFFFFF; border-right: 1px solid var(--border); padding: 18px 10px; }
.app-shot .sidebar .brand { display: flex; align-items: center; gap: 8px; padding: 4px 12px 16px; font-weight: 700; }
.app-shot .sidebar .brand .dot-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--brand-blue); }
.app-shot .sidebar .nav-item { padding: 9px 14px; border-radius: 8px; margin-bottom: 4px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.app-shot .sidebar .nav-item .ico { width: 14px; height: 14px; border-radius: 4px; background: #CBD5E1; }
.app-shot .sidebar .nav-item.active { background: var(--brand-blue); color: white; }
.app-shot .sidebar .nav-item.active .ico { background: white; }
.app-shot .content { padding: 22px; background: var(--bg); }
.app-shot .hero-mini { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-shot .hero-mini .shield-mini { width: 52px; height: 52px; border-radius: 12px; background: #D1FAE5; display: inline-flex; align-items: center; justify-content: center; color: var(--protected); font-size: 26px; font-weight: 800; }
.app-shot .hero-mini h4 { margin: 0; font-size: 16px; color: var(--protected); }
.app-shot .hero-mini p  { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; }
.app-shot .cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.app-shot .mini-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 12px; }
.app-shot .mini-card .label { color: var(--text-muted); font-size: 11px; }
.app-shot .mini-card .value { font-weight: 700; font-size: 16px; }
.app-shot .mini-card .v-blue  { color: var(--brand-blue); }
.app-shot .mini-card .v-green { color: var(--brand-green); }
.app-shot .mini-card .v-red   { color: var(--danger); }

/* ----- Comparison table ----- */
.compare { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare th { background: var(--bg-tint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.compare th.good { color: var(--brand-blue); }
.compare td.good { color: var(--text); }
.compare td.bad  { color: var(--text-muted); }
.compare td.check::before  { content: "\2713 "; color: var(--protected); font-weight: 700; }
.compare td.cross::before  { content: "\2715 "; color: var(--text-faint); font-weight: 700; }

/* ----- Trust strip ----- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 24px 0; }
@media (max-width: 880px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust .t h3 { margin: 0; color: var(--brand-blue); font-size: 30px; letter-spacing: -0.02em; }
.trust .t p  { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }

/* ----- FAQ accordion ----- */
.faq details { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 0; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand-blue); font-weight: 400; transition: transform 200ms; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .body { padding: 18px 22px; color: var(--text-muted); }

/* ----- CTA strip ----- */
.cta-strip { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dk)); color: white; padding: 56px 24px; border-radius: 18px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-strip h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -0.02em; }
.cta-strip p  { margin: 0 0 22px; opacity: 0.9; font-size: 17px; }
.cta-strip .btn { background: white; color: var(--brand-blue); }
.cta-strip .btn:hover { background: #F1F5FF; color: var(--brand-blue); }

/* ----- Utility ----- */
.center { text-align: center; }
.muted  { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { background: var(--brand-blue-soft); color: var(--brand-blue); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .section-title { font-size: 28px; }
  .section { padding: 56px 0; }
  .site-header nav a:not(.cta):not(.brand-mark) { display: none; }
}
