/* ============================================
   Florida Contractor Prep — styles.css
   v4 · Production stylesheet · no framework
   ============================================ */

/* -------- Design tokens -------- */
:root {
  --paper: #f7f3ec;
  --paper-2: #ece5d6;
  --ink: #0f0e0d;
  --accent: #ff6a1a;
  --ocean: #1f3bff;
  --muted: #6b6660;
  --line: #d9d2c4;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --max: 1280px;
  --gap: 24px;

  --font-sans: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }

/* -------- Typography -------- */
.serif {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.serif-it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.mono {
  font-family: var(--font-mono);
}
.num {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.6;
}

.highlight {
  background-image: linear-gradient(transparent 62%, rgba(255,106,26,0.55) 62% 92%, transparent 92%);
  padding: 0 4px;
}

/* The signature circled phrase — used on "four months" */
.circle-hand {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.circle-hand::before {
  content: "";
  position: absolute;
  inset: -10px -18px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-6deg);
  pointer-events: none;
}

/* -------- Layout -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-hero { grid-template-columns: 1fr; }
.grid-split { grid-template-columns: 1fr; }
@media (min-width: 780px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-hero { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; }
  .grid-split { grid-template-columns: 2fr 1fr; gap: 48px; }
}

.section { padding: 80px 0; }
.section-lg { padding: 112px 0; }
@media (max-width: 780px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
}

/* -------- Ticker (marquee) -------- */
.ticker-bar {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1.5px solid #000;
}
.ticker {
  display: flex;
  white-space: nowrap;
  padding: 8px 0;
  animation: ticker 44s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.ticker span { padding: 0 24px; }
.ticker .bullet { color: var(--accent); padding: 0 4px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -------- Nav -------- */
.glass {
  background: rgba(247,243,236,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(15,14,13,0.10);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark-letter {
  font-family: var(--font-serif);
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.logo-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1; }
.logo-tag   { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.7; margin-top: 4px; }

.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
}
.nav-links a:hover { opacity: 0.7; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-login { display: none; font-size: 14px; }
@media (min-width: 900px) { .nav-login { display: inline; } }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.btn-ink    { background: var(--ink);    color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.btn-ghost  { background: transparent;   color: var(--ink); }
.btn-ink:hover    { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--accent); }
.btn-accent:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost:hover  { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* -------- Pill / stamp / kbd -------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
}
.pill-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.pill-ink    { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.stamp {
  display: inline-block;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  transform: rotate(-6deg);
  font-weight: 500;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff;
  color: var(--ink);
}

/* -------- Cards -------- */
.card {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-hover:hover        { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.card-hover-accent:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--accent); }
.card-body { padding: 32px; }
.card-ink  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* -------- Hero -------- */
.grid-dots {
  background-image: radial-gradient(#0f0e0d14 1px, transparent 1px);
  background-size: 22px 22px;
}
.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}
.hero-section { position: relative; }
.hero-bg { position: absolute; inset: 0; opacity: 0.6; }
.hero-content { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero-title {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.92;
  font-size: clamp(56px, 9vw, 128px);
  max-width: 1100px;
}
.hero-sub { font-size: 19px; line-height: 1.45; max-width: 620px; }
@media (min-width: 780px) { .hero-sub { font-size: 20px; } }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* -------- Product plate -------- */
.plate {
  margin-top: 64px;
  overflow: hidden;
}
.plate-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .plate-grid { grid-template-columns: 1.2fr 1fr; } }
.plate-left  { padding: 40px; }
.plate-right { padding: 40px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.plate-video {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* -------- Manifesto (dark) -------- */
.dark-block { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.dark-block .blur-blob {
  position: absolute;
  right: -120px; top: 40px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(96px);
  opacity: 0.25;
  pointer-events: none;
}
.principle { border-left: 2px solid var(--accent); padding-left: 24px; }
.principle-label { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.principle-title { font-family: var(--font-serif); font-weight: 800; font-size: 26px; margin-top: 12px; line-height: 1.05; letter-spacing: -0.02em; }
@media (min-width: 780px) { .principle-title { font-size: 30px; } }
.principle-body { opacity: 0.75; margin-top: 12px; line-height: 1.55; font-size: 15px; }

/* -------- Rule / divider -------- */
.rule { border-top: 1.5px solid var(--ink); }
.thinrule { border-top: 1px solid var(--line); }
.rule-soft { border-top: 1px solid rgba(247,243,236,0.2); }

/* -------- FAQ -------- */
.faq { border-top: 1px solid rgba(15,14,13,0.2); border-bottom: 1px solid rgba(15,14,13,0.2); }
.faq-item { padding: 22px 0; border-bottom: 1px solid rgba(15,14,13,0.15); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; }
.faq-a { margin-top: 8px; font-size: 14px; opacity: 0.8; line-height: 1.55; }

/* -------- Testimonial strip -------- */
.tstrip {
  border-top: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  background: var(--paper-2);
}
.tquote {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 880px;
}

/* -------- Footer -------- */
.footer { background: var(--ink); color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px 0;
  font-size: 14px;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer ul li { margin-bottom: 8px; opacity: 0.8; }
.footer ul li a:hover { opacity: 1; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------- Stats -------- */
.stat-card { padding: 28px; }
.stat-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.6; }
.stat-num   { font-family: var(--font-serif); font-weight: 900; letter-spacing: -0.04em; font-size: 64px; margin-top: 12px; line-height: 1; }
.stat-body  { margin-top: 12px; font-size: 14px; opacity: 0.8; }

/* -------- Forms -------- */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.input {
  border: 1.5px solid var(--ink);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 13px 20px;
  width: 320px;
  max-width: 100%;
  font-size: 15px;
}
.input:focus { outline: 3px solid rgba(255,106,26,0.25); outline-offset: 2px; }

/* -------- Utilities -------- */
.hidden-mobile { display: none; }
@media (min-width: 780px) { .hidden-mobile { display: inline; } }
.hidden-desktop { display: inline; }
@media (min-width: 780px) { .hidden-desktop { display: none; } }

.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }

.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 840px; }
.max-w-xl { max-width: 1040px; }

.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex { display: flex; }
.flex-col { flex-direction: column; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Page-specific — big CTA section */
.big-cta {
  text-align: center;
  padding: 112px 0;
  border-top: 1.5px solid #000;
  position: relative;
}
.big-cta .stamp-a { position: absolute; left: 40px; top: 40px; }
.big-cta .stamp-b { position: absolute; right: 40px; top: 64px; transform: rotate(8deg); }
@media (max-width: 780px) {
  .big-cta .stamp-a, .big-cta .stamp-b { display: none; }
}
.big-cta h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-size: clamp(56px, 11vw, 140px);
}

/* Accent text utility */
.accent { color: var(--accent); }
.ink { color: var(--ink); }

/* Page header (for non-home pages) */
.page-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 960px;
}
.page-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.6;
  margin-bottom: 16px;
}
.page-lede { font-size: 19px; margin-top: 20px; max-width: 680px; line-height: 1.45; }

/* Blog post body */
.prose { max-width: 680px; }
.prose p { font-size: 18px; line-height: 1.65; margin-bottom: 20px; }
.prose h2 { font-family: var(--font-serif); font-weight: 800; font-size: 36px; margin: 48px 0 16px; letter-spacing: -0.025em; }
.prose h3 { font-family: var(--font-serif); font-weight: 700; font-size: 24px; margin: 32px 0 12px; letter-spacing: -0.02em; }
.prose ul { margin-bottom: 20px; padding-left: 0; }
.prose ul li { font-size: 18px; line-height: 1.6; margin-bottom: 8px; padding-left: 22px; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin: 32px 0;
  line-height: 1.4;
}
.prose a { border-bottom: 1.5px solid var(--accent); }
.prose a:hover { background: rgba(255,106,26,0.12); }

/* Blog card */
.post-card {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--accent); }
.post-card h3 { font-family: var(--font-serif); font-weight: 800; font-size: 26px; letter-spacing: -0.025em; margin-top: 8px; }
.post-card .meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.7; }
.post-card p { margin-top: 12px; font-size: 15px; line-height: 1.55; opacity: 0.85; }

/* 404 */
.fourohfour {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.fourohfour h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
