/*
 * Shared layouts for the second wave of the SCRIBES marketing-site revamp:
 * Security, About, Contact, legal pages, search, and 404.
 */

.revamp-content {
  --ink: #171713;
  --muted: #69665f;
  --paper: #f7f4ee;
  --paper-deep: #eee8de;
  --line: #ded8ce;
  --red: #bb482e;
  --red-deep: #8f301f;
  --gold: #bd8441;
  --dark: #191a16;
  --green: #173121;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.revamp-content h1,
.revamp-content h2,
.revamp-content h3,
.revamp-content p {
  margin-top: 0;
}

.revamp-page-hero {
  position: relative;
  padding: 170px 0 105px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 77% 18%, rgba(224, 187, 123, .22), transparent 29%),
    linear-gradient(180deg, #fbf9f5 0%, var(--paper) 100%);
}

.revamp-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(185, 92, 60, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 92, 60, .16) 1px, transparent 1px);
  background-size: 132px 132px;
  mask-image: linear-gradient(90deg, transparent 18%, #000 65%, transparent);
}

.revamp-page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 84px;
  align-items: center;
}

.revamp-page-hero-copy {
  max-width: 730px;
}

.revamp-page-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7vw, 6.6rem);
  font-weight: 650;
  line-height: .93;
  letter-spacing: -.078em;
}

.revamp-page-hero h1 em {
  color: var(--red);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.08em;
}

.revamp-page-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: #4f4c46;
  font-size: 1.13rem;
  line-height: 1.65;
}

.revamp-page-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 20px;
  background: var(--dark);
  color: #f9f5ed;
  box-shadow: 0 24px 55px rgba(42, 35, 26, .18);
}

.revamp-page-panel::after {
  content: "✚";
  position: absolute;
  right: -18px;
  bottom: -47px;
  color: rgba(255, 255, 255, .045);
  font-size: 10rem;
  line-height: 1;
}

.revamp-panel-label {
  display: block;
  margin-bottom: 23px;
  color: #e9a186;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.revamp-panel-statement {
  display: block;
  max-width: 330px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.revamp-panel-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.revamp-panel-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.revamp-panel-list dt {
  color: #aaa9a2;
  font-size: .76rem;
}

.revamp-panel-list dd {
  margin: 0;
  color: #f7f2e9;
  font-size: .78rem;
  font-weight: 720;
  text-align: right;
}

.revamp-page-section {
  padding: 112px 0;
}

.revamp-page-section + .revamp-page-section {
  border-top: 1px solid var(--line);
}

.revamp-page-section-alt {
  background: var(--paper-deep);
}

.revamp-page-section-dark {
  border-color: rgba(255, 255, 255, .08) !important;
  background: var(--dark);
  color: #f8f4ec;
}

.revamp-page-section-head {
  display: grid;
  grid-template-columns: 1.05fr .68fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 58px;
}

.revamp-page-section-head h2,
.revamp-story-block h2,
.revamp-contact-direct h2,
.revamp-page-cta h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.07em;
}

.revamp-page-section-head > p,
.revamp-story-block > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.revamp-page-section-dark .revamp-page-section-head > p,
.revamp-page-section-dark .revamp-story-block > p {
  color: #b7b5ae;
}

.revamp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.revamp-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}

.revamp-card-number {
  display: block;
  color: var(--red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.revamp-card h3 {
  margin: 38px 0 12px;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.revamp-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.62;
}

.revamp-trust-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
}

.revamp-trust-flow article {
  position: relative;
  min-height: 210px;
  padding: 28px;
}

.revamp-trust-flow article + article {
  border-left: 1px solid var(--line);
}

.revamp-trust-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 31px;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #dec9c0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-size: .75rem;
}

.revamp-trust-flow span {
  color: var(--red);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.revamp-trust-flow h3 {
  margin: 48px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -.04em;
}

.revamp-trust-flow p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.revamp-honesty-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.revamp-honesty-mark {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: #eea084;
  font-family: Georgia, serif;
  font-size: 5rem;
}

.revamp-honesty-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 650;
  line-height: .96;
  letter-spacing: -.07em;
}

.revamp-honesty-copy > p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #b8b7b0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.revamp-faq {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.revamp-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.revamp-faq summary {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  color: #f6f2e9;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.revamp-faq summary::after {
  content: "+";
  color: #eea084;
}

.revamp-faq details[open] summary::after {
  content: "–";
}

.revamp-faq details p {
  max-width: 700px;
  margin: -4px 0 24px;
  color: #b8b7b0;
  line-height: 1.65;
}

.revamp-story-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 95px;
  align-items: start;
}

.revamp-story-index {
  position: sticky;
  top: 145px;
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.revamp-story-index span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #77736c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.revamp-story-index span::before {
  content: "";
  width: 34px;
  border-top: 1px solid #bbb3a8;
}

.revamp-story-block + .revamp-story-block {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.revamp-story-block > p {
  margin-top: 25px;
}

.revamp-reference {
  margin-left: .2em;
  vertical-align: super;
  font-size: .58em;
  font-weight: 750;
  letter-spacing: .04em;
}

.revamp-reference a {
  color: var(--red);
  text-decoration: none;
}

.revamp-reference a:hover,
.revamp-reference a:focus-visible {
  text-decoration: underline;
}

.revamp-story-quote {
  margin-top: 30px;
  padding-left: 24px;
  border-left: 3px solid var(--red);
  color: #322f2a;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.35;
}

.revamp-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}

.revamp-principles article {
  min-height: 220px;
  padding: 30px;
  background: var(--dark);
}

.revamp-principles span {
  color: #e69a7f;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.revamp-principles h3 {
  margin: 46px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.revamp-principles p {
  margin: 0;
  color: #b7b5ae;
  line-height: 1.6;
}

.revamp-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.revamp-contact-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffdf9;
}

