/* ============================================================================
   Murmur — design tokens, base, components, layout
   Tokens defined per .agents/design.md §1.
   ========================================================================== */

/* --- 1.1 Colour palette ---------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:           #f7f1e8;
  --bg-soft:      #efe6d4;
  --surface:      #fbf6ed;
  --surface-sunk: #ede4d1;

  /* Ink */
  --ink:          #2a201a;
  --ink-2:        #4a3f33;
  --ink-3:        #6b5d4f;
  --ink-4:        #9a8e7e;

  /* Accent */
  --accent:       #c66b3d;
  --accent-2:     #a85730;
  --accent-soft:  #f0d9c6;
  --accent-ink:   #5a2e15;

  /* Lines */
  --line:         #e8dccb;
  --line-strong:  #d6c6ad;

  /* Status */
  --success:      #5a7a4f;
  --warning:      #c89b3d;
  --danger:       #b04a3a;

  /* Focus */
  --focus:        #c66b3d;
  --focus-ring:   0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}

/* --- 1.2 Typography: @font-face -------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.woff2") format("woff2-variations"),
       url("../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations"),
       url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- 1.3–1.7 Type scale, spacing, radii, motion, container ----------------- */
:root {
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  --lh-tight: 1.05;
  --lh-snug:  1.15;
  --lh-body:  1.6;
  --lh-loose: 1.75;

  --tracking-tight:   -0.01em;
  --tracking-eyebrow: 0.12em;

  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --shadow-1:     0 1px 2px rgba(42, 32, 26, 0.04),
                  0 2px 8px rgba(42, 32, 26, 0.06);
  --shadow-2:     0 4px 12px rgba(42, 32, 26, 0.08),
                  0 16px 40px rgba(42, 32, 26, 0.10);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.4);

  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur:      180ms;
  --dur-slow: 240ms;

  --container: 1180px;
  --gutter:    24px;
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, sans-serif;
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-56); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-32); }
h3 { font-size: var(--fs-24); }
@media (min-width: 768px) {
  h1 { font-size: var(--fs-72); }
  h2 { font-size: var(--fs-40); }
}

p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

ul { list-style: none; padding: 0; margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--r-md) 0;
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease);
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* Focus ring (single source) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-7);
}
@media (min-width: 768px) {
  .section { padding-block: var(--sp-9); }
}

.section--soft { background: var(--bg-soft); }
.section--base { background: var(--bg); }

.eyebrow {
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead {
  font-size: var(--fs-20);
  line-height: var(--lh-loose);
  color: var(--ink-2);
  max-width: 540px;
}

/* --- 3. Brand mark --------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  font-size: 1.25rem;
  font-optical-sizing: auto;
}
.brand:hover { color: var(--ink); }
.brand__glyph {
  width: 16px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand__word { line-height: 1; }

/* --- 4.1 Button ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: "Inter", sans-serif;
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 1;
  min-height: 44px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.btn--primary:hover { background: var(--accent-2); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  padding: 0;
  min-height: auto;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn--quiet:hover { color: var(--ink); text-decoration-color: var(--ink); }

.btn--sm { padding: 8px 16px; font-size: var(--fs-14); min-height: 36px; }

/* --- Nav ------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav--solid { background: var(--surface); border-bottom-color: var(--line); }
.nav--scrolled { background: var(--surface); box-shadow: var(--shadow-1); border-bottom-color: var(--line); }
.nav--transparent { background: transparent; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 64px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-5);
  margin-left: var(--sp-5);
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}
.nav__link {
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav__link:hover, .nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav__cta {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .nav__cta { display: inline-flex; }
}

.nav__burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--r-md);
}
@media (min-width: 768px) {
  .nav__burger { display: none; }
}

/* Mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: var(--sp-5);
  display: none;
  flex-direction: column;
  gap: var(--sp-5);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sheet[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__links { display: flex; flex-direction: column; gap: var(--sp-2); }
.sheet__link {
  font-size: var(--fs-24);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sheet__cta { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: auto; }

/* --- 4.2 Feature card ------------------------------------------------------ */
.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.feature h3 { font-size: var(--fs-24); }
.feature p { color: var(--ink-2); line-height: var(--lh-body); }

/* Three-up grid (Home teaser) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

/* Two-up grid (Features) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}

/* --- 4.3 Pricing card ------------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}
@media (min-width: 768px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

.tier {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.tier--featured {
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
}
.tier__pill {
  position: absolute;
  top: calc(-1 * var(--sp-4));
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tier__name {
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-56);
  line-height: 1;
  color: var(--ink);
}
.tier__price small {
  font-size: var(--fs-16);
  font-family: "Inter", sans-serif;
  color: var(--ink-3);
  font-weight: 400;
}
.tier__desc { color: var(--ink-2); line-height: var(--lh-body); }
.tier__divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.tier__feats { display: flex; flex-direction: column; gap: var(--sp-3); }
.tier__feat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-14);
  color: var(--ink-2);
  line-height: 1.5;
}
.tier__feat svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tier__cta { margin-top: auto; }
.tier__cta .btn { width: 100%; }

/* --- 4.4 FAQ accordion ----------------------------------------------------- */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  text-align: left;
  font-family: "Inter", sans-serif;
}
.faq__sum::-webkit-details-marker { display: none; }
.faq__sum::marker { content: ""; }
.faq__chev {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__body {
  padding: 0 0 var(--sp-5);
  color: var(--ink-2);
  line-height: var(--lh-loose);
  max-width: 60ch;
}

/* --- 4.5 Changelog entry --------------------------------------------------- */
.changelog { display: flex; flex-direction: column; gap: var(--sp-7); }
.changelog__entry {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.changelog__entry:last-child { border-bottom: 0; padding-bottom: 0; }
.changelog__date {
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}
.changelog__title {
  font-size: var(--fs-24);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}
.changelog__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  color: var(--ink-2);
  line-height: var(--lh-loose);
  max-width: 70ch;
}
.changelog__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-14);
  color: var(--ink-2);
  padding-left: var(--sp-4);
  list-style: disc;
}

