/* Foxmeadow — Seasonal Colour Analysis
   Aesthetic: Sydney's pressed-paper seal and her analysis sheets. Engraved
   botanical line work in warm taupe, deep navy ink, classical serif small caps,
   hairline rules — with the seasonal colour kept for warmth. Refined, botanical,
   slightly storybook. */

/* ─── Brand typefaces ─────────────────────────────────────────
   Served from /assets/fonts, under the family names inside the files.
   Americana and Allura are single cuts, so the whole weight range maps to
   each and the browser never fakes a bold. DM Sans is a variable face with
   its own true weights and italic. */

@font-face {
  font-family: "Americana";
  src: url("/assets/fonts/Americana-BT.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Italic-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Allura";
  src: url("/assets/fonts/Allura-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ink — the deep navy from the seasonal analysis sheets */
  --ink: #1b2140;
  --ink-soft: #565b7d;
  --ink-faint: #8d8fa6;

  /* Ground — the warm pressed paper of the Foxmeadow seal */
  --paper: #ffffff;
  --cream: #f7f3ec;
  --shell: #efe8de;
  --line: #e4dcd0;
  --line-strong: #cabda9;

  /* Engraving — the taupe her line work is printed in */
  --engraved: #9d8a74;
  --engraved-soft: #b8a794;

  /* Meadow */
  --forest: #245c46;
  --fern: #5d9b73;
  --moss: #8fc19a;
  /* The primary-action green, used for every filled button in the portal.
     Deepened from the mock-up's #6d9c86 (kept as --sage-mist) so white label
     text clears 4.5:1 against it. */
  --sage: #4f7a64;
  --sage-deep: #436a57;
  --sage-mist: #6d9c86;

  /* Bloom */
  --raspberry: #b23a62;
  --raspberry-deep: #96284d;
  --blush: #f2cdd6;
  --coral: #e0714f;
  --gold: #d69f2e;
  --lilac: #8d73bd;
  --sky: #6fa4ca;

  --radius-sm: 4px;
  --radius: 7px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 33, 64, 0.05), 0 3px 10px -6px rgba(27, 33, 64, 0.14);
  --shadow: 0 1px 3px rgba(27, 33, 64, 0.05), 0 14px 32px -22px rgba(27, 33, 64, 0.3);
  --shadow-lift: 0 2px 6px rgba(27, 33, 64, 0.06), 0 22px 44px -24px rgba(27, 33, 64, 0.34);

  /* The type system. Swap a brand face here and the portal, the results
     page, the guide and the public page all follow.
     --font-display    prominent titles and headings
     --font-supporting body copy, buttons, navigation, labels and forms
     --font-script     short handwritten moments only — never paragraphs
     --font-logo       the text wordmark beside the seal, drawn in her logo's
                       own lettering; it is part of the logo, so leave it be. */
  --font-display: "Americana", Georgia, serif;
  --font-supporting: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-script: "Allura", "Brush Script MT", cursive;
  --font-logo: "Cinzel", "Optima", Palatino, Georgia, serif;

  /* The role names the stylesheets use. */
  --display: var(--font-display);
  --body: var(--font-supporting);
  --script: var(--font-script);
  --lockup: var(--font-logo);
  /* Small letter-spaced capitals: eyebrows, labels, codes. */
  --caps: var(--font-supporting);

  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  /* The brand faces have no italic or bold cuts; never fake them. */
  font-synthesis: none;
  min-height: 100vh;
  background-color: var(--cream);
  background-image:
    radial-gradient(56rem 38rem at 4% -10%, rgba(242, 205, 214, 0.28), transparent 64%),
    radial-gradient(48rem 32rem at 100% 2%, rgba(143, 193, 154, 0.2), transparent 66%),
    radial-gradient(42rem 30rem at 80% 100%, rgba(214, 159, 46, 0.12), transparent 68%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fixed grain overlay for warmth — never on a scrolling container. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.16;
  margin: 0;
}

p { margin: 0; }

a { color: var(--raspberry-deep); }

:focus-visible {
  outline: 2.5px solid var(--lilac);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Wordmark ─────────────────────────────────────────────── */

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
  color: inherit;
}

/* The fox from Sydney's seal, struck small like a wax medallion. The disc and
   its hairline ring are part of the image, so the CSS only adds the halo. */
.brandmark {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 2px 6px -2px rgba(27, 33, 64, 0.18);
  transition: box-shadow 0.35s var(--ease);
}

.wordmark:hover .brandmark {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 10px -3px rgba(27, 33, 64, 0.26);
}

/* Sydney's approved Foxmeadow logo, the same artwork the Client Guide and
   the results page carry, scaled whole so it keeps its proportions. */
.lockup {
  display: block;
  height: 5.25rem;
  width: auto;
}

.wordmark-text { display: flex; flex-direction: column; gap: 0.2rem; }

.wordmark-name {
  font-family: var(--lockup);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wordmark-sub {
  font-family: var(--lockup);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--engraved);
  font-weight: 400;
}

/* ─── Engraved rules ──────────────────────────────────────────
   The hairline-diamond-hairline divider from her analysis sheets. */

.rule-diamond {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--engraved-soft);
}

.rule-diamond::before,
.rule-diamond::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

.rule-diamond span {
  width: 5px;
  height: 5px;
  background: var(--engraved);
  transform: rotate(45deg);
}

/* ─── Buttons ──────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--sage);
  --btn-fg: #fff;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 0.66rem 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: 0 1px 2px rgba(27, 33, 64, 0.08), 0 8px 18px -12px rgba(79, 122, 100, 0.55);
}

.btn:hover { --btn-bg: var(--sage-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-sm); }

.btn-forest { --btn-bg: var(--forest); box-shadow: 0 8px 18px -12px rgba(36, 92, 70, 0.55); }
.btn-forest:hover { --btn-bg: #1b4936; }

.btn-danger {
  --btn-bg: transparent;
  --btn-fg: var(--raspberry-deep);
  border-color: rgba(150, 40, 77, 0.28);
  box-shadow: none;
  font-weight: 600;
}
.btn-danger:hover { background: rgba(178, 58, 98, 0.08); }

.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.84rem; }
.btn[hidden] { display: none; }

/* ─── Fields ───────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 0.38rem; }

.field > label,
.field-label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea,
.input {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.8rem;
  width: 100%;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.65; }

.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(--lilac);
  box-shadow: 0 0 0 3.5px rgba(155, 124, 196, 0.2);
}

.field-hint { font-size: 0.8rem; color: var(--ink-faint); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 1.1rem;
}

/* ─── Notices ──────────────────────────────────────────────── */

.notice {
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.notice[hidden] { display: none; }

.notice-error {
  background: rgba(194, 65, 107, 0.1);
  border: 1px solid rgba(194, 65, 107, 0.28);
  color: var(--raspberry-deep);
}

.notice-good {
  background: rgba(93, 155, 115, 0.14);
  border: 1px solid rgba(36, 92, 70, 0.26);
  color: var(--forest);
}

/* ─── Auth screen ───────────────────────────── */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
}

/* The app shell wears the grain for warmth; the sign-in wash wants to stay
   fresh, so here it drops back to just enough to break up JPEG banding. */
.page-auth::after { opacity: 0.1; }

/* Left: her seal standing in a soft, out-of-focus wildflower meadow. */
.auth-art {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* A bright wash over the photograph keeps the logo and the tagline
     readable no matter which part of the meadow the crop lands on. */
  background-image:
    radial-gradient(
      28rem 24rem at 50% 48%,
      rgba(255, 252, 250, 0.74),
      rgba(255, 249, 246, 0.24) 54%,
      rgba(255, 249, 246, 0) 76%
    ),
    linear-gradient(
      180deg,
      rgba(255, 246, 244, 0.26),
      rgba(255, 251, 249, 0.02) 44%,
      rgba(250, 245, 241, 0.16)
    ),
    url("/assets/brand/foxmeadow-meadow.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-right: 1px solid rgba(27, 33, 64, 0.06);
}

.auth-art > * { position: relative; }

/* Seal, tagline and seasons read as one deliberate centred group, with the
   meadow left visible all the way around it. */
.auth-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 27rem;
  margin: 0 auto;
  animation: rise 0.7s var(--ease) both;
}

/* The seal, circle-cut and printed with a transparent ground, so it sits in
   the meadow instead of on a second sheet of paper. `aspect-ratio` plus
   `height: auto` pin it to a true 1:1 circle whatever the width works out to,
   so it can never be stretched. */
.auth-emblem {
  width: min(17rem, 52%);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 2.4rem;
}

.auth-blurb {
  max-width: 26rem;
  text-align: center;
}

.auth-blurb h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.auth-blurb p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 24rem;
  margin: 0 auto;
}

