/* clinicomm prelaunch site — one stylesheet, no scripts, no external requests.
   Everything here is hand-written for this site. No framework, no icon set, no web fonts. */

/* ---------------------------------------------------------------- tokens */

:root {
  --ivory: #faf5ea;
  --ivory-deep: #f0e7d5;
  --paper: #fffdf7;
  --forest-900: #0d2a1b;
  --forest-700: #16452c;
  --forest-500: #2c6a47;
  --ink: #17201a;
  --muted: #566056;
  --hair: #ddd2ba;
  --amber: #a84013;
  --lime: #9fbf3b;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shell: 74rem;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --edge: 1px solid var(--hair);
}

.site-foot :focus-visible,
.band-dark :focus-visible {
  outline-color: #faf5ea;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  text-underline-offset: 0.18em;
}

/* A faint horizon of paper behind the top of every page, so the ivory reads warm
   rather than flat. Purely decorative. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 55vh;
  background: linear-gradient(180deg, var(--paper), rgba(255, 253, 247, 0));
  pointer-events: none;
  z-index: -1;
}

/* ------------------------------------------------------------ typography */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.06;
  color: var(--forest-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.7rem + 4.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.85rem);
}

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  line-height: 1.2;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

a {
  color: var(--forest-700);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--amber);
}

strong {
  font-weight: 650;
  color: var(--forest-900);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::after {
  content: "";
  flex: 1 1 2rem;
  height: 1px;
  background: var(--hair);
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.5;
  color: #2f3a32;
  max-width: 38rem;
}

.small {
  font-size: 0.87rem;
  color: var(--muted);
}

.mono-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------- shell and rails */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--forest-900);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

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

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

.masthead {
  border-bottom: var(--edge);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--forest-900);
}

.wordmark .dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-0.1em);
}

.wordmark .by {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  font-size: 0.93rem;
}

.nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--forest-900);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--forest-900);
}

/* ---------------------------------------------------------------- status */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border: 1px solid #cbbb96;
  border-radius: 999px;
  background: #fdf3dd;
  color: #6b4c14;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
}

.notice {
  border: var(--edge);
  border-left: 4px solid var(--amber);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem;
  margin: 1.75rem 0;
  max-width: 42rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.55rem;
}

/* --------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2rem 0 0;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.btn .arrow {
  font-family: var(--sans);
  transition: transform 160ms ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--forest-900);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--forest-700);
  color: var(--ivory);
}

.btn-ghost {
  border-color: #c3b697;
  color: var(--forest-900);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--forest-900);
  color: var(--forest-900);
  background: rgba(13, 42, 27, 0.04);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.42em;
}

.hero h1 .accent {
  color: var(--forest-500);
  font-style: italic;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------------------- the drawing */

.figure {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 1rem;
}

/* The panel and the lime rule behind the drawing. Decorative. */
.figure::before {
  content: "";
  position: absolute;
  inset: 8% -4% 12% 6%;
  background: var(--ivory-deep);
  border-radius: 20px;
  border: 1px solid #e2d5b8;
}

.figure::after {
  content: "";
  position: absolute;
  left: 2%;
  top: 18%;
  width: 3px;
  height: 34%;
  background: var(--lime);
  border-radius: 2px;
}

.device {
  position: relative;
  width: min(19rem, 82vw);
  aspect-ratio: 9 / 18.6;
  background: var(--forest-900);
  border-radius: 40px;
  padding: 11px;
  box-shadow: 0 26px 50px -22px rgba(13, 42, 27, 0.55), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
}

/* The speaker cut-out at the top of the drawn handset. */
.device::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 20px;
  background: var(--forest-900);
  border-radius: 999px;
  z-index: 2;
}

