/* DocuSay — coming soon · styles */
:root {
  --navy: #112c45;
  --navy-2: #173b5c;
  --navy-3: #0b1d2e;
  --gold: #c69a3a;
  --gold-2: #e3c778;
  --ink: #eaf0f5; /* light text on navy */
  --muted: #9fb2c4;
  --paper: #f7f5f0; /* record card ground */
  --paper-ink: #20303f;
  --paper-mut: #63788b;
  --line: rgba(198, 154, 58, 0.3);
  --line-soft: rgba(255, 255, 255, 0.12);
  --card-line: rgba(17, 44, 69, 0.14);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(
      820px 460px at 84% 6%,
      rgba(198, 154, 58, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 560px at 6% 96%,
      rgba(78, 116, 151, 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, var(--navy-2), var(--navy) 60%, var(--navy-3));
  color: var(--ink);
  font-family:
    "Libre Franklin",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
/* faint squared grid — institutional, ledger-like */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15));
}

.frame {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
/* LOGO PLACEHOLDER — drop your file at docusay-logo.svg; falls back to the wordmark below */
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}
.brand-fallback {
  display: none;
  font-family: "Spectral", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-fallback .say {
  color: var(--gold-2);
}
.status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* hero */
.hero {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.wordmark {
  font-family: "Spectral", Georgia, serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark .say {
  color: var(--gold-2);
}
.tagline {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  color: #f2e8d2;
  margin-top: clamp(0.75rem, 1.8vw, 1.1rem);
}
.lead {
  margin-top: clamp(1.15rem, 2.4vw, 1.6rem);
  max-width: 54ch;
  color: var(--ink);
  opacity: 0.9;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.72;
}
.lead b {
  color: #fff;
  font-weight: 600;
}
.lead .home {
  color: var(--gold-2);
  font-style: italic;
}

/* notify — squared */
.notify {
  margin-top: clamp(1.6rem, 3.5vw, 2.2rem);
}
.notify-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.field {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 40rem;
}
input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.98rem;
  padding: 0.78rem 0.95rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
input[type="email"]::placeholder {
  color: #7c8da0;
}
input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 154, 58, 0.18);
}
button {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--navy-3);
  border: 1px solid var(--gold);
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.78rem 1.4rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.06s ease;
}
button:hover {
  background: var(--gold-2);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
}
.msg.ok {
  color: var(--gold-2);
}
.msg.err {
  color: #e7a9a0;
}
.msg a {
  color: var(--gold-2);
}

/* evidence / record preview */
.evidence {
  position: relative;
}
.record {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--card-line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.record::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(17, 44, 69, 0.1);
  pointer-events: none;
}
.rec-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-mut);
  border-bottom: 1px solid var(--card-line);
  padding-bottom: 0.7rem;
}
.quote {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--navy);
  margin: 1rem 0 0.9rem;
}
.wave {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  padding: 0 2px;
}
.wave i {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--navy-2));
  opacity: 0.8;
}
.wave i:nth-child(1) {
  height: 14px;
}
.wave i:nth-child(2) {
  height: 28px;
}
.wave i:nth-child(3) {
  height: 44px;
}
.wave i:nth-child(4) {
  height: 24px;
}
.wave i:nth-child(5) {
  height: 52px;
}
.wave i:nth-child(6) {
  height: 32px;
}
.wave i:nth-child(7) {
  height: 18px;
}
.wave i:nth-child(8) {
  height: 40px;
}
.wave i:nth-child(9) {
  height: 26px;
}
.wave i:nth-child(10) {
  height: 48px;
}
.wave i:nth-child(11) {
  height: 20px;
}
.wave i:nth-child(12) {
  height: 36px;
}
.hashrow {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
}
.hashrow .k {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mut);
}
.hashrow .v {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--navy);
  word-break: break-all;
}
.hashrow .sealed {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* gold seal stamped on the record corner */
.stamp {
  position: absolute;
  top: -30px;
  right: -14px;
  width: clamp(104px, 12vw, 132px);
  height: clamp(104px, 12vw, 132px);
  transform: rotate(-8deg);
  transform-origin: center;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.stamp .ring-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 2.4px;
  fill: url(#gild);
  text-transform: uppercase;
}
.stamp .center-word {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 2.4px;
  fill: var(--gold-2);
}
.stamp .check {
  fill: none;
  stroke: url(#gild);
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes stampin {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(1.3);
  }
  55% {
    opacity: 1;
    transform: rotate(-8deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-8deg) scale(1);
  }
}
.stamp.ink {
  animation: stampin 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* flow strip */
.flow {
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.step {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--line-soft);
}
.step:last-child {
  border-right: 0;
}
.step .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.step p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* footer */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.foot a:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .evidence {
    max-width: 480px;
  }
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(2) {
    border-right: 0;
  }
  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
}
@media (max-width: 560px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .step:last-child {
    border-bottom: 0;
  }
  .field button {
    width: 100%;
  }
  .brand-fallback {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