.revamp-contact-card > span {
  color: var(--red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.revamp-contact-card h2 {
  margin: 54px 0 13px;
  font-size: 1.7rem;
  letter-spacing: -.05em;
}

.revamp-contact-card p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.revamp-contact-card a {
  margin-top: auto;
  color: var(--red);
  font-size: .9rem;
  font-weight: 750;
}

.revamp-contact-direct {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 90px;
  align-items: start;
}

.revamp-contact-direct > div > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.revamp-contact-checklist {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.revamp-contact-checklist li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--line);
  color: #403d37;
  line-height: 1.5;
}

.revamp-contact-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.revamp-legal-hero {
  padding-bottom: 72px;
}

.revamp-legal-hero .revamp-page-hero-copy {
  max-width: 850px;
}

.revamp-legal-hero h1 {
  font-size: clamp(3.8rem, 6vw, 5.9rem);
}

.revamp-draft-strip {
  border-bottom: 1px solid #e2c8bd;
  background: #fff4ef;
}

.revamp-draft-strip .revamp-wrap {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding-top: 17px;
  padding-bottom: 17px;
  color: #6f3b2d;
  font-size: .83rem;
  line-height: 1.5;
}

.revamp-draft-strip strong {
  color: var(--red-deep);
}

.revamp-legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 90px;
  justify-content: center;
  align-items: start;
}

.revamp-legal-nav {
  position: sticky;
  top: 145px;
  display: grid;
  gap: 9px;
}

.revamp-legal-nav strong {
  margin-bottom: 10px;
  color: var(--red);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.revamp-legal-nav a {
  color: #77736c;
  font-size: .82rem;
  line-height: 1.35;
}

.revamp-legal-copy {
  max-width: 760px;
}

.revamp-legal-copy section {
  scroll-margin-top: 150px;
}

.revamp-legal-copy section + section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.revamp-legal-copy h2 {
  margin: 0 0 17px;
  font-size: 1.52rem;
  letter-spacing: -.045em;
}

.revamp-legal-copy h3 {
  margin: 27px 0 10px;
  font-size: 1rem;
}

.revamp-legal-copy p,
.revamp-legal-copy li {
  color: #5d5952;
  font-size: .94rem;
  line-height: 1.72;
}

.revamp-legal-copy p + p {
  margin-top: 14px;
}

.revamp-legal-copy ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.revamp-legal-copy a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(187, 72, 46, .35);
  text-underline-offset: 3px;
}

.revamp-page-cta {
  padding: 105px 0;
  background: #eae3d8;
  text-align: center;
}

.revamp-page-cta h2 {
  max-width: 870px;
  margin: 0 auto;
}

.revamp-page-cta p {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.62;
}

.revamp-page-cta .revamp-actions {
  justify-content: center;
}

.revamp-empty-state {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 170px 0 100px;
  text-align: center;
}

.revamp-empty-state h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 650;
  line-height: .92;
  letter-spacing: -.08em;
}

.revamp-empty-state p {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.62;
}

.revamp-search-results {
  display: grid;
  gap: 0;
  margin-top: 55px;
  border-top: 1px solid var(--line);
}

.revamp-search-result {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.revamp-search-result time {
  color: #8a867f;
  font-size: .73rem;
}

.revamp-search-result h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.04em;
}

.revamp-search-result > a {
  color: var(--red);
  font-size: .8rem;
  font-weight: 750;
}

@media (max-width: 960px) {
  .revamp-page-hero-grid,
  .revamp-page-section-head,
  .revamp-honesty-grid,
  .revamp-story-grid,
  .revamp-contact-direct {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .revamp-page-panel {
    width: min(100%, 600px);
  }

  .revamp-card-grid,
  .revamp-contact-grid {
    grid-template-columns: 1fr;
  }

  .revamp-card,
  .revamp-contact-card {
    min-height: 0;
  }

  .revamp-trust-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .revamp-trust-flow article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .revamp-trust-flow article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .revamp-trust-flow article:nth-child(2)::after {
    display: none;
  }

  .revamp-story-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .revamp-legal-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .revamp-legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .revamp-legal-nav strong {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .revamp-page-hero {
    padding: 135px 0 72px;
  }

  .revamp-page-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.5rem);
  }

  .revamp-page-lede {
    font-size: 1rem;
  }

  .revamp-legal-hero h1 {
    line-height: .98;
  }

  .revamp-legal-hero .revamp-page-lede {
    margin-top: 42px;
  }

  .revamp-page-section {
    padding: 78px 0;
  }

  .revamp-page-section-head {
    margin-bottom: 38px;
  }

  .revamp-page-section-head h2,
  .revamp-story-block h2,
  .revamp-contact-direct h2,
  .revamp-page-cta h2 {
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }

  .revamp-trust-flow {
    grid-template-columns: 1fr;
  }

  .revamp-trust-flow article {
    min-height: 0;
  }

  .revamp-trust-flow article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .revamp-trust-flow article::after {
    display: none !important;
  }

  .revamp-honesty-mark {
    width: 130px;
    height: 130px;
    font-size: 3.8rem;
  }

  .revamp-principles {
    grid-template-columns: 1fr;
  }

  .revamp-principles article {
    min-height: 0;
  }

  .revamp-contact-card h2 {
    margin-top: 38px;
  }

  .revamp-draft-strip .revamp-wrap {
    display: block;
  }

  .revamp-draft-strip strong {
    display: block;
    margin-bottom: 4px;
  }

  .revamp-search-result {
    grid-template-columns: 1fr auto;
  }

  .revamp-search-result time {
    grid-column: 1 / -1;
  }
}
