/* Floqque site styles. One file for every page. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand: #1ba3de;        /* logo blue: fills, borders, icons */
  --brand-ink: #0b6e9e;    /* blue for links and text (readable on white) */
  --brand-deep: #0a3d5c;   /* dark blue: footer, headings on light fills */
  --accent: #c93a33;       /* call-to-action buttons */
  --accent-hover: #a82f29;
  --ink: #1f2d3d;
  --muted: #5a6b7b;
  --line: #dbe5ec;
  --bg: #ffffff;
  --bg-soft: #f3f8fb;
  --bg-tint: #e6f4fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 61, 92, 0.08);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--brand-deep); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead, .center.narrow { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 0.5em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8em 1.5em; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--accent); transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost:hover { background: var(--brand-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { width: 160px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brand-deep); }
.menu-btn svg { width: 28px; height: 28px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-ink); background: var(--bg-tint); }
.nav .cta a { background: var(--accent); color: #fff; margin-left: 6px; }
.nav .cta a:hover { background: var(--accent-hover); color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { font-weight: 400; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .has-sub > a::after { display: none; }
  .nav .cta a { margin: 8px 0 0; text-align: center; }
}

/* Sections */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-tint); }
.section.dark { background: var(--brand-deep); color: #e8f3f9; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: #9fdcf7; }
.hero { padding: 80px 0 72px; background: linear-gradient(160deg, #eaf6fc 0%, #ffffff 60%); }
.hero h1 { max-width: 18em; }
.hero.center h1 { margin-left: auto; margin-right: auto; }
.hero .tagline { font-weight: 700; color: var(--brand-ink); font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img, .figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
}
.figure { margin: 0; }
.figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.figure a.zoom { display: block; }
.figure a.zoom::after { content: "Click to enlarge"; display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.card.img-top { padding: 0; overflow: hidden; }
.card.img-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card.img-top .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

/* Lists */
.ticks, .pains { list-style: none; padding: 0; }
.ticks li, .pains li { position: relative; padding-left: 34px; margin-bottom: 0.8em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pains li::before { content: "?"; position: absolute; left: 0; top: 0.15em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; text-align: center; line-height: 22px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; }

/* Quotes */
.quote { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; }
.quote h3 { font-size: 1.1rem; }
.quote blockquote { margin: 0 0 18px; font-size: 1rem; }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--brand-deep); }
.quote footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* Trust row */
.trust { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust h3 { font-size: 1.1rem; color: inherit; }
.trust p { margin: 0; }

/* Team */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.person { text-align: center; }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; box-shadow: var(--shadow); }
.person strong { display: block; color: var(--brand-deep); }
.person span { display: block; font-size: 0.92rem; color: var(--muted); }
.person em { display: block; font-size: 0.92rem; color: var(--brand-ink); margin-top: 4px; }
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.founder img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }

.members { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 48px; align-items: start; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.member header { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.member header img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.member h3 { margin: 0; }
.member header span { display: block; font-size: 0.92rem; color: var(--muted); }
.member header em { display: block; font-size: 0.92rem; color: var(--brand-ink); }
.member p { font-size: 0.98rem; }
.why { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.why summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); }
.why[open] summary { margin-bottom: 12px; }
.why img { border-radius: 10px; margin-bottom: 14px; max-height: 340px; width: auto; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid .card { text-align: center; align-items: center; }
.contact-grid .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 12px; }
.contact-grid .icon svg { width: 26px; height: 26px; }

/* Blog */
.post-meta { color: var(--muted); font-size: 0.95rem; }
.post-hero img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 28px auto 0; }
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose img { margin: 24px auto; border-radius: 10px; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.prose .texts { background: var(--bg-soft); border-radius: 10px; padding: 16px 20px; font-size: 0.95rem; }
.prose .texts p { margin: 0 0 0.6em; }
.author { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }
.author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { margin: 0 0 0.5em; font-size: 0.97rem; }
.note { background: var(--bg-tint); border-radius: var(--radius); padding: 24px 28px; margin-top: 40px; }
.note p:last-child { margin: 0; }

/* Legal */
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; text-transform: none; }
.toc { columns: 2 260px; padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #cfe4ef; padding: 56px 0 28px; font-size: 0.97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr; }
.foot-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #9fdcf7; margin-bottom: 1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.6em; }
.foot-logo { width: 160px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; }
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* Brand page: brand card */
.brand-card { flex-direction: row; align-items: center; gap: 40px; max-width: 900px; margin: 16px auto 0; padding: 40px; }
.brand-card .brand-logo { width: 260px; height: auto; flex: none; }
@media (max-width: 720px) { .brand-card { flex-direction: column; text-align: center; padding: 28px 20px; gap: 24px; } .brand-card .brand-logo { width: 200px; } }

/* Contact form (same build as mikewozniak.com) */
.contact-form { max-width: 560px; margin: 0 auto 2em; text-align: left; }
.contact-form label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--brand-deep); margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c3d3de; border-radius: 8px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form .cf-turnstile { margin: 0.5em 0 1em; min-height: 65px; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.social-light { justify-content: center; }
.social-light a { background: var(--brand-deep); }
.social-light a:hover { background: var(--brand); }
.contact-form button.btn { font: inherit; font-weight: 700; cursor: pointer; }

/* Post layout with sidebar */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-body { min-width: 0; max-width: 720px; }
.post-sidebar { display: grid; gap: 24px; position: sticky; top: 96px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.side-card h2 { font-size: 1.1rem; margin: 0 0 14px; }
.side-brand { background: var(--bg-tint); border-color: transparent; }
.side-brand img { width: 170px; height: auto; display: block; margin-bottom: 12px; }
.side-brand p { font-size: 0.95rem; margin: 0 0 16px; }
.side-stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-stories a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.side-stories a:hover span { color: var(--brand-ink); text-decoration: underline; }
.side-stories img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-body { max-width: 760px; }
  .post-sidebar { position: static; max-width: 760px; }
}

.author-li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.author-li svg { flex: none; }
