/* ==========================================================================
   MyWebMarketing — Deep Current design system (v2)
   Dark atmosphere, serif display face, drifting sparks, warm-cool accent.
   All colour and type live in :root. Retune the whole site from this block.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Surfaces */
  --bg:         #060A12;
  --bg-raised:  #0A1322;
  --bg-soft:    rgba(255,255,255,0.015);

  /* Ink */
  --ink:        #EEF2F7;
  --ink-dim:    #8896A8;
  --ink-faint:  #5D6B7D;

  /* Accent */
  --accent:     #4C8DFF;
  --accent-2:   #7FE8FF;
  --accent-ink: #04101F;

  /* Semantic */
  --line:         rgba(205,222,245,0.11);
  --line-strong:  rgba(205,222,245,0.22);
  --glow:         rgba(76,141,255,0.18);

  /* Type */
  --display:  "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --t-xs:   0.78rem;
  --t-sm:   0.9rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.3rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.3rem;
  --t-3xl:  3rem;
  --t-4xl:  4rem;

  /* Rhythm */
  --gap:      1.5rem;
  --gap-lg:   2.5rem;
  --section:  clamp(4rem, 9vw, 8rem);
  --shell:    1400px;
  --shell-narrow: 820px;

  /* Form */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 300; }
p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Atmosphere layers (injected on every page)
   -------------------------------------------------------------------------- */

.atmo-layer {
  position: fixed; inset: 0; pointer-events: none;
}
.atmo-glow {
  z-index: 0;
  background: radial-gradient(120% 80% at 50% 108%,
    #4C8DFF 0%, #14448F 20%, #0A1B33 46%, #060A12 78%);
}
.atmo-veil {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(6,10,18,0.66) 0%, rgba(6,10,18,0.34) 38%, rgba(6,10,18,0) 72%),
    linear-gradient(to top,    rgba(6,10,18,0.55) 0%, rgba(6,10,18,0.22) 24%, rgba(6,10,18,0) 46%);
}
#atmo-sparks {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
}
.atmo-grain {
  z-index: 3; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Custom cursor */
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  border-radius: 50%; transform: translate3d(-100px, -100px, 0);
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(205,222,245,0.35);
  transition: width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), border-color .3s var(--ease);
}
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--accent); }
.cursor-ring.is-hot {
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* All real content sits above atmosphere */
header, main, footer { position: relative; z-index: 10; }

/* --------------------------------------------------------------------------
   Shells and utilities
   -------------------------------------------------------------------------- */

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 1.5rem; }
.shell-narrow { max-width: var(--shell-narrow); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) {
  .shell, .shell-narrow { padding-inline: 2.5rem; }
}

main > section { padding-block: var(--section); }

.wash         { background: rgba(255,255,255,0.015); }
.wash-deep    { background: rgba(76,141,255,0.04); }
.on-frost     { color: var(--ink); }

.lede {
  font-size: var(--t-md);
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 60ch;
}

.section-head { margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(2rem, 5.2vw, 4rem);
}
.section-head .lede { margin-top: 1.2rem; }

.page-head {
  padding-block: calc(var(--section) * 0.9) var(--section);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}
.page-head .lede { margin-top: 1.5rem; max-width: 54ch; }

.crumbs {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--ink-dim); transition: color .3s ease; }
.crumbs a:hover { color: var(--ink); }

.tight > * + * { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Prose (blog, legal pages)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.prose p { color: var(--ink); }
.prose p + p,
.prose p + ul, .prose p + ol,
.prose ul + p, .prose ol + p,
.prose p + h2, .prose p + h3 { margin-top: 1.3rem; }
.prose h2 {
  font-family: var(--display); font-weight: 300; letter-spacing: -0.01em;
  font-size: 1.9rem; line-height: 1.15; margin-top: 2.6rem; margin-bottom: .6rem;
}
.prose h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 1.35rem; line-height: 1.2; margin-top: 2rem; margin-bottom: .5rem;
}
.prose ul, .prose ol { padding-left: 1.3rem; margin-top: .8rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4rem; }
.prose a {
  color: var(--accent); border-bottom: 1px solid rgba(76,141,255,0.4);
  transition: border-color .3s ease, color .3s ease;
}
.prose a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .4rem 0 .4rem 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-dim);
  font-style: italic;
}
.prose table {
  display: block; width: 100%; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-raised);
  border-collapse: collapse; font-size: .88rem; line-height: 1.5;
}
.prose th, .prose td {
  padding: .75rem .9rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
  min-width: 9rem;
}
.prose tr:last-child td { border-bottom: 0; }
.prose th {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 400;
  border-bottom-color: var(--line-strong);
}
.prose td { color: var(--ink); }
.prose code {
  background: var(--bg-raised);
  padding: .1rem .4rem; border-radius: 4px;
  font-family: var(--mono); font-size: 0.92em;
}

