/* pages.css — shared inner-page components (Option A) */

:root {
  --bg: #0b0705;
  --bg2: #120a06;
  --panel: #17100b;
  --hair: rgba(255, 255, 255, 0.08);
  --hair2: rgba(255, 255, 255, 0.15);
  --text: #f6f1ea;
  --t2: #a89f95;
  --t3: #7a726b;
  --amber: #fbbf24;
  --orange: #f59e0b;
  --burnt: #ea580c;
  --deep: #c2410c;
  --r: 16px;
}

/* Light sections redefine variables for components */
.light {
  --text: #3a3028;
  --t2: #5c524a;
  --hair: rgba(60, 30, 10, 0.1);
  --hair2: rgba(60, 30, 10, 0.2);
}

.white {
  --text: #17100b;
  --t2: #5c524a;
  --hair: rgba(0, 0, 0, 0.1);
  --hair2: rgba(0, 0, 0, 0.2);
}

/* Base typography helpers */
h1, h2, h3 {
  font-family: 'Inter Tight', sans-serif;
  color: var(--text);
}

.mono-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t3);
}

/* Cards generic behavior on light/white */
.light .card, .white .card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.light .card:hover, .white .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(60, 30, 10, .35);
}

/* 1 NAV */
.nav-links a.on {
  color: var(--amber);
}

.nav-login {
  display: none; /* Hidden by default on desktop nav, shown in mobile menu via JS/class toggle usually, but spec says hide at >=900px implies it might be visible below? Spec: "shown only inside mobile menu (hide at >=900px)" */
}

@media (min-width: 900px) {
  .nav-login {
    display: none !important;
  }
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
}

.nav-right .btn-solid.btn-sm {
  display: none;
}

@media (min-width: 700px) {
  .nav-right .btn-solid.btn-sm {
    display: inline-flex;
  }
}

.btn-line.on {
  border-color: var(--amber);
  color: var(--amber);
}

/* 2 PAGE HERO */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 64px;
  background: var(--bg);
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero {
    padding: 40px 0 96px;
  }
  .page-hero-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 14px 0 18px;
}

.page-hero-photo {
  margin: 0;
}

.page-hero-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--hair2);
  max-width: 100%;
}

/* 3 DETAIL ROWS */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--hair);
}

.detail:first-child {
  border-top: none;
}

@media (min-width: 900px) {
  .detail {
    grid-template-columns: 1fr 1fr;
  }
  
  .detail.flip .detail-photo {
    order: 2;
  }
}

.detail-photo img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: 20px;
  max-width: 100%;
}

.detail-copy h3 {
  font-size: 1.7rem;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.detail-copy p {
  color: var(--t2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border: 1px solid var(--hair2);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--t2);
}

/* 4 FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--burnt);
  font-weight: bold;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--t2);
  margin-top: 10px;
}

/* 5 ENGAGEMENT */
.eng-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .eng-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ecard {
  padding: 28px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.light .ecard, .white .ecard {
  background: #fff;
}

.ecard .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t3);
  display: block;
  margin-bottom: 12px;
}

.ecard h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.ecard p {
  color: var(--t2);
  margin-bottom: 16px;
}

.ecard ul {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.ecard li {
  padding: 6px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  color: var(--text);
}

.ecard.featured {
  border-color: var(--burnt);
  box-shadow: 0 0 0 1px var(--burnt) inset;
}

/* 6 INDUSTRY CARDS */
.icard {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.light .icard, .white .icard {
  background: #fff;
}

.icard-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.icard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icard-body {
  padding: 22px 24px 26px;
}

.icard h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.icard ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icard li {
  font-size: 14px;
  color: var(--t2);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.icard li::before {
  content: '→';
  color: var(--burnt);
  position: absolute;
  left: 0;
}

/* 7 VALUES/TEAM */
.grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 700px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vcard {
  padding: 26px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.light .vcard, .white .vcard {
  background: #fff;
}

.vcard b {
  font-family: 'JetBrains Mono', monospace;
  color: var(--burnt);
  display: block;
  margin-bottom: 8px;
}

.vcard h3 {
  font-size: 1.15rem;
  margin: 10px 0 6px;
}

.vcard p {
  color: var(--t2);
  font-size: 15px;
}

.tcard {
  padding: 24px;
  text-align: center;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.light .tcard, .white .tcard {
  background: #fff;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber), var(--burnt));
  color: #170a02;
}

.tcard small {
  font-family: 'JetBrains Mono', monospace;
  color: var(--t3);
  display: block;
  margin-top: 8px;
}

/* 8 ARTICLES */
.acard {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.light .acard, .white .acard {
  background: #fff;
}

.acard-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.acard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acard-body {
  padding: 20px 22px 24px;
  flex-grow: 1;
}

.acard .meta {
  font-family: 'JetBrains Mono', monospace;
  color: var(--t3);
  margin-bottom: 8px;
  display: block;
}

.acard h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.acard p {
  color: var(--t2);
  font-size: 15px;
  margin-top: 8px;
}

/* 9 CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.3fr .7fr;
  }
}

.form-card {
  padding: 28px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--hair);
}

.white .form-card, .light .form-card {
  background: #fff;
}

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

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hair2);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  min-height: 24px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--burnt);
}

.next-steps ol {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
}

.next-steps li {
  counter-increment: s;
  padding: 0 0 22px 52px;
  position: relative;
}

.next-steps li::before {
  content: counter(s);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(234, 88, 12, .12);
  color: var(--burnt);
  font-family: 'JetBrains Mono', monospace;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
}

.next-steps li b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.next-steps li span {
  color: var(--t2);
  font-size: 15px;
}

/* 10 LOGIN */
.login-sec {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--hair2);
  border-radius: 22px;
  padding: 32px 28px;
}

.login-card h1 {
  font-size: 1.9rem;
  letter-spacing: -.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.login-card .sub {
  color: var(--t2);
  margin-bottom: 22px;
}

.login-card .field input {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-color: var(--hair2);
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--t2);
  margin: 6px 0 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.login-row a {
  color: var(--amber);
  text-decoration: none;
}

.login-card .btn {
  width: 100%;
  justify-content: center;
}

.login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--t3);
  text-align: center;
}

.soon {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 16px;
}

/* 11 misc */
.center {
  text-align: center;
}

.sec-head.center h2 {
  margin-left: auto;
  margin-right: auto;
}

.intro {
  max-width: 760px;
  color: var(--t2);
  font-size: 1.1rem;
  margin-top: 14px;
}

/* newsletter row: input + button on one line, bottoms aligned */
.form-grid.nl { align-items: end; }
@media (min-width: 700px) {
  .form-grid.nl { grid-template-columns: minmax(0, 1fr) auto; }
}
.form-grid.nl .btn { min-height: 46px; white-space: nowrap; }
