/* Public surface (dark) styles: landing page and sign-in.
 *
 * The public site is the design system as written, no inversion: #050505 page,
 * #121212 cards, #2a2a2a hairlines, #f3f3f3 text, signal red as the only accent.
 * Section rhythm is a full-bleed 1px top border plus 88px vertical padding,
 * with no background changes between sections. */

body.public {
  background: var(--black);
  color: var(--canvas);
}

.public-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Public-surface label override: 10px / +0.12em (vs the workspace 9.5px). */
.public .label {
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* --- Sticky header (blur over translucent black) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--faint-gray);
}
.site-header .public-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--canvas);
  text-decoration: none;
  /* The wordmark now wraps the logo lockup; keep the link box tight to the image. */
  display: inline-flex;
  align-items: center;
}
/* Brand logo lockup (icon + wordmark). Sized by height; width follows the
   image's ~4:1 aspect. Renders on dark surfaces, matching the artwork. */
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo-sm {
  height: 36px;
}
.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--cool-gray);
  text-decoration: none;
  transition: color var(--fade) var(--ease);
}
.site-nav a:hover {
  color: var(--canvas);
}
.header-spacer {
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Anchored sections clear the sticky header. */
:target {
  scroll-margin-top: 80px;
}
#how-it-works,
#deliverables {
  scroll-margin-top: 80px;
}

/* --- Buttons (public: primary is inverted to light fill) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-card);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--fade) var(--ease), border-color var(--fade) var(--ease),
    color var(--fade) var(--ease);
}
.btn:active {
  opacity: 0.85;
}
.btn-primary {
  background: var(--canvas);
  color: var(--black);
  padding: 9px 15px;
}
.btn-primary:hover {
  background: #ffffff;
}
.btn-secondary {
  background: transparent;
  color: var(--canvas);
  border-color: var(--faint-gray);
  padding: 9px 15px;
}
.btn-secondary:hover {
  border-color: var(--mid-gray);
}
.btn-quiet {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cool-gray);
  text-decoration: none;
  transition: color var(--fade) var(--ease);
}
.btn-quiet:hover {
  color: var(--canvas);
}
.btn-lg {
  padding: 13px 20px;
}

/* The design system's arrow glyph inherits currentColor. */
.arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --- Section rhythm --- */
.section {
  border-top: 1px solid var(--faint-gray);
  padding: 88px 0;
}
.section:first-of-type {
  border-top: 0;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 104px;
}
/* Two-column on wide viewports (copy left, image right); collapses to a single
 * stacked column in the max-width: 900px block below. */
.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-52);
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0; /* allow the copy column to shrink instead of forcing overflow */
  max-width: 640px;
}
.hero-media {
  flex: 1 1 420px;
  min-width: 0;
}
/* No card or background: the image sits directly on the dark hero surface. Its
 * left edge fades into that surface via a horizontal alpha mask. The mask uses
 * hard-stop stops (no interpolation between them) so the fade steps through
 * discrete opacity bands — a chunky, "pixelated" transition rather than a smooth
 * one — running transparent at the left to fully opaque at the right. */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0 10%,
    rgba(0, 0, 0, 0.11) 10% 20%,
    rgba(0, 0, 0, 0.22) 20% 30%,
    rgba(0, 0, 0, 0.33) 30% 40%,
    rgba(0, 0, 0, 0.44) 40% 50%,
    rgba(0, 0, 0, 0.55) 50% 60%,
    rgba(0, 0, 0, 0.66) 60% 70%,
    rgba(0, 0, 0, 0.77) 70% 80%,
    rgba(0, 0, 0, 0.88) 80% 90%,
    #000 90%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0 10%,
    rgba(0, 0, 0, 0.11) 10% 20%,
    rgba(0, 0, 0, 0.22) 20% 30%,
    rgba(0, 0, 0, 0.33) 30% 40%,
    rgba(0, 0, 0, 0.44) 40% 50%,
    rgba(0, 0, 0, 0.55) 50% 60%,
    rgba(0, 0, 0, 0.66) 60% 70%,
    rgba(0, 0, 0, 0.77) 70% 80%,
    rgba(0, 0, 0, 0.88) 80% 90%,
    #000 90%
  );
}
.hero h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: pretty;
  margin: 24px 0 0;
}
.hero .sub {
  font-size: 17px;
  color: var(--cool-gray);
  max-width: 520px;
  margin: 20px 0 0;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

/* --- How it works --- */
.how {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: flex-start;
}
.how-rail h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.how-rail .sub {
  font-size: 13.5px;
  color: var(--cool-gray);
  margin: 12px 0 0;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--faint-gray);
}
.step:first-child {
  border-top: 0;
}
.step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cool-gray);
}
.step-num.accent {
  color: var(--signal-red);
}
.step h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.step p {
  font-size: 13.5px;
  color: var(--cool-gray);
  max-width: 560px;
  margin: 8px 0 0;
  text-wrap: pretty;
}