.source-note {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Masthead / nav
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,10,18,0.75);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.5rem;
}
@media (min-width: 768px) { .masthead-inner { padding: 1rem 2.5rem; } }

.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  font-size: .86rem;
}
.wordmark-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; color: var(--accent);
}
.wordmark-mark svg { width: 24px; height: 24px; }

.burger {
  display: inline-flex; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: var(--ink); border-radius: var(--r-sm);
}
.burger svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .burger { display: none; } }

.nav {
  display: none;
}
@media (min-width: 1024px) {
  .nav {
    display: flex; align-items: center; gap: 1.5rem;
  }
}
.nav > a {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .82;
  padding: .5rem 0;
  transition: opacity .3s ease;
}
.nav > a:hover { opacity: .55; }

.nav.open {
  display: flex; flex-direction: column;
  position: fixed; inset: 0;
  background: rgba(6,10,18,.97);
  backdrop-filter: blur(12px);
  padding: 6rem 2rem 2rem;
  gap: .25rem; z-index: 60;
}
.nav.open > a {
  font-family: var(--display); font-weight: 300;
  font-size: 2rem; text-transform: none; letter-spacing: -0.01em;
  padding-block: .4rem; opacity: .9;
}
.nav.open > a:hover { color: var(--accent); opacity: 1; }

.nav-tools {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .nav-tools { margin-top: 0; margin-left: 1rem; }
}

/* Language switch */
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink);
  transition: border-color .3s ease, background .3s ease;
}
.lang-trigger:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.03); }
.lang-trigger svg:first-child {
  width: 20px; height: 12px; border-radius: 2px; overflow: hidden;
}
.lang-trigger svg:last-child { width: 14px; height: 14px; opacity: .6; }
.lang-flag { border-radius: 2px; }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 160px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .4rem;
  display: none;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  color: var(--ink);
  transition: background .2s ease;
}
.lang-menu a:hover { background: rgba(255,255,255,0.04); }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu svg { width: 18px; height: 11px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .95rem 1.9rem; font-size: .95rem; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 5rem 4rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-block: 7rem 6rem; } }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18;
  z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,0) 0%, rgba(6,10,18,0.3) 50%, rgba(6,10,18,0.8) 100%);
  z-index: 1;
}

.hero .shell { position: relative; z-index: 2; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    gap: 4rem;
  }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero .lede { margin-top: 1.5rem; font-size: 1.05rem; }
.hero .lede strong { color: var(--ink); font-weight: 500; }

