/* ==========================================================================
   Everlocal — brand home
   Same family tokens as PDF Local (slate + blue), tuned for the hub.
   ========================================================================== */

:root {
  --paper: #f8fafc;
  --paper-deep: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --green-soft: #eff6ff;
  --mint: #3b82f6;
  --mint-bright: #60a5fa;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --blue: #0ea5e9;
  --blue-bg: #e0f2fe;
  --purple: #8b5cf6;
  --purple-bg: #ede9fe;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 44px rgba(15, 23, 42, .09);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .18);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--mint); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* --- type ---------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.eyebrow.light { color: #bfdbfe; }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .16);
}

h1, h2 { letter-spacing: -.028em; line-height: 1.06; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.03rem; font-weight: 680; letter-spacing: -.01em; }

.section-lede {
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.62;
  max-width: 60ch;
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, .34); }
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { background: #fff; border-color: #94a3b8; }
.btn-sm { height: 38px; padding: 0 15px; font-size: .84rem; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn .icon { width: 18px; height: 18px; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text span { color: var(--green); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.header-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 550;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.header-nav a:hover { background: var(--paper-deep); color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(37, 99, 235, .12), transparent 62%),
    radial-gradient(600px 320px at 2% 20%, rgba(14, 165, 233, .08), transparent 60%),
    var(--paper);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 70% 0%, #000 10%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 br { display: block; }
.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: .84rem;
  font-weight: 560;
  color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .icon { width: 16px; height: 16px; color: var(--green); }

/* hero proof card */
.hero-proof { position: relative; }
.proof-glow {
  position: absolute;
  inset: 6% -4% -8% 10%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .22), transparent 78%);
  filter: blur(8px);
}
.proof-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: rotate(-1.2deg);
}
.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted-2);
}
.proof-device { display: inline-flex; align-items: center; gap: 7px; font-weight: 620; color: var(--ink-3); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: .7rem;
  font-weight: 650;
}
.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }

.proof-list { padding: 14px 0 4px; display: grid; gap: 8px; }
.proof-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: .82rem;
  font-weight: 560;
  color: var(--ink-3);
}
.proof-row .row-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  flex: none;
}
.proof-row .row-icon .icon { width: 14px; height: 14px; }
.proof-row .row-domain {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted-2);
  letter-spacing: -.02em;
}
.proof-row .row-check { width: 14px; height: 14px; color: #22c55e; }

.proof-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.proof-foot strong { display: block; font-size: 1.08rem; letter-spacing: -.02em; }
.proof-foot span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 650; }

.proof-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: .72rem;
  font-weight: 620;
  color: var(--ink-2);
  z-index: 2;
}
.proof-chip .icon { width: 13px; height: 13px; color: var(--green); }
.proof-chip-a { left: -18px; bottom: 16%; transform: rotate(1.6deg); }
.proof-chip-b { right: -10px; top: 9%; transform: rotate(-1.4deg); }

/* --- sections ------------------------------------------------------------ */

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: 14px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .section-lede { margin-inline: auto; }

/* --- tools grid --------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--green)), transparent 92%);
  opacity: .85;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft, var(--green-soft));
  color: var(--accent, var(--green));
  flex: none;
}
.tool-icon .icon { width: 21px; height: 21px; }
.tool-tag {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .02em;
  color: var(--muted-2);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.tool-card h3 { font-size: 1.08rem; letter-spacing: -.02em; }
.tool-card p { font-size: .86rem; line-height: 1.55; color: var(--muted); }
.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tool-price { font-size: .86rem; font-weight: 700; letter-spacing: -.01em; }
.tool-price span { font-size: .72rem; font-weight: 550; color: var(--muted-2); }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 650;
  color: var(--accent, var(--green));
}
.tool-link .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.tool-card:hover .tool-link .icon { transform: translateX(2px); }

/* --- packs --------------------------------------------------------------- */

.packs-section {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(37, 99, 235, .1), transparent 65%),
    var(--ink);
  color: #e2e8f0;
}
.packs-section .eyebrow { color: #93c5fd; }
.packs-section h2 { color: #fff; }
.packs-section .section-lede { color: #94a3b8; }
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pack-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, .22);
  background: linear-gradient(165deg, rgba(30, 41, 59, .95), rgba(15, 23, 42, .92));
  box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
  transition: transform .18s ease, border-color .18s ease;
}
.pack-card:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, .45); }
.pack-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pack-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .35);
  color: #bfdbfe;
  font-size: .67rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pack-card h3 { font-size: 1.28rem; color: #fff; letter-spacing: -.02em; }
.pack-card p { font-size: .91rem; line-height: 1.6; color: #94a3b8; }
.pack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.pack-price { font-size: 1.32rem; font-weight: 730; color: #fff; letter-spacing: -.02em; }
.pack-price span { font-size: .74rem; font-weight: 500; color: #94a3b8; margin-left: 4px; }
.pack-foot .btn-primary { box-shadow: none; }

/* --- faq ----------------------------------------------------------------- */

.faq-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.faq-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { margin-bottom: 14px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-weight: 640;
  font-size: .98rem;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted-2);
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s ease;
}
.faq-plus::after { transform: rotate(90deg); }
.faq-list details[open] .faq-plus::after { transform: rotate(0deg); }
.faq-list details p {
  padding: 0 34px 20px 2px;
  font-size: .92rem;
  line-height: 1.66;
  color: var(--muted);
}
.faq-list details p a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.faq-lifetime {
  margin-top: 8px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--line-strong);
}
.faq-lifetime p { font-size: .91rem; line-height: 1.66; color: var(--muted); }
.faq-lifetime strong { color: var(--ink-2); }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--paper); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .8fr);
  gap: 28px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}
.footer-col h3 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted-2);
}
.footer-dot { opacity: .6; }

/* --- rtl ----------------------------------------------------------------- */

html[dir="rtl"] .header-nav { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .tool-link .icon { transform: scaleX(-1); }
html[dir="rtl"] .proof-row .row-domain { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .faq-list details p { padding-left: 34px; padding-right: 2px; }
html[dir="rtl"] .faq-intro { text-align: right; }
html[dir="rtl"] .footer-grid { text-align: right; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-proof { max-width: 520px; margin-inline: auto; width: 100%; }
  .proof-card { transform: none; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-nav { display: none; }
  .pack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .tool-grid { grid-template-columns: 1fr; }
  .hero-copy h1 br { display: none; }
  .proof-chip-a { left: -6px; }
  .proof-chip-b { right: -6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .header-actions .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tool-card, .pack-card, .tool-link .icon { transition: none; }
}
