/* TC's OS public site (tcsos.online) — static, phone-first, no trackers, no backend. */
:root {
  --ink: #1c2420;
  --muted: #46544b;
  --line: #d9e3dc;
  --bg: #ffffff;
  --wash: #f2f6f3;
  --brand: #1d5c38;
  --brand-deep: #123f26;
  --brand-tint: #e7f1ea;
  --gold: #7a5510;
  --gold-tint: #faf3e2;
  --tap: 46px;
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.85rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: var(--brand-deep); }
a:hover { color: var(--brand); }
img, svg { max-width: 100%; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-deep); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; font-weight: 700; z-index: 50;
}
.skip:focus { left: 0; color: #fff; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.head-in {
  display: flex; align-items: center; gap: 12px;
  min-height: 66px; padding-top: 6px; padding-bottom: 6px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand-link img { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 6px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink);
}
.nav a:hover { background: var(--brand-tint); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }
.nav .app-btn {
  background: var(--brand); color: #fff; margin-left: 6px; padding: 6px 18px; border-radius: 999px;
}
.nav .app-btn:hover { background: var(--brand-deep); color: #fff; }

/* ---- hero (left-aligned; mock panel beside, never a centered pill stack) ---- */
.hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; gap: 28px; padding: 40px 20px 44px;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 64px 20px 68px; }
}
@media (max-width: 759px) {
  .head-in { flex-wrap: wrap; row-gap: 2px; }
  .nav { width: 100%; }
}
.hero-copy .byline { color: var(--muted); font-weight: 600; margin-bottom: 0.35rem; }
.hero-copy .sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 26px;
  border-radius: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid var(--brand);
}
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-deep); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }
.fineprint { font-size: 0.92rem; color: var(--muted); margin-top: 0.9rem; }

/* ---- illustrative mock panels (placeholders, never customer data) ---- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 14px rgba(18, 63, 38, 0.08);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--brand-deep); color: #fff;
  padding: 10px 14px; font-size: 0.85rem; font-weight: 600;
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #7fb894; }
.mock-body { padding: 16px; }
.mock-cap {
  font-size: 0.85rem; color: var(--muted); text-align: center;
  padding: 10px 14px 12px; border-top: 1px dashed var(--line);
}

/* ---- sections ---- */
section.block { padding: 44px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.tinted { background: var(--wash); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.feat-row {
  display: grid; gap: 22px; margin-top: 28px; align-items: center;
}
@media (min-width: 860px) {
  .feat-row { grid-template-columns: 1fr 1fr; }
  .feat-row.flip > .feat-copy { order: 2; }
}
.feat-copy .scope {
  font-size: 0.92rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.9rem;
}
.feat-copy .scope strong { color: var(--ink); }

/* ---- live vs planned ---- */
.status-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 860px) { .status-grid { grid-template-columns: 1.2fr 1fr; } }
.status-card { border-radius: 14px; padding: 22px 24px; }
.status-live { background: var(--brand-deep); color: #fff; }
.status-live h3, .status-live p { color: #fff; }
.status-live ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.status-live li {
  padding: 0.55rem 0 0.55rem 2rem; position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.status-live li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.95rem;
  width: 0.7rem; height: 0.4rem;
  border-left: 3px solid #9fdcb6; border-bottom: 3px solid #9fdcb6;
  transform: rotate(-45deg) translateY(-2px);
}
.status-next { background: #fff; border: 1px solid var(--line); }
.status-next ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.status-next li { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  background: var(--gold-tint); color: var(--gold);
  border: 1px solid #e2cf9e; border-radius: 999px;
  padding: 1px 10px; margin-right: 8px; vertical-align: 2px;
}

/* ---- prose pages ---- */
.prose { max-width: 720px; padding: 36px 0 56px; }
.prose h1 { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.note {
  background: var(--gold-tint); border: 1px solid #e2cf9e;
  border-radius: 10px; padding: 14px 18px; margin: 1.4rem 0;
}
.note p { margin: 0; }

/* ---- release notes ---- */
.release { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 0 0 18px; background: #fff; }
.release time { font-weight: 700; color: var(--brand-deep); }
.release .rn-label { font-weight: 700; }
.release ul { margin: 0.5rem 0 0.9rem; padding-left: 1.3rem; }
.release li { margin-bottom: 0.35rem; }
.release > p:last-child, .release > ul:last-child { margin-bottom: 0; }

/* ---- form (mailto compose; no backend) ---- */
form.access { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 20px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap);
  font: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); outline: 3px solid var(--brand-tint); outline-offset: 1px;
}

/* ---- footer ---- */
.site-foot { background: var(--brand-deep); color: #eaf3ed; }
.site-foot a { color: #fff; }
.foot-grid {
  display: grid; gap: 24px; padding: 36px 0 28px;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { font-size: 1rem; color: #9fdcb6; margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.15rem; }
.site-foot li a { display: inline-block; min-height: 40px; line-height: 40px; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.signoff { border-top: 1px solid rgba(255, 255, 255, 0.25); padding: 18px 0 22px; }
.signoff p { margin: 0; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