/* Seasonal dots, drawn the way they are on her analysis sheets. */
.auth-seasons {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.auth-seasons span {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px -1px rgba(27, 33, 64, 0.22);
}

/* Right: a pale wash of the same pink, green and blue, with the card on top. */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background-image:
    radial-gradient(26rem 22rem at 88% -8%, rgba(203, 219, 199, 0.8), transparent 66%),
    radial-gradient(30rem 26rem at 6% 42%, rgba(248, 226, 226, 0.85), transparent 70%),
    radial-gradient(24rem 24rem at 98% 98%, rgba(197, 215, 231, 0.65), transparent 70%),
    linear-gradient(158deg, #fbf5f1, #f4f2ec 54%, #edf1ea);
}

.auth-card {
  width: 100%;
  max-width: 24.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(27, 33, 64, 0.05), 0 32px 60px -34px rgba(27, 33, 64, 0.34);
  padding: 2.4rem 2.2rem;
  animation: rise 0.55s var(--ease) both;
}

.auth-card .eyebrow {
  font-family: var(--caps);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engraved);
  text-align: center;
  display: block;
  margin-bottom: 0.6rem;
}

.auth-card .rule-diamond { margin: 1.1rem 0 1.5rem; }

.auth-card h2 {
  font-size: clamp(1.75rem, 2.3vw, 2.1rem);
  text-align: center;
  margin-bottom: 0.45rem;
}

