/* Main Street Systems — editorial-modern design system.
   100% offline: self-hosted fonts (no CDN at runtime), no frameworks.
   Direction: warm editorial · ink + gold + deep blue · serif display / humanist body.
   Animation: transform/opacity/filter only; respects prefers-reduced-motion. */

/* ---------- Self-hosted fonts (local .woff2, OFL) ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-600.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Editorial palette — ink, gold, deep blue, warm paper */
  --ink-900: #16120c;   /* darkest (hero/footer) */
  --ink-800: #211c14;
  --ink: #251f17;       /* headings */
  --ink-soft: #4c4538;  /* body */
  --muted: #897e6c;     /* tertiary */

  --paper: #fbf8f2;     /* warm base */
  --paper-2: #f4eee2;   /* soft section */
  --paper-3: #efe7d7;
  --card: #fffdf9;
  --line: #e9e0cf;
  --line-soft: #f0e9da;

  --gold: #b07d23;      /* accent (text-safe on light) */
  --gold-bright: #d99b2b;
  --gold-soft: #e7c074;
  --gold-bg: #f7edd6;

  --blue: #2a55a8;      /* secondary / links */
  --blue-bright: #3a6fd0;
  --blue-bg: #e9eefaee;

  --good: #2f7d4f;
  --good-bg: #e7f1e8;

  --primary: var(--ink-900);
  --accent: var(--gold);

  /* Geometry */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;

  /* Warm layered shadows */
  --sh-1: 0 1px 2px rgba(37,31,23,.05), 0 1px 3px rgba(37,31,23,.05);
  --sh-2: 0 6px 18px rgba(37,31,23,.08), 0 2px 6px rgba(37,31,23,.05);
  --sh-3: 0 20px 50px rgba(37,31,23,.14), 0 8px 18px rgba(37,31,23,.07);
  --sh-gold: 0 14px 34px rgba(176,125,35,.30);
  --sh-ink: 0 14px 32px rgba(22,18,12,.28);

  /* Fluid type scale */
  --fs-xs: .80rem; --fs-sm: .92rem; --fs-base: 1.06rem;
  --fs-lg: clamp(1.12rem, 1rem + .55vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.08rem + .7vw, 1.55rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.3vw, 3.1rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);

  --maxw: 1160px; --gap: 26px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; font-family: var(--font); color: var(--ink-soft); background: var(--paper);
  line-height: 1.65; font-size: var(--fs-base); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.06; color: var(--ink);
  margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 600;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-bright); }
