/* logitory.io home page, the category standard done carefully: a navy hero with the real app, then
   light sections with left-aligned headings, a navy security band and a navy closing call to action.
   Spacing runs on an 8px scale; sections are 96px apart on desktop. */

:where(.home) .wrap {
  max-width: 1200px;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.home header .logo.wordmark {
  height: 34px;
}
.home nav {
  gap: 28px;
}
.home nav .login {
  color: var(--text);
  font-weight: 600;
}
.home nav .button {
  padding: 10px 18px;
}

/* ---------- Buttons ---------- */
.button.large {
  padding: 14px 24px;
  font-size: 17px;
}
.button.ghost {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--on-navy);
}
.button.ghost:hover {
  background: rgb(255 255 255 / 0.08);
}

/* ---------- Hero ---------- */
.home .hero {
  overflow: hidden;
  padding: 80px 0 96px;
  background: var(--navy);
  color: var(--on-navy);
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.hero-copy {
  padding-bottom: 0;
}
.home .hero h1.brand {
  margin: 0;
  line-height: 1;
}
.home .hero .brand-tagline {
  display: block;
  color: var(--on-navy);
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.home .hero .tagline {
  max-width: none;
  margin: 24px 0 0;
  color: var(--on-navy);
  font-size: 20px;
  font-weight: 500;
}
.home .hero .desc {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--on-navy-muted);
  font-size: 18px;
}
.home .hero .actions {
  justify-content: flex-start;
  margin-top: 32px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: var(--on-navy-muted);
  font-size: 15px;
  list-style: none;
}
.hero-facts strong {
  margin-right: 4px;
  color: var(--on-navy);
  font-size: 20px;
  font-weight: 600;
}
.hero-visual {
  position: relative;
  width: 112%;
  padding-bottom: 32px;
}
.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 12px;
  background: #0b1520;
  box-shadow: 0 32px 64px -24px rgb(0 0 0 / 0.6);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-phone {
  position: absolute;
  right: 12%;
  bottom: -8px;
  width: 26%;
  height: auto;
  filter: drop-shadow(0 24px 32px rgb(0 0 0 / 0.55));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }
  .hero-phone {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.home section {
  padding: 96px 0;
}
.home section::before,
.home .grid.services::before {
  display: none;
}
.home section h2 {
  max-width: 22ch;
  margin: 0 0 16px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: left;
}
.home section .lead {
  max-width: 62ch;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 18px;
  text-align: left;
}
.home section .lead.tight {
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 600;
}
.home section .lead.closing {
  margin: 40px 0 0;
}
.home #video,
.home #why,
.home #faqs {
  background: var(--surface);
}
.home video.ad {
  max-width: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgb(14 26 38 / 0.45);
}

/* Feature grid: bordered tiles that lift a little on hover; the + opens the screenshot. */
.home .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home .grid > .card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.25s,
    opacity 0.25s;
}
.home #features .grid > .card:hover {
  border-color: #c3ccd6;
  box-shadow: 0 12px 28px -20px rgb(14 26 38 / 0.4);
}
.home .card > svg.icon {
  width: 24px;
  height: 24px;
  margin: 0 0 16px;
  color: var(--muted);
}
.home .card h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
}
.home .card p {
  margin: 0;
  color: var(--muted);
}
.home #features .grid > .card {
  align-items: flex-start;
}
.home #features .card > .expand {
  align-self: flex-start;
  width: 36px;
  height: 32px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home #features .grid:not(.services) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home #features .grid:not(.services) > .card {
  grid-column: span 2;
}
.home #features .grid:not(.services) > .card:nth-child(-n + 2) {
  grid-column: span 3;
  padding: 32px;
}
.home #features .grid:not(.services) > .card:nth-child(-n + 2) h3 {
  font-size: 24px;
}
.home #features .grid:not(.services) > .card:nth-child(-n + 2) p {
  max-width: 44ch;
  font-size: 18px;
}
.home #features .grid:not(.services) > .card:last-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--surface);
}
.home #features .grid:not(.services) > .card:last-child > svg.icon {
  margin: 0;
}
.home #features .grid:not(.services) > .card:last-child h3 {
  flex: none;
  margin: 0;
  font-size: 18px;
}
.home #features .grid:not(.services) > .card:last-child p {
  margin: 0;
}
/* An opened feature spans the whole features area, wide tiles included. */
.home #features.expanded .grid:not(.services) > .card.active {
  grid-column: 1 / -1;
}
.home #features.expanded .card.active > p {
  text-align: left;
}
.home .card .preview img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Integrations: one wide band of three under the features. */
.home .grid.services {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 24px;
  padding: 0;
}
.home .grid.services > .card {
  padding: 32px;
  background: var(--surface);
}
.home #features .grid.services .card > p,
.home #features .grid.services .card > p.tm-note {
  max-width: 72ch;
  text-align: left;
}
.home .integrations {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home .integrations li {
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-align: left;
}

/* Roles, the field promises and the licenses: columns under a rule, no boxes. */
.home #roles .grid > .card,
.home #why .grid > .card,
.home #pricing .grid > .card {
  padding: 24px 0 0;
  border: 0;
  border-top: 2px solid var(--text);
  border-radius: 0;
  background: transparent;
}


