/* ToteMasterPro site. Colours are the app's (src/ToteMasterPro.App/Resources/Styles/Colors.xaml in
   kt-devops/ToteMasterPro); the header is drawn like the app icon: a lid a little wider than the tote. */

:root {
  --page: #F5F8FB;
  --surface: #FFFFFF;
  --stroke: #D5DEE7;
  --ink: #1B2733;
  --sub: #52616F;
  --link: #1F4E79;
  --tote: #1F4E79;
  --tote-edge: #173D60;
  --lid: #D9E6F2;
  --lid-ink: #1F4E79;
  --on-tote: #FFFFFF;
  --on-tote-sub: #D9E6F2;
  --paper: #FFFFFF;
  --paper-ink: #000000;
  --phone-frame: #12304D;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101820;
    --surface: #1C2733;
    --stroke: #34434F;
    --ink: #EDF2F7;
    --sub: #A9B7C4;
    --link: #7FB6E6;
    --tote: #183E62;
    --tote-edge: #12304D;
    --lid: #2A4865;
    --lid-ink: #EDF2F7;
    --on-tote-sub: #C9DBEC;
    --phone-frame: #0B1D2E;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

/* The label line, for /t/<id>: a strip of label tape across the top. */
.label-line {
  margin: 0;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 600;
  text-align: center;
  border-bottom: 2px dashed var(--tote);
}
.label-line[hidden] { display: none; }

/* The tote: lid band, then a body a little narrower than the lid. */
.tote { padding: 8px 8px 0; }
@media (min-width: 640px) { .tote { padding: 16px 16px 0; } }

.tote-lid {
  max-width: 76rem;
  margin-inline: auto;
  background: var(--lid);
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  color: var(--lid-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { display: block; border-radius: 8px; }

.tote-body {
  max-width: 72rem;
  margin: -10px 10px 0;
  padding-top: 10px;
  background: var(--tote);
  color: var(--on-tote);
  border-radius: 0 0 22px 22px;
  border-bottom: 6px solid var(--tote-edge);
  overflow: hidden;
}
@media (min-width: 640px) { .tote-body { margin-inline: 3%; } }
@media (min-width: 1240px) { .tote-body { margin-inline: auto; } }

.hero {
  display: grid;
  gap: 40px;
  padding-block: 32px 24px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    padding-block: 64px 40px;
  }
}

/* The headline is printed on a tote label: QR code on the left, as the app prints them. */
.tag {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-1.2deg);
  max-width: 34rem;
}
.tag-code {
  flex: none;
  width: 64px;
  height: 64px;
  fill: currentColor;
}
.tag h1 {
  font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
@media (min-width: 900px) {
  .tag { padding: 22px 26px; gap: 22px; }
  .tag-code { width: 104px; height: 104px; }
}

.lede {
  max-width: var(--measure);
  margin: 28px 0 0;
  color: var(--on-tote-sub);
  font-size: 1.125rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.store { margin: 0; text-align: center; }
.store img { display: block; height: 42px; width: auto; }
@media (min-width: 400px) { .store img { height: 50px; } }
.store figcaption {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-tote-sub);
}

/* Three phones, the middle one in front. Each img is a placeholder until a real screenshot replaces it. */
.phones {
  display: grid;
  justify-items: center;
  margin: 0;
}
.phone {
  grid-area: 1 / 1;
  width: min(46%, 236px);
  aspect-ratio: 9 / 19.5;
  border: 6px solid var(--phone-frame);
  border-radius: 30px;
  overflow: hidden;
  background: #F5F8FB;
  box-shadow: 0 18px 40px rgba(4, 18, 33, 0.35);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-left { transform: translateX(-55%) rotate(-6deg) scale(0.86); }
.phone-right { transform: translateX(55%) rotate(6deg) scale(0.86); }
.phone-front { position: relative; }
.phones figcaption {
  grid-area: 2 / 1;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--on-tote-sub);
}

/* Sections */
main { display: block; }

.points, .suite { padding-block: 64px; }
@media (min-width: 900px) { .points, .suite { padding-block: 88px; } }

.points h2, .suite h2, .free h2, .video h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.point-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) { .point-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; } }
@media (min-width: 1040px) { .point-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.point-list li { border-top: 2px dashed var(--stroke); padding-top: 20px; }
.point-list svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--link);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.point-list h3 { margin-top: 12px; font-size: 1.25rem; font-weight: 700; }
.point-list p { margin: 8px 0 0; color: var(--sub); max-width: var(--measure); }

.free {
  background: var(--surface);
  border-block: 1px solid var(--stroke);
  padding-block: 48px;
}
.free p { margin: 12px 0 0; max-width: var(--measure); color: var(--sub); font-size: 1.125rem; }

.suite-intro { margin: 12px 0 0; color: var(--sub); max-width: var(--measure); }

.suite-groups {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 900px) { .suite-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

.suite-group h3 {
  font-size: 1.375rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--tote);
}
@media (prefers-color-scheme: dark) { .suite-group h3 { border-bottom-color: var(--link); } }
.suite-group ul { list-style: none; margin: 0; padding: 0; }

.product { padding-block: 18px; border-bottom: 1px solid var(--stroke); }
.product h4 { font-size: 1.125rem; font-weight: 700; }
.product p { margin: 6px 0 0; color: var(--sub); }
.product .product-status { font-size: 0.9375rem; font-weight: 600; color: var(--sub); }
.product .product-status a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--stroke);
  padding-block: 28px 40px;
  color: var(--sub);
  font-size: 0.9375rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.brand-small { display: inline-flex; min-height: 44px; font-size: 1rem; color: var(--ink); gap: 8px; }
.brand-small img { border-radius: 6px; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* The privacy page */
.page-head { padding: 8px 8px 0; }
@media (min-width: 640px) { .page-head { padding: 16px 16px 0; } }

.prose { max-width: 42rem; padding-block: 48px 72px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.prose h2 { margin-top: 40px; font-size: 1.375rem; font-weight: 800; }
.prose p, .prose ul { margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--sub); margin-top: 8px; }