/* --- 4.6 Form fields ------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field__label {
  font-size: var(--fs-14);
  color: var(--ink-2);
  font-weight: 500;
}
.field__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1);
}
@media (min-width: 480px) {
  .field__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
  }
}
.field__input,
.field__select,
.field__textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: var(--fs-16);
  color: var(--ink);
  width: 100%;
  font-family: "Inter", sans-serif;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--ink-4); }
.field__input:hover,
.field__select:hover,
.field__textarea:hover { border-color: var(--line-strong); }
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.field__textarea { min-height: 140px; resize: vertical; }
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b5d4f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
  padding-right: 44px;
}
.field__help { font-size: var(--fs-14); color: var(--ink-3); }
.field--error .field__input,
.field--error .field__select,
.field--error .field__textarea { border-color: var(--danger); }
.field--error .field__help { color: var(--danger); }

.form { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 480px; }
.form--narrow { max-width: 420px; margin-inline: auto; width: 100%; }
.form .btn[type="submit"] { align-self: flex-start; }

/* --- 4.7 Toast ------------------------------------------------------------- */
#toast-region {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-14);
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in var(--dur) var(--ease) both;
}
.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast--leaving { animation: toast-out var(--dur) var(--ease) both; }
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--sp-7) var(--sp-8);
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--sp-8);
    padding-block: var(--sp-8) var(--sp-9);
  }
}
.hero__copy { display: flex; flex-direction: column; gap: var(--sp-5); }
.hero__title { max-width: 11ch; }
.hero__lead { max-width: 540px; }
.hero__ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.hero__art {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: var(--sp-3);
  overflow: hidden;
}
.hero__art svg { width: 100%; height: auto; display: block; }

/* Page header (non-hero) */
.page-head {
  padding-block: var(--sp-7) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 720px;
}
@media (min-width: 768px) {
  .page-head { padding-block: var(--sp-9) var(--sp-7); }
}
.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.page-head__rss {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.page-head__rss:hover { background: var(--surface); color: var(--ink); }
.page-head__rss svg { width: 14px; height: 14px; }

/* --- 4.8 Hero mockup helpers ----------------------------------------------- */
.mockup { font-family: "Inter", sans-serif; }

/* --- Built for the long quiet --------------------------------------------- */
.band-2up {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 768px) {
  .band-2up {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-8);
  }
}
.band-2up__copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.band-2up__copy p { color: var(--ink-2); line-height: var(--lh-loose); max-width: 50ch; }
.band-2up__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

