/* Tenure theme styles that theme.json cannot express. */

:root {
  --tenure-mono: var(--wp--preset--font-family--mono);
  --tenure-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*:focus-visible {
  outline: 2px solid var(--wp--preset--color--brass);
  outline-offset: 3px;
}

/* Header */
.tenure-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wp--preset--color--paper);
}
.tenure-mark {
  color: var(--wp--preset--color--ledger);
  display: inline-flex;
  line-height: 0;
}
.tenure-header .wp-block-site-title a:hover { color: var(--wp--preset--color--ledger); }

/* Sections */
.tenure-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.tenure-section.is-mist { background: var(--wp--preset--color--mist); }
.tenure-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--slate); }
.tenure-hero .tenure-lede { max-width: 36em; }
.tenure-quiet { color: var(--wp--preset--color--slate); }

/* Hero */
.tenure-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.tenure-hero h1 { max-width: 12em; }
.tenure-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--30); }
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
  border: 1.5px solid var(--wp--preset--color--ledger);
  color: var(--wp--preset--color--ledger);
  background: transparent;
  padding: calc(0.8rem - 1.5px) calc(1.4rem - 1.5px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--ledger-deep);
}

/* Run log: the product's actual output, rendered as the hero object. */
.tenure-log {
  font-family: var(--tenure-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--wp--preset--color--ink);
  color: #D7E0DB;
  border-radius: 6px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 0 rgba(23, 35, 43, 0.35), 0 18px 40px -24px rgba(23, 35, 43, 0.6);
  overflow: hidden;
}
.tenure-log__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #8FA39A;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #2B3A42;
}
.tenure-log__head strong { color: #FFFFFF; font-weight: 500; }
.tenure-log ol { list-style: none; margin: 0; padding: 0; }
.tenure-log li {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.28rem 0;
  border-bottom: 1px dashed #2B3A42;
}
.tenure-log li:last-child { border-bottom: 0; }
.tenure-log__time { color: #8FA39A; }
.tenure-log__sys { color: #FFFFFF; min-width: 0; }
.tenure-log__sys small { color: #8FA39A; font-size: inherit; }
.tenure-log__state { color: var(--wp--preset--color--brass); white-space: nowrap; text-align: right; }
.tenure-log__state.is-ok { color: #7FD1A8; }
.tenure-log__state.is-hold { color: #F0B35C; }
.tenure-log__foot {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2B3A42;
  color: #8FA39A;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tenure-log__foot strong { color: #FFFFFF; font-weight: 500; }

/* One orchestrated reveal on load: rows clear in sequence. */
@media (prefers-reduced-motion: no-preference) {
  .tenure-log.is-live li { opacity: 0; transform: translateY(4px); animation: tenure-row 0.45s var(--tenure-ease) forwards; }
  .tenure-log.is-live li:nth-child(1)  { animation-delay: 0.15s; }
  .tenure-log.is-live li:nth-child(2)  { animation-delay: 0.30s; }
  .tenure-log.is-live li:nth-child(3)  { animation-delay: 0.45s; }
  .tenure-log.is-live li:nth-child(4)  { animation-delay: 0.60s; }
  .tenure-log.is-live li:nth-child(5)  { animation-delay: 0.75s; }
  .tenure-log.is-live li:nth-child(6)  { animation-delay: 0.90s; }
  .tenure-log.is-live li:nth-child(7)  { animation-delay: 1.05s; }
  .tenure-log.is-live li:nth-child(8)  { animation-delay: 1.20s; }
  .tenure-log.is-live li:nth-child(9)  { animation-delay: 1.35s; }
  .tenure-log.is-live li:nth-child(10) { animation-delay: 1.50s; }
  .tenure-log.is-live .tenure-log__foot { opacity: 0; animation: tenure-row 0.45s var(--tenure-ease) 1.75s forwards; }
  @keyframes tenure-row { to { opacity: 1; transform: none; } }
}

/* Numbered steps: only used where the content is a real sequence. */
.tenure-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.tenure-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--wp--preset--color--line);
}
.tenure-steps > li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.tenure-steps > li::before {
  content: counter(step);
  font-family: var(--tenure-mono);
  font-size: 1.25rem;
  color: var(--wp--preset--color--ledger);
  line-height: 1.2;
}
.tenure-steps h3 { margin: 0 0 0.35rem; font-size: var(--wp--preset--font-size--large); }
.tenure-steps p { margin: 0; color: var(--wp--preset--color--slate); }

/* Fact rows: label + value pairs, used on Security and Pricing. */
.tenure-facts { margin: 0; padding: 0; }
.tenure-facts > div {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--wp--preset--color--line);
}
.tenure-facts > div:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.tenure-facts dt { font-weight: 600; margin: 0; }
.tenure-facts dd { margin: 0; color: var(--wp--preset--color--slate); }
@media (max-width: 640px) {
  .tenure-facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Pricing */
.tenure-price { font-family: var(--tenure-mono); font-size: var(--wp--preset--font-size--x-large); color: var(--wp--preset--color--ink); }
.tenure-price small { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); margin-left: 0.5rem; }

/* Platform list */
.tenure-platforms { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; padding: 0; margin: 0; }
.tenure-platforms li {
  font-family: var(--tenure-mono);
  font-size: var(--wp--preset--font-size--small);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--paper);
}

/* Contact form */
.tenure-form { display: grid; gap: 1rem; margin-bottom: var(--wp--preset--spacing--40); }
.tenure-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.tenure-form input, .tenure-form textarea, .tenure-form select {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 4px;
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  width: 100%;
}
.tenure-form input:focus, .tenure-form textarea:focus, .tenure-form select:focus {
  border-color: var(--wp--preset--color--ledger);
  outline: 2px solid var(--wp--preset--color--ledger);
  outline-offset: 0;
}
.tenure-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .tenure-form__row { grid-template-columns: 1fr; } }
.tenure-form button {
  font: inherit;
  font-weight: 600;
  background: var(--wp--preset--color--ledger);
  color: var(--wp--preset--color--paper);
  border: 0;
  border-radius: 4px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  justify-self: start;
}
.tenure-form button:hover { background: var(--wp--preset--color--ledger-deep); }
.tenure-form .tenure-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tenure-notice {
  border-left: 3px solid var(--wp--preset--color--ledger);
  background: var(--wp--preset--color--mist);
  padding: 0.9rem 1rem;
  margin: 0 0 1.5rem;
}
.tenure-notice.is-error { border-left-color: var(--wp--preset--color--signal); }

/* Two-column split used on the home page */
.tenure-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--wp--preset--spacing--40); align-items: center; }
@media (max-width: 880px) { .tenure-split { grid-template-columns: 1fr; } }
