/* Dexter — thedexterapp.com
   Design tokens extracted from the Squarespace theme during the 2026-08
   migration. Edit tokens here, not in pages. */

:root {
  --coral: #f36667;          /* accent / primary CTA (Squarespace safeDarkAccent) */
  --coral-dark: #e14e4f;
  --teal: #56c0c2;           /* secondary accent (darkAccent) */
  --ink: #0e0e0e;            /* headings / body */
  --gray: #3e3e3e;           /* secondary text */
  --light: #f9f9f9;          /* tinted section background (lightAccent) */
  --line: #e7e7e7;           /* borders */
  --white: #ffffff;

  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;

  --radius-card: 16px;
  --radius-hero: 32px;       /* the big rounded frame on section tops */
  --pad-section: clamp(48px, 8vw, 96px);
  --site-width: 1100px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--site-width); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--coral-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--coral); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: var(--pad-section) 0; }
.section--light { background: var(--light); }
.section-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-intro p { color: var(--gray); }

/* Hero */
.hero { padding: var(--pad-section) 0 0; text-align: center; }
.hero .lede { max-width: 640px; margin: 0 auto 24px; color: var(--gray); font-size: 1.1rem; }
.hero .stars { color: var(--gray); font-size: 0.95rem; margin: 16px 0 40px; }
.hero .stars strong { color: var(--ink); }
/* the rounded, coral-bordered frame the screenshot sits in (mirrors #dexter-cool) */
.hero-frame {
  width: min(80%, 900px);
  margin: 0 auto;
  border: 2px solid var(--coral);
  border-bottom: none;
  border-radius: var(--radius-hero) var(--radius-hero) 0 0;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 56px) 0;
  position: relative;
}
.hero-frame img { margin: 0 auto; }

/* Logo strip */
.logo-strip { padding: 40px 0; }
.logo-strip p {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.logo-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.logo-strip img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li { text-align: center; }
.steps img {
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.steps h3 { color: var(--coral); font-size: 1rem; margin-bottom: 4px; }
.steps p { color: var(--gray); font-size: 0.95rem; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: 40px 0;
}
.feature h3 { font-size: 1.6rem; }
.feature p { color: var(--gray); }
.feature img { border-radius: var(--radius-card); }
.feature--flip .feature-media { order: 2; }

/* Review cards */
.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reviews li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.reviews .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviews .who img { height: 32px; width: auto; }
.reviews .rating { color: var(--coral); letter-spacing: 2px; margin-bottom: 10px; }
.reviews p { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* Closing CTA band */
.cta-band {
  background: var(--light);
  text-align: center;
  padding: var(--pad-section) 24px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { max-width: 640px; margin: 0 auto 28px; }
.cta-band .squiggle {
  position: absolute;
  top: -20px;
  left: 5%;
  width: 120px;
  pointer-events: none;
}
.cta-band .half-circle {
  position: absolute;
  bottom: 0;
  right: 65px;
  width: 90px;
  pointer-events: none;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--coral);
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}
.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0 0 8px;
}
.price-card ul { margin: 0 0 24px; padding-left: 22px; }
.price-card li { margin-bottom: 8px; color: var(--gray); }

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::after { content: "+"; color: var(--coral); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--gray); margin: 12px 0 0; }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}
.contact-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.7; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}

/* ── Blog ──────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-card a { text-decoration: none; display: block; }
.post-card .cover {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 16px;
}
.post-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.post-card a:hover h2 { color: var(--coral); }
.post-card time { color: var(--gray); font-size: 0.85rem; }

.article { max-width: 720px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header time { color: var(--gray); font-size: 0.9rem; }
.article-header h1 { margin: 8px 0 0; }
.article img { border-radius: var(--radius-card); margin: 28px auto; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article a { color: var(--coral); }
.article blockquote {
  border-left: 3px solid var(--coral);
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  color: var(--gray);
}
.article table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article th { background: var(--light); }
.table-scroll { overflow-x: auto; }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal-copy { max-width: 760px; margin: 0 auto; }
.legal-copy h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-copy h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal-copy p, .legal-copy li { color: var(--gray); font-size: 0.97rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ── Utility ───────────────────────────────────────────────────── */
.center { text-align: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--white);
  padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 50; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-frame { width: 94%; }
}
