/* =====================================================
   IncubaOS — Demo + About page styles
   ===================================================== */

/* ===== Shared page hero ===== */
.page-hero {
  position: relative;
  background: var(--charcoal);
  color: white;
  padding: 96px 0 64px;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; max-width: 880px; text-align: center; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ===== Demo grid ===== */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Form card ===== */
.demo-form-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.df-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .df-row { grid-template-columns: 1fr; }
  .demo-form-card { padding: 28px 22px; }
  .df-radios {
    display: grid;
    grid-template-columns: 1fr;
  }
  .df-radio {
    justify-content: space-between;
    border-radius: 18px;
  }
  .df-submit {
    width: 100%;
    justify-content: center;
  }
}
.df-field { display: flex; flex-direction: column; gap: 6px; }
.df-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: .01em;
}
.df-field input,
.df-field select,
.df-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,27,71,.12);
}
.df-field textarea { resize: vertical; min-height: 96px; }
.df-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.df-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.df-radio input { accent-color: var(--primary); }
.df-radio:has(input:checked) {
  background: #FFE8EC;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.df-submit { align-self: flex-start; margin-top: 6px; }
.df-foot {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: -4px;
  line-height: 1.55;
}
.df-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #E8F8EE;
  border: 1px solid #B7E5C6;
  color: #1F7A3A;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 4px;
}
.df-success[hidden],
.df-error[hidden] {
  display: none !important;
}
.df-success strong { display: block; font-size: 14.5px; }
.df-success p { font-size: 13px; margin-top: 2px; }
.df-success a { text-decoration: underline; }
.df-success-ico {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #1F7A3A; color: white; flex-shrink: 0;
}
.df-error {
  background: #FFF1F2;
  border: 1px solid #F3B5BE;
  color: #A1122C;
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
.lead-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== Demo aside ===== */
.demo-aside { display: flex; flex-direction: column; gap: 20px; }
.da-card {
  background: var(--charcoal);
  color: white;
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.da-card::before {
  content: '';
  position: absolute;
  inset: -50% -30% auto auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(230,27,71,.35), transparent 65%);
  pointer-events: none;
}
.da-card .eyebrow { background: rgba(255,255,255,.08); color: #FFB3BD; }
.da-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 8px 0 20px;
  text-wrap: balance;
}
.da-list { list-style: none; display: flex; flex-direction: column; gap: 16px; position: relative; }
.da-list li { display: flex; gap: 14px; align-items: flex-start; }
.da-n {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.da-list strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}
.da-list p {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

.da-trust {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.da-trust-row { display: flex; gap: 12px; align-items: center; }
.da-trust-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #FFE8EC;
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.da-trust-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.da-trust-row span {
  display: block;
  font-size: 13px;
  color: var(--slate);
}

/* ===== About page ===== */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; gap: 32px; }
}
.as-card {
  background: var(--charcoal);
  color: white;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.as-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(230,27,71,.32), transparent 65%);
  pointer-events: none;
}
.as-card-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.as-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(230,27,71,.22);
}
.as-timeline { list-style: none; display: flex; flex-direction: column; gap: 16px; position: relative; }
.as-timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
}
.as-year {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #FF8A99;
}
.as-timeline li > span:last-child { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.5; }

/* ===== Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230,27,71,.25);
}
.value-ico {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: #FFE8EC;
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-ico svg { width: 22px; height: 22px; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
}

/* ===== About team ===== */
.about-team {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: var(--r-2xl);
  padding: 48px;
}
@media (max-width: 900px) {
  .about-team { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
.at-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.at-badge {
  display: inline-flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--r-md);
  padding: 10px 14px;
  min-width: 140px;
}
.at-badge strong { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.at-badge span { font-size: 12px; color: var(--slate); margin-top: 2px; }

.at-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.at-stat {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
}
.ats-n {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.ats-l {
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-top: 8px;
}

/* ===== RTL tweaks ===== */
html[dir="rtl"] .as-timeline li { grid-template-columns: 1fr 70px; }
html[dir="rtl"] .as-timeline li > span:last-child { order: -1; }
html[dir="rtl"] .da-card::before { inset: -50% auto auto -30%; }
html[dir="rtl"] .as-card::before { inset: auto auto -40% -20%; }