.hero-trust {
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: 2.2rem;
  font-size: .88rem;
  color: var(--ink-dim);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: .55rem;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Readout panel (right-side meters on homepage) */
.readout {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(10,19,34,0.6);
  backdrop-filter: blur(8px);
}
.readout-title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.readout-sub {
  margin-top: .6rem; font-size: .88rem; color: var(--ink-dim); line-height: 1.5;
}
.meter { margin-top: 1.2rem; }
.meter-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .4rem;
}
.meter-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
}
.meter-value {
  font-family: var(--display); font-weight: 300; font-size: 1.1rem;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.meter-track {
  height: 3px; background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.meter-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.4s var(--ease);
}

/* --------------------------------------------------------------------------
   Grids and cards
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.5rem; }
.g-2 { grid-template-columns: minmax(0, 1fr); }
.g-3 { grid-template-columns: minmax(0, 1fr); }
.g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
@media (max-width: 420px) {
  .g-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  overflow-wrap: break-word; hyphens: auto;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .4s ease, background .4s ease, transform .4s var(--ease);
}
.card:hover {
  border-color: rgba(76,141,255,0.3);
  background: rgba(255,255,255,0.025);
}
.card-icon {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(76,141,255,0.1);
  color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em;
}
.card p { color: var(--ink-dim); font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: .5rem;
  color: var(--accent); font-size: .88rem;
  transition: opacity .3s ease;
}
.card-link:hover { opacity: .7; }
.card-link svg { width: 14px; height: 14px; }

/* Stats */
.stat {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.stat-figure {
  font-family: var(--display); font-weight: 300;
  color: var(--accent);
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-name {
  margin-top: .9rem;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.stat p { margin-top: .4rem; font-size: .82rem; color: var(--ink-dim); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Work grid (portfolio)
   -------------------------------------------------------------------------- */

.work {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color .4s ease, transform .5s var(--ease);
}
.work:hover { border-color: rgba(76,141,255,0.3); }
.work-shot {
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #0E1B30 0%, #132949 48%, #0A1424 100%);
  color: rgba(238,242,247,0.25);
  font-family: var(--display); font-weight: 300; font-size: 1.1rem;
  padding: 1rem; text-align: center;
  overflow: hidden;
}
.work-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.work-body h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em;
}
.work-body p { color: var(--ink-dim); font-size: .9rem; }
.work-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .3rem;
}
.tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(205,222,245,0.08); color: var(--ink-dim);
}
.tag-own { background: rgba(76,141,255,0.15); color: var(--accent); }

/* --------------------------------------------------------------------------
   Reviews marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative; z-index: 10;
  overflow: hidden;
  padding-block: 2rem;
  border-block: 1px solid var(--line);
  background: rgba(0,0,0,0.1);
}
.marquee-track {
  display: flex; gap: 1.5rem;
  animation: marquee 60s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.review {
  flex: none;
  width: min(360px, 80vw);
  margin: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: .9rem;
}
.review-stars { display: inline-flex; gap: .15rem; color: var(--accent); }
.review-stars svg { width: 14px; height: 14px; fill: currentColor; }
.review blockquote { margin: 0; }
.review blockquote p {
  font-size: .95rem; line-height: 1.6; color: var(--ink);
  font-style: italic;
}
.review-by {
  font-size: .82rem; color: var(--ink-dim);
  display: flex; flex-direction: column; gap: .15rem;
}
.review-by strong { color: var(--ink); font-weight: 500; font-style: normal; }

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

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display); font-weight: 300;
  font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display); font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div {
  padding-bottom: 1.5rem;
  max-width: 60ch;
  color: var(--ink-dim); font-size: .96rem; line-height: 1.65;
}
.faq details > div p + p { margin-top: .8rem; }

/* --------------------------------------------------------------------------
   Pricing / tiers
   -------------------------------------------------------------------------- */

.tier {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}
.tier-featured {
  border-color: rgba(76,141,255,0.4);
  background: rgba(76,141,255,0.04);
}
.tier-flag {
  position: absolute; top: -12px; right: 1.5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: .3rem .7rem; border-radius: 999px;
}
.tier-name {
  font-family: var(--display); font-weight: 300;
  font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em;
}
.tier-price {
  font-family: var(--display); font-weight: 300;
  font-size: 2.4rem; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tier-note {
  font-size: .82rem; color: var(--ink-dim);
}
.tier ul { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.tier ul li {
  padding-left: 1.5rem; position: relative;
  font-size: .92rem; color: var(--ink);
}
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(76,141,255,0.2); border: 1px solid var(--accent);
}
.tier .btn { margin-top: auto; }

/* Matrix table */
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix th, .matrix td {
  padding: .9rem 1rem; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.matrix thead th {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
  border-bottom-color: var(--line-strong);
}
.matrix td.yes { color: var(--accent); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.calc > * { min-width: 0; }
@media (min-width: 1024px) {
  .calc { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 3rem; align-items: start; }
}

.calc-group {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.calc-group:first-child { border-top: 0; padding-top: 0; }
.calc-group h3 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 1rem;
}

.calc-opt {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  margin-bottom: .6rem;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}
.calc-opt:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.02); }
.calc-opt input {
  margin-top: .25rem; accent-color: var(--accent); flex: none;
}
.calc-opt:has(input:checked) {
  border-color: rgba(76,141,255,0.4);
  background: rgba(76,141,255,0.05);
}
.calc-opt-name { display: block; font-weight: 500; color: var(--ink); font-size: .95rem; }
.calc-opt-name small { display: block; margin-top: .25rem; font-weight: 400; color: var(--ink-dim); font-size: .82rem; }
.calc-opt-price {
  flex: none; margin-left: auto;
  font-family: var(--display); font-weight: 300; color: var(--accent);
  font-size: 1.05rem; font-variant-numeric: tabular-nums;
}

.calc-stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  margin-bottom: .6rem;
}
.calc-stepper > div:first-child { flex: 1; }
.step-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(76,141,255,0.1);
  color: var(--accent);
  font-size: 1.1rem; line-height: 1;
  transition: background .3s ease;
}
.step-btn:hover { background: rgba(76,141,255,0.2); }
.step-count {
  display: inline-block;
  min-width: 2ch; text-align: center;
  font-family: var(--display); font-weight: 300; font-size: 1.3rem;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* Options column (left) */
.calc-panel {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
}
@media (max-width: 480px) { .calc-panel { padding: 1.2rem; } }
.calc-opt-name, .calc-stepper > div:first-child { min-width: 0; overflow-wrap: anywhere; }

/* Summary card (right on desktop, below on mobile) */
.calc-total {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
}
@media (min-width: 1024px) {
  .calc-total { position: sticky; top: 6rem; }
}
.calc-total h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 1.35rem; color: var(--ink);
  margin-bottom: 1.1rem;
}
#calc-lines {
  display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: 1.2rem;
  max-height: 300px; overflow-y: auto;
}
#calc-lines li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .88rem; color: var(--ink-dim);
}
#calc-lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
#calc-lines li span:last-child {
  color: var(--ink); font-variant-numeric: tabular-nums; flex: none;
}
.calc-sum {
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: .5rem 1rem;
  margin-bottom: .4rem;
}
.calc-sum-label {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
}
.calc-sum-value {
  font-family: var(--display); font-weight: 300;
  font-size: 2.2rem; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.calc-disclaimer {
  margin: .6rem 0 1.4rem; font-size: .78rem; color: var(--ink-faint); line-height: 1.5;
}
.calc-total .btn { white-space: normal; text-align: center; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-shell {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .3s ease, background .3s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  background: rgba(76,141,255,0.03);
}
.field-row {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent {
  display: flex; gap: .6rem; font-size: .82rem; color: var(--ink-dim);
  margin-bottom: 1.1rem; line-height: 1.5;
}
.consent input { margin-top: .25rem; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.consent a:hover { color: var(--accent-2); }

.honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(76,141,255,0.1); color: var(--accent); border: 1px solid rgba(76,141,255,0.3); }
.form-status.err { background: rgba(255,120,120,0.08); color: #ff8f8f; border: 1px solid rgba(255,120,120,0.3); }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color .4s ease, transform .5s var(--ease);
}
.post-card:hover { border-color: rgba(76,141,255,0.3); }
.post-card-shot {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, #0E1B30 0%, #132949 48%, #0A1424 100%);
  display: grid; place-items: center;
  color: rgba(238,242,247,0.25);
  font-family: var(--display); font-weight: 300; font-size: .95rem;
  padding: 1rem; text-align: center;
}
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em;
}
.post-card p { color: var(--ink-dim); font-size: .9rem; }
.post-meta, .post-date {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
  margin-top: var(--section);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer .wordmark { color: var(--ink); }
.footer-blurb {
  margin-top: 1rem; max-width: 36ch;
  font-size: .9rem; color: var(--ink-dim); line-height: 1.65;
}
.footer-entity {
  margin-top: 1rem;
  font-size: .76rem; color: var(--ink-faint); line-height: 1.55;
}
.footer-title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); font-weight: 500;
  margin-bottom: 1rem;
}
.footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer ul a {
  font-size: .9rem; color: var(--ink-dim);
  transition: color .3s ease;
}
.footer ul a:hover { color: var(--ink); }
.footer address { font-style: normal; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--ink-dim); }
.footer address strong { color: var(--ink); font-weight: 500; }
.footer address a { color: var(--ink-dim); transition: color .3s ease; }
.footer address a:hover { color: var(--accent); }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
  justify-content: space-between;
  font-size: .78rem; color: var(--ink-faint);
}
@media (min-width: 768px) { .footer-base { flex-direction: row; align-items: center; } }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
}
.footer-legal a { color: var(--ink-faint); transition: color .3s ease; }
.footer-legal a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Reveal (used by scripts.js)
   -------------------------------------------------------------------------- */

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-item.revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-item { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
