/* Sign-Up Sheets for Microsoft 365 — crosstowntech.com/signup-sheets
   Source folder; published by build-signup-sheets.mjs into dist/signup-sheets/.
   Layout copied from mentoring/style.css; the palette is light on purpose (see :root),
   so :root here is NOT kept in sync with the dark sibling pages. */
:root {
  /* Light, unlike the sibling product pages: the app is light, and this page should look
     like the thing it leads to. The blue is the app's own (Fluent brand). */
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f3;
  --border: #e3e5e9;
  --border-2: #cfd3d9;
  --text: #1f2328;
  --text2: #4b5159;
  --text3: #6b717a;
  --accent: #0f6cbd;
  --accent-hover: #115ea3;
  --accent-soft: rgba(15, 108, 189, 0.10);
  --good: oklch(52% 0.15 155);
  --warn: oklch(55% 0.14 80);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Sections are anchor targets and the topbar is sticky, so keep headings clear of it. */
[id] { scroll-margin-top: 78px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(760px 420px at 50% -60px, rgba(15, 108, 189, 0.13), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* --- Topbar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand-tagline {
  font-size: 13px;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0;
}

.topbar-spacer { flex: 1; }

.topbar-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.topbar-nav a {
  color: var(--text2);
  text-decoration: none;
}

.topbar-nav a { transition: color 0.15s; }
.topbar-nav a:hover { color: var(--text); }

/* Last nav item is the CTA in miniature — give it enough weight to read as one. */
.topbar-nav a:last-child {
  color: var(--text);
  font-weight: 550;
}

/* --- Buttons --- */

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-size: 15px;
  font-weight: 550;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
  border-color: var(--border-2);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--text3); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

/* --- Hero --- */

.hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 92px 24px 46px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 22px;
}

.hero h1 .accent {
  background: linear-gradient(96deg, #0f6cbd, #2b88d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.fine {
  font-size: 13px;
  color: var(--text3);
  margin: 18px 0 0;
}

/* --- Bands + sections --- */

.band {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 24px;
}

.head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.024em;
  font-weight: 700;
  margin: 0 0 14px;
}

.head p {
  font-size: 16.5px;
  color: var(--text2);
}

/* --- Cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--border-2); }

.band .card { background-color: var(--bg); }

.card h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}

.card p {
  font-size: 15px;
  color: var(--text2);
}

.card-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-mark svg { display: block; }

/* --- Closing CTA --- */

.close {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 84px 24px 92px;
}

.close h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.026em;
  font-weight: 700;
  margin: 0 0 16px;
}

.close p {
  font-size: 16.5px;
  color: var(--text2);
  margin: 0 0 28px;
}

.close .fine { margin: 22px 0 0; font-size: 13.5px; }

.fine a {
  color: var(--text2);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.fine a:hover {
  color: var(--text);
  text-decoration-color: var(--text3);
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 44px;
  display: flex;
  gap: 16px 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text3);
  max-width: 1100px;
  margin: 0 auto;
}

.footer a { color: var(--text2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .section { padding: 60px 20px; }
  .topbar { padding: 14px 18px; }
  .topbar-nav { gap: 16px; font-size: 13.5px; }
  .brand-tagline { display: none; }
}

@media (max-width: 560px) {
  /* The "What it does" / "How it works" links are the least useful on a phone
     where the whole page is a short scroll — keep the brand and the CTA. */
  .topbar-nav a:not(:last-child) { display: none; }
}

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

/* --- Legal pages (/oneview/privacy, /oneview/terms) ---
   These URLs are registered on the Atlassian OAuth 2.0 app's Distribution tab,
   so treat the slugs as stable. Same shape as /quickbooks' legal pages, on this
   page's dark tokens rather than the light Marketplace ones. */

.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 19px; font-weight: 650; margin: 40px 0 10px; letter-spacing: -0.01em; color: var(--text); }
.legal h3 { font-size: 15.5px; font-weight: 650; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text2); font-size: 15.5px; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.legal a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); }
.legal th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); font-weight: 600; }
.legal .updated { font-size: 14px; color: var(--text3); margin-bottom: 32px; }

