/* Symphina — site styles. No build step; edit directly. */

/* Self-hosted variable fonts (SIL Open Font License 1.1), Latin subset. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --field: #f1f4ef;      /* page background, cool sage-white */
  --field-2: #e4ebe5;    /* banded sections */
  --ink: #17302b;        /* text, deep pine */
  --pine: #1f6b57;       /* links, buttons */
  --pine-dark: #134a3c;
  --marigold: #f0b429;   /* the comparison handle, used sparingly */
  --stone: #56635e;      /* secondary text */
  --line: #c9d4cc;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 750; letter-spacing: -0.035em; max-width: 17ch; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }

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

.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 {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 76rem; }
.narrow { max-width: 46rem; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }

.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-header nav a {
  font-family: var(--display); font-size: 1rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.site-header nav a:hover { color: var(--pine); }
.site-header nav a.nav-cta {
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.95rem;
}
.site-header nav a.nav-cta:hover { background: var(--ink); color: var(--field); }

@media (max-width: 720px) {
  .site-header li:not(:last-child) { display: none; }
}

/* Buttons */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 0; }

.button {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  background: var(--pine); color: #fff; text-decoration: none;
  padding: 0.9rem 1.5rem; border-radius: 999px;
}
.button:hover { background: var(--pine-dark); color: #fff; }

.button-light { background: var(--marigold); color: var(--ink); }
.button-light:hover { background: #ffd166; color: var(--ink); }

.text-link { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }

/* Hero */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--stone); max-width: 38rem; margin-top: 1.5rem; }

/* Before / after comparison */

.compare { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }

.stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(23, 48, 43, 0.45);
  outline: 1px solid var(--line);
  user-select: none;
}
@media (max-width: 640px) { .stage { aspect-ratio: 3 / 4; } }

.compare figcaption { font-size: 0.95rem; color: var(--stone); margin-top: 0.9rem; }

.mock { position: absolute; inset: 0; container-type: inline-size; display: flex; flex-direction: column; }

.mock-old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.browser-bar {
  flex: none; display: flex; align-items: center; gap: 0.45em;
  height: 2.2rem; padding: 0 0.9rem;
  background: #e7e9e6; border-bottom: 1px solid #d3d7d3;
  font: 0.78rem/1 system-ui, sans-serif; color: #6b736f;
}
.browser-bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #c6cbc7; }
.browser-bar em { font-style: normal; margin-left: 0.9rem; background: #fff; padding: 0.3rem 0.8rem; border-radius: 999px; }

.divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: var(--marigold);
  pointer-events: none;
}
.handle {
  position: absolute; top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--marigold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.handle::before, .handle::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border: 0.4rem solid transparent; transform: translateY(-50%);
}
.handle::before { left: 0.45rem; border-right-color: var(--ink); }
.handle::after { right: 0.45rem; border-left-color: var(--ink); }

.stage:has(.compare-range:focus-visible) .handle { outline: 3px solid var(--ink); outline-offset: 3px; }

.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 2.75rem; height: 100vh; }
.compare-range::-moz-range-thumb { width: 2.75rem; height: 100vh; border: 0; }

