/* Focused homepage and feature-page redesign. Shared product/app pages stay unchanged. */
.home-redesign,
.feature-page {
  --focus-ink: #0d2038;
  --focus-muted: #5e6c7f;
  --focus-blue: #0a326c;
  --focus-blue-hover: #10488f;
  --focus-light: #f4f7fa;
  --focus-line: #d9e1ea;
  --focus-green: #0b765f;
  color: var(--focus-ink);
  background: #fff;
}

.home-redesign .container,
.feature-page .container {
  width: min(1220px, calc(100% - 48px));
}

.home-redesign .btn,
.feature-page .btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
}

.home-redesign .btn.primary,
.feature-page .btn.primary,
.home-redesign .site-nav .btn.primary,
.feature-page .site-nav .btn.primary {
  border-color: var(--focus-blue);
  color: #fff;
  background: var(--focus-blue);
  box-shadow: 0 10px 22px rgba(10, 50, 108, 0.17);
}

.home-redesign .btn.primary:hover,
.home-redesign .btn.primary:focus-visible,
.feature-page .btn.primary:hover,
.feature-page .btn.primary:focus-visible {
  background: var(--focus-blue-hover);
}

.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.feature-page h1,
.feature-page h2,
.feature-page h3 {
  color: var(--focus-ink);
  letter-spacing: -0.035em;
}

.home-redesign-hero {
  padding: 48px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(47, 116, 183, 0.16), transparent 28%),
    linear-gradient(115deg, #f8fafc 0%, #e9f1f8 100%);
}

.home-redesign-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.home-redesign-kicker,
.home-redesign-eyebrow,
.home-redesign-heading > p,
.feature-kicker {
  margin: 0 0 12px;
  color: #27609f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-redesign-copy h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

.home-redesign-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--focus-muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.home-redesign-action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.home-redesign-action p {
  margin: 0;
  color: #44566d;
  font-size: 12px;
  line-height: 1.35;
}

.home-redesign-action strong,
.home-redesign-action p > span {
  display: block;
}

.home-redesign-action strong [data-price-basic-monthly] {
  display: inline;
}

.home-redesign-action strong {
  color: #152f50;
  font-size: 14px;
}

.home-redesign-checks {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 28px;
  gap: 9px;
  max-width: 840px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(80, 103, 132, 0.22);
  color: #384b62;
  font-size: 13px;
  list-style: none;
}

.home-redesign-checks li {
  position: relative;
  padding-left: 25px;
}

.home-redesign-checks li::before {
  position: absolute;
  left: 0;
  color: var(--focus-green);
  font-weight: 900;
  content: "✓";
}

.home-product-pair {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(540px, 1.32fr);
  gap: 24px;
  align-items: end;
  min-width: 0;
}

.home-product {
  min-width: 0;
  margin: 0;
}

.home-product figcaption {
  display: grid;
  min-height: 54px;
  margin-bottom: 8px;
}

.home-product figcaption span {
  color: #617186;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-product figcaption strong {
  margin-top: 4px;
  color: #18324f;
  font-size: 13px;
  line-height: 1.3;
}

.home-product.screen-card-clickable {
  cursor: zoom-in;
}

.home-product.screen-card-clickable:focus-visible {
  outline: 3px solid rgba(10, 50, 108, 0.35);
  outline-offset: 5px;
}

.home-tablet-frame,
.home-laptop-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid #172536;
  background: linear-gradient(145deg, #1b2b3c, #070d14);
  box-shadow: 0 24px 50px rgba(16, 42, 76, 0.22);
}

.home-tablet-frame {
  padding: 17px 8px 22px;
  border-radius: 24px;
}

.home-tablet-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.home-device-camera {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid #526579;
  border-radius: 50%;
  background: #04090f;
  transform: translateX(-50%);
}

.home-tablet-handle {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #7d8c9c;
  transform: translateX(-50%);
}

.home-laptop-frame {
  padding: 13px 10px 10px;
  border-radius: 15px 15px 6px 6px;
}

.home-timesheet-crop {
  height: 390px;
  overflow: hidden;
  border-radius: 5px 5px 2px 2px;
  background: #fff;
}

.home-timesheet-crop img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.home-laptop-base {
  position: relative;
  display: block;
  width: 97%;
  height: 14px;
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #e8edf3 0%, #9eabb9 88%, #82909f 100%);
  box-shadow: 0 10px 18px rgba(16, 42, 76, 0.15);
}

.home-laptop-base::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 4px;
  border-radius: 0 0 7px 7px;
  background: #97a4b1;
  content: "";
  transform: translateX(-50%);
}