img, svg { max-width: 100%; }
::selection { background: var(--gold-soft); color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 8.5vw, 108px) 0; position: relative; }
.section--soft { background: var(--paper-2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* Editorial display accent — italic serif in gold (the signature) */
.grad {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--gold); -webkit-text-fill-color: var(--gold); letter-spacing: 0;
}

/* Eyebrow — kicker label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .22em; font-size: var(--fs-xs);
  font-weight: 700; color: var(--gold); font-family: var(--font);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); opacity: .8; }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icon-box {
  width: 54px; height: 54px; border-radius: var(--r); margin-bottom: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--blue);
  box-shadow: var(--sh-1);
}
.icon-box .ico { width: 26px; height: 26px; }
.icon-box--amber { background: var(--gold-bg); border-color: #ecdcb4; color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,242,.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(251,248,242,.94); border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.18rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(140deg, var(--ink-800), var(--ink-900));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--sh-ink); border: 1px solid rgba(231,192,116,.25);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; display: block; height: 1.5px; width: 0; background: var(--gold); transition: width .22s var(--ease-out); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav--mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; padding: 14px 26px; border-radius: 11px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; border: 1px solid transparent;
  transition: transform .14s var(--ease-out), box-shadow .22s ease, background .18s ease, border-color .18s ease, color .18s ease;
  will-change: transform; letter-spacing: -.01em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn--primary { background: linear-gradient(150deg, var(--ink-800), var(--ink-900)); color: #f7f1e4; box-shadow: var(--sh-ink); border-color: rgba(231,192,116,.18); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px rgba(22,18,12,.34); }
.btn--accent { background: linear-gradient(140deg, var(--gold-bright), var(--gold)); color: #2a1c00; box-shadow: var(--sh-gold); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(176,125,35,.42); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--lg { padding: 17px 32px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ---------- Hero (dark-luxury moment) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #efe6d4;
  background: radial-gradient(1100px 560px at 78% -8%, #2a2116 0%, transparent 55%),
              radial-gradient(820px 480px at 2% 4%, #1d1810 0%, transparent 52%),
              linear-gradient(165deg, var(--ink-900), var(--ink-800) 60%, #1b150d);
  padding: clamp(76px, 11vw, 124px) 0 clamp(64px, 9vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background: radial-gradient(440px 320px at 24% 16%, rgba(217,155,43,.26), transparent 62%),
              radial-gradient(380px 300px at 84% 26%, rgba(58,111,208,.20), transparent 62%);
  filter: blur(22px); z-index: -1; animation: drift 18s var(--ease-in-out) infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(231,192,116,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(231,192,116,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(80% 62% at 50% 28%, #000, transparent 76%);
          mask-image: radial-gradient(80% 62% at 50% 28%, #000, transparent 76%);
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-26px,0) scale(1.07); } }

.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 { color: #fdf8ee; max-width: 17ch; margin-bottom: .32em; font-weight: 600; }
.hero h1 .grad { color: var(--gold-soft); -webkit-text-fill-color: var(--gold-soft); }
.hero p.lead { font-size: var(--fs-lg); color: #cabfa9; max-width: 54ch; }
.hero .btn--ghost { background: rgba(255,255,255,.05); color: #fdf8ee; border-color: rgba(231,192,116,.30); box-shadow: none; }
.hero .btn--ghost:hover { border-color: var(--gold-soft); color: #fff; background: rgba(255,255,255,.1); }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }
.hero-trust { margin-top: 28px; color: #a99d85; font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.hero-trust .dot { color: var(--gold-soft); font-weight: 800; }

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(231,192,116,.16); border-radius: var(--r); padding: 14px 20px; }
.hero-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fdf8ee; letter-spacing: -.01em; }
.hero-stat span { font-size: var(--fs-xs); color: #a99d85; text-transform: uppercase; letter-spacing: .12em; }

/* Hero device mock */
.hero-visual { position: relative; }
.browser {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden;
  transform: perspective(1500px) rotateY(-9deg) rotateX(4deg);
  transition: transform .55s var(--ease-out); border: 1px solid rgba(255,255,255,.5);
}
.hero-visual:hover .browser { transform: perspective(1500px) rotateY(-4deg) rotateX(2deg) translateY(-4px); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 13px 15px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8cdb6; }
.browser .bar i:nth-child(1){ background:#e0795f; } .browser .bar i:nth-child(2){ background:var(--gold-bright); } .browser .bar i:nth-child(3){ background:#6fae6a; }
.browser .bar .url { margin-left: 8px; flex: 1; height: 18px; border-radius: 6px; background: var(--paper-3); }
.browser .view { padding: 22px; }
.browser .hh { height: 18px; width: 58%; border-radius: 6px; background: var(--ink-800); margin-bottom: 14px; }
.browser .ln { height: 10px; border-radius: 5px; background: var(--paper-2); margin: 9px 0; }
.browser .ln.w80{width:80%;} .browser .ln.w60{width:60%;} .browser .ln.w40{width:40%;}
.browser .cta-chip { display:inline-block; margin-top:14px; height: 36px; width: 138px; border-radius: 9px; background: linear-gradient(140deg,var(--gold-bright),var(--gold)); box-shadow: var(--sh-gold); }
.browser .row3 { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top:18px; }
.browser .tile { height: 56px; border-radius: 10px; background: var(--paper-2); border:1px solid var(--line); }
.float-card {
  position: absolute; bottom: -22px; left: -24px; background: var(--card);
  border-radius: var(--r); padding: 13px 17px; box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink);
  animation: bob 4.5s var(--ease-in-out) infinite alternate; border: 1px solid var(--line);
}
.float-card .pin { width: 38px; height: 38px; border-radius: 10px; background: var(--good-bg); color: var(--good); display:inline-flex;align-items:center;justify-content:center; }
.float-card small { display:block; font-weight:500; color: var(--muted); font-size:.78rem; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 64ch; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lg); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.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(--r-lg);
  padding: 30px; box-shadow: var(--sh-1);
  transition: transform .28s var(--ease-out), box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: #e0d2b4; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: var(--r); margin-bottom: 18px;
  background: var(--card); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--blue);
}

