/* YourCommunityYourBrand marketing site — one stylesheet for every page. */

:root {
  --white: #ffffff;
  --mist: #edf1ec;
  --mist-deep: #dfe6e0;
  --pine: #0e4d3c;
  --pine-deep: #0a3a2d;
  --ink: #14211c;
  --ink-soft: #4b5a53;
  --line: #d3dcd5;
  --marigold: #ffc23d;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: 1.25 ratio from an 18px body. */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.4vw, 2.625rem);
  --step-4: clamp(2.5rem, 5vw, 3.5rem);
  --step-5: clamp(2.75rem, 7.2vw, 5.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 62ch;
  --page: 1200px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-variation-settings: "opsz" 14;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--pine); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-quiet { color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-sticker { background: var(--marigold); color: var(--ink); }
.btn-sticker:hover { background: #ffd36e; }

/* ---------- Header ---------- */

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

.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
}
.wordmark svg { flex: none; }
.wordmark-text span { font-weight: 400; color: var(--ink-soft); }

.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: block; padding: 0.5rem 0.8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 1rem;
}
.main-nav a:not(.btn):hover { background: var(--mist); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.main-nav .nav-cta { margin-left: 0.75rem; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
    background: none; border: 2px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .main-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 4.5rem; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem; background: var(--white); border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open ul { display: flex; }
  .main-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta { margin: 1rem 0 0; }
  .main-nav .nav-cta .btn { width: 100%; }
  .site-header { position: relative; }
}

/* ---------- Page sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-mist { background: var(--mist); }
.section-head { max-width: 22ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Home hero: headline left, lede + actions bottom-right. */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem); align-items: end;
}
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 6.4vw, 5rem); }
.eyebrow { margin-bottom: 1rem; font-size: 1rem; font-weight: 600; color: var(--pine); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Inner page hero: just a big headline and a lede. */
.page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 16ch; font-size: var(--step-4); }
.page-hero .lede { margin-top: 1.5rem; max-width: 46ch; }

/* ---------- Brand demo (home hero) ---------- */

.demo-head { font-size: var(--step-3); }
.demo-intro { margin: 0.5rem 0 1.5rem; color: var(--ink-soft); }
.demo { background: var(--mist); border-radius: 28px; padding: clamp(1.25rem, 4vw, 3rem); }

.demo-ask {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}
.demo-ask-label { color: var(--ink-soft); font-size: 1rem; }
.demo-ask-text {
  margin: 0; padding: 0.55rem 1rem; border-radius: 14px 14px 14px 4px;
  background: var(--white); font-size: var(--step-1); font-weight: 500; letter-spacing: -0.01em;
}

.demo-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.demo-tab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0.4rem 1rem 0.4rem 0.45rem;
  background: transparent; border: 2px solid var(--mist-deep); border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.demo-tab:hover { border-color: var(--ink-soft); }
.demo-tab[aria-selected="true"] { background: var(--white); border-color: var(--ink); }
.demo-tab-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; flex: none; }
@media (max-width: 560px) {
  .demo-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .demo-tab { font-size: 0.9rem; padding-right: 0.6rem; }
}

.demo-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.demo-panel[hidden] { display: none; }
@media (max-width: 860px) {
  .demo-panel { grid-template-columns: 1fr; }
  /* Stacked: show the finished post first, the profile behind it second. */
  .demo-panel .kit { order: 1; }
}

/* The saved brand profile the post was made from. */
.demo-label { margin-bottom: 0.85rem; font-size: 1rem; color: var(--ink-soft); }
.kit-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.kit-logo { width: 4rem; height: 4rem; flex: none; border-radius: 14px; }
.kit-name { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.kit-kind { color: var(--ink-soft); font-size: 1rem; }

.kit-rows { margin: 0; display: grid; gap: 1rem; }
.kit-row { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--mist-deep); }
.kit-row dt { color: var(--ink-soft); font-size: 1rem; }
.kit-row dd { margin: 0; }
.swatches { display: flex; gap: 0.4rem; }
.swatch { width: 2.25rem; height: 2.25rem; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(20 33 28 / 0.12); }
.kit-font { font-size: var(--step-1); line-height: 1.2; }

