/* About, Contact, Log in and Sign up. Shared parts (header, buttons, cards, footer) are in site.css. */

/* --------------------------------------------------------------- page hero */
.page-hero { position: relative; padding: 72px 0 52px; overflow-x: clip; isolation: isolate; text-align: center; }
.page-hero--compact { padding-bottom: 36px; }
.page-hero__title { margin-top: 12px; font-size: clamp(32px, 4.8vw, 58px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.page-hero__title span { display: block; }
html[dir="rtl"] .page-hero__title { line-height: 1.4; }
.page-hero__lede { margin: 20px auto 0; max-width: 62ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }

/* ------------------------------------------------------------------- about */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 24px; inset-inline-start: 21px; width: 2px; opacity: .35;
  background: linear-gradient(var(--accent), var(--ai));
}
.timeline li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 18px;
  color: var(--on-grad); background: var(--btn-grad); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.timeline .card { padding: 22px 26px; }
.timeline .card h3 { margin-bottom: 6px; }

.about-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; align-items: start; }
.h2 { margin: 8px 0 22px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; font-weight: 700; }
html[dir="rtl"] .h2 { line-height: 1.45; }
.tech, .data-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tech li, .data-list > div {
  display: grid; gap: 2px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.tech b, .data-list dt { font-weight: 700; font-size: 16px; }
.tech span, .data-list dd { color: var(--muted); font-size: 14.5px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--bad); }
.field__err, .card .field__err { font-size: 13px; color: var(--bad); }
.field__meta, .card .field__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); min-height: 1.4em; }
.count { margin-inline-start: auto; }
.help, .card .help { font-size: 12.5px; color: var(--muted); }
.card .help--center { text-align: center; }
.form-error, .card .form-error {
  padding: 12px 16px; border-radius: 14px; font-size: 14px; color: var(--bad);
  background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
}
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.field__pw { position: relative; }
.field__pw input { padding-inline-end: 52px; }
.field__toggle { position: absolute; inset-block: 0; inset-inline-end: 6px; width: 42px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.field__toggle:hover { color: var(--text); }
.field__toggle .eye-off, .field__toggle[aria-pressed="true"] .eye { display: none; }
.field__toggle[aria-pressed="true"] .eye-off { display: block; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.strength i { height: 5px; border-radius: 3px; background: var(--border); transition: background .25s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] i:nth-child(-n+3), .strength[data-level="4"] i { background: var(--ok); }

/* ----------------------------------------------------------------- contact */
.contact { padding-top: 8px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.form-card { padding: clamp(24px, 4vw, 38px); }
.contact__side { display: grid; gap: 16px; }
.contact__side .card { padding: 24px; }
.contact__side .ico { margin-bottom: 14px; }
.done { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 10px; }
.done__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.done__ico .i { width: 32px; height: 32px; stroke-width: 2.2; }
.done h2 { font-size: 26px; font-weight: 800; }
.done p { color: var(--muted); max-width: 40ch; margin-bottom: 8px; }

/* ----------------------------------------------------------- log in / sign up */
.auth { position: relative; isolation: isolate; overflow-x: clip; padding: 44px 0 84px; }
.auth__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; max-width: 1060px; }
.auth__card { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.auth__card:hover { transform: none; }
.auth__card h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; font-weight: 800; }
.auth__sub { margin-top: 6px; color: var(--muted); }
.auth__card .form { margin-top: 26px; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14.5px; }

.auth__aside {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: clamp(26px, 4vw, 46px); border-radius: 26px; border: 1px solid var(--border);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--ai) 20%, var(--surface)));
}
.aside__mol { direction: ltr; width: min(300px, 80%); align-self: center; margin-block: 24px; fill: none; stroke: var(--text); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.aside__mol .ring { stroke: var(--accent); stroke-width: 2.2; }
.aside__copy h2 { font-size: 26px; font-weight: 800; }
.aside__copy p { margin-top: 6px; color: var(--muted); }
.aside__copy ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.aside__copy li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.aside__copy li .i { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.4; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .about-two, .contact__grid, .auth__grid { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .page-hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .timeline__n { width: 36px; height: 36px; font-size: 15px; }
  .timeline::before { inset-inline-start: 17px; }
  .timeline .card { padding: 18px 20px; }
  .auth { padding-top: 24px; }
}