.tag {
  position: absolute; bottom: 0.9rem; z-index: 2; pointer-events: none;
  font-family: var(--display); font-size: 0.85rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.tag-before { left: 0.9rem; }
.tag-after { right: 0.9rem; background: var(--marigold); color: var(--ink); }

/* The "before" site: a 2014-era small-business page. Sized in cqw so it shrinks like a screenshot. */

.ow {
  flex: 1; overflow: hidden;
  background: #9a9a9a repeating-linear-gradient(45deg, #a3a3a3 0 6px, #969696 6px 12px);
  font-family: "Times New Roman", Times, serif; color: #000;
  font-size: 1.6cqw; padding: 1.5cqw 6cqw;
}
.ow-banner {
  background: linear-gradient(#2b3fa8, #0b1a6b); color: #ffef3a;
  font: bold 3.6cqw/1 Impact, "Arial Black", sans-serif; letter-spacing: 0.08em;
  text-align: center; padding: 2cqw 0; border: 0.4cqw outset #8a9ae0;
  text-shadow: 0.25cqw 0.25cqw 0 #000;
}
.ow-body { display: flex; background: #fff; border: 0.3cqw solid #000; border-top: 0; min-height: 100%; }
.ow-nav { width: 20%; background: #d6d6d6; padding: 1.2cqw; display: flex; flex-direction: column; gap: 0.7cqw; }
.ow-nav span {
  display: block; background: #c0c0c0; border: 0.3cqw outset #eee;
  font: 1.35cqw Arial, sans-serif; color: #00e; text-decoration: underline; padding: 0.5cqw; text-align: center;
}
.ow-main { flex: 1; padding: 1.5cqw 2.5cqw; text-align: center; }
.ow-main p { margin: 0 0 1.2cqw; }
.ow-welcome { font: italic bold 2.8cqw "Comic Sans MS", "Comic Sans", cursive; color: #c00000; }
.ow-uc {
  display: inline-block; font: bold 1.4cqw Arial, sans-serif; padding: 0.6cqw 1.4cqw;
  background: repeating-linear-gradient(-45deg, #ffd200 0 1cqw, #000 1cqw 2cqw); color: #fff;
  text-shadow: 0 0 0.4cqw #000;
}
.ow-small { font-size: 1.15cqw; color: #333; }
.ow-counter span { font-family: "Courier New", monospace; background: #000; color: #3f3; padding: 0 0.6cqw; letter-spacing: 0.15em; }

/* The "after" site: the rebuilt version. Uses its own brand colors, not Symphina's. */

.nw {
  flex: 1; overflow: hidden; background: #fff; color: #1b2a41;
  font-family: var(--display); font-size: 1.5cqw;
}
.nw-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2cqw 4cqw; border-bottom: 1px solid #e6e8ec;
}
.nw-top strong { font-size: 2cqw; font-weight: 750; letter-spacing: -0.02em; }
.nw-links { display: flex; gap: 2.5cqw; }
.nw-links i { font-style: normal; color: #4a5568; }
.nw-hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 4cqw; align-items: center;
  padding: 5cqw 4cqw 4cqw; background: linear-gradient(#f6f7f9, #fff);
}
.nw-kicker { color: #c8352e; font-weight: 600; margin: 0 0 1cqw; }
.nw-title { font-size: 4.2cqw; font-weight: 750; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 2.5cqw; }
.nw-cta { display: flex; gap: 1.5cqw; margin: 0; }
.nw-cta b { background: #c8352e; color: #fff; font-weight: 600; padding: 1.1cqw 2cqw; border-radius: 0.8cqw; }
.nw-cta b.ghost { background: transparent; color: #1b2a41; box-shadow: inset 0 0 0 0.2cqw #1b2a41; }
.nw-card {
  background: #1b2a41; color: #fff; border-radius: 1.4cqw; padding: 2.5cqw;
  font-family: var(--text);
}
.nw-card p { margin: 0 0 0.8cqw; color: #cfd6e2; }
.nw-card p:first-child { color: #fff; font-family: var(--display); font-size: 1.9cqw; }
.nw-card b { color: #7ee2a8; }
.nw-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5cqw; padding: 0 4cqw; }
.nw-services span { border: 1px solid #e3e6eb; border-radius: 1cqw; padding: 2cqw 1.6cqw; font-weight: 600; }

/* When the comparison is narrow (phones), the rebuilt site switches to its phone layout.
   The original stays a shrunken desktop page, which is how old sites behave on phones. */
@container (max-width: 560px) {
  .nw { font-size: 3.6cqw; }
  .nw-top { padding: 4cqw 5cqw; }
  .nw-top strong { font-size: 4.6cqw; }
  .nw-links { display: none; }
  .nw-hero { grid-template-columns: 1fr; padding: 7cqw 5cqw 5cqw; gap: 5cqw; }
  .nw-kicker { margin-bottom: 2cqw; }
  .nw-title { font-size: 8.5cqw; margin-bottom: 5cqw; }
  .nw-cta { flex-direction: column; gap: 2.5cqw; }
  .nw-cta b { display: block; text-align: center; padding: 3cqw; border-radius: 2cqw; }
  .nw-card { border-radius: 3cqw; padding: 4.5cqw; }
  .nw-card p { margin-bottom: 1.5cqw; }
  .nw-card p:first-child { font-size: 4.4cqw; }
  .nw-services { grid-template-columns: 1fr 1fr; gap: 2.5cqw; padding: 0 5cqw 5cqw; }
  .nw-services span { padding: 3.5cqw; border-radius: 2cqw; }
}

/* Sections */

main > section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band { background: var(--field-2); }

.section-lede { font-size: 1.2rem; color: var(--stone); max-width: 40rem; margin-top: -0.5rem; margin-bottom: 2.5rem; }

/* How it works: a real sequence, so it's numbered */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-weight: 750; font-size: 2.6rem; line-height: 1;
  color: var(--pine); margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { font-size: 1.02rem; color: var(--stone); margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Two-column text sections */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem clamp(2rem, 6vw, 5rem); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.points { margin: 0; }
.points dt { font-family: var(--display); font-weight: 650; font-size: 1.2rem; margin-top: 1.4rem; }
.points dt:first-child { margin-top: 0; }
.points dd { margin: 0.3rem 0 0; color: var(--stone); max-width: 34rem; }

.cost h2 { margin-bottom: 1rem; }
.cost .two-col > div:first-child p { font-size: 1.2rem; color: var(--stone); }

/* Fit */

.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; } }

.fit { background: var(--field); border-radius: 10px; padding: 1.6rem 1.6rem 1.2rem; border-left: 6px solid var(--line); }
.fit-yes { border-left-color: var(--pine); }
.fit-maybe { border-left-color: var(--marigold); }
.fit-no { border-left-color: #a6b1ab; }
.fit h3 { margin-bottom: 0.8rem; }
.fit ul { margin: 0; padding-left: 1.1rem; }
.fit li { margin-bottom: 0.45rem; }
.fit-no li { color: var(--stone); }

/* Questions */

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  padding: 1.15rem 2.5rem 1.15rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--pine); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--stone); padding-bottom: 0.5rem; max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */

.contact { background: var(--ink); color: var(--field); }
.contact h2 { color: #fff; max-width: 18ch; }
.contact p { font-size: 1.25rem; color: #c6d3cd; max-width: 36rem; }
.contact .button-light:focus-visible { outline-color: var(--marigold); }

/* Footer */

.site-footer { background: var(--ink); color: #9fb2aa; border-top: 1px solid #2c4a43; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; font-family: var(--display); }

/* 404 */

.not-found { padding: clamp(4rem, 12vw, 8rem) 0; }
.not-found p { color: var(--stone); font-size: 1.2rem; max-width: 34rem; margin-top: 1.25rem; }