/* The finished post, styled like a social feed card. */
.post { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgb(20 33 28 / 0.08), 0 12px 32px -12px rgb(20 33 28 / 0.25); }
.post-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; font-size: 0.95rem; font-weight: 600; }
.post-top svg, .post-top img { width: 2rem; height: 2rem; border-radius: 50%; }
.post-image {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.post-image svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-image-text { position: relative; }
.post-caption { padding: 1rem 1.1rem 1.25rem; font-size: 0.98rem; line-height: 1.5; font-variation-settings: "opsz" 12; }
.post-caption strong { font-weight: 700; }
.post-caption .tags { color: var(--pine); }

/* The one deliberate motion: a fresh post settles in when you switch brand. */
@media (prefers-reduced-motion: no-preference) {
  .demo-panel.is-entering .post { animation: post-in 0.45s var(--ease) both; }
  .demo-panel.is-entering .kit { animation: kit-in 0.35s var(--ease) both; }
}
@keyframes post-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes kit-in { from { opacity: 0; } }

/* Rye & Ember: still used by the mock on features.html. */
.b-rye .post-image { background: #f3d68a; color: #4a2c14; }
.b-rye .post-head { font-family: "Young Serif", Georgia, serif; font-size: 2.6rem; line-height: 1; letter-spacing: -0.01em; }
.b-rye .post-sub { font-family: "Young Serif", Georgia, serif; font-size: 1.05rem; margin-top: 0.6rem; }

/* Real businesses: their actual post image, natural aspect, no overlay text. */
.b-evie .post-image, .b-css .post-image, .b-ycyb .post-image { aspect-ratio: auto; padding: 0; background: #262345; }
.b-ycyb .post-image { background: var(--mist); }
.post-image img.photo { display: block; width: 100%; height: auto; }


/* ---------- How it works (a real sequence, so it's numbered) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 1.5rem;
  font-size: var(--step-4); font-weight: 800; line-height: 1; color: var(--pine);
  font-variation-settings: "opsz" 96;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- What you get / not yet ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 861px) { .split-head { position: sticky; top: 2rem; align-self: start; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { margin: 0; }
.fact { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.4rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 700; font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
.fact dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .fact { grid-template-columns: 1fr; } }

.not-yet { margin-top: 3rem; padding: 1.5rem 1.75rem; border-radius: 16px; background: var(--white); border: 1px dashed var(--ink-soft); }
.not-yet h3 { margin-bottom: 0.5rem; }
.not-yet ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.not-yet li + li { margin-top: 0.35rem; }

/* ---------- Who it's for ---------- */

.for-whom { font-size: var(--step-3); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; max-width: 30ch; font-variation-settings: "opsz" 72; text-wrap: balance; }
.for-whom-note { margin-top: 1.5rem; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-25%, -25%); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-25%, -25%); }
.faq details p { padding-bottom: 1.4rem; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- Closing call to action ---------- */

.cta-band { background: var(--pine); color: var(--white); border-radius: 28px; padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 1rem; color: rgb(255 255 255 / 0.78); max-width: 42ch; }
.cta-band :focus-visible { outline-color: var(--marigold); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-section { padding-block: 0 clamp(4rem, 9vw, 7.5rem); }

/* ---------- Features page ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7rem); }
.feature h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.feature p { color: var(--ink-soft); max-width: 46ch; }
.feature ul { margin: 1.25rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.feature li + li { margin-top: 0.4rem; }
.feature-flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip > :first-child { order: 0; }
}

.mock { background: var(--mist); border-radius: 24px; padding: clamp(1rem, 3vw, 2rem); }
.mock-card { background: var(--white); border-radius: 16px; padding: 1.5rem; box-shadow: 0 1px 2px rgb(20 33 28 / 0.08); }
.mock-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.mock-field + .mock-field { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--mist-deep); }
.mock-swatch-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mock-swatch { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.mock-swatch i { width: 1.6rem; height: 1.6rem; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(20 33 28 / 0.12); }
.mock-quote { font-size: 1rem; line-height: 1.5; }

.chat { display: grid; gap: 0.85rem; }
.bubble { max-width: 88%; padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.98rem; line-height: 1.5; }
.bubble-you { justify-self: end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.bubble-assistant { background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgb(20 33 28 / 0.08); }
.bubble-actions { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.bubble-actions span { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.82rem; }

.mock-post { max-width: 22rem; margin-inline: auto; }
.feature .post p { color: inherit; max-width: none; }
.feature .post .post-caption { color: var(--ink); }

/* ---------- Prose (about + legal) ---------- */

.prose { max-width: var(--measure); font-size: 1.2rem; line-height: 1.65; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; letter-spacing: -0.02em; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose-legal { font-size: var(--step-0); }
.meta { color: var(--ink-soft); font-size: 1rem; }

.pull { font-size: var(--step-3); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; max-width: 24ch; margin: 3rem 0; color: var(--pine); font-variation-settings: "opsz" 72; }

/* ---------- 404 ---------- */

.lost { padding-block: clamp(5rem, 14vw, 10rem); }
.lost h1 { max-width: 14ch; font-size: var(--step-4); }
.lost p { margin: 1.5rem 0 2rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.75); padding-block: 3.5rem 2rem; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--marigold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-grid .wordmark { color: var(--white); margin-bottom: 1rem; }
.footer-grid .wordmark-text span { color: rgb(255 255 255 / 0.65); }
.footer-grid h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 0.75rem; font-variation-settings: "opsz" 14; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-base a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); }
