/* Fonts (self-hosted) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1d2733;
  --muted: #56616e;
  --line: #dfe3e8;
  --paper: #ffffff;
  --tint: #f4f6f8;
  --brand: #1f4fa3;
  --brand-dark: #173d80;
  --brand-soft: #e7eef9;
  --good: #2e7d4f;
  --bad: #b3412f;
  --radius: 10px;
  --max: 1040px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; }

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.lede, .section-head p { text-wrap: balance; }
h1, h2 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.015em; word-spacing: 0.04em; }
h3 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Hero */
.hero { background: var(--tint); padding: 96px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 16px; letter-spacing: -0.01em; word-spacing: 0.06em; }
@media (min-width: 900px) { .hero h1 { white-space: nowrap; } }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 auto 36px; }
.lede-split { max-width: none; text-wrap: wrap; }

.checks {
  list-style: none; padding: 0; margin: 0 auto 40px;
  width: fit-content; text-align: left;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 48px;
}
.checks li, .list-check li, .list-x li { position: relative; padding-left: 30px; }
.checks li::before, .list-check li::before, .list-x li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; background-repeat: no-repeat; background-size: contain;
}
.checks li::before, .list-check li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.list-x li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3412f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 20px; }
.since { font-style: italic; color: var(--muted); font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--brand); transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }

/* Sections */
.section { padding: 80px 0 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 1rem; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.steps li {
  counter-increment: step; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.card-featured { border: 2px solid var(--brand); }

/* Sites */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  height: 150px; margin-bottom: 16px; border-radius: var(--radius);
  background: var(--tint); border: 1px dashed #b9c1cb;
  display: flex; align-items: center; justify-content: center;
  color: #8a94a0; font-size: 0.9rem;
}

/* About */
.about { display: flex; gap: 32px; align-items: center; padding: 36px; max-width: 860px; margin: 0 auto; }
.about img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about h3 { font-size: 1.25rem; }
.about p { margin-bottom: 14px; font-size: 1.05rem; }
.linkedin { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.linkedin:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--paper); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* Updates popup */
.modal {
  width: min(480px, calc(100% - 32px)); border: none; border-radius: 18px;
  padding: 40px 28px 28px; text-align: center; color: var(--ink);
  box-shadow: 0 20px 60px rgba(20, 30, 45, 0.25);
}
.modal::backdrop {
  background: rgba(15, 23, 35, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal h2 { font-size: 1.8rem; margin-bottom: 8px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 10px; right: 14px; border: none; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.signup-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 10px; }
.signup-form .form-status { flex-basis: 100%; margin: 0; }
.signup-form input {
  flex: 1; min-width: 200px; padding: 14px 16px; font: inherit; font-size: 1rem;
  border: 1px solid #c4cbd3; border-radius: var(--radius); background: var(--paper);
}
.signup-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.signup-form button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { min-height: 1.4em; font-size: 0.95rem; margin-bottom: 4px; }
.form-status.is-success { color: var(--good); font-weight: 600; }
.form-status.is-error { color: var(--bad); }
.fine { font-size: 0.85rem; color: #8a94a0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.015em; color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--brand); }
.btn-small { padding: 9px 18px; font-size: 0.95rem; }
section[id] { scroll-margin-top: 84px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--tint); color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-top: 48px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 8px; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 0.88rem; }


/* Inner pages */
.page-hero { background: var(--tint); padding: 72px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 14px; }
.page-hero .lede { margin-bottom: 0; }
.nav a[aria-current="page"] { color: var(--brand); }

/* Numbered accordion */
.steps-accordion summary { display: flex; align-items: center; gap: 14px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 0.95rem;
}
.steps-accordion summary::after { top: 50%; transform: translateY(-50%); }
.steps-accordion details p { padding-left: 44px; }

/* Closing call to action */
.closing {
  text-align: center; background: var(--ink); color: #fff;
  border-radius: 20px; padding: 64px 28px;
}
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; color: #fff; }
.closing > p { color: #c9d1db; max-width: 620px; margin: 0 auto 26px; text-wrap: balance; }
.closing-points {
  list-style: none; padding: 0; margin: 0 auto 32px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: #e6ebf1;
}
.closing-points li { position: relative; padding-left: 28px; }
.closing-points li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd3a2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.btn-large { padding: 16px 34px; font-size: 1.05rem; }
.closing .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.closing .btn-primary:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.closing .fine { color: #9aa6b4; margin-top: 14px; }

/* Menu toggle (phones and tablets) */
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* About page */
.about-name { font-size: 1.6rem; margin-bottom: 10px; }

/* Contact popup */
.modal-wide { width: min(640px, calc(100% - 32px)); text-align: left; padding: 36px 32px 28px; max-height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 28px; }
.modal-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.modal-head h2 { font-size: 1.6rem; margin-bottom: 2px; }
.modal-head .modal-sub { margin: 0; }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #c4cbd3; border-radius: var(--radius); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .form-status { margin: 0; }
.is-invalid { border-color: var(--bad) !important; background: #fdf4f2 !important; }
.about-contact { margin-left: 16px; }

/* Resources login */
.login-body { background: var(--tint); }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; }
.login-card { width: min(420px, 100%); padding: 36px 28px; text-align: center; display: grid; gap: 14px; }
.login-card h1 { font-size: 1.9rem; }
.login-card p { color: var(--muted); }
.login-card input { padding: 14px 16px; font: inherit; border: 1px solid #c4cbd3; border-radius: var(--radius); }
.login-card input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.login-back { color: var(--muted); font-size: 0.95rem; }

/* Mobile */
@media (max-width: 820px) {
  .steps, .sites { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 30, 45, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .header-inner { gap: 12px; }
}
@media (max-width: 720px) {
  .br-wide { display: none; }
  .lede-split { max-width: 600px; text-wrap: balance; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 72px 0 60px; }
  .checks { grid-template-columns: 1fr; }
  .steps, .sites, .compare { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .modal-wide { padding: 30px 20px 22px; }
  .contact-form .btn { justify-self: stretch; text-align: center; }
  .about-contact { margin: 14px 0 0; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .btn-small { padding: 8px 14px; font-size: 0.9rem; }
}