.auth-card > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.5;
}

/* The sign-in page's handwritten moments: "Welcome back!" and the word
   "season" in the line beside the seal. */
.page-auth .auth-card h2 { font-family: var(--script); font-weight: 400; }
.page-auth .script-word {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  /* Larger than the words around it, so it reads as a handwritten highlight.
     No line height of its own, so the lines keep their spacing; nudged down
     a touch to sit on the sentence's baseline. */
  font-size: 1.75em;
  line-height: 0;
  vertical-align: -0.04em;
}

.auth-form { display: flex; flex-direction: column; gap: 1.05rem; }

/* Roomier, softer fields than the record editor uses — there are only three
   of them here and they are the whole screen. */
.auth-form .field input {
  border-radius: 9px;
  padding: 0.76rem 0.85rem;
}

.auth-form .btn {
  margin-top: 0.6rem;
  width: 100%;
  padding: 0.86rem 1.35rem;
  border-radius: 11px;
  font-size: 0.97rem;
}

/* The arrow is decoration, so it steps aside while the button is working. */
.auth-form .btn::after {
  content: "\2192";
  font-size: 1.05em;
  transition: transform 0.18s var(--ease);
}

.auth-form .btn:hover::after { transform: translateX(3px); }
.auth-form .btn[disabled]::after { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ─── App shell ────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.75rem);
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-right { display: flex; align-items: center; gap: 0.9rem; }

.topbar-who { font-size: 0.86rem; color: var(--ink-soft); }
.topbar-who strong { color: var(--ink); font-weight: 700; }

.shell {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2.75rem) 5rem;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.page-head h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
}

.page-head .eyebrow {
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engraved);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ─── Search ───────────────────────────────────────────────── */

.toolbar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 30rem;
}

.search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.68rem 2.6rem 0.68rem 2.5rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.search input::placeholder { color: var(--ink-faint); }

.search input:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3.5px rgba(155, 124, 196, 0.2);
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1.05rem;
  line-height: 1;
}

.search-clear:hover { background: var(--shell); color: var(--ink); }

.result-count { font-size: 0.86rem; color: var(--ink-soft); }

/* ─── Client cards ─────────────────────────────────────────── */

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.1rem;
}

.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: rise 0.45s var(--ease) both;
}

.client-card::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 70%, rgba(242, 205, 214, 0.42), transparent 70%);
  transition: transform 0.4s var(--ease);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.client-card:hover::before { transform: scale(1.25); }

.client-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.client-card-top > div:first-child { min-width: 0; }

.client-card h3 {
  font-size: 1.36rem;
}

.client-card .contact {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.season-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
}

.season-line.is-empty { color: var(--ink-faint); font-style: italic; font-family: var(--body); font-size: 0.88rem; }

.swatch-row { display: flex; align-items: center; }

.swatch-row .swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-right: -0.42rem;
  box-shadow: 0 1px 3px rgba(27, 33, 64, 0.18);
}