/* ---------- Problem list ---------- */
.problem-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; max-width: 780px; }
.problem-list li {
  padding: 17px 20px 17px 54px; position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); font-weight: 500; color: var(--ink-soft);
}
.problem-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #f6e6e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2543f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Packages ---------- */
.pkg {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--card); box-shadow: var(--sh-1);
  transition: transform .28s var(--ease-out), box-shadow .28s ease;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.pkg--featured { border: 1.5px solid var(--gold); box-shadow: var(--sh-gold); background: linear-gradient(180deg, #fffdf7, var(--card)); position: relative; }
.pkg--featured::before {
  content: "★ Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(140deg, var(--gold-bright), var(--gold)); color: #2a1c00;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 6px 15px; border-radius: var(--r-pill);
  box-shadow: var(--sh-gold); white-space: nowrap;
}
.pkg .badge {
  align-self: flex-start; background: var(--gold-bg); color: var(--gold);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.pkg .price { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--ink); margin: 8px 0 2px; letter-spacing: -.02em; }
.pkg .price small { font-family: var(--font); font-size: .82rem; font-weight: 600; color: var(--muted); }
.pkg ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 13px; }
.pkg ul li { padding-left: 32px; position: relative; }
.pkg ul li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--good-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d4f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.pkg .btn { margin-top: auto; }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: center; }
.case .stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 26px; }
.case .stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 17px 19px; box-shadow: var(--sh-1); }
.case .stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }

/* Phone mockup */
.phone-mock {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); border-radius: 36px; padding: 14px;
  box-shadow: var(--sh-3); max-width: 288px; margin: 0 auto; position: relative;
  transform: rotate(2deg); transition: transform .55s var(--ease-out); border: 1px solid rgba(231,192,116,.18);
}
.case:hover .phone-mock, .hero-visual:hover .phone-mock { transform: rotate(0); }
.phone-mock::before { content:""; position:absolute; top:24px; left:50%; transform:translateX(-50%); width:90px; height:7px; border-radius:6px; background:rgba(231,192,116,.3); z-index:2; }
.phone-mock .screen { background: linear-gradient(180deg,var(--card),var(--paper)); border-radius: 26px; padding: 32px 18px 22px; min-height: 404px; }
.phone-mock .screen .bar { height: 11px; border-radius: 6px; background: var(--paper-2); margin: 11px 0; }
.phone-mock .screen .bar.w70 { width: 70%; } .phone-mock .screen .bar.w50 { width: 50%; }
.phone-mock .screen .chip { display:inline-block; background: linear-gradient(140deg,var(--gold-bright),var(--gold)); color:#2a1c00; font-weight:800; font-size:.78rem; padding:7px 15px; border-radius: var(--r-pill); margin-bottom: 14px; box-shadow: var(--sh-gold); }

/* ---------- Areas we serve ---------- */
.town-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.town-chips li {
  background: var(--card); border: 1px solid var(--line); color: var(--ink); font-family: var(--font);
  font-weight: 600; padding: 11px 20px; border-radius: var(--r-pill); font-size: .95rem; box-shadow: var(--sh-1);
  transition: transform .18s var(--ease-out), border-color .18s ease, color .18s ease;
}
.town-chips li:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }

