/*
  paul-meyers.com — mobile-first marketing site
  Goals: speed, clarity, accessibility, SEO-friendly structure.
*/

:root{
  --bg:#0b1220;
  --surface:#0f1b33;
  --card:#111f3f;
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.76);
  --muted2:rgba(234,240,255,.62);
  --brand:#6ee7ff;
  --brand2:#a3ffbf;
  --stroke:rgba(234,240,255,.14);
  --shadow:0 18px 46px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:22px;
  --container:1120px;
  --pad:18px;
  --focus:0 0 0 3px rgba(110,231,255,.35), 0 0 0 6px rgba(163,255,191,.22);
  --font:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f8ff;
    --surface:#ffffff;
    --card:#ffffff;
    --text:#0c1324;
    --muted:rgba(12,19,36,.78);
    --muted2:rgba(12,19,36,.64);
    --stroke:rgba(12,19,36,.12);
    --shadow:0 18px 46px rgba(0,0,0,.10);
  }
}

*{box-sizing:border-box}
html{color-scheme:dark light; scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  line-height:1.55;
  background:
    radial-gradient(1000px 550px at 85% -10%, rgba(110,231,255,.18), transparent 60%),
    radial-gradient(900px 520px at 0% 0%, rgba(163,255,191,.10), transparent 55%),
    var(--bg);
}
img{max-width:100%; height:auto}
svg{display:block}

a{color:inherit}
a:hover{text-decoration-thickness:3px}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  background:var(--surface);
  border-radius:10px;
  z-index:1000;
}
.skip-link:focus{left:12px; outline:none; box-shadow:var(--focus)}

.container{width:min(var(--container), calc(100% - (2 * var(--pad)))); margin-inline:auto}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:900;
  backdrop-filter: blur(10px);
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom:1px solid var(--stroke);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand-mark{width:36px; height:36px}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-tag{display:block; font-size:12px; color:var(--muted2); margin-top:-2px}

.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--stroke);
  background:var(--surface);
  border-radius:12px;
  padding:10px 12px;
  color:inherit;
}
.nav-toggle:focus{outline:none; box-shadow:var(--focus)}

.site-nav{position:relative}
.nav-panel{
  display:none;
  position:absolute;
  right:0;
  top:54px;
  width:min(92vw, 360px);
  border:1px solid var(--stroke);
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:10px;
}
.nav-panel[aria-hidden="false"]{display:block}

.nav-list{list-style:none; margin:0; padding:0}
.nav-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  text-decoration:none;
  border-radius:12px;
}
.nav-list a:hover{background:color-mix(in srgb, var(--brand) 14%, transparent)}
.nav-list a[aria-current="page"]{background:color-mix(in srgb, var(--brand2) 16%, transparent)}
.nav-cta{margin-top:8px; padding:10px}

@media (min-width: 900px){
  .nav-toggle{display:none}
  .nav-panel{display:block; position:static; width:auto; border:none; background:transparent; box-shadow:none; padding:0}
  .nav-list{display:flex; gap:6px; align-items:center}
  .nav-list a{padding:10px 12px}
  .nav-cta{display:none}
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  text-decoration:none;
  font-weight:700;
}
.btn:focus{outline:none; box-shadow:var(--focus)}
.btn-primary{
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#08101f;
  border-color:transparent;
}
.btn-primary:hover{filter:saturate(1.05) brightness(1.03)}
.btn-ghost{background:var(--surface)}
.btn-row{display:flex; flex-wrap:wrap; gap:10px}

/* Hero */
.hero{padding:28px 0 18px}
.hero-grid{display:grid; gap:18px}
.hero-card{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, transparent), var(--surface));
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-copy{padding:20px}
.kicker{display:inline-flex; gap:10px; align-items:center; font-weight:700; color:var(--muted); font-size:14px}
.kicker .dot{width:10px; height:10px; border-radius:999px; background:var(--brand2)}
.h1{font-size:clamp(30px, 4.2vw, 52px); line-height:1.08; margin:12px 0}
.lede{color:var(--muted); font-size:clamp(16px, 1.6vw, 19px); margin:0 0 14px}
.hero-points{list-style:none; margin:14px 0 0; padding:0; display:grid; gap:10px}
.hero-points li{display:flex; gap:10px; align-items:flex-start; color:var(--muted)}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:8px 10px;
  font-size:13px;
  color:var(--muted);
}
.hero-media{position:relative}
.hero-media img{display:block; width:100%; height:100%; object-fit:cover}
.hero-media .overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.66));
}
.hero-media .caption{
  position:absolute;
  left:16px;
  right:16px;
  bottom:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@media (min-width: 900px){
  .hero{padding:40px 0 22px}
  .hero-grid{grid-template-columns: 1.08fr .92fr; align-items:stretch}
  .hero-copy{padding:26px}
}

/* Sections */
.section{padding:26px 0}
.section-header{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px}
.section h2{margin:0; font-size:clamp(22px, 2.4vw, 32px)}
.section p{color:var(--muted); margin:10px 0}

.grid{display:grid; gap:14px}
@media (min-width: 900px){
  .grid.cols-3{grid-template-columns: repeat(3, 1fr)}
  .grid.cols-2{grid-template-columns: repeat(2, 1fr)}
}

.card{
  border:1px solid var(--stroke);
  background:var(--card);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted)}
.card a{font-weight:700}

.pill-row{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.pill{border:1px solid var(--stroke); border-radius:999px; padding:6px 10px; font-size:12px; color:var(--muted)}

.checklist{padding-left:18px; color:var(--muted)}
.checklist li{margin:8px 0}

.note{
  border-left:4px solid var(--brand2);
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  padding:12px 14px;
  border-radius:12px;
  color:var(--muted);
}

/* Page layout */
.page-title{padding:22px 0 8px}
.page-title h1{margin:0; font-size:clamp(28px, 3.6vw, 44px); line-height:1.1}
.page-title p{margin:10px 0 0; color:var(--muted)}

.content{padding:10px 0 34px}
.prose{max-width: 74ch}
.prose h2{margin-top:26px}
.prose h3{margin-top:18px}
.prose ul{padding-left:18px}
.prose li{margin:8px 0; color:var(--muted)}
.prose strong{color:var(--text)}

/* Forms */
.form{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.label{font-weight:700}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:color-mix(in srgb, var(--surface) 84%, transparent);
  color:inherit;
}
textarea{min-height:140px; resize:vertical}
.input:focus, textarea:focus{outline:none; box-shadow:var(--focus)}
.help{font-size:13px; color:var(--muted2)}

/* Footer */
.site-footer{
  border-top:1px solid var(--stroke);
  background:color-mix(in srgb, var(--bg) 72%, transparent);
}
.footer-inner{padding:22px 0; display:grid; gap:14px}
.footer-grid{display:grid; gap:14px}
.footer-links{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.footer-links a{text-decoration:none; color:var(--muted)}
.footer-links a:hover{text-decoration:underline}
.small{font-size:12px; color:var(--muted2)}

@media (min-width: 900px){
  .footer-grid{grid-template-columns: 1.4fr 1fr 1fr}
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}

/* Mobile nav backdrop (click to close) */
.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  z-index:850;
}
.backdrop[data-open="true"]{display:block}
@media (min-width: 900px){
  .backdrop{display:none !important}
}