.swatch-row .more {
  margin-left: 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.swatch-row.is-empty {
  font-size: 0.84rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ─── Status pills ─────────────────────────────────────────── */

.pill {
  flex: none;
  max-width: 7.4rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.pill-inquiry { background: rgba(127, 178, 212, 0.2); border-color: rgba(127, 178, 212, 0.5); color: #23576f; }
.pill-booked { background: rgba(232, 178, 60, 0.22); border-color: rgba(232, 178, 60, 0.55); color: #7d5a09; }
.pill-questionnaire_sent { background: rgba(239, 122, 90, 0.18); border-color: rgba(239, 122, 90, 0.48); color: #9b3f21; }
.pill-analysis_in_progress { background: rgba(155, 124, 196, 0.2); border-color: rgba(155, 124, 196, 0.5); color: #58397f; }
.pill-results_sent { background: rgba(93, 155, 115, 0.22); border-color: rgba(36, 92, 70, 0.4); color: var(--forest); }
.pill-archived { background: rgba(109, 92, 116, 0.11); border-color: rgba(109, 92, 116, 0.28); color: var(--ink-soft); }

/* ─── Skeletons + empty state ──────────────────────────────── */

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sk {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shell) 25%, #f6e7dd 50%, var(--shell) 75%);
  background-size: 240% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  height: 0.75rem;
}

.sk-title { height: 1.15rem; width: 62%; }
.sk-line { width: 82%; }
.sk-line-short { width: 46%; }
.sk-dots { height: 1.5rem; width: 6.5rem; border-radius: 999px; }

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -60% 0; }
}

.empty {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
}

.empty svg { color: var(--engraved); margin-bottom: 0.4rem; }

.empty-sprig {
  display: block;
  width: 7.5rem;
  height: auto;
  margin: 0 auto 0.6rem;
  opacity: 0.85;
}
.empty h2 { font-size: 1.5rem; margin-bottom: 0.45rem; }
.empty p { color: var(--ink-soft); max-width: 27rem; margin: 0 auto 1.3rem; }

/* ─── Record editor ────────────────────────────────────────── */

.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.4rem;
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem;
}

.card + .card { margin-top: 1.2rem; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.card-head h2 {
  font-size: 1.32rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-head h2 svg { color: var(--fern); flex: none; }
.card-head p { font-size: 0.85rem; color: var(--ink-faint); }

.side { position: sticky; top: 5.2rem; display: flex; flex-direction: column; gap: 1.2rem; }

.side .card { padding: 1.25rem 1.3rem; }

.meta-list { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.86rem; }
.meta-list div { display: flex; justify-content: space-between; gap: 1rem; }
.meta-list dt { color: var(--ink-faint); }
.meta-list dd { margin: 0; text-align: right; }

.icon-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-faint);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  touch-action: manipulation;
}

/* A fingertip-sized target around the small visible button. */
.slot-remove::before {
  content: "";
  position: absolute;
  inset: -0.55rem;
}

.icon-btn:hover { background: rgba(194, 65, 107, 0.1); color: var(--raspberry-deep); }

.soft-note { font-size: 0.86rem; color: var(--ink-faint); font-style: italic; }

.save-bar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.save-bar .btn { width: 100%; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.back-link:hover { color: var(--raspberry-deep); }

.loading-note { color: var(--ink-soft); font-size: 0.92rem; padding: 2rem 0; }

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 68rem) {
  .record { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}

@media (max-width: 56rem) {
  .auth { grid-template-columns: 1fr; }
  .auth-art {
    padding: 2.4rem 1.6rem 2.6rem;
    border-right: 0;
    border-bottom: 1px solid rgba(27, 33, 64, 0.06);
  }
  .auth-emblem { width: min(14rem, 56%); margin-bottom: 1.9rem; }
  .auth-seasons { margin-top: 1.2rem; }
}

@media (max-width: 34rem) {
  .topbar { padding: 0.8rem 1rem; }
  .lockup { height: 4rem; }
  .topbar-who { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Sharing a client's results ───────────────────────────── */

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-code {
  display: block;
  font-family: var(--caps);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  margin-top: 0.25rem;
}

#share-live { display: flex; flex-direction: column; gap: 0.6rem; }
#share-link { font-size: 0.82rem; }
#share-card .notice { margin-top: 0.9rem; display: block; }

/* ─── The client's own results page ────────────────────────── */

.results-shell { max-width: 54rem; }

.results-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gate { max-width: 27rem; margin: 0 auto; text-align: center; }
.gate h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 0.1rem 0 0.6rem; }
.gate-intro { color: var(--ink-soft); margin: 0 0 1.4rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
.gate-code {
  font-family: var(--caps);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.1rem;
}
.gate .notice { margin-top: 1rem; text-align: left; }

.results .eyebrow {
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engraved);
  font-weight: 600;
}

.results-head { text-align: center; margin-bottom: 2rem; }
.results-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); margin: 0.4rem 0 0.3rem; }
.results-for { color: var(--ink-soft); font-style: italic; font-family: var(--display); font-size: 1.15rem; margin: 0; }

.results .prose { margin: 0; white-space: pre-wrap; font-size: 1.02rem; }

/* Her result cards' titles: Americana capitals in the section-label taupe,
   at card-title size. */
.results .card-head h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--engraved);
}

.traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem 1.4rem;
  margin: 0;
}
/* The category leads, in taupe; her value sits beneath it, smaller, in ink. */
.traits dt {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--engraved);
  font-weight: 600;
}
.traits dd { margin: 0.15rem 0 0; font-family: var(--body); font-size: 1.02rem; color: var(--ink); }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 1rem;
}
.palette-chip { margin: 0; }
.palette-swatch {
  display: block;
  height: 5.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 33, 64, 0.08);
  box-shadow: var(--shadow-sm);
}
.palette-chip figcaption { display: flex; flex-direction: column; margin-top: 0.5rem; }
.palette-name { font-family: var(--display); font-size: 1.02rem; line-height: 1.3; }
.palette-hex { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-faint); }

.note-card { margin-top: 1.2rem; background: var(--paper); }

.results-foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

@media (max-width: 34rem) {
  .palette-swatch { height: 4.2rem; }
}

/* ─── Photo + palette ring ─────────────────────────────────── */

.ring-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.ring-mount { width: 100%; }
.ring-mount-lg { max-width: 22rem; margin: 0 auto 2rem; }

