/* Flozit site. Fonts are self-hosted: Inter for text (fonts/OFL.txt) and Cormorant
   Garamond for headings (fonts/OFL-cormorant-garamond.txt), both SIL Open Font License. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --cream: #f8f5f0;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --black: #101010;
  --gold: #c4a46e;
  --gold-light: #e0c48f;
  --slate: #68767d;

  --bg: var(--cream);
  --text: var(--black);
  --muted: #4f5a60;        /* deeper slate: AA on cream for small text */
  --line: #d9d3c9;
  --border: var(--slate);
  --panel: #fffdf9;
  --band-bg: var(--black);
  --band-text: var(--cream);
  --link: var(--black);
  --gold-text: #7d6334;   /* gold for small text on cream (AA) */
  --focus: var(--black);
  --shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px rgba(16, 16, 16, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--black);
    --text: var(--cream);
    --muted: #b3bcc0;
    --line: #2a2a28;
    --border: var(--slate);
    --panel: #181816;
    --band-bg: #1a1916;
    --band-text: var(--cream);
    --link: var(--gold-light);
    --gold-text: var(--gold-light);
    --focus: var(--gold-light);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--link); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: 0; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-link:hover { color: var(--muted); }
@media (max-width: 560px) { .nav-how { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 6px;
  font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Big calls to action: every size comes from --cta-scale (set per variant on <html>) */
:root { --cta-scale: 1; }
.btn-cta {
  min-height: calc(64px * var(--cta-scale));
  padding: 0 calc(36px * var(--cta-scale));
  font-size: calc(1.25rem * var(--cta-scale));      /* 20 px */
  font-weight: 600; border-radius: 8px;
}
.btn-cta-xl { min-height: calc(72px * var(--cta-scale)); font-size: calc(1.375rem * var(--cta-scale)); }  /* 22 px */
.btn-gold.btn-cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196, 164, 110, 0.35); }
.btn-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.actions .btn-ghost { min-height: calc(64px * var(--cta-scale)); padding: 0 28px; font-size: 1.05rem; }
@media (max-width: 640px) {
  .actions, .band-inner, .ea-actions { flex-direction: column; align-items: stretch; }
  .btn-cta, .btn-cta-xl, .actions .btn-ghost { width: 100%; min-height: calc(60px * var(--cta-scale)); }
}
.ea-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Sticky bar (phones only): shown after the hero, hidden while the footer is on screen */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 16, 16, 0.08);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .sticky-cta.show { transform: none; visibility: visible; }
  .sticky-cta .btn-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Hero */
.hero { padding: 64px 0 72px; }
@media (min-width: 900px) { .hero { padding: 104px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; margin: 0; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.3rem); line-height: 1.02; max-width: 17ch; }
.sub { font-size: 1.15rem; color: var(--muted); margin: 24px 0 0; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* "Works with": text now; each .partner can later hold a logo image */
.works-with {
  display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 0;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; color: var(--muted);
}
.ww-check { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.partner { color: var(--text); font-weight: 500; }

/* Rooftop line art: decorative, light gold, thin */
.roofline { display: block; fill: none; stroke: var(--gold-light); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hero-copy { position: relative; }
.roof-a { width: 100%; height: 56px; margin-top: 40px; opacity: 0.75; }
.roof-divider { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .roof-divider { padding: 0 32px; } }
.roof-b { width: 100%; height: 30px; margin-top: 10px; opacity: 0.8; }
@media (prefers-color-scheme: dark) { .roof-a { opacity: 0.32; } .roof-b { opacity: 0.38; } }

/* Hero visual: a timeline of four cards. Each card lands below the last, the
   gold line grows to it, earlier cards dim slightly; the finished frame holds
   about 3 s, then the loop fades and restarts (12 s). Reduced motion: the
   finished frame, still. */
.hero-visual { display: grid; gap: 6px; max-width: 30rem; width: 100%; justify-self: center; line-height: 1.4; }
.tl-step { position: relative; padding-left: 30px; }
.tl-step::before {                /* the dot on the timeline */
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}
.tl-step:not(:last-child)::after { /* the line down to the next dot */
  content: ""; position: absolute; left: 8px; top: 16px; bottom: -7px;
  width: 1px; background: var(--gold); transform-origin: top;
}
.tl-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-text); margin-bottom: 4px; }
.tl-1, .tl-2, .tl-3 { opacity: 0.72; }   /* the finished frame: earlier cards dimmed */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-name { font-weight: 600; }
.lead-meta { font-size: 0.86rem; color: var(--muted); }
.tag { flex: none; font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(196, 164, 110, 0.16); }
.mail-from { font-weight: 600; font-size: 0.93rem; }
.mail-body { margin: 2px 0 6px; font-size: 0.93rem; }
.mail-sig { margin: 0; padding-top: 5px; border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--muted); }
.reply { margin-left: auto; width: fit-content; max-width: 88%; background: var(--text); color: var(--bg); border-radius: 14px 14px 4px 14px; padding: 8px 14px; }
.reply p { margin: 0; font-size: 0.93rem; }
.reply-who { display: block; margin-top: 2px; font-size: 0.74rem; opacity: 0.8; }
.tl-3 .tl-label { text-align: left; }
.ready-card { background: var(--gold-light); color: var(--black); border-color: var(--gold-light); }
.ready-title { font-weight: 600; font-size: 1.05rem; }
.ready-line { font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .tl-1 { animation: tl-step-1 12s ease-in-out infinite; }
  .tl-2 { animation: tl-step-2 12s ease-in-out infinite; }
  .tl-3 { animation: tl-step-3 12s ease-in-out infinite; }
  .tl-4 { animation: tl-step-4 12s ease-in-out infinite; }
  .tl-1::after { animation: tl-line-1 12s ease-in-out infinite; }
  .tl-2::after { animation: tl-line-2 12s ease-in-out infinite; }
  .tl-3::after { animation: tl-line-3 12s ease-in-out infinite; }
  .tl-1 .tag { animation: tl-tag 12s ease-in-out infinite; }
}
/* 0-0.7 s card 1; 1.2 s tag; 2.2 s card 2; 4.3 s card 3; 6.5 s card 4;
   hold 7.3-10.3 s; fade 10.3-11.3 s; blank until the restart */
