/* ==========================================================================
   Sherllock — marketing site styles
   Detective/editorial theme: ink + brass on warm paper.
   Committed light design; every colour is painted explicitly.
   ========================================================================== */

:root {
  --ink:        #12161f;
  --ink-2:      #39414f;
  --ink-3:      #6b7280;
  --paper:      #f7f3ea;
  --paper-2:    #efe8d8;
  --card:       #ffffff;
  --navy:       #0f1b2d;
  --navy-2:     #16273f;
  --brass:      #b0821f;
  --brass-2:    #946c14;
  --brass-soft: #ecdcb4;
  --line:       #e2dac6;
  --line-2:     #d3c9af;
  --success:    #2f7d5d;

  --radius:     14px;
  --radius-sm:  10px;
  --container:  1120px;
  --shadow-sm:  0 1px 2px rgba(18, 22, 31, .06), 0 4px 14px rgba(18, 22, 31, .05);
  --shadow-md:  0 12px 40px rgba(15, 27, 45, .12);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* belt-and-braces against a stray wide child */
}

/* Never let long unbroken strings (URLs, emails) force a sideways scroll */
p, li, td, th, summary, h1, h2, h3, h4 { overflow-wrap: break-word; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }

a { color: var(--brass-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 92px 0; }
section.tight { padding: 60px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 14px;
}

.lead { font-size: 1.16rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brass); color: #fff; box-shadow: 0 6px 18px rgba(176, 130, 31, .28); }
.btn-primary:hover { background: var(--brass-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); }

.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(18,22,31,.05); }
.site-header.menu-open { background: var(--paper); border-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; color: var(--brass); flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-size: .96rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: .92rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

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

.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(176,130,31,.10), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .9rem;
  color: var(--ink-3);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* ---------- stat strip ---------- */

.stat-strip {
  background: var(--navy);
  color: var(--paper);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 46px;
  padding-bottom: 46px;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { font-size: .9rem; color: #aeb9c7; }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brass-soft);
  color: var(--brass-2);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}

.icon-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brass-soft);
  color: var(--brass-2);
  margin-bottom: 14px;
}
.icon-dot svg { width: 22px; height: 22px; }

/* ---------- split feature block ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.alt { background: var(--paper-2); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23946c14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist li b { color: var(--ink); font-weight: 600; }

/* ---------- comparison table ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.cmp, table.rates {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .96rem;
}
table.cmp th, table.cmp td,
table.rates th, table.rates td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.cmp thead th, table.rates thead th {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
}
table.cmp tbody tr:last-child td, table.rates tbody tr:last-child td { border-bottom: none; }
table.cmp td:first-child { font-weight: 600; color: var(--ink); }
table.cmp .col-us { background: rgba(176,130,31,.06); font-weight: 600; color: var(--ink); }
.yes { color: var(--success); font-weight: 700; }
.no  { color: #b23b3b; }
table.rates td.price { font-weight: 700; color: var(--ink); }
table.rates td.range { color: var(--ink-3); }
table.rates .badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brass-2); background: var(--brass-soft);
  padding: 2px 8px; border-radius: 999px; margin-left: 8px;
}

/* ---------- pricing cards ---------- */

.price-card { display: flex; flex-direction: column; }
.price-card .from { font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
  margin: 6px 0 4px;
}
.price-card .amount small { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.price-card ul li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23946c14' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l3.4 3.4L16 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--brass); box-shadow: 0 16px 44px rgba(176,130,31,.16); }
.price-card.featured .tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--brass); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--brass-2);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(176,130,31,.18), transparent 60%),
    var(--navy);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3d1; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }

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

.site-footer {
  background: var(--navy);
  color: #9aa6b5;
  padding: 64px 0 32px;
  font-size: .92rem;
}
.site-footer a { color: #c3ccd8; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand .mark { color: var(--brass); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c8798;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: .85rem;
  color: #7c8798;
}
.disclaimer { max-width: 640px; margin-top: 10px; line-height: 1.5; }

/* ---------- auth / centered pages ---------- */

.auth-wrap {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    radial-gradient(800px 380px at 50% -10%, rgba(176,130,31,.10), transparent 60%),
    var(--paper);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.auth-card .mark { width: 40px; height: 40px; color: var(--brass); margin-bottom: 14px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3em; }
.auth-card .pill {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-2); background: var(--brass-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- forms ---------- */

.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,130,31,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #e9f3ee;
  color: var(--success);
  font-size: .92rem;
  font-weight: 600;
}
.form-status.show { display: block; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- misc ---------- */

.notice {
  background: var(--brass-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--ink-2);
}
.back-home { display: inline-block; margin-top: 18px; font-size: .9rem; }
.footnote { font-size: .82rem; color: var(--ink-3); margin-top: 24px; line-height: 1.6; }

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

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Collapse the nav to a hamburger early enough that tablets never see a
   cramped or overflowing header. The open menu stacks in normal flow
   (header grows) rather than floating over the page. */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-header.menu-open .nav-links,
  .site-header.menu-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 6px;
  }
  .site-header.menu-open .nav-links {
    order: 3;
    margin-top: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
  }
  .site-header.menu-open .nav-cta { order: 4; padding-bottom: 14px; gap: 10px; }
  .site-header.menu-open .nav-links a { padding: 11px 2px; font-size: 1rem; }
  .site-header.menu-open .nav-cta .btn { width: 100%; padding: 14px 18px; font-size: 1rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 66px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
}

@media (max-width: 480px) {
  section { padding: 54px 0; }
  .container { padding: 0 18px; }
  h1 { font-size: 2.05rem; }
  .hero .lead, .section-head .lead { font-size: 1.05rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 22px; }
  .card { padding: 22px; }
  .auth-card { padding: 30px 22px; }
  .auth-wrap { padding: 40px 16px; }
  .stat-strip .container { grid-template-columns: 1fr; gap: 16px; }
  .stat b { font-size: 1.7rem; }
  .price-card .amount { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .faq summary { font-size: 1.02rem; }
}