.palette-ring { display: block; width: 100%; height: auto; }
.palette-ring .ring-segment { transition: stroke 0.25s var(--ease); }
.palette-ring .ring-empty { stroke: var(--line); stroke-dasharray: 5 7; }
.palette-ring .ring-inner-edge { fill: var(--paper); stroke: rgba(27, 33, 64, 0.08); }
.palette-ring .ring-placeholder { fill: var(--shell); }
.palette-ring .ring-initial {
  fill: var(--engraved);
  font-family: var(--display);
  /* User units, not rem: this text lives inside the ring's 200-unit viewBox. */
  font-size: 46px;
  letter-spacing: 0.04em;
}

.ring-side { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.ring-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Background removal, under the ring's actions once there is a photo. */
.bg-removal { display: flex; flex-direction: column; gap: 0.6rem; align-items: inherit; }
.bg-removal .btn[aria-pressed="true"] { background: var(--raspberry-deep); border-color: var(--raspberry-deep); color: #fff; }
.bg-choice { display: flex; flex-direction: column; gap: 0.45rem; align-items: inherit; }
.bg-choice .field-hint { margin: 0; }
.bg-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bg-swatch {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(27, 33, 64, 0.14);
  cursor: pointer;
  touch-action: manipulation;
}
.bg-swatch[draggable="true"] { cursor: grab; }
.bg-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.bg-swatch:focus-visible { outline: 2px solid var(--raspberry-deep); outline-offset: 3px; }
/* "No colour": her cutout on the ring's own paper. */
.bg-swatch-none { background: linear-gradient(135deg, var(--paper) 45%, var(--line) 45% 55%, var(--paper) 55%); }
.ring-side .notice { margin: 0; }

@media (max-width: 52rem) {
  .ring-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ring-mount { max-width: 17rem; }
  .ring-side { align-items: center; text-align: center; }
  .bg-swatches { justify-content: center; }
}

/* ─── Season palette presets ───────────────────────────────── */

.preset-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.preset-bar .field { flex: 1 1 13rem; min-width: 0; }

#preset-note { margin: -0.5rem 0 1.1rem; }

/* ─── Season picker ────────────────────────────────────────────
   The two season dropdowns, not the page's selects in general: a
   native <option> cannot carry a colour dot or a rule between the
   four families in every browser. Dressed to match .field input. */

.season-picker { position: relative; }

.season-trigger {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.8rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.season-trigger:hover { border-color: var(--line-strong); }

.season-trigger:focus-visible,
.season-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3.5px rgba(155, 124, 196, 0.2);
}

.season-trigger-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-trigger-label.is-placeholder { color: var(--ink-faint); }

.season-chevron { flex: none; color: var(--ink-faint); transition: transform 0.18s var(--ease); }
.season-trigger[aria-expanded="true"] .season-chevron { transform: rotate(180deg); }

/* The representative colour. A hairline keeps the palest dots visible on white. */
.season-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(27, 33, 64, 0.1);
}

.season-dot.is-unknown { background: var(--line-strong); }

.season-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-height: min(30rem, 62vh);
  overflow-y: auto;
}

.season-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.season-option.is-active { background: rgba(141, 115, 189, 0.12); }
.season-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.season-tick { flex: none; color: var(--lilac); opacity: 0; }
.season-option[aria-selected="true"] .season-tick { opacity: 1; }
.season-option[aria-selected="true"] .season-option-label { font-weight: 600; }

.season-divider {
  height: 1px;
  margin: 0.35rem 0.55rem;
  background: var(--line);
}

/* ─── Palette builder ──────────────────────────────────────────
   The alternates and the client's 22 positions share one tile:
   the same swatch, name and hex as her results page, at one fixed
   size in both grids, so nothing jumps as a colour moves across. */