.screen {
  height: 100%;
  background: var(--paper);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen-top {
  padding: 2.1rem 0.9rem 0.6rem;
  border-bottom: 1px solid #ece1c9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.screen-top .room {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--forest-900);
  line-height: 1.1;
}

.screen-top .who {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.demo-tag {
  align-self: center;
  background: var(--forest-900);
  color: var(--ivory);
  padding: 0.16rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.8rem;
  overflow: hidden;
}

.day {
  align-self: center;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.bubble {
  max-width: 84%;
  padding: 0.5rem 0.62rem;
  border-radius: 13px;
  font-size: 0.74rem;
  line-height: 1.36;
  animation: rise 420ms ease both;
}

.bubble .from {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
  opacity: 0.72;
}

.bubble.them {
  align-self: flex-start;
  background: var(--ivory-deep);
  border: 1px solid #e4d8bd;
  border-bottom-left-radius: 4px;
  color: #2a332c;
}

.bubble.us {
  align-self: flex-end;
  background: var(--forest-700);
  border-bottom-right-radius: 4px;
  color: #f3efe2;
}

.bubble.us .from {
  color: var(--lime);
  opacity: 1;
}

.bubble:nth-child(2) {
  animation-delay: 60ms;
}
.bubble:nth-child(3) {
  animation-delay: 150ms;
}
.bubble:nth-child(4) {
  animation-delay: 240ms;
}
.bubble:nth-child(5) {
  animation-delay: 330ms;
}

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

.handoff {
  align-self: stretch;
  border: 1px dashed #bfae87;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #fdf8ea;
  font-size: 0.68rem;
  color: #3a4239;
}

.handoff b {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.15rem;
}

.composer {
  margin: 0 0.8rem 0.9rem;
  border: 1px solid #e2d6bc;
  border-radius: 999px;
  padding: 0.42rem 0.42rem 0.42rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: #6e6852;
  background: var(--ivory);
}

.composer .send {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--forest-900);
  flex: none;
  position: relative;
}

.composer .send::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: translateX(-1px) rotate(45deg);
}

.figcaption {
  position: relative;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 24rem;
  text-align: center;
  margin-inline: auto;
}

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

.band {
  padding-block: clamp(3rem, 6vw, 5.25rem);
  border-top: var(--edge);
}

/* A band that follows a page head, where the head already supplied the top space. */
.band-flush {
  padding-top: 0;
  border-top: none;
}

.band-dark {
  background: var(--forest-900);
  color: #e9e3d3;
  border-top: none;
}

.band-dark h2,
.band-dark h3 {
  color: var(--ivory);
}

.band-dark a {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.band-dark .eyebrow {
  color: var(--lime);
}

.band-dark .eyebrow::after {
  background: rgba(233, 227, 211, 0.28);
}

.band-dark .btn-ghost {
  border-color: rgba(233, 227, 211, 0.45);
  color: var(--ivory);
}

.band-dark .btn-ghost:hover {
  border-color: var(--ivory);
  background: rgba(250, 245, 234, 0.08);
}

.band-dark .btn-primary {
  background: var(--ivory);
  color: var(--forest-900);
}

.band-dark .btn-primary:hover {
  background: #fff;
  color: var(--forest-900);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}

.card {
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.card p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #3c453d;
}

.card p:last-child {
  margin-bottom: 0;
}

.state {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--hair);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- roadmap */

.stage {
  border-top: var(--edge);
  padding-block: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
}

.stage:last-of-type {
  border-bottom: var(--edge);
}

@media (max-width: 760px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

.stage h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  margin: 0;
  position: sticky;
  top: 5.5rem;
}

.stage .when {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

@media (max-width: 760px) {
  .stage h2 {
    position: static;
  }
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.items li {
  padding-left: 1.5rem;
  position: relative;
  max-width: var(--measure);
}

.items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--lime);
}

.items li b {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--forest-900);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.items li span {
  font-size: 0.95rem;
  color: #3c453d;
}

/* ------------------------------------------------------------------ faq */

.faq {
  margin-top: 2rem;
  max-width: 46rem;
  border-top: var(--edge);
}

.faq details {
  border-bottom: var(--edge);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.5rem 1.05rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  font-weight: 600;
  color: var(--forest-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.5rem;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.75rem;
}

.faq summary:hover {
  color: var(--amber);
}

.faq .answer {
  padding: 0 0 1.2rem;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.15rem;
  margin: 2rem 0;
}

.contact-card {
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.5rem;
}

.contact-card .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-card .big {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  display: inline-block;
  word-break: break-word;
}

.contact-card p {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.plain {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: var(--measure);
}

.plain li {
  padding-left: 1.35rem;
  position: relative;
  font-size: 0.97rem;
}

/* A second block of the same shape further down a page, set apart from the first. */
.split-follow {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.after-list {
  margin-top: 1.2rem;
}

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 2px;
  background: var(--amber);
}

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

.site-foot {
  background: var(--forest-900);
  color: #cfd6cb;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  font-size: 0.9rem;
}

.site-foot a {
  color: #e9e3d3;
  text-decoration-color: var(--lime);
}

.site-foot a:hover {
  color: var(--lime);
}

.foot-mark {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: rgba(233, 227, 211, 0.22);
  margin: 0 0 1.75rem;
  user-select: none;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(233, 227, 211, 0.18);
}

.foot-grid h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.7rem;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.foot-grid p {
  margin: 0 0 0.5rem;
  max-width: 22rem;
  color: #b7c0b6;
}

.fine {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(233, 227, 211, 0.18);
  font-size: 0.8rem;
  color: #9daa9d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

.fine p {
  margin: 0;
  max-width: 40rem;
}

/* --------------------------------------------------- page intro helpers */

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.9vw, 3.9rem);
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  max-width: var(--measure);
  padding-left: 1.15rem;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.updated {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
