/* [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; }
}
