/*
 * Global styles for Tokyo Wingman Night.
 */

:root {
  --ink: #101014;
  --paper: #f7f1e8;
  --paper-soft: #efe7dc;
  --night: #17131a;
  --night-2: #241823;
  --line: rgba(255, 255, 255, 0.18);
  --muted: #6f665e;
  --hot: #e4475d;
  --amber: #ffb84d;
  --jade: #3dbb96;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(16, 16, 20, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
}

main {
  min-height: 100vh;
}

.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 14, 0.92) 0%, rgba(12, 10, 14, 0.74) 42%, rgba(12, 10, 14, 0.18) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(12, 10, 14, 0.88), rgba(12, 10, 14, 0));
  z-index: -1;
}

.site-nav {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.site-nav.compact {
  color: var(--ink);
  border-bottom: 1px solid rgba(16, 16, 20, 0.12);
}

.brand-mark {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a:not(.brand-mark) {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.site-nav.compact a:not(.brand-mark) {
  color: rgba(16, 16, 20, 0.74);
}

.site-nav a:not(.brand-mark):hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.site-nav.compact a:not(.brand-mark):hover {
  background: rgba(16, 16, 20, 0.08);
  color: var(--ink);
}

.site-nav .nav-cta,
.site-nav.compact .nav-cta {
  background: var(--hot);
  color: var(--white);
}

.hero-content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-content h1,
.page-header h1,
.thanks-panel h1 {
  max-width: 860px;
  margin: 0;
  font-size: 4rem;
  line-height: 0.95;
  font-weight: 900;
}

.hero-copy,
.page-header p,
.section-copy p,
.offer-strip p,
.contact-section p,
.thanks-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--hot);
  color: var(--white);
  box-shadow: 0 12px 36px rgba(228, 71, 93, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button.full-width {
  width: 100%;
}

.button-small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.flash-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.flash-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 16, 20, 0.12);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.flash-message.alert {
  border-color: rgba(228, 71, 93, 0.35);
  color: #7d2130;
}

.flash-message.notice {
  border-color: rgba(61, 187, 150, 0.38);
}

.hero-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-footer span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(13, 12, 16, 0.58);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-weight: 750;
  font-size: 0.9rem;
}

.proof-band,
.section-grid,
.packages,
.offer-strip,
.contact-section,
.page-header,
.offer-detail,
.playbook-grid,
.thanks-panel {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(16, 16, 20, 0.14);
  border: 1px solid rgba(16, 16, 20, 0.14);
}

.proof-band div {
  min-height: 132px;
  padding: 22px;
  background: var(--paper-soft);
}

.proof-band strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.proof-band span,
.card p,
.package li,
.numbered-list p,
.offer-detail li,
.offer-detail p {
  color: var(--muted);
  line-height: 1.58;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: start;
  padding: 96px 0;
}

.section-grid.muted {
  border-top: 1px solid rgba(16, 16, 20, 0.12);
  border-bottom: 1px solid rgba(16, 16, 20, 0.12);
}

.section-copy h2,
.offer-strip h2,
.contact-section h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.section-copy p,
.offer-strip p,
.contact-section p,
.page-header p,
.thanks-panel p {
  color: var(--muted);
}

.cards.three,
.packages,
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.package,
.offer-detail article {
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(16, 16, 20, 0.06);
}

.card h3,
.card h2,
.package h3,
.offer-detail h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.card p,
.package ul,
.offer-detail ul,
.offer-detail p {
  margin: 0;
}

.offer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background: var(--night);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.offer-strip h2 {
  color: var(--white);
}

.offer-strip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.packages {
  padding: 72px 0 96px;
}

.package {
  display: flex;
  flex-direction: column;
}

.package.featured {
  background: var(--night-2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.package.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.package-kicker {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  margin: 0 0 18px;
  font-size: 2.1rem;
  font-weight: 900;
}

.price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.package.featured .price small {
  color: rgba(255, 255, 255, 0.58);
}

.package ul,
.offer-detail ul {
  padding-left: 19px;
}

.package li + li,
.offer-detail li + li {
  margin-top: 10px;
}

.package-actions {
  margin-top: auto;
  padding-top: 24px;
}

.package-actions .button {
  width: 100%;
}

.offer-detail article .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}

.numbered-list {
  display: grid;
  gap: 12px;
}

.numbered-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(16, 16, 20, 0.12);
}

.numbered-list span {
  color: var(--hot);
  font-weight: 900;
}

.numbered-list p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: start;
  padding: 88px 0 104px;
}

.contact-note {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--jade);
  background: rgba(61, 187, 150, 0.1);
  color: var(--muted);
  line-height: 1.5;
}

.contact-note strong {
  color: var(--ink);
}

.proof-band a,
.contact-note a {
  color: var(--hot);
  font-weight: 800;
}