/* Built from the field: the story beside the three promises. */
.home #why .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px;
  align-items: start;
}
.home #why h2 {
  grid-column: 1;
  grid-row: 1;
}
.home #why .lead:not(.tight):not(.closing) {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 0;
}
.home #why .lead.tight,
.home #why .grid,
.home #why .lead.closing {
  grid-column: 2;
}
.home #why .lead.tight {
  grid-row: 1;
  align-self: end;
  margin: 0 0 24px;
}
.home #why .grid {
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.home #why .lead.closing {
  grid-row: 3;
}

/* Pricing: license columns, then the calculator. */
.home .calc {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px -32px rgb(14 26 38 / 0.35);
}
.home .calc-summary .each {
  font-family: var(--mono);
  font-size: 13px;
}
.home .calc h3 {
  font-size: 22px;
  font-weight: 600;
}
.home .calc-total {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Security: a navy band. */
.home #security {
  background: var(--navy);
  color: var(--on-navy);
}
.home #security .lead {
  color: var(--on-navy-muted);
}
.home #security .grid > .card {
  border-color: rgb(255 255 255 / 0.14);
  background: var(--navy-2);
}
.home #security .card h3 {
  color: var(--on-navy);
}
.home #security .card p {
  color: var(--on-navy-muted);
}
.home #security .card > svg.icon {
  color: var(--on-navy-muted);
}

/* FAQs: heading on the left, questions on the right. */
.home .wrap.faqs {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 64px;
  align-items: start;
  max-width: 1200px;
}
.home .faqs h2 {
  position: sticky;
  top: 96px;
  grid-column: 1;
  grid-row: 1 / span 20;
}
.home .faqs details {
  grid-column: 2;
  border-color: var(--border);
}
.home .faqs summary {
  font-size: 18px;
  font-weight: 600;
}

/* Closing call to action and the email addresses, on navy. */
.home #contact {
  background: var(--navy);
  color: var(--on-navy);
}
.home .wrap.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  text-align: left;
}
.home .contact h2 {
  color: var(--on-navy);
}
.home .contact-copy p {
  margin: 0;
  color: var(--on-navy-muted);
  font-size: 18px;
}
.home .contact .actions {
  justify-content: flex-start;
  margin-top: 32px;
}
.home .contact .card.emails {
  display: grid;
  justify-content: stretch;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 12px;
  background: var(--navy-2);
  text-align: left;
}
.home .contact .card.emails .hint {
  color: var(--on-navy-muted);
}
.home .contact .card.emails a {
  color: var(--on-navy);
  font-size: 20px;
}

/* Footer: navy, continuing the closing band. */
.home footer {
  margin-top: 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--navy);
  color: var(--on-navy-muted);
}
.home footer a {
  color: var(--on-navy);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-visual {
    width: 100%;
  }
  .hero-phone {
    right: 16px;
    width: 24%;
  }
  .home .hero {
    padding-bottom: 64px;
  }
  .home .grid,
  .home .integrations,
  .home #features .grid:not(.services) {
    grid-template-columns: minmax(0, 1fr);
  }
  .home #features .grid:not(.services) > .card,
  .home #features .grid:not(.services) > .card:nth-child(-n + 2) {
    grid-column: auto;
  }
  .home #features .grid:not(.services) > .card:last-child {
    flex-direction: column;
    align-items: flex-start;
  }
  .home #why .wrap,
  .home .wrap.faqs,
  .home .wrap.contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .home #why .wrap > *,
  .home .faqs > * {
    grid-column: 1;
    grid-row: auto;
  }
  .home #why .lead.tight {
    margin-top: 40px;
  }
  .home .faqs h2 {
    position: static;
  }
}
@media (max-width: 640px) {
  :where(.home) .wrap {
    padding: 0 20px;
  }
  .home header .logo.wordmark {
    height: 28px;
  }
  .home nav .button {
    display: none;
  }
  .home .hero {
    padding-top: 48px;
  }
  .hero-facts {
    gap: 8px 20px;
  }
  .home section {
    padding: 64px 0;
  }
  .home .grid > .card {
    padding: 24px;
  }
  .home .calc-total {
    font-size: 44px;
  }
}