.home-trust {
  border-top: 1px solid var(--focus-line);
  border-bottom: 1px solid var(--focus-line);
  background: #fff;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-trust-grid p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 17px 28px;
  border-left: 1px solid var(--focus-line);
}

.home-trust-grid p:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-trust-grid strong {
  color: #17314f;
  font-size: 13px;
}

.home-trust-grid span {
  color: #69778a;
  font-size: 11px;
}

.home-simple-flow,
.home-fit,
.home-price-strip,
.feature-details {
  padding: 50px 0;
}

.home-redesign-heading {
  max-width: 660px;
}

.home-redesign-heading h2,
.home-fit h2,
.home-price-strip h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.13;
}

.home-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--focus-line);
  border-bottom: 1px solid var(--focus-line);
}

.home-flow-grid article {
  min-width: 0;
  padding: 20px 26px;
  border-left: 1px solid var(--focus-line);
}

.home-flow-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-flow-grid article > span {
  color: #2b63a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-flow-grid h3 {
  margin-top: 14px;
  font-size: 1.12rem;
}

.home-flow-grid p {
  margin: 7px 0 0;
  color: var(--focus-muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  color: var(--focus-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.home-price-strip-grid > div > p:last-child {
  margin: 9px 0 0;
  color: var(--focus-muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-fit-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.1fr) minmax(280px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.home-fit-grid ul {
  margin: 0;
  padding: 0;
  color: #33475f;
  list-style: none;
}

.home-fit-grid li {
  position: relative;
  padding: 11px 0 11px 27px;
  border-top: 1px solid var(--focus-line);
  font-size: 14px;
  line-height: 1.5;
}

.home-fit-grid li:last-child {
  border-bottom: 1px solid var(--focus-line);
}

.home-fit-grid li::before {
  position: absolute;
  top: 11px;
  left: 2px;
  color: var(--focus-green);
  font-weight: 900;
  content: "✓";
}

.home-fit-note {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid #93a8bd;
  color: #526277;
  background: #f4f7fa;
  font-size: 13px;
  line-height: 1.55;
}

.home-fit-note strong {
  display: block;
  margin-bottom: 4px;
  color: #233b57;
}

.home-price-strip {
  color: #fff;
  background: var(--focus-blue);
}

.home-price-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.home-price-strip .home-redesign-eyebrow {
  color: #acd0f1;
}

.home-price-strip h2 {
  max-width: 28ch;
  color: #fff;
}

.home-price-strip-grid > div > p:last-child {
  color: #dce8f4;
}

.home-price-actions {
  display: grid;
  justify-items: center;
}

.home-price-strip .btn.primary,
.home-price-strip .btn.primary:hover,
.home-price-strip .btn.primary:focus-visible {
  border-color: #fff;
  color: var(--focus-blue);
  background: #fff;
}

.home-price-strip .home-text-link {
  color: #dce8f4;
}

/* Functions page */
.feature-page .site-header {
  background: rgba(255, 255, 255, 0.97);
}

.feature-page .header-row {
  min-height: 70px;
}

body.feature-page .brand {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.feature-page .brand-mark {
  position: relative;
  display: block;
  width: 39px;
  height: 43px;
  overflow: hidden;
  flex: 0 0 auto;
}

.feature-page .brand .brand-mark img {
  position: absolute;
  top: -19px;
  left: -26px;
  width: 94px;
  max-width: none;
  height: auto;
}

.feature-page .brand-wordmark {
  color: var(--focus-ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.feature-page .brand-wordmark span {
  color: #0b6fae;
}

.feature-page-hero {
  padding: 48px 0 44px;
  background: linear-gradient(115deg, #f8fafc 0%, #e9f1f8 100%);
}

.feature-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  gap: 54px;
  align-items: center;
}

.feature-page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.feature-page-hero .lead {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--focus-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.feature-page-hero .button-row {
  margin-top: 22px;
}

.feature-price-link {
  align-self: center;
  margin-top: 0;
}

.feature-page-timesheet {
  margin: 0;
}

.feature-page-timesheet figcaption {
  margin-bottom: 8px;
  color: #3f536b;
  font-size: 12px;
  font-weight: 750;
}

.feature-page-timesheet .home-timesheet-crop {
  height: 330px;
}

.feature-details,
.feature-boundaries,
.feature-cta {
  padding: 48px 0;
}

.feature-section-head {
  max-width: 700px;
  margin-bottom: 26px;
}

.feature-section-head h2,
.feature-boundaries h2,
.feature-cta h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.feature-section-head > p:last-child {
  margin: 9px 0 0;
  color: var(--focus-muted);
  line-height: 1.55;
}

.feature-details {
  background: var(--focus-light);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-detail-card {
  padding: 22px 24px;
  border: 1px solid #d5dee8;
  border-radius: 10px;
  background: #fff;
}

.feature-detail-card summary {
  cursor: pointer;
  list-style: none;
}

.feature-detail-card summary::-webkit-details-marker {
  display: none;
}

.feature-detail-card summary h3 {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
}

.feature-detail-card summary h3::after {
  color: #2b63a8;
  font-size: 1.25rem;
  font-weight: 700;
  content: "−";
}

.feature-detail-card:not([open]) summary h3::after {
  content: "+";
}

.feature-detail-card ul {
  margin: 13px 0 0;
  padding: 0;
  color: #405269;
  list-style: none;
}

.feature-detail-card li {
  position: relative;
  padding: 6px 0 6px 23px;
  font-size: 14px;
  line-height: 1.5;
}

.feature-detail-card li::before {
  position: absolute;
  left: 0;
  color: var(--focus-green);
  font-weight: 900;
  content: "✓";
}

.feature-boundaries-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.feature-boundaries-grid article {
  padding: 22px 24px;
  border: 1px solid var(--focus-line);
  border-radius: 10px;
}

.feature-boundaries-grid article:first-child {
  border-color: #8eb8a9;
  background: #f5fbf8;
}

.feature-boundaries-grid h3 {
  font-size: 1.08rem;
}

.feature-boundaries-grid p {
  margin: 8px 0 0;
  color: var(--focus-muted);
  font-size: 14px;
  line-height: 1.55;
}

.feature-cta {
  color: #fff;
  text-align: center;
  background: var(--focus-blue);
}

.feature-cta h2 {
  color: #fff;
}

.feature-cta p {
  margin: 9px auto 20px;
  color: #dce8f4;
}

.feature-cta .btn.primary,
.feature-cta .btn.primary:hover,
.feature-cta .btn.primary:focus-visible {
  border-color: #fff;
  color: var(--focus-blue);
  background: #fff;
}

.feature-page .site-footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .feature-page-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-redesign-copy {
    display: block;
  }

  .home-product-pair {
    grid-template-columns: minmax(260px, 0.82fr) minmax(460px, 1.38fr);
  }

  .home-timesheet-crop {
    height: 330px;
  }

  .feature-page-timesheet {
    max-width: 820px;
  }
}

@media (max-width: 819px) {
  .home-redesign .header-row,
  .feature-page .header-row {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .feature-page .site-nav {
    order: 3;
    flex-basis: 100%;
    padding: 10px 0 18px;
  }

  .feature-page .site-nav ul {
    gap: 0;
  }

  .feature-page .site-nav ul a {
    display: block;
    padding: 11px 2px;
    border-bottom: 1px solid #e4e9f0;
  }

  .feature-page .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  .home-redesign .site-nav .btn.primary,
  .feature-page .site-nav .btn.primary {
    display: none;
  }

  .home-redesign .header-actions,
  .feature-page .header-actions {
    display: block;
    margin-top: 0;
  }

  .home-redesign .header-login,
  .feature-page .header-login {
    display: block;
    min-height: auto;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid #e4e9f0;
    border-radius: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .home-redesign .container,
  .feature-page .container {
    width: min(100% - 32px, 1220px);
  }

  .home-redesign-hero,
  .feature-page-hero {
    padding: 30px 0 32px;
  }

  .home-redesign-hero-grid,
  .feature-page-hero-grid {
    gap: 28px;
  }

  .home-redesign-copy {
    display: block;
  }

  .home-redesign-copy h1,
  .feature-page-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .feature-page-hero h1 {
    max-width: 15ch;
    font-size: clamp(1.85rem, 8.7vw, 2.25rem);
  }

  .home-redesign-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .home-redesign-checks {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .home-product-pair {
    grid-template-columns: minmax(115px, 0.6fr) minmax(0, 1.4fr);
    gap: 11px;
    align-items: end;
  }

  .home-product figcaption {
    min-height: 50px;
  }

  .home-product figcaption strong {
    font-size: 11px;
  }

  .home-tablet-frame {
    padding: 12px 5px 16px;
    border-radius: 17px;
  }

  .home-laptop-frame {
    padding: 10px 6px 6px;
    border-radius: 10px 10px 4px 4px;
  }

  .home-timesheet-crop,
  .feature-page-timesheet .home-timesheet-crop {
    height: 170px;
  }

  .home-laptop-base {
    height: 9px;
  }

  .home-trust-grid,
  .home-flow-grid,
  .home-fit-grid,
  .home-price-strip-grid,
  .feature-detail-grid,
  .feature-boundaries-grid {
    grid-template-columns: 1fr;
  }

  .home-trust-grid p,
  .home-trust-grid p:first-child {
    padding: 12px 0;
    border-top: 1px solid var(--focus-line);
    border-left: 0;
  }

  .home-trust-grid p:first-child {
    border-top: 0;
  }

  .home-simple-flow,
  .home-fit,
  .home-price-strip,
  .feature-details,
  .feature-boundaries,
  .feature-cta {
    padding: 36px 0;
  }

  .home-flow-grid article,
  .home-flow-grid article:first-child,
  .feature-detail-card {
    padding: 17px 0;
    border-top: 1px solid var(--focus-line);
    border-left: 0;
  }

  .home-flow-grid article:first-child {
    border-top: 0;
  }

  .home-fit-grid {
    gap: 22px;
  }

  .home-price-strip-grid {
    gap: 24px;
  }

  .home-price-actions {
    justify-items: start;
  }

  .feature-page-hero .lead {
    font-size: 1rem;
  }

  .feature-detail-grid {
    gap: 10px;
  }

  .feature-detail-card {
    padding: 0;
    overflow: hidden;
  }

  .feature-detail-card summary {
    padding: 17px 18px;
  }

  .feature-detail-card ul {
    margin: 0;
    padding: 0 18px 15px;
  }
}

@media (max-width: 600px) {
  .home-product-pair {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-product-kiosk {
    width: min(66%, 240px);
    justify-self: center;
  }

  .home-product figcaption {
    min-height: 0;
  }

  .home-timesheet-crop,
  .feature-page-timesheet .home-timesheet-crop {
    height: 190px;
  }

  .home-product-timesheet .home-timesheet-crop img {
    width: 135%;
    transform: translateX(-8%);
  }
}
