body {
  font-size: 16px;
}
.muted {
  color: var(--text-muted);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 16px;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- forms ---- */
.forms {
  padding-bottom: 64px;
}
/* A demo company is asked for in a dialog, a card over the page (blurred, as behind the language picker). Its box
   fills it, so a click on the dialog itself is one on the backdrop. Its class isn't .demo: that is every recording's. */
.demo-dialog {
  width: min(520px, calc(100% - 32px));
  /* At a fixed height from the top, so it grows downwards (when the list of languages opens) instead of moving. */
  margin: max(16px, 8vh) auto auto;
  max-height: calc(100% - max(16px, 8vh) - 16px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.demo-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.demo-box {
  position: relative;
  padding: 28px;
}
/* Top right, with room for it next to the titles. */
.demo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
  color: var(--text-muted);
}
/* A dialog's title: smaller than the page's, with room for the close button. */
.demo-dialog .demo-box h2 {
  padding-right: 32px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  outline: none;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
/* The signup card: the form, and on wide screens a photo as the card's right half. */
.form-card.signup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  padding: 0;
  overflow: hidden;
}
.signup-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.signup-photo {
  margin: 0;
  position: relative;
  min-height: 100%;
  background: var(--surface-2);
}
.signup-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.signin-note {
  margin: auto 0 0;
  font-size: 14px;
}
.signin-note a {
  color: var(--primary);
}
.form-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
  scroll-margin-top: 16px;
}
.form-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.form-steps > p.muted {
  margin: -6px 0 4px;
}
.form-card label,
.demo-box label,
.demo-box .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.form-card input,
.demo-box input {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  min-width: 0;
}
.form-card input:focus,
.demo-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.slug-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.slug-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.slug-input input {
  border: 0;
  border-radius: 0;
  flex: 1;
  text-align: right;
}
.slug-input input:focus {
  box-shadow: none;
}
.slug-suffix {
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 11px 13px 11px 2px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hint {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.slug-ok {
  color: var(--in);
  font-weight: 600;
}
.slug-bad {
  color: var(--out);
  font-weight: 600;
}
.form-error {
  color: var(--out);
  background: var(--out-soft);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px;
  border-top: 1px solid var(--border);
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer .lang-btn {
  min-height: 0;
  padding: 0 4px;
  font-size: 14px;
  font-weight: inherit;
  color: inherit;
}
.site-footer .lang-btn:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .form-card.signup-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .signup-photo {
    display: none;
  }
}
@media (max-width: 600px) {
  main,
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .form-card {
    padding: 20px 16px;
  }
  .form-card.signup-card {
    padding: 0;
  }
  .signup-body {
    padding: 24px 16px;
  }
}

.form-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-steps > p {
  margin: 0;
  line-height: 1.55;
}
.form-steps a {
  color: var(--primary);
}

/* ---- pricing ---- */
.pricing {
  padding-bottom: 56px;
  scroll-margin-top: 16px;
}
.pricing h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.pricing > p {
  margin: 6px 0 24px;
}
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.price-interval {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.price-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}
.enterprise {
  margin: 18px 0 0;
}
.enterprise a {
  color: var(--primary);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-pro {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.price-name {
  font-weight: 800;
  font-size: 18px;
}
.price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.price-sub {
  font-size: 14px;
}
.price-card ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  line-height: 1.8;
  flex: 1;
}
.price-card .btn {
  align-self: flex-start;
}
/* A paid plan that can't be bought yet: a label where its button will be. */
.price-soon {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ======================================================== landing page ==== */

/* The landing page uses full-width bands; its content sits in .wrap. */
body.landing main {
  max-width: none;
  padding: 0;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.nowrap {
  white-space: nowrap;
}
.landing h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ---- header ---- */
/* Right of the logo: the links, Start for free and the language. */
.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
/* The menu button only shows on a narrower screen (below); here its menu's links are simply in the row. */
.nav-toggle {
  display: none;
}
.nav-menu {
  display: contents;
}
/* Narrower, the header takes two rows: the logo and the language, then Start for free and the menu button with the
   other links. One row needs up to 913px (French, the longest), and a desktop scrollbar takes up to 17px more: so it
   folds from 960px down, where the page goes to one column too. */
@media (max-width: 960px) {
  .landing .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .landing .site-header .brand {
    justify-self: start;
  }
  .landing .header-end {
    display: contents;
  }
  .landing .site-header .lang-btn {
    grid-area: 1 / 2;
  }
  .landing .site-header nav {
    grid-column: 1 / -1;
    position: relative;
  }
  .js .landing .site-header nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  /* Start for free left of the menu button, which comes first so that its menu follows it for the keyboard. */
  .js .landing .site-header nav > .btn-primary {
    order: -1;
  }
  .js .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
  }
  .js .nav-toggle[aria-expanded='true'] {
    background: var(--surface-2);
  }
  /* The menu opens under them, over the page. */
  .js .nav-menu {
    display: none;
  }
  .js .nav-menu.open {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  /* Big enough for a finger. */
  .js .nav-menu .btn {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    text-align: start;
  }
}

/* ---- topics: pills that show one at a time ---- */
.topics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.topic-pill:hover {
  color: var(--text);
}
.topic-pill[aria-selected='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
/* With JavaScript, one topic at a time (landing.js): clocking in and out, or #planning. Set in the page's head, so the
   other doesn't show first. */
.js:not([data-topic='planning']) #planning,
.js[data-topic='planning'] #clock {
  display: none;
}
/* A topic shows in place of the other, under the pills: going to /#planning stays at the top of the page, with the pills
   in view, instead of scrolling to the topic as to an anchor. */
.js .topic {
  scroll-margin-top: 100vh;
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 96px;
}
.hero h1,
.hero .hero-title {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 34em;
}
/* Start for free, and next to it a demo company to try first. */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-free {
  margin: 16px 0 0;
}
.hero-demo {
  margin: 0;
  position: relative;
  /* Room for the punch slip that drops out under the tablet. */
  padding-bottom: 150px;
}
.hero-demo .tablet {
  position: relative;
  z-index: 2;
}
/* The planning's hero has no punch slip under its browser. */
.hero-demo.hero-browser {
  padding-bottom: 0;
}

/* ---- device frames around the recordings ---- */
.device {
  margin: 0;
}
.tablet,
.phone,
.browser {
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}
.tablet {
  padding: 12px;
  border-radius: 26px;
}
.phone {
  padding: 9px;
  border-radius: 40px;
  width: min(300px, 100%);
  justify-self: center;
}
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 24px 48px -24px rgba(15, 23, 42, 0.25);
}
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-url {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 14px;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The screen of a device: the recording, with its first frame as an image on top until the video plays. */
.screen {
  --screen-radius: 0px;
  position: relative;
  overflow: hidden;
  border-radius: var(--screen-radius);
  /* A screen that is still off. */
  background: #1e293b;
}
.browser .screen {
  background: var(--surface-2);
}
.tablet .screen {
  --screen-radius: 15px;
  aspect-ratio: 1440 / 1000;
}
.phone .screen {
  --screen-radius: 32px;
  aspect-ratio: 1 / 2;
}
.browser .screen {
  aspect-ratio: 16 / 10;
}
video.demo,
.screen .poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The video rounds its own corners with a mask: two bars and a circle in each corner. Firefox on Android hands a
   playing video to the compositor, which ignores rounded clips (overflow, border-radius, clip-path), so its square
   corners flickered through the device frame. A masked video stays out of that path. */
video.demo {
  --r: var(--screen-radius, 0px);
  --corner: radial-gradient(closest-side, #000 calc(100% - 0.5px), transparent);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0), var(--corner), var(--corner), var(--corner), var(--corner);
  mask-size:
    calc(100% - 2 * var(--r)) 100%,
    100% calc(100% - 2 * var(--r)),
    calc(2 * var(--r)) calc(2 * var(--r)),
    calc(2 * var(--r)) calc(2 * var(--r)),
    calc(2 * var(--r)) calc(2 * var(--r)),
    calc(2 * var(--r)) calc(2 * var(--r));
  mask-position: center, center, left top, right top, left bottom, right bottom;
  mask-repeat: no-repeat;
}
.screen .poster {
  position: absolute;
  inset: 0;
}
.screen .poster.gone {
  visibility: hidden;
}
/* Each recording, with its device frame, fades in as it scrolls into view (landing.js adds .in-view)... */
.js .hero-demo,
.js .moment .device {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .hero-demo.in-view,
.js .moment .device.in-view {
  opacity: 1;
  transform: none;
}
/* ...and then its screen lights up with the recording, once the first frame is ready (.lit). */
.js .screen > video,
.js .screen > .poster {
  opacity: 0;
  transition: opacity 0.6s ease-out 0.2s;
}
.js .screen.lit > video,
.js .screen.lit > .poster {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-demo,
  .js .moment .device {
    transform: none;
    transition: opacity 0.3s;
  }
  .js .screen > video,
  .js .screen > .poster {
    transition: opacity 0.3s;
  }
}

/* A screen opens its recording larger (landing.js). */
.screen {
  cursor: zoom-in;
}
.screen:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ---- theater: one recording, large, over a dark backdrop ---- */
.theater {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.theater[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.theater::backdrop {
  background: transparent;
}
.theater-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
}
.theater-stage {
  position: relative;
  flex: none;
  overflow: hidden;
  transform-origin: 0 0;
  background: #1e293b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.theater-stage video.demo {
  cursor: pointer;
}
.theater-chapters {
  position: relative;
  justify-content: center;
  margin: 0;
}
.theater-chapters:empty {
  display: none;
}
.theater-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}
.theater-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* ---- punch slip: printed under the tablet when the clock-in in the recording happens ---- */
.slip {
  position: absolute;
  z-index: 1;
  left: 50%;
  /* Lands about 22px below the tablet, so it reads as a slip of its own. */
  bottom: -32px;
  width: min(340px, 84%);
  transform: translate(-50%, -60px);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s ease-out;
  background: var(--surface);
  border-radius: 4px 4px 12px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 18px 40px -16px rgba(15, 23, 42, 0.3);
  padding: 16px 18px 14px;
  font-variant-numeric: tabular-nums;
  /* A perforated top edge, torn off like a receipt. */
  -webkit-mask: radial-gradient(circle 4px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle 4px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x;
}
.slip.out {
  transform: translate(-50%, 0) rotate(-1.5deg);
  opacity: 1;
}
.slip-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.slip-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 8px;
}
.slip-main {
  font-weight: 800;
  font-size: 17px;
}
.slip-time {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.slip-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.slip-in {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--in);
  background: var(--in-soft);
  border-radius: 4px;
  padding: 1px 6px;
}
.slip-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--in);
}

/* ---- chapters under a recording; the current one fills as the video plays ---- */
.chapters {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-demo .chapters {
  margin: 0 0 14px;
}
.chapter {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s, border-color 0.2s;
}
.chapter::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.chapter-n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.chapter:hover {
  color: var(--text);
}
.chapter.active {
  color: var(--primary);
  border-color: var(--primary);
}
.chapter.active .chapter-n {
  background: var(--primary);
  color: #fff;
}
.chapter.done .chapter-n {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Play button when videos don't start by themselves (reduced motion). */
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
}
.tablet,
.phone,
.browser {
  position: relative;
}

/* ---- the day: a timeline of moments ---- */
.day {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 40px;
  scroll-margin-top: 0;
}
.day-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.day-head p {
  font-size: 17px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The rail: a line with a tick per moment, like the hours on a time card. */
.timeline::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 8px;
  bottom: 40px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.moment {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0 40px;
  align-items: start;
  padding-bottom: 88px;
  position: relative;
}
.moment-time {
  position: relative;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  z-index: 1;
}
.moment-text h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.moment-text p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 16px;
}
.moment-phone .device {
  justify-self: start;
  margin-left: 12%;
}

/* ---- the small print: a ledger with dotted leaders ---- */
.fineprint {
  padding-top: 80px;
  padding-bottom: 72px;
}
.ledger {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.ledger > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ledger dt {
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 136px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ledger dt::after {
  content: '';
  flex: 1;
  min-width: 12px;
  border-bottom: 2px dotted var(--border);
  transform: translateY(-4px);
}
.ledger dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.landing .pricing {
  padding-top: 8px;
  padding-bottom: 64px;
  scroll-margin-top: 16px;
}
/* .wrap sets the side padding; keep the space between the signup card and the footer. */
.landing .forms {
  padding-bottom: 88px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 16px;
  }
  .moment {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 20px 24px;
  }
  .moment .device {
    grid-column: 2;
  }
  .moment-phone .device {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Both pills on one row on a phone. */
  .topics {
    gap: 6px;
    padding-top: 20px;
  }
  .topic-pill {
    padding: 8px 14px;
    font-size: 14px;
  }
  /* The hero's buttons share the width, or each gets a row of its own where they don't fit side by side. */
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  /* The flag alone says "language". It sits on the logo's row: the landing page's header has a place for it there
     (above), the others (My Plannix, Plannix Admin) put it in the corner, so it never ends up alone under their links. */
  .site-header {
    position: relative;
  }
  body:not(.landing) .site-header .lang-btn {
    position: absolute;
    top: 14px;
    right: 12px;
  }
  .site-header .lang-btn span {
    display: none;
  }
  .day {
    padding-top: 56px;
  }
  .timeline::before {
    left: 6px;
  }
  .moment {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 24px;
    padding-bottom: 64px;
  }
  .moment .device {
    grid-column: 1;
  }
  .moment-time {
    justify-self: start;
    margin-left: -24px;
  }
  .tablet {
    padding: 7px;
    border-radius: 18px;
  }
  .tablet .screen {
    --screen-radius: 12px;
  }
  .ledger > div {
    flex-direction: column;
    gap: 4px;
  }
  .ledger dt {
    flex-basis: auto;
  }
  .ledger dt::after {
    display: none;
  }
}