.builder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.builder-count {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.builder-help { margin-bottom: 0.9rem; }

.colour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
  gap: 0.95rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.colour-grid > li { min-width: 0; }

.slot-body,
.library-swatch {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.colour-tile-swatch {
  position: relative;
  display: block;
  width: 100%;
  height: 4.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 33, 64, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.colour-tile-name {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.22;
  /* Two lines are always reserved, so every tile is the same height. */
  min-height: 2.44em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.colour-tile-hex {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* Only where there is a real pointer: a phone would leave the lift stuck on. */
@media (hover: hover) {
  .library-swatch:hover .colour-tile-swatch,
  .slot-body:hover .colour-tile-swatch { transform: translateY(-2px); box-shadow: var(--shadow); }
  }

.library-swatch:active .colour-tile-swatch,
.slot-body:active .colour-tile-swatch { transform: scale(0.97); }

.library-swatch:focus-visible,
.slot-body:focus-visible { outline: none; }

.library-swatch:focus-visible .colour-tile-swatch,
.slot-body:focus-visible .colour-tile-swatch {
  border-color: var(--lilac);
  box-shadow: 0 0 0 3.5px rgba(155, 124, 196, 0.28);
}

/* The client's positions */

.client-slot { position: relative; }

.slot-number {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.client-slot.is-empty .colour-tile-swatch {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed var(--line-strong);
  box-shadow: none;
}

.client-slot.is-empty .slot-number {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.client-slot.is-selected .colour-tile-swatch,
.client-slot.is-drop-target .colour-tile-swatch {
  border-color: var(--lilac);
  box-shadow: 0 0 0 3.5px rgba(155, 124, 196, 0.28);
}

.client-slot.is-drop-target .colour-tile-swatch { transform: scale(1.04); }
.client-slot.is-empty.is-drop-target .colour-tile-swatch { background: rgba(141, 115, 189, 0.1); }

.slot-remove {
  appearance: none;
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.slot-remove:hover { background: #fff; color: var(--raspberry-deep); }

.slot-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 124, 196, 0.45);
}

.builder-hint {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--raspberry-deep);
}

.builder-hint:empty { margin-top: 0; }

/* Dragging */

.is-drag-source { opacity: 0.4; }

body.is-dragging-colour,
body.is-dragging-colour * { cursor: grabbing !important; }

.colour-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--radius);
  border: 2px solid #fff;
  box-shadow: var(--shadow-lift);
  pointer-events: none;
}

/* Colours kept from the old editor, beyond position 22 */

.kept-colours {
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Its display: flex would otherwise override the hidden attribute. */
.kept-colours[hidden] { display: none; }

.kept-colours-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }

.kept-colour { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); }

.kept-colour-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(27, 33, 64, 0.1);
}

/* The library */

.season-library {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.library-grid { margin-top: 0.6rem; }

.library-empty {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* Phones: four equal tiles to a row, big enough to tap, no hover needed. */
@media (max-width: 34rem) {
  .colour-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem 0.55rem; }
  .colour-tile-swatch { height: 3.6rem; }
  .colour-tile-name { margin-top: 0.35rem; font-size: 0.9rem; }
  .colour-tile-hex { font-size: 0.64rem; letter-spacing: 0.04em; }
  .slot-remove { top: 0.2rem; right: 0.2rem; width: 1.4rem; height: 1.4rem; }
  .slot-number { top: 0.2rem; left: 0.2rem; }
  .season-library { margin-top: 1.2rem; padding-top: 1.1rem; }
}

/* The narrowest phones: three to a row rather than squeezing four. */
@media (max-width: 21.5rem) {
  .colour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Photo positioning ─────────────────────────────────────────
   A full-screen sheet on a phone, a small card on a wider screen. The circle
   is the same shape the palette ring cuts the photo to. */
.crop-dialog {
  width: min(100vw - 24px, 420px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
.crop-dialog::backdrop { background: rgba(27, 33, 64, 0.55); }

.crop-panel { display: grid; gap: 14px; padding: 20px; }
.crop-panel h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.crop-panel .soft-note { margin: 0; }

.crop-view {
  position: relative;
  width: min(100%, 320px, 52dvh);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--shell);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.crop-view:active { cursor: grabbing; }
.crop-view:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

.crop-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Everything outside the circle is dimmed, as the ring would hide it. */
.crop-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.72);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.crop-zoom { display: grid; gap: 6px; }
.crop-zoom input { width: 100%; accent-color: var(--sage); }

.crop-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ─── Public colour analysis page ──────────────────────────────
   The page Sydney sends prospective clients. Built from the sign-in
   meadow, the results cards and the shared buttons, with just the
   long-page layout added here. */

.page-offer::after { opacity: 0.14; }

/* The page's small-capital section labels ("The idea", "Good to know", the
   purchase card's "Foxmeadow Studio"…): one shared style, so every label
   matches. Larger than the portal's eyebrows so they read as headers, still
   well below each section's heading. */
.page-offer .eyebrow {
  font-family: var(--caps);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--engraved);
  margin-bottom: 0.55rem;
}

/* Hero: the sign-in meadow and seal, given the full width. */
.offer-hero {
  min-height: min(46rem, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 3.4rem;
  background-image:
    radial-gradient(32rem 28rem at 50% 50%, rgba(255, 252, 250, 0.8), rgba(255, 249, 246, 0.28) 56%, rgba(255, 249, 246, 0) 78%),
    linear-gradient(180deg, rgba(255, 246, 244, 0.26), rgba(255, 251, 249, 0.02) 44%, rgba(250, 245, 241, 0.3)),
    url("/assets/brand/foxmeadow-meadow.jpg");
  background-size: cover;
  background-position: center bottom;
  border-bottom: 1px solid rgba(27, 33, 64, 0.06);
}

.offer-hero .auth-emblem { width: min(15rem, 52vw); margin-bottom: 1.8rem; }
.offer-hero .auth-blurb { max-width: 30rem; }
/* Understated caps in the lockup face, so the title sits beneath the seal
   rather than competing with it. One line wherever it fits. */
.offer-hero .auth-blurb { max-width: 36rem; }
.offer-hero .auth-blurb h1 {
  font-family: var(--display);
  font-size: clamp(1rem, 4vw, 1.42rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: nowrap;
  margin-bottom: 0.9rem;
}
.offer-hero .auth-blurb p:not(.eyebrow) { font-size: 1.02rem; max-width: 26rem; }

.offer-cta { margin-top: 1.6rem; padding: 0.86rem 1.6rem; font-size: 0.97rem; }

.offer {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.75rem);
}

.offer-section { padding: clamp(3.2rem, 8vw, 5rem) 0 0; }
.offer-narrow { max-width: 42rem; margin: 0 auto; }

.offer-section > .eyebrow,
.offer-section > h2 { text-align: center; }

.offer-section h2 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
.offer-section .card-head h2 { font-size: 1.32rem; }

.offer-section > .rule-diamond { max-width: 12rem; margin: 1.1rem auto 1.5rem; }

/* Section labels take the shared style above; only their spacing is set here. */
.offer-section > .eyebrow,
.offer-head > .eyebrow { margin-bottom: 0.65rem; }

.offer-head { text-align: center; margin-bottom: 2rem; }
.offer-head > p:not(.eyebrow) { color: var(--ink-soft); margin-top: 0.5rem; }

.offer-lede {
  font-family: var(--display);
  font-size: clamp(1.18rem, 2.4vw, 1.32rem);
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
}
.offer-lede + .offer-lede { margin-top: 1rem; color: var(--ink-soft); }
.offer-lede em { color: var(--forest); }

/* How it works */
.offer-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.offer-steps .card { margin: 0; text-align: center; padding: 1.8rem 1.4rem; }
.offer-steps h3 { font-size: 1.36rem; margin-bottom: 0.4rem; }
.offer-steps p { color: var(--ink-soft); font-size: 0.93rem; }

.offer-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 1rem;
  color: var(--engraved);
}

/* The four seasons */
.offer-seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.offer-season { margin: 0; text-align: center; }

/* Each House's crest: four flat colours quartered by a fine ivory cross,
   inside a delicate double outline. */
.offer-shield {
  display: block;
  width: min(100%, 11rem);
  height: auto;
  margin: 0 auto;
}
.offer-shield-cross { fill: none; stroke: var(--cream); stroke-width: 2.4; }
.offer-shield-line { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }

.offer-season figcaption { margin-top: 0.85rem; }
.offer-season h3 { font-size: 1.45rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.offer-season h3::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--tint);
}
.offer-season p { font-size: 0.88rem; color: var(--ink-soft); }

/* What you receive reuses the results cards directly. */
.offer-section .traits { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.offer-swatches { margin-bottom: 0.8rem; }
.offer-swatches .swatch { width: 2.1rem; height: 2.1rem; margin-right: -0.5rem; }

/* Purchase */
.offer-purchase { margin: 0 auto; max-width: 27rem; text-align: center; animation: none; }
.offer-purchase .eyebrow { margin-bottom: 0.6rem; }

.offer-purchase .offer-price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.4rem;
}

.offer-venmo { width: 100%; padding: 0.9rem 1.35rem; border-radius: 11px; font-size: 1rem; }
.offer-purchase .field-hint { margin-top: 0.8rem; }

.offer-need {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.offer-need-title {
  font-family: var(--caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* Photo guide */
.offer-photos { margin: 0; }
.offer-photo-steps { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.offer-photo-steps li::marker { color: var(--engraved); }
.offer-photo-time {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--forest);
}

/* FAQ */
.offer-faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.offer-faq details + details { border-top: 1px solid var(--line); }

.offer-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
}

.offer-faq summary::-webkit-details-marker { display: none; }
.offer-faq summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 1.2rem;
  color: var(--engraved);
  transition: transform 0.2s var(--ease);
}
.offer-faq details[open] summary::after { transform: rotate(45deg); }
.offer-faq details p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* Footer */
.offer-foot {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5rem) 1.5rem 3rem;
  text-align: center;
}

.offer-foot .rule-diamond { max-width: 12rem; margin: 0 auto 1.6rem; }

.offer-verse { margin: 0; }
/* Set like the Client Guide's verse: the script face, standing upright. */
.offer-verse p {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  line-height: 1.35;
}
.offer-verse cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--caps);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engraved);
}