@keyframes tl-step-1 {
  0% { opacity: 0; transform: translateY(12px); }
  6%, 18% { opacity: 1; transform: none; }
  24%, 86% { opacity: 0.72; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes tl-step-2 {
  0%, 18% { opacity: 0; transform: translateY(12px); }
  24%, 36% { opacity: 1; transform: none; }
  42%, 86% { opacity: 0.72; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes tl-step-3 {
  0%, 36% { opacity: 0; transform: translateY(12px); }
  42%, 54% { opacity: 1; transform: none; }
  60%, 86% { opacity: 0.72; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes tl-step-4 {
  0%, 54% { opacity: 0; transform: translateY(12px); }
  61%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes tl-line-1 { 0%, 12% { transform: scaleY(0); } 19%, 100% { transform: scaleY(1); } }
@keyframes tl-line-2 { 0%, 30% { transform: scaleY(0); } 37%, 100% { transform: scaleY(1); } }
@keyframes tl-line-3 { 0%, 48% { transform: scaleY(0); } 55%, 100% { transform: scaleY(1); } }
@keyframes tl-tag {
  0%, 7% { opacity: 0; transform: scale(0.9); }
  11%, 100% { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.08; }
.lead-text { font-size: 1.1rem; margin: 20px 0 0; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; }
.step svg, .checks svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-label { display: block; margin-top: 20px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step p { margin: 6px 0 0; font-size: 1.05rem; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.brief { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.brief-head { padding: 16px 20px; font-weight: 600; border-bottom: 1px solid var(--line); border-left: 3px solid var(--gold); }
.brief dl { margin: 0; padding: 4px 20px 8px; }
.brief dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.brief dl > div:last-child { border-bottom: 0; }
.brief dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brief dd { margin: 4px 0 0; }
.due { display: inline-block; margin-left: 8px; font-size: 0.8rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); }
.brief figcaption { padding: 12px 20px; font-size: 0.85rem; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); }

.checks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 800px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.checks svg { flex: none; margin-top: 1px; }

.band { background: var(--band-bg); color: var(--band-text); padding: 72px 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band-text { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.15; }
@media (min-width: 900px) { .band-inner { flex-wrap: nowrap; } .band-text { white-space: nowrap; } }
.band :focus-visible { outline-color: var(--gold-light); }

.photo { display: block; width: 100%; max-width: 26rem; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 10%; margin-top: 32px; border-radius: 10px; }
@media (max-width: 899px) { .photo { max-width: none; aspect-ratio: 4 / 3; } }

/* Why it matters */
.why { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .why { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.why svg, .faq-item summary::after { flex: none; }
.why svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why p { margin: 14px 0 0; font-size: 1.1rem; }
.why-close { margin: 44px 0 0; font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 600; line-height: 1.25; }

/* You stay in control, with the photo beside the points */
.control-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .control-split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.checks-single { grid-template-columns: 1fr !important; }
.control-split .photo { margin-top: 0; justify-self: center; }

/* FAQ: details/summary, works without JavaScript */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-text); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 2px 22px; color: var(--muted); }
.faq-answer ul { margin: 0 2px 22px; padding-left: 20px; color: var(--muted); }
.faq-answer li { margin: 4px 0; }

/* Founder note */
.founder { padding-top: 24px; }
.founder-inner { display: flex; gap: 20px; align-items: flex-start; }
.founder-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.founder-note { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.35; }
.founder-name { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }

/* Policy pages */
.doc { padding: 56px 0 88px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1.06; margin-bottom: 20px; }
.doc h2 { font-size: 1.65rem; margin: 44px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Gentle fade up on scroll (only when the inline script runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
