/* ──────────────────────────────────────────────────────────────
   Twseel Station — inner pages
   ────────────────────────────────────────────────────────────── */

/* ── Page hero (subtitle band atop pages) ── */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 6vw + 1rem, 96px) clamp(32px, 4vw + 1rem, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(47, 128, 237, 0.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
}
@media (max-width: 720px) { .page-hero__inner { grid-template-columns: 1fr; } }

.page-hero h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 24ch;
}
html[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.2; }

.page-hero__sub {
  margin-top: var(--s-3);
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 64ch;
  line-height: 1.6;
}

.page-hero__meta {
  font-size: var(--fs-small);
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--ink-3); transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--ink-4); }
html[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); }

/* ── Two-column layout: aside + main ── */
.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-block: var(--s-8);
}
@media (max-width: 880px) {
  .page-layout { grid-template-columns: 1fr; gap: var(--s-5); }
}

.page-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: var(--fs-small);
}
@media (max-width: 880px) {
  .page-aside {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-4);
  }
}
.page-aside__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
html[dir="rtl"] .page-aside__label { text-transform: none; letter-spacing: 0; }

.page-aside ol,
.page-aside ul { display: flex; flex-direction: column; gap: 4px; }
.page-aside a {
  display: block;
  padding: 8px var(--s-3);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  font-weight: 500;
  line-height: 1.4;
  border-inline-start: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.page-aside a:hover { color: var(--ink); background: var(--surface-2); }
.page-aside a.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
  border-inline-start-color: var(--brand);
}

/* ── Prose (legal/about content) ── */
.prose { color: var(--ink-2); line-height: 1.7; max-width: 72ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: var(--s-7);
  scroll-margin-top: 96px;
}
html[dir="rtl"] .prose h2 { letter-spacing: 0; line-height: 1.4; }
.prose h2 + p { margin-top: var(--s-3); }
.prose h3 {
  font-size: 1.125rem;
  color: var(--ink);
  margin-top: var(--s-5);
}
.prose p { font-size: 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--brand-600);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.prose a:hover { color: var(--brand-700); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: var(--s-2); }

/* Section card (used for grouped prose) */
.prose-section {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--s-4);
  scroll-margin-top: 96px;
}
.prose-section + .prose-section { margin-top: var(--s-7); }
.prose-section__num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-50);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.prose-section__body h2 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: var(--s-3);
}
.prose-section__body p + p { margin-top: var(--s-3); }

/* ── About — split sections ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.about-grid + .about-grid { margin-top: clamp(48px, 6vw, 96px); }

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 3vw, 48px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 540px) { .about-stats { grid-template-columns: 1fr; } }
.about-stat {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.about-stat b {
  display: block;
  font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.about-stat span { color: var(--ink-3); font-size: var(--fs-small); }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (max-width: 720px) { .about-values { grid-template-columns: 1fr; } }
.about-value {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.about-value__icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-3);
}
.about-value__icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.about-value h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.about-value p { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.55; }

/* ── Forms ── */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .form-shell { grid-template-columns: 1fr; gap: var(--s-6); }
}

.form-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 900px) { .form-side { position: static; } }
.form-side h2 {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
html[dir="rtl"] .form-side h2 { letter-spacing: 0; }
.form-side p { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.6; }

.form-side__list { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.form-side__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s-3);
  align-items: start;
}
.form-side__icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--r-sm);
  flex: none;
}
.form-side__icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.form-side__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.form-side__item span { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.5; }
.form-side__item a { color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out); }
.form-side__item a:hover { color: var(--brand-600); }

.form-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid--full > .field { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
html[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 36px;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}
.field__error {
  font-size: 0.75rem;
  color: var(--danger);
  display: none;
}
.field.is-invalid .field__error { display: block; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}

.form-status {
  font-size: var(--fs-small);
  padding: 10px var(--s-4);
  border-radius: var(--r-md);
  display: none;
  flex: 1;
  min-width: 200px;
}
.form-status.is-info     { display: block; background: var(--brand-50); color: var(--brand-700); }
.form-status.is-success  { display: block; background: rgba(16, 185, 129, 0.10); color: #047857; }
.form-status.is-error    { display: block; background: rgba(225, 29, 72, 0.08); color: var(--danger); }

.form-main .btn[type="submit"] {
  align-self: flex-end;
}

/* ── FAQ accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  text-align: start;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__head:hover { color: var(--brand-600); }
.faq__icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.faq__icon svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.faq.is-open .faq__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.faq.is-open .faq__icon svg { transform: rotate(45deg); }

.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}
.faq__body-inner {
  padding-bottom: var(--s-5);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 64ch;
}
.faq.is-open .faq__body { max-height: 480px; }

/* ── Small CTA bar (used at bottom of contact/about) ── */
.cta-bar {
  margin-top: var(--s-8);
  padding: clamp(28px, 3vw, 48px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-2xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 720px) { .cta-bar { grid-template-columns: 1fr; } }
.cta-bar h3 { color: #fff; font-size: 1.5rem; letter-spacing: -0.01em; }
html[dir="rtl"] .cta-bar h3 { letter-spacing: 0; }
.cta-bar p { color: rgba(255, 255, 255, 0.7); margin-top: 6px; font-size: var(--fs-small); }
.cta-bar .btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-border: #fff;
}
.cta-bar .btn:hover { --btn-bg: rgba(255, 255, 255, 0.92); box-shadow: none; }
