/* upsheetcrm.com: one stylesheet for index.html and 404.html. No build step,
   and everything it loads comes from this origin. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo_wdth_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---- the palette: the app's own tokens, dark by default ---- */
:root {
  color-scheme: dark;
  --bg: #0e1218;
  --surface: #161a22;
  --surface-2: #1f242d;
  --border: #2d333d;
  --text: #e5e8ed;
  --muted: #858c9a;
  --accent: #6298fe;
  --accent-hover: #8eb6fe;
  --on-accent: #111d36;
  --ok: #41a452;
  --warn: #e8a127;
  --danger: #f15751;
  --ok-tint: #7cde89;
  --ok-ground: #18311b;
  --warn-tint: #fdb25b;
  --warn-ground: #3a250d;
  --warn-panel: #35260c;
  --danger-tint: #ff9592;
  --danger-ground: #401a1a;
  --danger-panel: #401d1c;
  --info-tint: #3aced6;
  --info-ground: #013133;
  --shadow: rgba(0,0,0,0.45);
  --scrim: rgba(0,0,0,0.5);
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858c9a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --control-border: #656e7c;
}
/* The light set follows the device's setting, at every width: a page read
   once, not a staff screen. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #eceff5;
    --border: #d3d8e0;
    --text: #161b24;
    --muted: #636c7a;
    --accent: #2965d9;
    --accent-hover: #144ec2;
    --on-accent: #ffffff;
    --ok: #329746;
    --warn: #bb7e05;
    --danger: #c93030;
    --ok-tint: #2f793c;
    --ok-ground: #def6df;
    --warn-tint: #9d5a09;
    --warn-ground: #ffeccd;
    --warn-panel: #fef2d9;
    --danger-tint: #ba3e3e;
    --danger-ground: #ffe6e5;
    --danger-panel: #ffedec;
    --info-tint: #01777d;
    --info-ground: #d4f6f8;
    --shadow: rgba(16,24,40,0.16);
    --scrim: rgba(16,24,40,0.40);
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636c7a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    --control-border: #838a97;
  }
}

/* ---- the page ---- */
:root { --wrap: 1200px; --gutter: 16px; --band: 56px; }
@media (min-width: 720px) { :root { --gutter: 32px; --band: 88px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent-hover); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
picture { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }
.nw { white-space: nowrap; }
.vh {   /* read by a screen reader, not shown */
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7em 1.25em; border-radius: 8px;
  font: inherit; font-weight: 620; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); }

/* ---- the hero ---- */
.hero { padding: 40px 0 var(--band); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } .hero { padding-top: 64px; } }
.lockup { display: block; width: min(300px, 76vw); height: auto; }
.headline { margin-top: 36px; font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -0.02em; max-width: 15ch; }
.lede { margin-top: 18px; font-size: 1.18rem; line-height: 1.5; max-width: 32rem; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---- the screens: a desk shot with the phone shot over its corner. The
   images' sizes attributes in index.html follow these widths. ---- */
.pair-art { position: relative; padding-bottom: 27%; }
.desk-frame {
  position: relative; display: block; width: 88%; padding: 5px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--control-border);
  box-shadow: 0 22px 44px -18px var(--shadow);
}
.desk-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.phone-frame {
  display: block; position: absolute; right: 0; bottom: 0; width: 34%;
  padding: 4px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--control-border);
  box-shadow: 0 22px 44px -16px var(--shadow);
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 17px; }
@media (min-width: 720px) {
  .pair-art { padding-bottom: 10%; }
  .desk-frame { width: 86%; }
  .phone-frame { width: 26%; }
}
/* Each shot opens full size: a link laid over its frame. A phone shot has
   one per theme, shown with the picture the theme shows. */
.full { position: absolute; inset: 0; border-radius: inherit; cursor: zoom-in; }
.full:hover { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-light { display: none; }
@media (prefers-color-scheme: light) {
  .on-light { display: block; }
  .on-dark { display: none; }
}
.shots { display: grid; gap: 56px 44px; }
@media (min-width: 900px) { .shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 18px; max-width: 34rem; color: var(--muted); }
.shots figcaption b { color: var(--text); font-weight: 650; }

/* ---- what it does ---- */
.features { display: grid; gap: 32px 44px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features p { margin-top: 8px; }

/* ---- what it never does ---- */
.nevers { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.nevers li { padding: 22px 0; border-top: 1px solid var(--border); }
.nevers li:first-child { border-top: 0; padding-top: 0; }
.nevers p { margin-top: 6px; }

/* ---- the box ---- */
.box-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .box-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.box-grid .copy p + p { margin-top: 16px; }
.drawing { margin: 0; }
.drawing svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.drawing figcaption { margin: 12px auto 0; max-width: 480px; color: var(--muted); font-size: 0.94rem; }
.drawing .ln { fill: none; stroke: var(--control-border); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.drawing .face { stroke: var(--control-border); stroke-width: 2; stroke-linejoin: round; }
.drawing .f1 { fill: var(--surface-2); }
.drawing .f2 { fill: var(--surface); }
.drawing .f3 { fill: var(--bg); }
.drawing .row { stroke: var(--border); stroke-width: 5; stroke-linecap: round; }
.drawing .net { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.drawing .acc { fill: var(--accent); }
.drawing .acc-ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.drawing text { fill: var(--muted); font-size: 15px; font-family: inherit; }

/* ---- the contact ---- */
.contact-body { max-width: 40rem; }
.contact-body > p { color: var(--muted); font-size: 1.06rem; }
.address { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.address .big { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 650; letter-spacing: -0.01em; color: var(--text); text-decoration-color: var(--accent); overflow-wrap: anywhere; }

/* ---- the footer ---- */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.94rem; }
.foot p + p { margin-top: 10px; max-width: 46rem; }
.foot .mark-line { color: var(--text); }

/* ---- 404.html ---- */
.lost { padding: 64px 0 var(--band); }
.lost h1 { margin-top: 48px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.lost p { margin-top: 14px; font-size: 1.12rem; }
