/* Hush landing page.
   Values are lifted verbatim from the Claude Design source ("Landing Page.dc.html");
   the inline style attributes there map 1:1 onto the classes below. Anything the
   design file did not specify (responsive breakpoints, reduced-motion, focus rings)
   is grouped at the bottom of this file. */

/* ---------------------------------------------------------------- base ---- */

html, body { margin: 0; padding: 0; background: #13141E; }

body {
  font-family: 'SN Pro', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #CDFF62; text-decoration: none; }
a:hover { opacity: .8; }

@keyframes hush-caret {
  0%, 49%  { opacity: 1; }
  50%,100% { opacity: 0; }
}

@keyframes hush-hop {
  0%, 58%, 100% { transform: translateY(0) scale(1, 1); }
  62%           { transform: translateY(0) scale(1.1, .86); }
  72%           { transform: translateY(-9px) scale(.94, 1.08); }
  82%           { transform: translateY(0) scale(1.08, .9); }
  89%           { transform: translateY(-3px) scale(.98, 1.03); }
  95%           { transform: translateY(0) scale(1.03, .97); }
}

/* Hash-routed views. `hidden` is the off state; the router clears it. */
.view[hidden] { display: none; }

/* ------------------------------------------------------- home / hero ---- */

.home {
  min-height: 100vh;
  background: #13141E;
  color: #E9EDEF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px 32px;
  box-sizing: border-box;
  gap: 56px;
}

.home__grid {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 88px;
  align-items: center;
  flex: 1;
}

.stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  padding: 24px;
}

.device {
  width: 404px;
  padding: 11px;
  border-radius: 56px;
  background: #22232F;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .07);
  box-sizing: border-box;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
}

.device__screen {
  position: relative;
  border-radius: 46px;
  overflow: hidden;
  background: #1B1D29;
  aspect-ratio: 477 / 1024;
}

.device__shift {
  position: absolute;
  inset: 0;
  transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
}

.device__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device__sheen {
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: linear-gradient(105deg,
    rgba(205, 255, 98, 0) 38%,
    rgba(205, 255, 98, .14) 50%,
    rgba(255, 255, 255, .06) 56%,
    rgba(205, 255, 98, 0) 66%);
  transition: opacity 500ms ease;
  pointer-events: none;
}

.home__copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand__mark {
  width: 44px;
  height: 44px;
  background: #CDFF62;
  -webkit-mask: url(assets/favicon.svg) center/contain no-repeat;
          mask: url(assets/favicon.svg) center/contain no-repeat;
  transform-origin: 50% 100%;
  animation: hush-hop 4.5s ease-in-out infinite;
}

.brand__wordmark {
  width: 132px;
  height: 44px;
  background: #FFFFFF;
  -webkit-mask: url(assets/hush-logo.svg) left center/contain no-repeat;
          mask: url(assets/hush-logo.svg) left center/contain no-repeat;
}

.home__headline { display: flex; flex-direction: column; gap: 20px; }

.home__title {
  margin: 0;
  font-size: 76px;
  line-height: .98;
  font-weight: 700;
  letter-spacing: -2.5px;
  color: #FFFFFF;
  text-wrap: balance;
}

.home__tagline {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #9AA0C0;
  max-width: 30ch;
  text-wrap: pretty;
  min-height: 3em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #CDFF62;
  animation: hush-caret 1s steps(1, end) infinite;
}

.home__cta { display: flex; flex-direction: column; gap: 14px; }

.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.badge { position: relative; display: inline-flex; cursor: not-allowed; }

.badge__img {
  height: 56px;
  width: auto;
  display: block;
  opacity: .5;
  user-select: none;
  pointer-events: none;
}

.badge__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 10px;
  background: #252638;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .45);
  color: #E9EDEF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: var(--tip, 0);
  transition: opacity 180ms ease;
  pointer-events: none;
}

/* The design file drove this with a `style-hover` attribute on the badge. */
.badge:hover, .badge:focus-within { --tip: 1; }

.site-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin: 0 -40px -32px;
  box-sizing: content-box;
  z-index: 5;
  background: rgba(19, 20, 30, .92);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: center;
  padding: 16px 40px;
}

.site-footer__inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }

.footer-legal { font-size: 13px; color: #6E728C; }

/* ------------------------------------------- legal documents (light) ---- */

.doc {
  min-height: 100vh;
  background: #F8F9FC;
  color: #111B21;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc__header {
  width: 100%;
  background: #13141E;
  display: flex;
  justify-content: center;
  padding: 22px 32px;
  box-sizing: border-box;
}

.doc__header-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.doc__brand { display: flex; align-items: center; gap: 11px; }

.doc__mark {
  width: 30px;
  height: 30px;
  background: #CDFF62;
  -webkit-mask: url(assets/favicon.svg) center/contain no-repeat;
          mask: url(assets/favicon.svg) center/contain no-repeat;
}

.doc__wordmark {
  width: 92px;
  height: 30px;
  background: #FFFFFF;
  -webkit-mask: url(assets/hush-logo.svg) left center/contain no-repeat;
          mask: url(assets/hush-logo.svg) left center/contain no-repeat;
}

.doc__nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }

.doc__nav-link { color: #9AA0C0; }

.doc__body {
  width: 100%;
  max-width: 760px;
  padding: 64px 32px 96px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #1D2333;
}

.doc__meta {
  margin: 14px 0 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6E728C;
}

.doc__rule { height: 1px; background: #ECF0F9; margin: 36px 0 0; }

.doc__eyebrow {
  margin: 32px 0 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5261EC;
}

.doc__h2 {
  margin: 44px 0 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.25px;
  color: #1D2333;
}

.doc__p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: #2A3140;
  text-wrap: pretty;
}

.doc__lead {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #1D2333;
}

/* Inline links inside the light document body. The design file left these on the
   global lime `a` colour, which is ~1.3:1 against #F8F9FC and unreadable; this
   uses the design system's indigo (--hush-indigo), already the eyebrow colour. */
.doc__p a, .doc__lead a { color: #5261EC; text-decoration: underline; }

/* ------------------------------------------------ additions (not in DS) --- */

:focus-visible { outline: 2px solid #CDFF62; outline-offset: 3px; border-radius: 4px; }
.doc :focus-visible { outline-color: #5261EC; }

@media (max-width: 1040px) {
  .home__grid { gap: 56px; }
}

@media (max-width: 900px) {
  .home__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 48px;
  }
  /* Lead with the message, not the device shot, once the two stack. */
  .home__copy { order: -1; max-width: 520px; width: 100%; }
  .stage { padding: 8px; width: 100%; }
  .device { width: min(404px, 72vw); }
  .home__title { font-size: clamp(46px, 8.5vw, 64px); letter-spacing: -1.6px; }
}

@media (max-width: 560px) {
  .home { padding: 32px 20px 24px; gap: 40px; }
  .site-footer { margin: 0 -20px -24px; padding: 14px 20px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home__tagline { font-size: 18px; min-height: 4.5em; }
  .home__copy { gap: 28px; }
  .badge__img { height: 48px; }
  .device { width: min(404px, 64vw); }
  .doc__header { padding: 18px 20px; }
  .doc__body { padding: 40px 20px 72px; }
  .doc__title { font-size: 32px; letter-spacing: -1px; }
  .doc__h2 { font-size: 20px; margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__mark { animation: none; }
  .caret { animation: none; opacity: 1; }
  .device, .device__shift, .device__sheen { transition: none; }
  * { scroll-behavior: auto; }
}