/* ---------- Storefront motif (imagery with intent) ---------- */
.storefront { display: block; width: 100%; max-width: 760px; margin: 40px auto 0; color: var(--gold); opacity: .9; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(620px 320px at 80% 0%, #2e2415, transparent 60%),
              linear-gradient(140deg, var(--ink-800), var(--ink-900));
  color: #fdf8ee; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 66px); text-align: center; box-shadow: var(--sh-3);
  border: 1px solid rgba(231,192,116,.18);
}
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.6; background-image: radial-gradient(circle at 18% 82%, rgba(217,155,43,.22), transparent 42%); }
.cta-band h2 { color: #fdf8ee; }
.cta-band p { color: #cabfa9; max-width: 52ch; margin: 0 auto 26px; font-size: var(--fs-lg); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); padding: 2px 22px; margin-bottom: 12px; background: var(--card);
  box-shadow: var(--sh-1); transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] { box-shadow: var(--sh-2); border-color: #e0d2b4; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding: 18px 36px 18px 0; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b07d23' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 800px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 42px); box-shadow: var(--sh-2); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--ink); font-size: .95rem; }
.field .req { color: #b2543f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; font-family: var(--font); background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--card); box-shadow: 0 0 0 4px rgba(176,125,35,.14);
}
.field textarea { min-height: 116px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.note { font-size: var(--fs-sm); color: var(--muted); }
.alert { padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 18px; display: none; font-weight: 600; }
.alert--ok { background: var(--good-bg); color: #1d5e38; border: 1px solid #b6d8c0; }
.alert--err { background: #f6e6e1; color: #8a2e1c; border: 1px solid #e6bdb1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data th { background: var(--paper-2); color: var(--ink); font-weight: 700; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--paper); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--ink-800), var(--ink-900)); color: #b3a890; padding: 64px 0 40px; margin-top: 60px; }
.site-footer a { color: #d8cbac; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 38px; margin-bottom: 34px; }
.site-footer .brand { color: #fdf8ee; }
.site-footer .brand .logo { background: rgba(231,192,116,.14); box-shadow: none; color: var(--gold-soft); }
.footer-legal { border-top: 1px solid rgba(231,192,116,.14); padding-top: 24px; font-size: var(--fs-sm); color: #978c75; }
.footer-cols h4 { color: #fdf8ee; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* ---------- 404 ---------- */
.bigcode { font-family: var(--font-display); font-style: italic; font-size: clamp(4.5rem, 15vw, 8rem); font-weight: 600; letter-spacing: -.03em; margin: 0; line-height: 1; color: var(--gold); }

/* ---------- Scroll reveal (rise + soft blur) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); will-change: opacity, transform, filter; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
/* Heading clip-wipe variant */
[data-reveal="mask"] { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; filter: none; transition: clip-path .8s var(--ease-out), opacity .5s var(--ease-out); }
[data-reveal="mask"].in { opacity: 1; clip-path: inset(0 0 -10% 0); }

/* ---------- Responsive (mobile designed, not shrunk) ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; }
  .case { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .float-card { left: 0; }
}
@media (max-width: 760px) {
  /* Mobile-specific decisions, not a squeeze */
  .nav { display: none; }
  .nav--mobile { display: flex; align-items: center; gap: 10px; }
  .nav--mobile .btn { padding: 11px 18px; font-size: .92rem; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .case .stats { grid-template-columns: 1fr 1fr; }
  /* Tighter hero rhythm + stats become a clean 3-up strip on phone */
  .hero { padding-top: 84px; }
  .hero-stats { gap: 10px; }
  .hero-stat { flex: 1; min-width: 0; padding: 12px 14px; text-align: center; }
  .hero-stat b { font-size: 1.25rem; }
  .hero-visual { margin: 0 auto; max-width: 360px; }
  .float-card { bottom: -16px; }
  .btn-row .btn { flex: 1; }
}
@media (max-width: 400px) {
  .hero-stats { flex-direction: column; }
  .hero-stat { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .hero::before, .float-card { animation: none; }
}