/* ---- Mentoring: real screenshots, the tour, the FAQ -------------------- */

/* Screenshots are Teams dark theme on this dark page: a thin border separates them
   from the background. Click opens the lightbox. */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.shot:hover { transform: translateY(-2px); }

.brand img { align-self: center; }

.shot-hero { max-width: 1040px; margin: 0 auto; padding: 8px 24px 0; }
/* The hero crop ends mid-list: fade the last rows into the page instead of a hard cut. */
.shot-hero.fade .shot {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  border-bottom-color: transparent;
}
.shot-hero.fade figcaption { margin-top: 0; }
figure { margin: 0; }
.shot-hero figcaption, .shots-note {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  margin-top: 16px;
}
.shots-note { margin-top: 8px; }

/* Who it's for */
.for { max-width: 1000px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.for-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text3); margin: 0 0 18px;
}
.for-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.for-list li {
  border: 1px solid var(--border-2); border-radius: 999px; padding: 8px 18px;
  font-size: 14.5px; color: var(--text2); background-color: var(--surface);
}

/* Tour: text beside a real screenshot, alternating sides. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; }
.feature-text p { font-size: 16px; color: var(--text2); }
.feature-text p + p { margin-top: 12px; }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 10px; }
/* Chat cards are narrow in Teams; keep them near their real size instead of blowing them up. */
.card-shot { max-width: 560px; justify-self: center; width: 100%; }
.card-shot.stack { display: grid; gap: 16px; }
/* Chat cards are cropped to the card's own edge: no extra frame, just the card's
   rounded corners (Teams draws them ~8px at this size) and a soft shadow. */
.card-shot .shot { border: 0; border-radius: 8px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9); }
/* Full screens are too dense for half a row: text on top, the screenshot full width. */
.feature.wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.feature.wide .feature-text { max-width: 720px; margin: 0 auto; text-align: center; }
.feature.wide .feature-shot { max-width: 980px; margin: 0 auto; width: 100%; }

/* How it works */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; color: var(--text2); line-height: 1.5; font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; margin-bottom: 10px; }
.steps li b { display: block; color: var(--text); margin-bottom: 4px; font-size: 16px; }

.card a { color: var(--text); text-underline-offset: 3px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-size: 17px; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--text3);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.faq details p { padding: 0 0 20px; font-size: 15.5px; color: var(--text2); }
.faq a { color: var(--text); text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px; background-color: rgba(0, 0, 0, 0.88); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6); }

@media (max-width: 860px) {
  .feature, .feature.wide, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0; }
  .feature.flip .feature-text { order: 0; }
  .for { padding: 44px 20px 56px; }
}

@media (max-width: 560px) {
  .shot-hero { padding: 0 16px; }
  .section { padding-left: 16px; padding-right: 16px; }
}

/* --- Sign-Up Sheets only --- */
/* Screenshots are the light app on a light page: a border and a soft shadow lift them. */
.shot, .card-shot .shot {
  background: #fafafa;
  /* The outline is a shadow, not a border: a border would take 2px out of the image's width
     and the browser would resample every screenshot to fit. */
  border: 0;
  box-shadow: 0 0 0 1px var(--border), 0 18px 40px -22px rgba(16, 24, 40, 0.28);
}
.lightbox { background-color: rgba(16, 24, 40, 0.72); }
.lightbox img { box-shadow: 0 24px 48px rgba(16, 24, 40, 0.35); }

/* Each screenshot is shown at exactly the CSS width it was captured at (the file is 2x that
   in pixels), so on a normal or a retina screen the browser never resamples it. These numbers
   are printed by scripts/site-shots.ts in the app repo; keep them in step with the files. */
.shot-hero .shot { max-width: 600px; margin: 0 auto; display: block; }
.feature.wide .feature-shot { max-width: 760px; }
.card-shot { max-width: 520px; }
.phone-shot { max-width: 360px; }
.phone-shot figcaption { text-align: center; color: var(--text3); font-size: 13px; margin-top: 10px; }