.contact-note code {
  color: var(--ink);
  font-size: 0.9em;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.split {
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
}

.form-row label {
  color: rgba(16, 16, 20, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 16, 20, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf9;
  color: var(--ink);
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(255, 184, 77, 0.38);
  border-color: var(--amber);
}

.form-disclaimer {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-errors {
  padding: 14px;
  border: 1px solid rgba(228, 71, 93, 0.3);
  border-radius: 8px;
  background: rgba(228, 71, 93, 0.08);
  color: #7d2130;
}

.form-errors ul {
  margin-bottom: 0;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--hot);
}

.agreement-layout,
.faq-grid,
.ops-section {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.agreement-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 16px;
  align-items: start;
  padding: 0 0 96px;
}

.agreement-list {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 8px;
  background: #fffdf9;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 76px;
}

.faq-grid .card h2 {
  font-size: 1.18rem;
}

.faq-cta {
  margin-bottom: 96px;
}

.simple-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.12), rgba(247, 241, 232, 0) 320px),
    var(--paper);
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.admin-login-panel {
  width: min(460px, calc(100% - 40px));
}

.admin-login-panel h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
}

.admin-login-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.admin-login-form {
  margin-top: 22px;
}

.page-header {
  padding: 88px 0 48px;
}

.page-header h1,
.thanks-panel h1 {
  color: var(--ink);
  font-size: 3.2rem;
}

.offer-detail {
  display: grid;
  gap: 16px;
  padding-bottom: 76px;
}

.offer-detail article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 28px;
}

.offer-detail article p:not(.price),
.offer-detail article ul {
  grid-column: 1 / -1;
}

.playbook-grid {
  padding: 0 0 96px;
}

.testimonial-stage {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 16px;
  padding: 0 0 76px;
}

.testimonial-feature,
.quote-card {
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px rgba(16, 16, 20, 0.06);
}

.testimonial-feature {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  background: var(--night-2);
  color: var(--white);
}

.testimonial-feature h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.testimonial-feature p:not(.package-kicker) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quote-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.quote-card span {
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-card h3 {
  margin: auto 0 16px;
  font-size: 1.45rem;
}

.quote-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.quote-card.empty {
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.12), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.46);
}

.testimonial-proof {
  margin-bottom: 96px;
}

.ops-section {
  padding-bottom: 32px;
}

.ops-nav .ops-user {
  color: rgba(16, 16, 20, 0.64);
  font-size: 0.9rem;
  font-weight: 800;
}

.ops-nav form {
  margin: 0;
}

.ops-nav .button.secondary {
  background: rgba(16, 16, 20, 0.06);
  border-color: rgba(16, 16, 20, 0.16);
  color: var(--ink);
}

.ops-section:last-child {
  padding-bottom: 96px;
}

.ops-section h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.ops-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(16, 16, 20, 0.06);
}

.ops-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ops-table th,
.ops-table td {
  max-width: 280px;
  padding: 12px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
  text-align: left;
  vertical-align: top;
}

.ops-table th {
  color: rgba(16, 16, 20, 0.7);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ops-table td {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
}

.thanks-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.thanks-panel .button {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .hero-section {
    min-height: 820px;
    background-image:
      linear-gradient(180deg, rgba(12, 10, 14, 0.96) 0%, rgba(12, 10, 14, 0.76) 52%, rgba(12, 10, 14, 0.26) 100%),
      var(--hero-image);
  }

  .hero-content {
    padding: 62px 0 48px;
  }

  .hero-content h1,
  .page-header h1,
  .thanks-panel h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .proof-band,
  .section-grid,
  .cards.three,
  .packages,
  .contact-section,
  .playbook-grid,
  .testimonial-stage,
  .testimonial-grid,
  .agreement-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .contact-section {
    gap: 24px;
    padding: 68px 0;
  }

  .offer-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: min(100% - 24px, 1160px);
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .site-nav div {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a:not(.brand-mark) {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero-content,
  .hero-footer,
  .proof-band,
  .section-grid,
  .packages,
  .offer-strip,
  .contact-section,
  .page-header,
  .offer-detail,
  .playbook-grid,
  .testimonial-stage,
  .agreement-layout,
  .faq-grid,
  .ops-section,
  .admin-login-panel,
  .thanks-panel {
    width: min(100% - 24px, 1160px);
  }

  .admin-login-panel h1 {
    font-size: 2.35rem;
  }

  .hero-content h1,
  .page-header h1,
  .thanks-panel h1 {
    font-size: 2.35rem;
  }

  .section-copy h2,
  .offer-strip h2,
  .contact-section h2 {
    font-size: 1.9rem;
  }

  .hero-copy,
  .page-header p,
  .section-copy p,
  .offer-strip p,
  .contact-section p,
  .thanks-panel p {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-footer {
    grid-template-columns: 1fr;
  }

  .proof-band div,
  .card,
  .package,
  .offer-detail article,
  .testimonial-feature,
  .quote-card,
  .lead-form {
    padding: 18px;
  }

  .form-row.split,
  .offer-detail article {
    grid-template-columns: 1fr;
  }

  .packages {
    padding-bottom: 68px;
  }
}