@media (max-width: 52rem) {
  .offer-steps { grid-template-columns: minmax(0, 1fr); max-width: 26rem; margin: 0 auto; }
  .offer-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Only the narrowest phones let the hero title wrap. */
@media (max-width: 24rem) {
  .offer-hero .auth-blurb h1 { white-space: normal; letter-spacing: 0.12em; }
}

@media (max-width: 34rem) {
  .offer-hero { min-height: auto; padding: 2.4rem 1.2rem 2.8rem; }
  .offer-purchase { padding: 2rem 1.4rem; }
  .offer-faq summary { padding: 1rem 1.1rem; font-size: 1.12rem; }
  .offer-faq details p { padding: 0 1.1rem 1.1rem; }
}

/* ─── Ordering: purchase form, private order page, Sydney's orders ─── */

.offer-currency { font-family: var(--body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft); }
.offer-order-form { text-align: left; margin-bottom: 0.2rem; }
.offer-resume { margin-bottom: 1rem; text-align: left; }
.offer-resume a { font-weight: 600; }
/* A field only bots fill in. Kept out of sight and out of the tab order. */
.offer-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offer-photo-upload { margin-top: 1rem; color: var(--ink-soft); font-size: 0.93rem; }
.field-optional { font-weight: 400; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }

/* The private order page */
.order-top { text-align: center; padding: clamp(2.2rem, 6vw, 3.4rem) 1.2rem 0; }
.order-seal { width: 6.5rem; height: auto; margin: 0 auto 1rem; display: block; }
.order-top .eyebrow { margin-bottom: 0.5rem; }
.order-top h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }

.order { max-width: 42rem; padding-top: 1.8rem; display: flex; flex-direction: column; }
.order-loading { text-align: center; color: var(--ink-soft); padding: 2rem 0; }
.order-gone { margin: 1.5rem 0; }
#order-body { display: flex; flex-direction: column; gap: 1.2rem; }
#order-body[hidden] { display: none; }
#order-body .card + .card { margin-top: 0; }
.order .card-head h2 { font-size: 1.32rem; }
.order .card-head h2 .offer-step-num { width: 1.9rem; height: 1.9rem; margin: 0; font-size: 0.9rem; }
.order .prose { color: var(--ink-soft); }

.order-done { text-align: center; border-color: rgba(36, 92, 70, 0.3); }
.order-done .rule-diamond { max-width: 10rem; margin: 0 auto 1rem; }
.order-done-text { font-family: var(--display); font-size: 1.22rem; line-height: 1.5; color: var(--forest); }

.order-link-row { display: flex; gap: 0.5rem; margin: 0.9rem 0 0.8rem; }
.order-link-row .input { flex: 1; min-width: 0; font-size: 0.84rem; }
.order-email-again { margin-top: 0.6rem; }

.order-pay { margin: 0.2rem 0 1rem; text-align: center; }
.order-venmo-user { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.92rem; }
.order-pay .offer-venmo { display: inline-flex; justify-content: center; }
.order-step .soft-note { margin-top: 0.8rem; }
.order-step-photos { display: flex; flex-direction: column; gap: 1.2rem; }
.order-step-photos .card + .card { margin-top: 0; }

.order-slots {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr));
  gap: 1rem;
}
.order-slot { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.order-slot-title { font-family: var(--display); font-size: 1.05rem; }
.order-slot-hint { font-size: 0.76rem; color: var(--ink-faint); line-height: 1.35; min-height: 2.1em; }
.order-slot-frame,
.order-slot-empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}
.order-slot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px dashed var(--line-strong);
  color: var(--engraved);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.order-slot-empty:hover { border-color: var(--engraved); background: var(--shell); }
.order-slot-empty:focus-visible { outline: 2px solid var(--raspberry-deep); outline-offset: 3px; }
.order-slot.is-selfie .order-slot-empty { border-color: var(--sage); color: var(--sage-deep); }
.order-slot-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.order-slot-actions .btn { flex: 1; justify-content: center; padding-inline: 0.5rem; }
.order-slot-state { font-size: 0.78rem; color: var(--ink-soft); }
.order-slot-state.is-good { color: var(--forest); font-weight: 600; }
.order-slot-error { font-size: 0.78rem; color: var(--raspberry-deep); }
.order-progress { height: 5px; border-radius: 999px; background: var(--shell); overflow: hidden; }
.order-progress span { display: block; height: 100%; background: var(--sage); transition: width 0.2s linear; }

.order-message { margin-bottom: 1.1rem; }
.order-upload .notice { margin-bottom: 1rem; }
.order-upload .offer-venmo:disabled { opacity: 0.55; cursor: not-allowed; }
.order-submit-hint { margin-top: 0.6rem; text-align: center; display: block; }

@media (max-width: 34rem) {
  .order-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .order-link-row { flex-direction: column; }
}

/* Sydney's orders, above her client book */
.orders-panel { margin-bottom: 2.2rem; }
.orders-panel .notice { margin-bottom: 1rem; }
.orders-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.orders-head h2 { font-size: 1.6rem; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.1rem; }
.order-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.2rem 1.25rem; }
.order-card.card + .card { margin-top: 0; }
.order-card h3 { font-size: 1.36rem; }
.order-card .contact { font-size: 0.84rem; margin-top: 0.2rem; overflow-wrap: anywhere; }
.order-started { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.15rem; }
.order-status { margin: 0; display: grid; gap: 0.55rem; }
.order-status > div { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.order-status dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.order-status dd { margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.order-status .pill { max-width: none; }
.order-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.order-thumbs a { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.order-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-thumbs span { display: block; font-size: 0.66rem; color: var(--ink-faint); text-align: center; margin-top: 0.2rem; }
.order-message-quote {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--engraved-soft);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.order-link-tools { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.order-link-tools .field-hint { margin-right: auto; }
.order-fresh-link .order-link-row { margin: 0.4rem 0 0; }
.order .card-head { flex-wrap: wrap; }
.offer-contact { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
