/*
 * The public site: the landing page (/) and the feature pages (/features/*).
 *
 * Linked after /suite.css, whose tokens it uses and never re-declares. Text
 * and buttons use only AA-safe pairs: --teal fills (white on it 4.7:1),
 * --teal-deep for small teal text on sand (6.1:1), --soft for secondary text.
 * A feature page may set --accent for decoration (a bar, a dot, the glow);
 * nothing a person reads is set in it.
 */

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

/* A guard only. The causes (a nav that never collapsed, a glow drawn past
   the page edge) are fixed below; nothing here should be wider than a phone. */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; }
a { color: var(--teal-deep); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.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;
}

/* Keyboard users can jump past the header. Off-screen until focused. */
.skip {
  position: absolute; left: 16px; top: 10px; z-index: 20;
  transform: translateY(-160%);
  background: var(--navy); color: var(--sand);
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip:focus { transform: none; }

/* ------------------------------ top bar ------------------------------ */

.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.top .suite-brand b { font-size: 1.12rem; white-space: nowrap; }
.top-links { display: flex; align-items: center; gap: 4px 22px; }
.top-links a:not(.btn) {
  color: var(--soft); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 10px 4px; border-radius: 6px;
}
.top-links a:not(.btn):hover { color: var(--ink); }
.top-links .btn { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A phone keeps the brand and Sign in; the section links are in the page.
   A link marked .roomy needs a little more width before it joins them. */
.top-links a:not(.btn) { white-space: nowrap; }
@media (max-width: 699px) {
  .top-links .roomy { display: none; }
}
@media (max-width: 559px) {
  .top-links a:not(.btn) { display: none; }
}
@media (max-width: 359px) {
  .top .suite-brand b { white-space: normal; max-width: 6.5em; line-height: 1.1; font-size: 1rem; }
}

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

/* The shell's own pills (.suite-btn--primary / --ghost from suite.css),
   sized up for a public page: 44 px tall, easy to hit on a phone. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  font-size: .95rem; line-height: 1.2; text-align: center;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}
.btn-ink { background: var(--navy); color: var(--sand); }
.btn-ink:hover { background: var(--navy-ink); }

/* ------------------------------- type -------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow svg { width: 20px; height: 20px; flex: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--teal)); flex: none; }

.hero { padding: 48px 0 0; }
.hero h1 {
  margin-top: 16px;
  font-family: var(--serif); font-weight: 550; letter-spacing: -.015em; line-height: 1.07;
  font-size: clamp(2.2rem, 5.4vw, 3.4rem); max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--teal-deep); }
.lede { margin-top: 18px; max-width: 36rem; font-size: 1.08rem; line-height: 1.65; color: var(--soft); }
.ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 14px; font-size: .92rem; color: var(--soft); }

.section { padding-top: 72px; }
.section-head { max-width: 46rem; margin-bottom: 26px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 550; letter-spacing: -.01em; line-height: 1.15;
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
}
.section-head p { margin-top: 10px; font-size: 1.02rem; color: var(--soft); }

/* "New" beside a heading: suite.css's .suite-tag--ok, nudged onto the line. */
h3 .suite-tag { margin-left: 6px; vertical-align: 3px; white-space: nowrap; }

/* Each app's colour, for decoration only (a bar, a tinted tile, the glow). */
.accent-appointments { --accent: var(--warn); }
.accent-portal { --accent: #1d6fa5; }
.accent-receptionist { --accent: #41b3a3; }
.accent-crm { --accent: var(--teal); }
.accent-documents { --accent: var(--navy); --glow: var(--foam); }
.accent-timeflow { --accent: var(--teal-bright); }

/* Line icons, drawn like the Documents pages' and the apps' (no emoji). */
svg.i {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------- the feature pages ------------------------- */

/* Every app's page, one tap away: the same order as the masthead. */
.appnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.appnav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--card);
  color: var(--soft); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.appnav a:hover { color: var(--teal-deep); border-color: var(--teal); }
.appnav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (pointer: coarse) { .appnav a { min-height: 40px; } }
.appnav-end { margin-top: 26px; }
.appnav-end h2 {
  margin-bottom: 10px; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep);
}
@media (min-width: 560px) { .appnav-end { display: none; } }
@media (max-width: 559px) { .appnav-top { display: none; } }

.feature-page {
  background:
    radial-gradient(720px 420px at 88% -40px, color-mix(in srgb, var(--glow, var(--accent, var(--teal))) 20%, transparent), transparent 64%),
    var(--sand);
  background-repeat: no-repeat;
}

.features-head { padding-top: 56px; margin-bottom: 18px; }
.features-head h2 { font-family: var(--serif); font-weight: 550; font-size: 1.45rem; line-height: 1.2; }
.features {
  list-style: none;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.f {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.f::before {
  content: ""; display: block; width: 32px; height: 4px; border-radius: 2px;
  background: var(--accent, var(--teal)); margin-bottom: 14px;
}
.f h3 { font-family: var(--serif); font-weight: 550; font-size: 1.12rem; line-height: 1.3; }
.f p { margin-top: 8px; font-size: .95rem; line-height: 1.6; color: var(--soft); }
.f p a { font-weight: 600; }

.counts {
  margin-top: 26px; padding: 20px 22px;
  background: var(--sand-warm); border: 1px solid var(--line); border-radius: var(--radius);
}
.counts h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep);
}
.counts p { margin-top: 8px; font-size: .98rem; }
.counts p.fine { color: var(--soft); font-size: .93rem; }

.band {
  margin-top: 26px; padding: 26px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.band p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; max-width: 40ch; text-wrap: balance; }

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

.foot {
  margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: .9rem; color: var(--soft);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