/* --- Deliverables --- */
.deliverables-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.deliverables-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.deliverables-head .note {
  font-size: 13px;
  color: var(--cool-gray);
  max-width: 330px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.deliverable {
  background: var(--graphite);
  border: 1px solid var(--faint-gray);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--fade) var(--ease);
}
.deliverable:hover {
  border-color: var(--mid-gray);
}
.deliverable h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}
.deliverable p {
  font-size: 13px;
  color: var(--cool-gray);
  margin: 8px 0 0;
}
.deliverable-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--faint-gray);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.deliverable-price {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.deliverable-turn {
  font-size: 11.5px;
  color: var(--mid-gray);
}

/* --- Closing CTA --- */
.closing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 52px;
  padding: 88px 0 96px;
  border-top: 1px solid var(--faint-gray);
}
.closing h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 620px;
  margin: 0;
}
.closing .btn {
  flex: 0 0 auto;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--faint-gray);
}
.site-footer .public-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer-tag {
  font-size: 11.5px;
  color: var(--mid-gray);
}
.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.footer-links a {
  font-size: 11.5px;
  color: var(--cool-gray);
  text-decoration: none;
  transition: color var(--fade) var(--ease);
}
.footer-links a:hover {
  color: var(--canvas);
}

/* --- Sign-in split --- */
.signin {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.signin-left {
  flex: 1;
  border-right: 1px solid var(--faint-gray);
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
}
.signin-left .spacer {
  flex: 1;
}
.signin-pitch {
  max-width: 480px;
}
.signin-pitch h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.signin-pitch p {
  font-size: 14px;
  color: var(--cool-gray);
  margin: 16px 0 0;
}
.signin-foot {
  font-size: 11.5px;
  color: var(--mid-gray);
}
.signin-right {
  width: 520px;
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 64px;
}
.signin-right h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
.signin-right .intro {
  font-size: 13px;
  color: var(--cool-gray);
  margin: 8px 0 0;
}
.field {
  margin-top: 20px;
}
.field:first-of-type {
  margin-top: 32px;
}
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-gray);
}
.field .forgot {
  font-size: 11.5px;
  color: var(--cool-gray);
  text-decoration: none;
}
.field .forgot:hover {
  color: var(--signal-red);
}
.field input {
  width: 100%;
  margin-top: 9px;
  background: var(--graphite);
  border: 1px solid var(--faint-gray);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--canvas);
  transition: border-color var(--fade) var(--ease);
}
.field input:hover {
  border-color: var(--mid-gray);
}
.field input:focus {
  outline: none;
  border-color: var(--mid-gray);
}
.signin-right .btn-primary,
.signin-right .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-top: 26px;
  padding: 13px 18px;
}
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--faint-gray);
}
.or-divider span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.fine-print {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 34px;
}
.fine-print a {
  color: var(--cool-gray);
  text-decoration: none;
}

/* --- Quality floor: keyboard focus visibility --- */
a:focus-visible,
.btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cool-gray);
  outline-offset: 2px;
}

/* --- Responsive: the design assumes a wide desktop; degrade gracefully. --- */
@media (max-width: 900px) {
  /* Hero stacks to a single column: copy above image. */
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-34);
  }
  .hero-copy,
  .hero-media {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .signin {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .signin-right {
    width: 100%;
    flex: 1;
  }
}
