/* carrythebag.com — the public site for Bagger. Plain HTML and CSS, no build. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --deep: #284b5e;
  --ocean: #377890;
  --ocean-dark: #2c6377;
  --teal: #439ba2;
  --rose: #ca8e8f;
  --paper: #f2f5f6;
  --white: #ffffff;
  --ink: #1d3644;
  --muted: #5a6f7b;
  --line: #d5dfe3;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
}

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

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

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

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

a {
  color: var(--ocean);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--deep);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

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

.site-header {
  padding-block: 1.25rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .logo img {
  display: block;
  height: 1.75rem;
  width: auto;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}
.site-header nav a:not(.button) {
  color: var(--deep);
  text-decoration: none;
}
.site-header nav a:not(.button):hover {
  text-decoration: underline;
}

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

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--ocean);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ocean);
}
.button:hover {
  background: var(--ocean-dark);
  border-color: var(--ocean-dark);
  color: var(--white);
}
.button.quiet {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}
.button.quiet:hover {
  border-color: var(--deep);
  color: var(--deep);
}
.site-header .button {
  padding: 0.5rem 1rem;
}

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

/* The photo fills the width; the words sit in the fog on its left, on a lighter
   band of the same mist so they read cleanly. */
.hero {
  position: relative;
  display: grid;
  min-height: min(48rem, 86vh);
  align-items: center;
  overflow: hidden;
  background: #8c959c;
}
.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero picture img {
  object-fit: cover;
  object-position: 62% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(233, 237, 239, 0.94) 0%,
    rgba(233, 237, 239, 0.86) 30%,
    rgba(233, 237, 239, 0.45) 46%,
    rgba(233, 237, 239, 0) 60%
  );
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
}
.hero-text {
  max-width: 36rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 820;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--deep);
  text-wrap: balance;
}
.hero .descriptor {
  margin: 1.25rem 0 2rem;
  font-weight: 650;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.35;
  color: var(--deep);
  text-wrap: balance;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero .button.quiet {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(40, 75, 94, 0.25);
}
.hero .fine {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ------------------------------------------------------ a rep's day */

.day {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.day .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.day h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  color: var(--deep);
}
.day p {
  margin: 0;
  max-width: 30rem;
  font-size: 1.2rem;
  color: var(--muted);
}

/* The call sheet: today's steps, as Roll the Calls lists them. */
.sheet {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 3rem -1.75rem rgba(40, 75, 94, 0.45);
  overflow: hidden;
}
.sheet header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--deep);
  color: var(--white);
}
.sheet header strong {
  font-family: var(--display);
  font-stretch: 112%;
  font-size: 1.25rem;
  font-weight: 800;
}
.sheet header span {
  font-size: 0.95rem;
  opacity: 0.8;
}
.sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sheet li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
}
.sheet li:first-child {
  border-top: 0;
}
.sheet .kind {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ocean);
}
.sheet .kind svg {
  width: 1.1rem;
  height: 1.1rem;
}
.sheet .who {
  min-width: 0;
}
.sheet .who b {
  display: block;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet .who small {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet .state {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.sheet li.done .who b {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--teal);
}
.sheet li.done .state {
  color: var(--teal);
}
.sheet li.late .state {
  color: #a8585a;
}
.sheet footer {
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ------------------------------------------------------- what it does */

.features {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.features h2,
.pricing h2 {
  margin: 0 0 2.5rem;
  max-width: 30rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  color: var(--deep);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  margin: 0;
}
.feature-list div {
  border-top: 3px solid var(--teal);
  padding-top: 1rem;
}
.feature-list div:nth-child(4n + 2),
.feature-list div:nth-child(4n + 3) {
  border-top-color: var(--rose);
}
.feature-list dt {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.3rem;
  color: var(--deep);
}
.feature-list dd {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
}

/* -------------------------------------------------------------- pricing */

.pricing {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: start;
}
.pricing h2 {
  margin-bottom: 0;
}
.price {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--deep);
}
.price small {
  font-family: var(--text);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--muted);
}
.price-note {
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
}
.pricing ul {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.pricing li + li {
  margin-top: 0.35rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p {
  margin: 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ------------------------------------------------------- features page */

.features-page {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.page-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1;
  color: var(--deep);
}
.page-intro {
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.page-intro p {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.25rem;
  color: var(--muted);
}
/* Each feature: its name and purpose on the left, the details on the right. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.feature:first-of-type {
  border-top: 0;
}
.feature-head h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.1;
  color: var(--deep);
}
.feature-head p {
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  border-top: 3px solid var(--rose);
  max-width: 20rem;
  font-weight: 600;
  color: var(--ocean);
}
.feature-body {
  max-width: var(--measure);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}
.feature-body li + li {
  margin-top: 0.55rem;
}
.feature-body li::marker {
  color: var(--teal);
}
.features-cta {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1rem;
  background: var(--deep);
  color: var(--white);
}
.features-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.features-cta p {
  margin: 0.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
}
.features-cta .button {
  background: var(--white);
  border-color: var(--white);
  color: var(--deep);
}
.features-cta .button:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--deep);
}
.see-all {
  margin: 2.5rem 0 0;
  font-weight: 700;
}

/* ---------------------------------------------------------- legal pages */

.legal {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.legal article {
  max-width: 44rem;
}
.legal h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.02;
  color: var(--deep);
}
.legal .updated {
  margin: 0.75rem 0 2.5rem;
  color: var(--muted);
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--deep);
}
.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--deep);
}
.legal p,
.legal li {
  max-width: var(--measure);
}
.legal ul {
  padding-left: 1.3rem;
}
.legal li + li {
  margin-top: 0.4rem;
}
.legal .summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 0.5rem 0.5rem 0;
}
.legal .summary p {
  margin: 0;
}

/* --------------------------------------------------------------- narrow */

@media (max-width: 52rem) {
  .feature,
  .day .wrap,
  .pricing .wrap,
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-list div:nth-child(n) {
    border-top-color: var(--teal);
  }
  .feature-list div:nth-child(even) {
    border-top-color: var(--rose);
  }
}
/* Phones: the photo on top, the words below it on the page's own background. */
@media (max-width: 44rem) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--paper);
  }
  .hero picture,
  .hero picture img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .hero::before {
    display: none;
  }
  .hero .wrap {
    padding-block: 2rem 3rem;
  }
  .hero .button.quiet {
    background: transparent;
  }
  .hero .fine {
    color: var(--muted);
  }
}
@media (max-width: 30rem) {
  .site-header nav .optional {
    display: none;
  }
  .site-header .logo img {
    height: 1.35rem;
  }
  .site-header nav {
    gap: 0.9rem;
  }
  .site-header nav a {
    white-space: nowrap;
  }
  .site-header .button {
    padding: 0.45rem 0.8rem;
  }
  .sheet li {
    padding-inline: 1rem;
    gap: 0.7rem;
  }
}
