/* [cellara-site-2026-07-24] cellara.com marketing styles.
   Brand tokens lifted verbatim from resources/app/css/_variables.scss so the
   site and the app stay one visual system. Light and dark are both first-class;
   the app defaults to dark, the marketing site follows the visitor's OS. */

:root {
  --green: #006d5b;
  --green-deep: #065f58;
  --green-lift: #308271;
  --blue: #5297da;
  --blue-deep: #2676cc;
  --gold: #f1ad4a;
  --teal: #61b4aa;
  --ink: #312f2f;

  --green-grad: linear-gradient(315deg, #065f58 0%, #308271 80%);

  --bg: #ffffff;
  --bg-alt: #eff3fc;
  --bg-sunk: #e6ecf7;
  --line: #d0daee;
  --text: #2b3038;
  --text-dim: #5c6675;
  --accent: #00594a;

  --wrap: 1080px;
  --radius: 14px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171717;
    --bg-alt: #1c1c1b;
    --bg-sunk: #232322;
    --line: #35352f;
    --text: #e8e7df;
    --text-dim: #9a9a90;
    --accent: #61b4aa;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); }
a:hover { color: var(--green-lift); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

code { font-family: var(--mono); font-size: 0.9em; color: var(--blue); }

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

/* ---- header ---- */

.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

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

section { padding: 64px 0; }
section.tint { background: var(--bg-alt); border-block: 1px solid var(--line); }
section.hero { padding: 88px 0 72px; }

.lede { font-size: 1.22rem; color: var(--text-dim); max-width: 40em; }
.narrow { max-width: 46em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.76rem;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--green-grad); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
section.tint .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.shot { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
figure { margin: 32px 0; }
figcaption { font-size: 0.9rem; color: var(--text-dim); margin-top: 10px; }

.note {
  border-left: 3px solid var(--gold); background: var(--bg-alt);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0;
}
.note p:last-child { margin-bottom: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 26px 0; }
dl.facts dt { font-weight: 700; color: var(--text-dim); }
dl.facts dd { margin: 0; }

.prose h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.updated { color: var(--text-dim); font-size: 0.92rem; }

/* ---- forms ---- */

form.contact { max-width: 34em; margin-top: 28px; }
form.contact label { display: block; font-weight: 600; font-size: 0.92rem; margin: 18px 0 6px; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.contact select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact button { margin-top: 22px; cursor: pointer; font: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 600; }

/* ---- footer ---- */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 46px 0 54px; margin-top: 20px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.foot-brand p { margin: 0; font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: var(--text); }
.legal { margin: 30px 0 0; font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

@media (max-width: 620px) {
  body { font-size: 17px; }
  .head-inner { height: auto; padding-block: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-head { position: static; }
  section { padding: 48px 0; }
  section.hero { padding: 56px 0 44px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 12px; }
}

/* ---- login home (product surface, not marketing) ----
   [login-home-2026-08-05] Same organic glass pebble as app.cellara.com guest
   login: class names + layout mirror the app so blob-shape.js computes the
   identical content-driven clip. Styles lifted from
   resources/app/css/components/capps/_settings.scss. */

body.layout-login {
  background: #111111;
  color: #e8e7df;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 17px;
}

body.layout-login .site-head,
body.layout-login .site-foot {
  display: none;
}

body.layout-login .skip:focus {
  background: #006d5b;
}

body.layout-login #main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

.login-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* App parity: settings container centers the blob card */
body.layout-login .cellara-settings-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 12px 16px;
}

/* Organic blob wrapper — glass fill via ::before clipped to #blob-clip */
body.layout-login .cellara-login-blob {
  position: relative;
  isolation: isolate;
  max-width: 100%;
}

body.layout-login .cellara-login-blob::before {
  content: '';
  position: absolute;
  inset: -100px;
  z-index: -1;
  clip-path: url(#blob-clip);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

body.layout-login .cellara-login-blob::after {
  content: '';
  position: absolute;
  inset: -100px;
  z-index: -1;
  clip-path: url(#blob-clip);
  background: radial-gradient(
    ellipse 55% 45% at 30% 25%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Soft membrane texture (app default "Leader" / texture 4) */
body.layout-login .cellara-login-blob {
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.10));
}
body.layout-login .cellara-login-blob::before {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 250, 242, 0.06) 55%,
    rgba(255, 246, 237, 0.03) 100%
  );
}
body.layout-login .cellara-login-blob::after {
  background:
    radial-gradient(ellipse 42% 32% at 26% 20%, rgba(255, 255, 255, 0.11) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 75% 82%, rgba(255, 248, 235, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 12%);
}

body.layout-login .cellara-settings_guest-mode_card {
  position: relative;
  z-index: 2;
  font-size: 17px;
  user-select: none;
  padding: 20px;
  /* Desktop/tablet: app-width card. Mobile override below shrinks further so
     the organic membrane doesn't fill the whole viewport. */
  width: min(340px, calc(100vw - 64px));
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  color: white;
}

body.layout-login .cellara-settings_name {
  font-size: 24px;
  padding-left: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0;
  color: #f5f4ec;
}

body.layout-login .cellara-settings_body {
  padding-top: 10px;
  padding-left: 15px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.layout-login .cellara-settings_guest-mode__login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 10px;
  box-sizing: border-box;
}

body.layout-login .cellara-settings_guest-mode__login-fields {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  gap: 12px;
  box-sizing: border-box;
  margin: 0;
}

body.layout-login label.cellara-settings_guest-mode_username,
body.layout-login label.cellara-settings_guest-mode_password {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

body.layout-login .capp-field-name {
  font-size: 0.92rem;
  color: #b8b8ae;
  text-align: right;
  white-space: nowrap;
}

body.layout-login input.cellara-settings_guest-mode_username,
body.layout-login input.cellara-settings_guest-mode_password {
  border-radius: 20px;
  border: 1px solid black;
  height: 44px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0;
  font: inherit;
  font-size: 16px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.65);
}

body.layout-login input.cellara-settings_guest-mode_username:focus,
body.layout-login input.cellara-settings_guest-mode_password:focus {
  outline: 2px solid #61b4aa;
  outline-offset: 1px;
}

body.layout-login .cellara-settings_guest-mode_login-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  /* never wrap — stacking Forgot/Login warps the content rects and the blob
     stretches into a spear (see 2026-08-05 mobile mishap) */
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  padding-top: 4px;
  box-sizing: border-box;
}

body.layout-login button.cellara-settings_secondary,
body.layout-login button.cellara-settings_guest-mode_login {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 20px;
  border: 1px solid black;
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

body.layout-login button.cellara-settings_secondary {
  color: white;
  background-color: transparent;
}

body.layout-login button.cellara-settings_secondary:hover {
  background-color: #2e2e30;
  color: white;
}

body.layout-login button.cellara-settings_guest-mode_login {
  min-width: 90px;
  margin-left: 4px;
  color: white;
  background-color: #065f58;
}

body.layout-login button.cellara-settings_guest-mode_login:hover {
  background-color: #308271;
  color: white;
}

/* Edge glow / border SVGs injected by blob-shape.js */
body.layout-login .cellara-login-blob [class^="blob-edge-glow-"],
body.layout-login .cellara-login-blob [class^="blob-border-"] {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.login-support {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.login-support a {
  color: #8a8a82;
  text-decoration: none;
}

.login-support a:hover {
  color: #c4c4ba;
  text-decoration: underline;
}

/* Screen-reader + crawler-visible compliance text; not the visual focus. */
.login-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Phone: keep the SAME compact layout as desktop (labels beside fields,
   Forgot + Login on one row). Stacking content made the organic blob stretch
   into a tall spear. Slightly narrower card + a touch of scale so it sits
   inset without changing the arrangement. */
@media (max-width: 520px) {
  body.layout-login #main {
    padding: 20px 10px 36px;
  }
  body.layout-login .cellara-settings-container {
    padding: 8px 6px;
  }
  body.layout-login .cellara-login-blob {
    /* ~12% smaller overall on phone — keeps proportions of the app card */
    transform: scale(0.88);
    transform-origin: center center;
  }
  body.layout-login .cellara-settings_guest-mode_card {
    /* Wide enough that Forgot Password + Login stay on one row (~230px of
       buttons). Labels stay beside fields (same as app desktop). */
    width: min(320px, calc(100vw - 28px));
    padding: 18px 16px 14px;
  }
  body.layout-login .cellara-settings_body {
    padding-left: 8px;
    padding-top: 8px;
  }
  body.layout-login label.cellara-settings_guest-mode_username,
  body.layout-login label.cellara-settings_guest-mode_password {
    grid-template-columns: 72px 1fr;
    gap: 8px;
  }
  body.layout-login .capp-field-name {
    text-align: right;
    font-size: 0.85rem;
  }
  body.layout-login input.cellara-settings_guest-mode_username,
  body.layout-login input.cellara-settings_guest-mode_password {
    min-width: 0;
    height: 42px;
  }
  body.layout-login .cellara-settings_guest-mode__login-fields {
    gap: 10px;
  }
  body.layout-login .cellara-settings_guest-mode_login-row {
    gap: 8px;
  }
  body.layout-login button.cellara-settings_secondary,
  body.layout-login button.cellara-settings_guest-mode_login {
    padding: 0 12px;
    flex-shrink: 0;
  }
  /* Match app mobile: edge glow SVG overlays can overdraw on small screens */
  body.layout-login .cellara-login-blob [class^="blob-edge-glow-"],
  body.layout-login .cellara-login-blob [class^="blob-border-"] {
    display: none !important;
  }
}

/* ---- Greco Counter (customer experiment) ---- */

.gc-banner {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.gc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 0.5rem;
}

.gc-hero .gc-meta {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.gc-refresh {
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.gc-status {
  min-height: 1.4em;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.gc-status.gc-busy { color: var(--blue-deep); }
.gc-status.gc-ok { color: var(--green-deep); }
.gc-status.gc-warn { color: #9a6700; }
.gc-status.gc-err { color: #b42318; }

.gc-row.is-anchor {
  background: rgba(0, 109, 91, 0.08);
}
@media (prefers-color-scheme: dark) {
  .gc-row.is-anchor { background: rgba(97, 180, 170, 0.12); }
}

.gc-you {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--green-grad);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.gc-role {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 6px;
}

.gc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1.4rem;
}

.gc-chip {
  appearance: none;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
}

.gc-chip:hover { border-color: var(--accent); }

.gc-chip.is-active {
  background: var(--green-grad);
  border-color: transparent;
  color: #fff;
}

.gc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.gc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.gc-table th,
.gc-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.gc-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg-sunk);
}

.gc-price {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .gc-price { color: var(--teal); }
}

.gc-sku strong { display: inline; }

.gc-foot-note {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

.gc-shops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 1.5rem;
}

.gc-shop-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  background: var(--bg-alt);
}

.gc-shop-card .gc-addr {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.gc-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.gc-ok .gc-badge {
  background: #d8f3e7;
  color: #065f58;
}

.gc-pending .gc-badge {
  background: #f8e7c8;
  color: #7a4b00;
}

@media (prefers-color-scheme: dark) {
  .gc-ok .gc-badge { background: #1a3d34; color: #9ee0c8; }
  .gc-pending .gc-badge { background: #3d2e12; color: #f1c27a; }
}

@media (max-width: 640px) {
  .gc-table th:nth-child(4),
  .gc-table td:nth-child(4),
  .gc-table th:nth-child(6),
  .gc-table td:nth-child(6) {
    display: none;
  }
  .gc-price { font-size: 1.25rem; }
  .gc-chip { padding: 10px 12px; font-size: 0.92rem; }
}
