/*
 * src/site/assets/site.css
 * The public website's layout (owner request 2026-11-03), on top of the staff page's design system
 * (/staff/assets/staff.css: colours, font, buttons, cards; light and dark). Logical properties
 * only, so right-to-left and left-to-right share one sheet. Phone first, one column; wider screens
 * get a grid.
 */

.site { display: flex; flex-direction: column; min-height: 100%; font-size: 16px; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; padding: 8px 12px; background: var(--surface); border-radius: var(--r-sm); z-index: 30; }
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav { max-width: 1080px; margin-inline: auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-brand { color: var(--fg); text-decoration: none; }

/* The wordmark "أوان | awan": both names in the text colour, each first letter in the accent, a thin bar between. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; line-height: 1; white-space: nowrap; }
.wm-ar { font-size: 24px; font-weight: 700; color: var(--fg); }
.wm-bar { width: 1.5px; height: 20px; border-radius: 1px; background: var(--line); background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wm-latin { font-size: 19px; font-weight: 600; color: var(--fg); letter-spacing: .04em; direction: ltr; }
.wm-lead { color: var(--brand-pop); }

/* The wordmark's letter colour: the accent's hue, brighter, so it stands apart from the near-black text. */
:root { --brand-pop: #12a37f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-pop: #4fd1ad; } }
:root[data-theme="dark"] { --brand-pop: #4fd1ad; }
.site-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.site-foot-brand .wm-ar { font-size: 19px; }
.site-foot-brand .wm-latin { font-size: 15px; }
.site-foot-brand .wm-bar { height: 16px; }
.site-nav-end { display: flex; align-items: center; gap: 6px; }
.site-nav-end .btn-ghost { min-height: 40px; padding-block: 8px; }

/* ── Main ───────────────────────────────────────────────────────────── */
.site-main { flex: 1; width: 100%; max-width: 1080px; margin-inline: auto; padding: 0 16px 48px; }
.site-hero { padding-block: 48px 32px; display: grid; gap: 14px; max-width: 760px; }
.site-kicker { color: var(--accent); font-weight: 600; }
.site-hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.25; }
.site-lead { font-size: 17.5px; color: var(--fg-2); max-width: 680px; }
.site-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.site-section { padding-block: 28px; display: grid; gap: 16px; }
.site-section h2 { font-size: 22px; }
.site-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.site-card { padding: 18px; display: grid; gap: 6px; align-content: start; }
.site-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.site-steps { counter-reset: step; }
.site-steps .site-card { counter-increment: step; }
.site-steps .site-card h3::before { content: counter(step) ". "; color: var(--accent); }
.site-contact { padding: 24px; margin-block: 28px; }
#contact p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── Request a trial ────────────────────────────────────────────────── */
.site-form { display: grid; max-width: 560px; }
.site-form .field { margin-bottom: 12px; }
.site-form textarea.input { min-height: 96px; resize: vertical; }
.site-form [aria-invalid="true"] { border-color: var(--danger); }
.site-field-error { color: var(--danger); font-size: 13.5px; }
.site-form .btn { justify-self: start; margin-top: 6px; }
.site-form > p { margin-block: 4px 8px; }
/* The field only bots fill: out of sight and out of the tab order, not display:none (bots skip those). */
.site-trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Legal pages ────────────────────────────────────────────────────── */
.site-legal { max-width: 760px; padding-block: 36px; display: grid; gap: 14px; }
.site-legal h1 { font-size: clamp(26px, 5vw, 34px); }
.site-legal-part { display: grid; gap: 6px; padding-top: 10px; }
.site-legal-part h2 { font-size: 18px; }
.site-legal-part p { color: var(--fg); line-height: 1.8; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot-in { max-width: 1080px; margin-inline: auto; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-foot-links a[aria-current="page"] { font-weight: 600; text-decoration: none; }

@media (min-width: 720px) {
  .site-grid { grid-template-columns: repeat(2, 1fr); }
  .site-section .site-steps, #problems .site-grid, #trust .site-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  #features .site-grid { grid-template-columns: repeat(3, 1fr); }
  .site-hero { padding-block: 72px 40px; }
}