/* --- Social proof --------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 768px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}
.quote {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-1);
}
.quote__text {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--fs-20);
  line-height: var(--lh-loose);
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}
.quote__by {
  font-size: var(--fs-14);
  color: var(--ink-3);
  font-weight: 500;
}

/* --- Closing CTA --------------------------------------------------------- */
.closing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-9);
}
.closing h2 { max-width: 18ch; }

/* --- About — values + team ----------------------------------------------- */
.value {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.value__line {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-24);
  color: var(--ink);
  line-height: var(--lh-snug);
}
.value__body { color: var(--ink-2); line-height: var(--lh-body); }

.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 480px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .team { grid-template-columns: repeat(4, 1fr); }
}
.member {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 240px;
  justify-content: space-between;
}
.member__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-20);
}
.member__name { font-weight: 500; color: var(--ink); font-size: var(--fs-16); }
.member__role { font-size: var(--fs-14); color: var(--ink-3); }
.member--hiring {
  border: 1px dashed var(--line-strong);
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
  justify-content: space-between;
}
.member--hiring .member__name { color: var(--accent-2); }

/* --- Contact split ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: start; }
}
.contact-aside {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contact-aside__row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.contact-aside__row svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-aside__title { font-weight: 500; color: var(--ink); font-size: var(--fs-16); }
.contact-aside__body { color: var(--ink-2); line-height: var(--lh-body); }

/* --- Comparison table (Pricing) ----------------------------------------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: none;
}
@media (min-width: 768px) {
  .compare { display: table; }
}
.compare th, .compare td {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-14);
  color: var(--ink-2);
  vertical-align: middle;
}
.compare thead th {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--ink);
  font-size: var(--fs-16);
}
.compare thead th .compare__price {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  display: block;
  font-size: var(--fs-20);
  margin-top: 4px;
  color: var(--accent);
}
.compare tbody th {
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-soft);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--ink); }
.compare__yes { color: var(--accent); }
.compare__no { color: var(--ink-4); }

.compare-cards { display: flex; flex-direction: column; gap: var(--sp-4); }
@media (min-width: 768px) { .compare-cards { display: none; } }
.compare-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
.compare-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-3);
}
.compare-card__name { font-weight: 500; color: var(--ink); }
.compare-card__price { color: var(--accent); font-family: "Fraunces", Georgia, serif; }
.compare-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-14);
}
.compare-card__row dt { color: var(--ink-3); }
.compare-card__row dd { color: var(--ink); margin: 0; font-weight: 500; }
.compare-card__row .compare__yes { color: var(--accent); }
.compare-card__row .compare__no  { color: var(--ink-4); }

/* --- Sign-in centred card ----------------------------------------------- */
.signin {
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--sp-7);
}
.signin__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.signin__brand { align-self: center; }
.signin__title { font-size: var(--fs-32); text-align: center; }
.signin__lead { text-align: center; color: var(--ink-2); }
.signin__divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.signin__alt { text-align: center; color: var(--ink-2); font-size: var(--fs-14); }
.signin__alt a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7);
  margin-top: var(--sp-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-7); }
}
.footer__brand-block { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 28ch; }
.footer__about { color: var(--ink-2); font-size: var(--fs-14); line-height: var(--lh-body); }
.footer__copy-mini { color: var(--ink-3); font-size: var(--fs-12); }
.footer__col h4 {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a {
  font-size: var(--fs-14);
  color: var(--ink-2);
}
.footer__col a:hover { color: var(--ink); }
.footer__col .soon { color: var(--ink-4); }
.footer__col .soon::after {
  content: "Soon";
  margin-left: var(--sp-2);
  font-size: var(--fs-12);
  color: var(--ink-4);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.footer__copy { font-size: var(--fs-12); color: var(--ink-3); }
.footer__social { display: inline-flex; gap: var(--sp-3); }
.footer__social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  border-radius: var(--r-md);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer__social a:hover { color: var(--ink); background: var(--bg-soft); }
.footer__social svg { width: 16px; height: 16px; }

/* --- In-use band (Features) --------------------------------------------- */
.inuse {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  padding: var(--sp-5);
  max-width: 560px;
  margin-inline: auto;
}
.inuse svg { width: 100%; height: auto; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
